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