blob: 73be8970815eef93c17d80b68422d82ac055e068 [file] [log] [blame]
Thomas Petazzonic5aff182012-08-17 14:04:28 +03001* Marvell Armada 370 / Armada XP Ethernet Controller (NETA)
2
3Required properties:
Simon Guinotf522a972015-06-30 16:20:20 +02004- compatible: "marvell,armada-370-neta" or "marvell,armada-xp-neta".
Thomas Petazzonic5aff182012-08-17 14:04:28 +03005- reg: address and length of the register set for the device.
6- interrupts: interrupt for the device
Sergei Shtylyove8f08ee2014-02-18 02:41:59 +03007- phy: See ethernet.txt file in the same directory.
8- phy-mode: See ethernet.txt file in the same directory
Jisheng Zhange308cb82016-01-20 19:27:25 +08009- clocks: List of clocks for this device. At least one clock is
10 mandatory for the core clock. If several clocks are given, then the
11 clock-names property must be used to identify them.
Thomas Petazzonic5aff182012-08-17 14:04:28 +030012
Marcin Wojtas9110ee02015-11-30 13:27:45 +010013Optional properties:
14- tx-csum-limit: maximum mtu supported by port that allow TX checksum.
15 Value is presented in bytes. If not used, by default 1600B is set for
16 "marvell,armada-370-neta" and 9800B for others.
Jisheng Zhange308cb82016-01-20 19:27:25 +080017- clock-names: List of names corresponding to clocks property; shall be
18 "core" for core clock and "bus" for the optional bus clock.
19
Marcin Wojtas9110ee02015-11-30 13:27:45 +010020
Marcin Wojtasdc35a102016-03-14 09:39:03 +010021Optional properties (valid only for Armada XP/38x):
22
23- buffer-manager: a phandle to a buffer manager node. Please refer to
24 Documentation/devicetree/bindings/net/marvell-neta-bm.txt
25- bm,pool-long: ID of a pool, that will accept all packets of a size
26 higher than 'short' pool's threshold (if set) and up to MTU value.
27 Obligatory, when the port is supposed to use hardware
28 buffer management.
29- bm,pool-short: ID of a pool, that will be used for accepting
30 packets of a size lower than given threshold. If not set, the port
31 will use a single 'long' pool for all packets, as defined above.
32
Thomas Petazzonic5aff182012-08-17 14:04:28 +030033Example:
34
Marcin Wojtasdc35a102016-03-14 09:39:03 +010035ethernet@70000 {
Thomas Petazzonic5aff182012-08-17 14:04:28 +030036 compatible = "marvell,armada-370-neta";
Marcin Wojtasdc35a102016-03-14 09:39:03 +010037 reg = <0x70000 0x2500>;
Thomas Petazzonic5aff182012-08-17 14:04:28 +030038 interrupts = <8>;
Thomas Petazzoni189dd622012-11-19 14:15:25 +010039 clocks = <&gate_clk 4>;
Marcin Wojtas9110ee02015-11-30 13:27:45 +010040 tx-csum-limit = <9800>
Thomas Petazzonic5aff182012-08-17 14:04:28 +030041 status = "okay";
42 phy = <&phy0>;
43 phy-mode = "rgmii-id";
Marcin Wojtasdc35a102016-03-14 09:39:03 +010044 buffer-manager = <&bm>;
45 bm,pool-long = <0>;
46 bm,pool-short = <1>;
Thomas Petazzonic5aff182012-08-17 14:04:28 +030047};