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