1c5aff182SThomas Petazzoni* Marvell Armada 370 / Armada XP Ethernet Controller (NETA)
2c5aff182SThomas Petazzoni
3c5aff182SThomas PetazzoniRequired properties:
4f522a975SSimon Guinot- compatible: "marvell,armada-370-neta" or "marvell,armada-xp-neta".
5c5aff182SThomas Petazzoni- reg: address and length of the register set for the device.
6c5aff182SThomas Petazzoni- interrupts: interrupt for the device
7e8f08ee0SSergei Shtylyov- phy: See ethernet.txt file in the same directory.
8e8f08ee0SSergei Shtylyov- phy-mode: See ethernet.txt file in the same directory
9e308cb83SJisheng Zhang- clocks: List of clocks for this device. At least one clock is
10e308cb83SJisheng Zhang  mandatory for the core clock. If several clocks are given, then the
11e308cb83SJisheng Zhang  clock-names property must be used to identify them.
12c5aff182SThomas Petazzoni
139110ee07SMarcin WojtasOptional properties:
149110ee07SMarcin Wojtas- tx-csum-limit: maximum mtu supported by port that allow TX checksum.
159110ee07SMarcin Wojtas  Value is presented in bytes. If not used, by default 1600B is set for
169110ee07SMarcin Wojtas  "marvell,armada-370-neta" and 9800B for others.
17e308cb83SJisheng Zhang- clock-names: List of names corresponding to clocks property; shall be
18e308cb83SJisheng Zhang  "core" for core clock and "bus" for the optional bus clock.
19e308cb83SJisheng Zhang
209110ee07SMarcin Wojtas
21dc35a10fSMarcin WojtasOptional properties (valid only for Armada XP/38x):
22dc35a10fSMarcin Wojtas
23dc35a10fSMarcin Wojtas- buffer-manager: a phandle to a buffer manager node. Please refer to
24dc35a10fSMarcin Wojtas  Documentation/devicetree/bindings/net/marvell-neta-bm.txt
25dc35a10fSMarcin Wojtas- bm,pool-long: ID of a pool, that will accept all packets of a size
26dc35a10fSMarcin Wojtas  higher than 'short' pool's threshold (if set) and up to MTU value.
27dc35a10fSMarcin Wojtas  Obligatory, when the port is supposed to use hardware
28dc35a10fSMarcin Wojtas  buffer management.
29dc35a10fSMarcin Wojtas- bm,pool-short: ID of a pool, that will be used for accepting
30dc35a10fSMarcin Wojtas  packets of a size lower than given threshold. If not set, the port
31dc35a10fSMarcin Wojtas  will use a single 'long' pool for all packets, as defined above.
32dc35a10fSMarcin Wojtas
33c5aff182SThomas PetazzoniExample:
34c5aff182SThomas Petazzoni
35dc35a10fSMarcin Wojtasethernet@70000 {
36c5aff182SThomas Petazzoni	compatible = "marvell,armada-370-neta";
37dc35a10fSMarcin Wojtas	reg = <0x70000 0x2500>;
38c5aff182SThomas Petazzoni	interrupts = <8>;
39189dd626SThomas Petazzoni	clocks = <&gate_clk 4>;
409110ee07SMarcin Wojtas	tx-csum-limit = <9800>
41c5aff182SThomas Petazzoni	status = "okay";
42c5aff182SThomas Petazzoni	phy = <&phy0>;
43c5aff182SThomas Petazzoni	phy-mode = "rgmii-id";
44dc35a10fSMarcin Wojtas	buffer-manager = <&bm>;
45dc35a10fSMarcin Wojtas	bm,pool-long = <0>;
46dc35a10fSMarcin Wojtas	bm,pool-short = <1>;
47c5aff182SThomas Petazzoni};
48