Thomas Petazzoni | c5aff18 | 2012-08-17 14:04:28 +0300 | [diff] [blame] | 1 | * Marvell Armada 370 / Armada XP Ethernet Controller (NETA) |
| 2 | |
| 3 | Required properties: |
Simon Guinot | f522a97 | 2015-06-30 16:20:20 +0200 | [diff] [blame] | 4 | - compatible: "marvell,armada-370-neta" or "marvell,armada-xp-neta". |
Thomas Petazzoni | c5aff18 | 2012-08-17 14:04:28 +0300 | [diff] [blame] | 5 | - reg: address and length of the register set for the device. |
| 6 | - interrupts: interrupt for the device |
Sergei Shtylyov | e8f08ee | 2014-02-18 02:41:59 +0300 | [diff] [blame] | 7 | - phy: See ethernet.txt file in the same directory. |
| 8 | - phy-mode: See ethernet.txt file in the same directory |
Jisheng Zhang | e308cb8 | 2016-01-20 19:27:25 +0800 | [diff] [blame] | 9 | - 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 Petazzoni | c5aff18 | 2012-08-17 14:04:28 +0300 | [diff] [blame] | 12 | |
Marcin Wojtas | 9110ee0 | 2015-11-30 13:27:45 +0100 | [diff] [blame] | 13 | Optional 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 Zhang | e308cb8 | 2016-01-20 19:27:25 +0800 | [diff] [blame] | 17 | - 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 Wojtas | 9110ee0 | 2015-11-30 13:27:45 +0100 | [diff] [blame] | 20 | |
Marcin Wojtas | dc35a10 | 2016-03-14 09:39:03 +0100 | [diff] [blame] | 21 | Optional 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 Petazzoni | c5aff18 | 2012-08-17 14:04:28 +0300 | [diff] [blame] | 33 | Example: |
| 34 | |
Marcin Wojtas | dc35a10 | 2016-03-14 09:39:03 +0100 | [diff] [blame] | 35 | ethernet@70000 { |
Thomas Petazzoni | c5aff18 | 2012-08-17 14:04:28 +0300 | [diff] [blame] | 36 | compatible = "marvell,armada-370-neta"; |
Marcin Wojtas | dc35a10 | 2016-03-14 09:39:03 +0100 | [diff] [blame] | 37 | reg = <0x70000 0x2500>; |
Thomas Petazzoni | c5aff18 | 2012-08-17 14:04:28 +0300 | [diff] [blame] | 38 | interrupts = <8>; |
Thomas Petazzoni | 189dd62 | 2012-11-19 14:15:25 +0100 | [diff] [blame] | 39 | clocks = <&gate_clk 4>; |
Marcin Wojtas | 9110ee0 | 2015-11-30 13:27:45 +0100 | [diff] [blame] | 40 | tx-csum-limit = <9800> |
Thomas Petazzoni | c5aff18 | 2012-08-17 14:04:28 +0300 | [diff] [blame] | 41 | status = "okay"; |
| 42 | phy = <&phy0>; |
| 43 | phy-mode = "rgmii-id"; |
Marcin Wojtas | dc35a10 | 2016-03-14 09:39:03 +0100 | [diff] [blame] | 44 | buffer-manager = <&bm>; |
| 45 | bm,pool-long = <0>; |
| 46 | bm,pool-short = <1>; |
Thomas Petazzoni | c5aff18 | 2012-08-17 14:04:28 +0300 | [diff] [blame] | 47 | }; |