armada-xp-mv78260.dtsi 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. /*
  2. * Device Tree Include file for Marvell Armada XP family SoC
  3. *
  4. * Copyright (C) 2012 Marvell
  5. *
  6. * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  7. *
  8. * This file is licensed under the terms of the GNU General Public
  9. * License version 2. This program is licensed "as is" without any
  10. * warranty of any kind, whether express or implied.
  11. *
  12. * Contains definitions specific to the Armada XP MV78260 SoC that are not
  13. * common to all Armada XP SoCs.
  14. */
  15. #include "armada-xp.dtsi"
  16. / {
  17. model = "Marvell Armada XP MV78260 SoC";
  18. compatible = "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
  19. aliases {
  20. gpio0 = &gpio0;
  21. gpio1 = &gpio1;
  22. gpio2 = &gpio2;
  23. eth3 = &eth3;
  24. };
  25. cpus {
  26. #address-cells = <1>;
  27. #size-cells = <0>;
  28. enable-method = "marvell,armada-xp-smp";
  29. cpu@0 {
  30. device_type = "cpu";
  31. compatible = "marvell,sheeva-v7";
  32. reg = <0>;
  33. clocks = <&cpuclk 0>;
  34. clock-latency = <1000000>;
  35. };
  36. cpu@1 {
  37. device_type = "cpu";
  38. compatible = "marvell,sheeva-v7";
  39. reg = <1>;
  40. clocks = <&cpuclk 1>;
  41. clock-latency = <1000000>;
  42. };
  43. };
  44. soc {
  45. /*
  46. * MV78260 has 3 PCIe units Gen2.0: Two units can be
  47. * configured as x4 or quad x1 lanes. One unit is
  48. * x4 only.
  49. */
  50. pcie-controller {
  51. compatible = "marvell,armada-xp-pcie";
  52. status = "disabled";
  53. device_type = "pci";
  54. #address-cells = <3>;
  55. #size-cells = <2>;
  56. msi-parent = <&mpic>;
  57. bus-range = <0x00 0xff>;
  58. ranges =
  59. <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000 /* Port 0.0 registers */
  60. 0x82000000 0 0x42000 MBUS_ID(0xf0, 0x01) 0x42000 0 0x00002000 /* Port 2.0 registers */
  61. 0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000 /* Port 0.1 registers */
  62. 0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000 /* Port 0.2 registers */
  63. 0x82000000 0 0x4c000 MBUS_ID(0xf0, 0x01) 0x4c000 0 0x00002000 /* Port 0.3 registers */
  64. 0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000 /* Port 1.0 registers */
  65. 0x82000000 0 0x84000 MBUS_ID(0xf0, 0x01) 0x84000 0 0x00002000 /* Port 1.1 registers */
  66. 0x82000000 0 0x88000 MBUS_ID(0xf0, 0x01) 0x88000 0 0x00002000 /* Port 1.2 registers */
  67. 0x82000000 0 0x8c000 MBUS_ID(0xf0, 0x01) 0x8c000 0 0x00002000 /* Port 1.3 registers */
  68. 0x82000000 0x1 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */
  69. 0x81000000 0x1 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO */
  70. 0x82000000 0x2 0 MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 0.1 MEM */
  71. 0x81000000 0x2 0 MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 0.1 IO */
  72. 0x82000000 0x3 0 MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 0.2 MEM */
  73. 0x81000000 0x3 0 MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 0.2 IO */
  74. 0x82000000 0x4 0 MBUS_ID(0x04, 0x78) 0 1 0 /* Port 0.3 MEM */
  75. 0x81000000 0x4 0 MBUS_ID(0x04, 0x70) 0 1 0 /* Port 0.3 IO */
  76. 0x82000000 0x5 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 MEM */
  77. 0x81000000 0x5 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 1.0 IO */
  78. 0x82000000 0x6 0 MBUS_ID(0x08, 0xd8) 0 1 0 /* Port 1.1 MEM */
  79. 0x81000000 0x6 0 MBUS_ID(0x08, 0xd0) 0 1 0 /* Port 1.1 IO */
  80. 0x82000000 0x7 0 MBUS_ID(0x08, 0xb8) 0 1 0 /* Port 1.2 MEM */
  81. 0x81000000 0x7 0 MBUS_ID(0x08, 0xb0) 0 1 0 /* Port 1.2 IO */
  82. 0x82000000 0x8 0 MBUS_ID(0x08, 0x78) 0 1 0 /* Port 1.3 MEM */
  83. 0x81000000 0x8 0 MBUS_ID(0x08, 0x70) 0 1 0 /* Port 1.3 IO */
  84. 0x82000000 0x9 0 MBUS_ID(0x04, 0xf8) 0 1 0 /* Port 2.0 MEM */
  85. 0x81000000 0x9 0 MBUS_ID(0x04, 0xf0) 0 1 0 /* Port 2.0 IO */>;
  86. pcie@1,0 {
  87. device_type = "pci";
  88. assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
  89. reg = <0x0800 0 0 0 0>;
  90. #address-cells = <3>;
  91. #size-cells = <2>;
  92. #interrupt-cells = <1>;
  93. ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
  94. 0x81000000 0 0 0x81000000 0x1 0 1 0>;
  95. interrupt-map-mask = <0 0 0 0>;
  96. interrupt-map = <0 0 0 0 &mpic 58>;
  97. marvell,pcie-port = <0>;
  98. marvell,pcie-lane = <0>;
  99. clocks = <&gateclk 5>;
  100. status = "disabled";
  101. };
  102. pcie@2,0 {
  103. device_type = "pci";
  104. assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
  105. reg = <0x1000 0 0 0 0>;
  106. #address-cells = <3>;
  107. #size-cells = <2>;
  108. #interrupt-cells = <1>;
  109. ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
  110. 0x81000000 0 0 0x81000000 0x2 0 1 0>;
  111. interrupt-map-mask = <0 0 0 0>;
  112. interrupt-map = <0 0 0 0 &mpic 59>;
  113. marvell,pcie-port = <0>;
  114. marvell,pcie-lane = <1>;
  115. clocks = <&gateclk 6>;
  116. status = "disabled";
  117. };
  118. pcie@3,0 {
  119. device_type = "pci";
  120. assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
  121. reg = <0x1800 0 0 0 0>;
  122. #address-cells = <3>;
  123. #size-cells = <2>;
  124. #interrupt-cells = <1>;
  125. ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0
  126. 0x81000000 0 0 0x81000000 0x3 0 1 0>;
  127. interrupt-map-mask = <0 0 0 0>;
  128. interrupt-map = <0 0 0 0 &mpic 60>;
  129. marvell,pcie-port = <0>;
  130. marvell,pcie-lane = <2>;
  131. clocks = <&gateclk 7>;
  132. status = "disabled";
  133. };
  134. pcie@4,0 {
  135. device_type = "pci";
  136. assigned-addresses = <0x82000800 0 0x4c000 0 0x2000>;
  137. reg = <0x2000 0 0 0 0>;
  138. #address-cells = <3>;
  139. #size-cells = <2>;
  140. #interrupt-cells = <1>;
  141. ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0
  142. 0x81000000 0 0 0x81000000 0x4 0 1 0>;
  143. interrupt-map-mask = <0 0 0 0>;
  144. interrupt-map = <0 0 0 0 &mpic 61>;
  145. marvell,pcie-port = <0>;
  146. marvell,pcie-lane = <3>;
  147. clocks = <&gateclk 8>;
  148. status = "disabled";
  149. };
  150. pcie@5,0 {
  151. device_type = "pci";
  152. assigned-addresses = <0x82000800 0 0x80000 0 0x2000>;
  153. reg = <0x2800 0 0 0 0>;
  154. #address-cells = <3>;
  155. #size-cells = <2>;
  156. #interrupt-cells = <1>;
  157. ranges = <0x82000000 0 0 0x82000000 0x5 0 1 0
  158. 0x81000000 0 0 0x81000000 0x5 0 1 0>;
  159. interrupt-map-mask = <0 0 0 0>;
  160. interrupt-map = <0 0 0 0 &mpic 62>;
  161. marvell,pcie-port = <1>;
  162. marvell,pcie-lane = <0>;
  163. clocks = <&gateclk 9>;
  164. status = "disabled";
  165. };
  166. pcie@6,0 {
  167. device_type = "pci";
  168. assigned-addresses = <0x82000800 0 0x84000 0 0x2000>;
  169. reg = <0x3000 0 0 0 0>;
  170. #address-cells = <3>;
  171. #size-cells = <2>;
  172. #interrupt-cells = <1>;
  173. ranges = <0x82000000 0 0 0x82000000 0x6 0 1 0
  174. 0x81000000 0 0 0x81000000 0x6 0 1 0>;
  175. interrupt-map-mask = <0 0 0 0>;
  176. interrupt-map = <0 0 0 0 &mpic 63>;
  177. marvell,pcie-port = <1>;
  178. marvell,pcie-lane = <1>;
  179. clocks = <&gateclk 10>;
  180. status = "disabled";
  181. };
  182. pcie@7,0 {
  183. device_type = "pci";
  184. assigned-addresses = <0x82000800 0 0x88000 0 0x2000>;
  185. reg = <0x3800 0 0 0 0>;
  186. #address-cells = <3>;
  187. #size-cells = <2>;
  188. #interrupt-cells = <1>;
  189. ranges = <0x82000000 0 0 0x82000000 0x7 0 1 0
  190. 0x81000000 0 0 0x81000000 0x7 0 1 0>;
  191. interrupt-map-mask = <0 0 0 0>;
  192. interrupt-map = <0 0 0 0 &mpic 64>;
  193. marvell,pcie-port = <1>;
  194. marvell,pcie-lane = <2>;
  195. clocks = <&gateclk 11>;
  196. status = "disabled";
  197. };
  198. pcie@8,0 {
  199. device_type = "pci";
  200. assigned-addresses = <0x82000800 0 0x8c000 0 0x2000>;
  201. reg = <0x4000 0 0 0 0>;
  202. #address-cells = <3>;
  203. #size-cells = <2>;
  204. #interrupt-cells = <1>;
  205. ranges = <0x82000000 0 0 0x82000000 0x8 0 1 0
  206. 0x81000000 0 0 0x81000000 0x8 0 1 0>;
  207. interrupt-map-mask = <0 0 0 0>;
  208. interrupt-map = <0 0 0 0 &mpic 65>;
  209. marvell,pcie-port = <1>;
  210. marvell,pcie-lane = <3>;
  211. clocks = <&gateclk 12>;
  212. status = "disabled";
  213. };
  214. pcie@9,0 {
  215. device_type = "pci";
  216. assigned-addresses = <0x82000800 0 0x42000 0 0x2000>;
  217. reg = <0x4800 0 0 0 0>;
  218. #address-cells = <3>;
  219. #size-cells = <2>;
  220. #interrupt-cells = <1>;
  221. ranges = <0x82000000 0 0 0x82000000 0x9 0 1 0
  222. 0x81000000 0 0 0x81000000 0x9 0 1 0>;
  223. interrupt-map-mask = <0 0 0 0>;
  224. interrupt-map = <0 0 0 0 &mpic 99>;
  225. marvell,pcie-port = <2>;
  226. marvell,pcie-lane = <0>;
  227. clocks = <&gateclk 26>;
  228. status = "disabled";
  229. };
  230. };
  231. internal-regs {
  232. pinctrl {
  233. compatible = "marvell,mv78260-pinctrl";
  234. reg = <0x18000 0x38>;
  235. sdio_pins: sdio-pins {
  236. marvell,pins = "mpp30", "mpp31", "mpp32",
  237. "mpp33", "mpp34", "mpp35";
  238. marvell,function = "sd0";
  239. };
  240. };
  241. gpio0: gpio@18100 {
  242. compatible = "marvell,orion-gpio";
  243. reg = <0x18100 0x40>;
  244. ngpios = <32>;
  245. gpio-controller;
  246. #gpio-cells = <2>;
  247. interrupt-controller;
  248. #interrupt-cells = <2>;
  249. interrupts = <82>, <83>, <84>, <85>;
  250. };
  251. gpio1: gpio@18140 {
  252. compatible = "marvell,orion-gpio";
  253. reg = <0x18140 0x40>;
  254. ngpios = <32>;
  255. gpio-controller;
  256. #gpio-cells = <2>;
  257. interrupt-controller;
  258. #interrupt-cells = <2>;
  259. interrupts = <87>, <88>, <89>, <90>;
  260. };
  261. gpio2: gpio@18180 {
  262. compatible = "marvell,orion-gpio";
  263. reg = <0x18180 0x40>;
  264. ngpios = <3>;
  265. gpio-controller;
  266. #gpio-cells = <2>;
  267. interrupt-controller;
  268. #interrupt-cells = <2>;
  269. interrupts = <91>;
  270. };
  271. eth3: ethernet@34000 {
  272. compatible = "marvell,armada-xp-neta";
  273. reg = <0x34000 0x4000>;
  274. interrupts = <14>;
  275. clocks = <&gateclk 1>;
  276. status = "disabled";
  277. };
  278. };
  279. };
  280. };