marvell-armada-370-neta.txt 1.7 KB

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