marvell-pp2.txt 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. * Marvell Armada 375 Ethernet Controller (PPv2)
  2. Required properties:
  3. - compatible: should be "marvell,armada-375-pp2"
  4. - reg: addresses and length of the register sets for the device.
  5. Must contain the following register sets:
  6. - common controller registers
  7. - LMS registers
  8. In addition, at least one port register set is required.
  9. - clocks: a pointer to the reference clocks for this device, consequently:
  10. - main controller clock
  11. - GOP clock
  12. - clock-names: names of used clocks, must be "pp_clk" and "gop_clk".
  13. The ethernet ports are represented by subnodes. At least one port is
  14. required.
  15. Required properties (port):
  16. - interrupts: interrupt for the port
  17. - port-id: should be '0' or '1' for ethernet ports, and '2' for the
  18. loopback port
  19. - phy-mode: See ethernet.txt file in the same directory
  20. Optional properties (port):
  21. - marvell,loopback: port is loopback mode
  22. - phy: a phandle to a phy node defining the PHY address (as the reg
  23. property, a single integer). Note: if this property isn't present,
  24. then fixed link is assumed, and the 'fixed-link' property is
  25. mandatory.
  26. Example:
  27. ethernet@f0000 {
  28. compatible = "marvell,armada-375-pp2";
  29. reg = <0xf0000 0xa000>,
  30. <0xc0000 0x3060>,
  31. <0xc4000 0x100>,
  32. <0xc5000 0x100>;
  33. clocks = <&gateclk 3>, <&gateclk 19>;
  34. clock-names = "pp_clk", "gop_clk";
  35. status = "okay";
  36. eth0: eth0@c4000 {
  37. interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
  38. port-id = <0>;
  39. status = "okay";
  40. phy = <&phy0>;
  41. phy-mode = "gmii";
  42. };
  43. eth1: eth1@c5000 {
  44. interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
  45. port-id = <1>;
  46. status = "okay";
  47. phy = <&phy3>;
  48. phy-mode = "gmii";
  49. };
  50. };