armada-xp-mv78230.dtsi 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Device Tree Include file for Marvell Armada XP family SoC
  4. *
  5. * Copyright (C) 2012 Marvell
  6. *
  7. * Thomas Petazzoni <[email protected]>
  8. *
  9. * Contains definitions specific to the Armada XP MV78230 SoC that are not
  10. * common to all Armada XP SoCs.
  11. */
  12. #include "armada-xp.dtsi"
  13. / {
  14. model = "Marvell Armada XP MV78230 SoC";
  15. compatible = "marvell,armadaxp-mv78230", "marvell,armadaxp", "marvell,armada-370-xp";
  16. aliases {
  17. gpio0 = &gpio0;
  18. gpio1 = &gpio1;
  19. };
  20. cpus {
  21. #address-cells = <1>;
  22. #size-cells = <0>;
  23. enable-method = "marvell,armada-xp-smp";
  24. cpu@0 {
  25. device_type = "cpu";
  26. compatible = "marvell,sheeva-v7";
  27. reg = <0>;
  28. clocks = <&cpuclk 0>;
  29. clock-latency = <1000000>;
  30. };
  31. cpu@1 {
  32. device_type = "cpu";
  33. compatible = "marvell,sheeva-v7";
  34. reg = <1>;
  35. clocks = <&cpuclk 1>;
  36. clock-latency = <1000000>;
  37. };
  38. };
  39. soc {
  40. /*
  41. * MV78230 has 2 PCIe units Gen2.0: One unit can be
  42. * configured as x4 or quad x1 lanes. One unit is
  43. * x1 only.
  44. */
  45. pciec: pcie@82000000 {
  46. compatible = "marvell,armada-xp-pcie";
  47. status = "disabled";
  48. device_type = "pci";
  49. #address-cells = <3>;
  50. #size-cells = <2>;
  51. msi-parent = <&mpic>;
  52. bus-range = <0x00 0xff>;
  53. ranges =
  54. <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000 /* Port 0.0 registers */
  55. 0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000 /* Port 0.1 registers */
  56. 0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000 /* Port 0.2 registers */
  57. 0x82000000 0 0x4c000 MBUS_ID(0xf0, 0x01) 0x4c000 0 0x00002000 /* Port 0.3 registers */
  58. 0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000 /* Port 1.0 registers */
  59. 0x82000000 0x1 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */
  60. 0x81000000 0x1 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO */
  61. 0x82000000 0x2 0 MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 0.1 MEM */
  62. 0x81000000 0x2 0 MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 0.1 IO */
  63. 0x82000000 0x3 0 MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 0.2 MEM */
  64. 0x81000000 0x3 0 MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 0.2 IO */
  65. 0x82000000 0x4 0 MBUS_ID(0x04, 0x78) 0 1 0 /* Port 0.3 MEM */
  66. 0x81000000 0x4 0 MBUS_ID(0x04, 0x70) 0 1 0 /* Port 0.3 IO */
  67. 0x82000000 0x5 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 MEM */
  68. 0x81000000 0x5 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 1.0 IO */>;
  69. pcie1: pcie@1,0 {
  70. device_type = "pci";
  71. assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
  72. reg = <0x0800 0 0 0 0>;
  73. #address-cells = <3>;
  74. #size-cells = <2>;
  75. interrupt-names = "intx";
  76. interrupts-extended = <&mpic 58>;
  77. #interrupt-cells = <1>;
  78. ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
  79. 0x81000000 0 0 0x81000000 0x1 0 1 0>;
  80. bus-range = <0x00 0xff>;
  81. interrupt-map-mask = <0 0 0 7>;
  82. interrupt-map = <0 0 0 1 &pcie1_intc 0>,
  83. <0 0 0 2 &pcie1_intc 1>,
  84. <0 0 0 3 &pcie1_intc 2>,
  85. <0 0 0 4 &pcie1_intc 3>;
  86. marvell,pcie-port = <0>;
  87. marvell,pcie-lane = <0>;
  88. clocks = <&gateclk 5>;
  89. status = "disabled";
  90. pcie1_intc: interrupt-controller {
  91. interrupt-controller;
  92. #interrupt-cells = <1>;
  93. };
  94. };
  95. pcie2: pcie@2,0 {
  96. device_type = "pci";
  97. assigned-addresses = <0x82001000 0 0x44000 0 0x2000>;
  98. reg = <0x1000 0 0 0 0>;
  99. #address-cells = <3>;
  100. #size-cells = <2>;
  101. interrupt-names = "intx";
  102. interrupts-extended = <&mpic 59>;
  103. #interrupt-cells = <1>;
  104. ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
  105. 0x81000000 0 0 0x81000000 0x2 0 1 0>;
  106. bus-range = <0x00 0xff>;
  107. interrupt-map-mask = <0 0 0 7>;
  108. interrupt-map = <0 0 0 1 &pcie2_intc 0>,
  109. <0 0 0 2 &pcie2_intc 1>,
  110. <0 0 0 3 &pcie2_intc 2>,
  111. <0 0 0 4 &pcie2_intc 3>;
  112. marvell,pcie-port = <0>;
  113. marvell,pcie-lane = <1>;
  114. clocks = <&gateclk 6>;
  115. status = "disabled";
  116. pcie2_intc: interrupt-controller {
  117. interrupt-controller;
  118. #interrupt-cells = <1>;
  119. };
  120. };
  121. pcie3: pcie@3,0 {
  122. device_type = "pci";
  123. assigned-addresses = <0x82001800 0 0x48000 0 0x2000>;
  124. reg = <0x1800 0 0 0 0>;
  125. #address-cells = <3>;
  126. #size-cells = <2>;
  127. interrupt-names = "intx";
  128. interrupts-extended = <&mpic 60>;
  129. #interrupt-cells = <1>;
  130. ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0
  131. 0x81000000 0 0 0x81000000 0x3 0 1 0>;
  132. bus-range = <0x00 0xff>;
  133. interrupt-map-mask = <0 0 0 7>;
  134. interrupt-map = <0 0 0 1 &pcie3_intc 0>,
  135. <0 0 0 2 &pcie3_intc 1>,
  136. <0 0 0 3 &pcie3_intc 2>,
  137. <0 0 0 4 &pcie3_intc 3>;
  138. marvell,pcie-port = <0>;
  139. marvell,pcie-lane = <2>;
  140. clocks = <&gateclk 7>;
  141. status = "disabled";
  142. pcie3_intc: interrupt-controller {
  143. interrupt-controller;
  144. #interrupt-cells = <1>;
  145. };
  146. };
  147. pcie4: pcie@4,0 {
  148. device_type = "pci";
  149. assigned-addresses = <0x82002000 0 0x4c000 0 0x2000>;
  150. reg = <0x2000 0 0 0 0>;
  151. #address-cells = <3>;
  152. #size-cells = <2>;
  153. interrupt-names = "intx";
  154. interrupts-extended = <&mpic 61>;
  155. #interrupt-cells = <1>;
  156. ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0
  157. 0x81000000 0 0 0x81000000 0x4 0 1 0>;
  158. bus-range = <0x00 0xff>;
  159. interrupt-map-mask = <0 0 0 7>;
  160. interrupt-map = <0 0 0 1 &pcie4_intc 0>,
  161. <0 0 0 2 &pcie4_intc 1>,
  162. <0 0 0 3 &pcie4_intc 2>,
  163. <0 0 0 4 &pcie4_intc 3>;
  164. marvell,pcie-port = <0>;
  165. marvell,pcie-lane = <3>;
  166. clocks = <&gateclk 8>;
  167. status = "disabled";
  168. pcie4_intc: interrupt-controller {
  169. interrupt-controller;
  170. #interrupt-cells = <1>;
  171. };
  172. };
  173. pcie5: pcie@5,0 {
  174. device_type = "pci";
  175. assigned-addresses = <0x82002800 0 0x80000 0 0x2000>;
  176. reg = <0x2800 0 0 0 0>;
  177. #address-cells = <3>;
  178. #size-cells = <2>;
  179. interrupt-names = "intx";
  180. interrupts-extended = <&mpic 62>;
  181. #interrupt-cells = <1>;
  182. ranges = <0x82000000 0 0 0x82000000 0x5 0 1 0
  183. 0x81000000 0 0 0x81000000 0x5 0 1 0>;
  184. bus-range = <0x00 0xff>;
  185. interrupt-map-mask = <0 0 0 7>;
  186. interrupt-map = <0 0 0 1 &pcie5_intc 0>,
  187. <0 0 0 2 &pcie5_intc 1>,
  188. <0 0 0 3 &pcie5_intc 2>,
  189. <0 0 0 4 &pcie5_intc 3>;
  190. marvell,pcie-port = <1>;
  191. marvell,pcie-lane = <0>;
  192. clocks = <&gateclk 9>;
  193. status = "disabled";
  194. pcie5_intc: interrupt-controller {
  195. interrupt-controller;
  196. #interrupt-cells = <1>;
  197. };
  198. };
  199. };
  200. internal-regs {
  201. gpio0: gpio@18100 {
  202. compatible = "marvell,armada-370-gpio",
  203. "marvell,orion-gpio";
  204. reg = <0x18100 0x40>, <0x181c0 0x08>;
  205. reg-names = "gpio", "pwm";
  206. ngpios = <32>;
  207. gpio-controller;
  208. #gpio-cells = <2>;
  209. #pwm-cells = <2>;
  210. interrupt-controller;
  211. #interrupt-cells = <2>;
  212. interrupts = <82>, <83>, <84>, <85>;
  213. clocks = <&coreclk 0>;
  214. };
  215. gpio1: gpio@18140 {
  216. compatible = "marvell,armada-370-gpio",
  217. "marvell,orion-gpio";
  218. reg = <0x18140 0x40>, <0x181c8 0x08>;
  219. reg-names = "gpio", "pwm";
  220. ngpios = <17>;
  221. gpio-controller;
  222. #gpio-cells = <2>;
  223. #pwm-cells = <2>;
  224. interrupt-controller;
  225. #interrupt-cells = <2>;
  226. interrupts = <87>, <88>, <89>;
  227. clocks = <&coreclk 0>;
  228. };
  229. };
  230. };
  231. };
  232. &pinctrl {
  233. compatible = "marvell,mv78230-pinctrl";
  234. };