marvell-pp2.txt 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. * Marvell Armada 375 Ethernet Controller (PPv2.1)
  2. Marvell Armada 7K/8K Ethernet Controller (PPv2.2)
  3. Required properties:
  4. - compatible: should be one of:
  5. "marvell,armada-375-pp2"
  6. "marvell,armada-7k-pp2"
  7. - reg: addresses and length of the register sets for the device.
  8. For "marvell,armada-375-pp2", must contain the following register
  9. sets:
  10. - common controller registers
  11. - LMS registers
  12. - one register area per Ethernet port
  13. For "marvell,armada-7k-pp2", must contain the following register
  14. sets:
  15. - packet processor registers
  16. - networking interfaces registers
  17. - clocks: pointers to the reference clocks for this device, consequently:
  18. - main controller clock (for both armada-375-pp2 and armada-7k-pp2)
  19. - GOP clock (for both armada-375-pp2 and armada-7k-pp2)
  20. - MG clock (only for armada-7k-pp2)
  21. - MG Core clock (only for armada-7k-pp2)
  22. - AXI clock (only for armada-7k-pp2)
  23. - clock-names: names of used clocks, must be "pp_clk", "gop_clk", "mg_clk",
  24. "mg_core_clk" and "axi_clk" (the 3 latter only for armada-7k-pp2).
  25. The ethernet ports are represented by subnodes. At least one port is
  26. required.
  27. Required properties (port):
  28. - interrupts: interrupt for the port
  29. - port-id: ID of the port from the MAC point of view
  30. - gop-port-id: only for marvell,armada-7k-pp2, ID of the port from the
  31. GOP (Group Of Ports) point of view. This ID is used to index the
  32. per-port registers in the second register area.
  33. - phy-mode: See ethernet.txt file in the same directory
  34. Optional properties (port):
  35. - marvell,loopback: port is loopback mode
  36. - phy: a phandle to a phy node defining the PHY address (as the reg
  37. property, a single integer).
  38. - interrupt-names: if more than a single interrupt for rx is given, must
  39. be the name associated to the interrupts listed. Valid
  40. names are: "tx-cpu0", "tx-cpu1", "tx-cpu2", "tx-cpu3",
  41. "rx-shared", "link".
  42. - marvell,system-controller: a phandle to the system controller.
  43. Example for marvell,armada-375-pp2:
  44. ethernet@f0000 {
  45. compatible = "marvell,armada-375-pp2";
  46. reg = <0xf0000 0xa000>,
  47. <0xc0000 0x3060>,
  48. <0xc4000 0x100>,
  49. <0xc5000 0x100>;
  50. clocks = <&gateclk 3>, <&gateclk 19>;
  51. clock-names = "pp_clk", "gop_clk";
  52. eth0: eth0@c4000 {
  53. interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
  54. port-id = <0>;
  55. phy = <&phy0>;
  56. phy-mode = "gmii";
  57. };
  58. eth1: eth1@c5000 {
  59. interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
  60. port-id = <1>;
  61. phy = <&phy3>;
  62. phy-mode = "gmii";
  63. };
  64. };
  65. Example for marvell,armada-7k-pp2:
  66. cpm_ethernet: ethernet@0 {
  67. compatible = "marvell,armada-7k-pp22";
  68. reg = <0x0 0x100000>, <0x129000 0xb000>;
  69. clocks = <&cpm_syscon0 1 3>, <&cpm_syscon0 1 9>,
  70. <&cpm_syscon0 1 5>, <&cpm_syscon0 1 6>, <&cpm_syscon0 1 18>;
  71. clock-names = "pp_clk", "gop_clk", "mg_clk", "mg_core_clk", "axi_clk";
  72. eth0: eth0 {
  73. interrupts = <ICU_GRP_NSR 39 IRQ_TYPE_LEVEL_HIGH>,
  74. <ICU_GRP_NSR 43 IRQ_TYPE_LEVEL_HIGH>,
  75. <ICU_GRP_NSR 47 IRQ_TYPE_LEVEL_HIGH>,
  76. <ICU_GRP_NSR 51 IRQ_TYPE_LEVEL_HIGH>,
  77. <ICU_GRP_NSR 55 IRQ_TYPE_LEVEL_HIGH>;
  78. interrupt-names = "tx-cpu0", "tx-cpu1", "tx-cpu2",
  79. "tx-cpu3", "rx-shared";
  80. port-id = <0>;
  81. gop-port-id = <0>;
  82. };
  83. eth1: eth1 {
  84. interrupts = <ICU_GRP_NSR 40 IRQ_TYPE_LEVEL_HIGH>,
  85. <ICU_GRP_NSR 44 IRQ_TYPE_LEVEL_HIGH>,
  86. <ICU_GRP_NSR 48 IRQ_TYPE_LEVEL_HIGH>,
  87. <ICU_GRP_NSR 52 IRQ_TYPE_LEVEL_HIGH>,
  88. <ICU_GRP_NSR 56 IRQ_TYPE_LEVEL_HIGH>;
  89. interrupt-names = "tx-cpu0", "tx-cpu1", "tx-cpu2",
  90. "tx-cpu3", "rx-shared";
  91. port-id = <1>;
  92. gop-port-id = <2>;
  93. };
  94. eth2: eth2 {
  95. interrupts = <ICU_GRP_NSR 41 IRQ_TYPE_LEVEL_HIGH>,
  96. <ICU_GRP_NSR 45 IRQ_TYPE_LEVEL_HIGH>,
  97. <ICU_GRP_NSR 49 IRQ_TYPE_LEVEL_HIGH>,
  98. <ICU_GRP_NSR 53 IRQ_TYPE_LEVEL_HIGH>,
  99. <ICU_GRP_NSR 57 IRQ_TYPE_LEVEL_HIGH>;
  100. interrupt-names = "tx-cpu0", "tx-cpu1", "tx-cpu2",
  101. "tx-cpu3", "rx-shared";
  102. port-id = <2>;
  103. gop-port-id = <3>;
  104. };
  105. };