xref: /freebsd/sys/contrib/device-tree/Bindings/net/marvell-armada-370-neta.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1* Marvell Armada 370 / Armada XP / Armada 3700 Ethernet Controller (NETA)
2
3Required properties:
4- compatible: could be one of the following:
5	"marvell,armada-370-neta"
6	"marvell,armada-xp-neta"
7	"marvell,armada-3700-neta"
8- reg: address and length of the register set for the device.
9- interrupts: interrupt for the device
10- phy: See ethernet.txt file in the same directory.
11- phy-mode: See ethernet.txt file in the same directory
12- clocks: List of clocks for this device. At least one clock is
13  mandatory for the core clock. If several clocks are given, then the
14  clock-names property must be used to identify them.
15
16Optional properties:
17- tx-csum-limit: maximum mtu supported by port that allow TX checksum.
18  Value is presented in bytes. If not used, by default 1600B is set for
19  "marvell,armada-370-neta" and 9800B for others.
20- clock-names: List of names corresponding to clocks property; shall be
21  "core" for core clock and "bus" for the optional bus clock.
22- phys: comphy for the ethernet port, see ../phy/phy-bindings.txt
23
24Optional properties (valid only for Armada XP/38x):
25
26- buffer-manager: a phandle to a buffer manager node. Please refer to
27  Documentation/devicetree/bindings/net/marvell-neta-bm.txt
28- bm,pool-long: ID of a pool, that will accept all packets of a size
29  higher than 'short' pool's threshold (if set) and up to MTU value.
30  Obligatory, when the port is supposed to use hardware
31  buffer management.
32- bm,pool-short: ID of a pool, that will be used for accepting
33  packets of a size lower than given threshold. If not set, the port
34  will use a single 'long' pool for all packets, as defined above.
35
36Example:
37
38ethernet@70000 {
39	compatible = "marvell,armada-370-neta";
40	reg = <0x70000 0x2500>;
41	interrupts = <8>;
42	clocks = <&gate_clk 4>;
43	tx-csum-limit = <9800>
44	phy = <&phy0>;
45	phy-mode = "rgmii-id";
46	buffer-manager = <&bm>;
47	bm,pool-long = <0>;
48	bm,pool-short = <1>;
49};
50