armada-xp-mv78460.dtsi 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  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 MV78460 SoC that are not
  13. * common to all Armada XP SoCs.
  14. */
  15. #include "armada-xp.dtsi"
  16. / {
  17. model = "Marvell Armada XP MV78460 SoC";
  18. compatible = "marvell,armadaxp-mv78460", "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. cpu@2 {
  44. device_type = "cpu";
  45. compatible = "marvell,sheeva-v7";
  46. reg = <2>;
  47. clocks = <&cpuclk 2>;
  48. clock-latency = <1000000>;
  49. };
  50. cpu@3 {
  51. device_type = "cpu";
  52. compatible = "marvell,sheeva-v7";
  53. reg = <3>;
  54. clocks = <&cpuclk 3>;
  55. clock-latency = <1000000>;
  56. };
  57. };
  58. soc {
  59. /*
  60. * MV78460 has 4 PCIe units Gen2.0: Two units can be
  61. * configured as x4 or quad x1 lanes. Two units are
  62. * x4/x1.
  63. */
  64. pcie-controller {
  65. compatible = "marvell,armada-xp-pcie";
  66. status = "disabled";
  67. device_type = "pci";
  68. #address-cells = <3>;
  69. #size-cells = <2>;
  70. msi-parent = <&mpic>;
  71. bus-range = <0x00 0xff>;
  72. ranges =
  73. <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000 /* Port 0.0 registers */
  74. 0x82000000 0 0x42000 MBUS_ID(0xf0, 0x01) 0x42000 0 0x00002000 /* Port 2.0 registers */
  75. 0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000 /* Port 0.1 registers */
  76. 0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000 /* Port 0.2 registers */
  77. 0x82000000 0 0x4c000 MBUS_ID(0xf0, 0x01) 0x4c000 0 0x00002000 /* Port 0.3 registers */
  78. 0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000 /* Port 1.0 registers */
  79. 0x82000000 0 0x82000 MBUS_ID(0xf0, 0x01) 0x82000 0 0x00002000 /* Port 3.0 registers */
  80. 0x82000000 0 0x84000 MBUS_ID(0xf0, 0x01) 0x84000 0 0x00002000 /* Port 1.1 registers */
  81. 0x82000000 0 0x88000 MBUS_ID(0xf0, 0x01) 0x88000 0 0x00002000 /* Port 1.2 registers */
  82. 0x82000000 0 0x8c000 MBUS_ID(0xf0, 0x01) 0x8c000 0 0x00002000 /* Port 1.3 registers */
  83. 0x82000000 0x1 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */
  84. 0x81000000 0x1 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO */
  85. 0x82000000 0x2 0 MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 0.1 MEM */
  86. 0x81000000 0x2 0 MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 0.1 IO */
  87. 0x82000000 0x3 0 MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 0.2 MEM */
  88. 0x81000000 0x3 0 MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 0.2 IO */
  89. 0x82000000 0x4 0 MBUS_ID(0x04, 0x78) 0 1 0 /* Port 0.3 MEM */
  90. 0x81000000 0x4 0 MBUS_ID(0x04, 0x70) 0 1 0 /* Port 0.3 IO */
  91. 0x82000000 0x5 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 MEM */
  92. 0x81000000 0x5 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 1.0 IO */
  93. 0x82000000 0x6 0 MBUS_ID(0x08, 0xd8) 0 1 0 /* Port 1.1 MEM */
  94. 0x81000000 0x6 0 MBUS_ID(0x08, 0xd0) 0 1 0 /* Port 1.1 IO */
  95. 0x82000000 0x7 0 MBUS_ID(0x08, 0xb8) 0 1 0 /* Port 1.2 MEM */
  96. 0x81000000 0x7 0 MBUS_ID(0x08, 0xb0) 0 1 0 /* Port 1.2 IO */
  97. 0x82000000 0x8 0 MBUS_ID(0x08, 0x78) 0 1 0 /* Port 1.3 MEM */
  98. 0x81000000 0x8 0 MBUS_ID(0x08, 0x70) 0 1 0 /* Port 1.3 IO */
  99. 0x82000000 0x9 0 MBUS_ID(0x04, 0xf8) 0 1 0 /* Port 2.0 MEM */
  100. 0x81000000 0x9 0 MBUS_ID(0x04, 0xf0) 0 1 0 /* Port 2.0 IO */
  101. 0x82000000 0xa 0 MBUS_ID(0x08, 0xf8) 0 1 0 /* Port 3.0 MEM */
  102. 0x81000000 0xa 0 MBUS_ID(0x08, 0xf0) 0 1 0 /* Port 3.0 IO */>;
  103. pcie@1,0 {
  104. device_type = "pci";
  105. assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
  106. reg = <0x0800 0 0 0 0>;
  107. #address-cells = <3>;
  108. #size-cells = <2>;
  109. #interrupt-cells = <1>;
  110. ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
  111. 0x81000000 0 0 0x81000000 0x1 0 1 0>;
  112. interrupt-map-mask = <0 0 0 0>;
  113. interrupt-map = <0 0 0 0 &mpic 58>;
  114. marvell,pcie-port = <0>;
  115. marvell,pcie-lane = <0>;
  116. clocks = <&gateclk 5>;
  117. status = "disabled";
  118. };
  119. pcie@2,0 {
  120. device_type = "pci";
  121. assigned-addresses = <0x82001000 0 0x44000 0 0x2000>;
  122. reg = <0x1000 0 0 0 0>;
  123. #address-cells = <3>;
  124. #size-cells = <2>;
  125. #interrupt-cells = <1>;
  126. ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
  127. 0x81000000 0 0 0x81000000 0x2 0 1 0>;
  128. interrupt-map-mask = <0 0 0 0>;
  129. interrupt-map = <0 0 0 0 &mpic 59>;
  130. marvell,pcie-port = <0>;
  131. marvell,pcie-lane = <1>;
  132. clocks = <&gateclk 6>;
  133. status = "disabled";
  134. };
  135. pcie@3,0 {
  136. device_type = "pci";
  137. assigned-addresses = <0x82001800 0 0x48000 0 0x2000>;
  138. reg = <0x1800 0 0 0 0>;
  139. #address-cells = <3>;
  140. #size-cells = <2>;
  141. #interrupt-cells = <1>;
  142. ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0
  143. 0x81000000 0 0 0x81000000 0x3 0 1 0>;
  144. interrupt-map-mask = <0 0 0 0>;
  145. interrupt-map = <0 0 0 0 &mpic 60>;
  146. marvell,pcie-port = <0>;
  147. marvell,pcie-lane = <2>;
  148. clocks = <&gateclk 7>;
  149. status = "disabled";
  150. };
  151. pcie@4,0 {
  152. device_type = "pci";
  153. assigned-addresses = <0x82002000 0 0x4c000 0 0x2000>;
  154. reg = <0x2000 0 0 0 0>;
  155. #address-cells = <3>;
  156. #size-cells = <2>;
  157. #interrupt-cells = <1>;
  158. ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0
  159. 0x81000000 0 0 0x81000000 0x4 0 1 0>;
  160. interrupt-map-mask = <0 0 0 0>;
  161. interrupt-map = <0 0 0 0 &mpic 61>;
  162. marvell,pcie-port = <0>;
  163. marvell,pcie-lane = <3>;
  164. clocks = <&gateclk 8>;
  165. status = "disabled";
  166. };
  167. pcie@5,0 {
  168. device_type = "pci";
  169. assigned-addresses = <0x82002800 0 0x80000 0 0x2000>;
  170. reg = <0x2800 0 0 0 0>;
  171. #address-cells = <3>;
  172. #size-cells = <2>;
  173. #interrupt-cells = <1>;
  174. ranges = <0x82000000 0 0 0x82000000 0x5 0 1 0
  175. 0x81000000 0 0 0x81000000 0x5 0 1 0>;
  176. interrupt-map-mask = <0 0 0 0>;
  177. interrupt-map = <0 0 0 0 &mpic 62>;
  178. marvell,pcie-port = <1>;
  179. marvell,pcie-lane = <0>;
  180. clocks = <&gateclk 9>;
  181. status = "disabled";
  182. };
  183. pcie@6,0 {
  184. device_type = "pci";
  185. assigned-addresses = <0x82003000 0 0x84000 0 0x2000>;
  186. reg = <0x3000 0 0 0 0>;
  187. #address-cells = <3>;
  188. #size-cells = <2>;
  189. #interrupt-cells = <1>;
  190. ranges = <0x82000000 0 0 0x82000000 0x6 0 1 0
  191. 0x81000000 0 0 0x81000000 0x6 0 1 0>;
  192. interrupt-map-mask = <0 0 0 0>;
  193. interrupt-map = <0 0 0 0 &mpic 63>;
  194. marvell,pcie-port = <1>;
  195. marvell,pcie-lane = <1>;
  196. clocks = <&gateclk 10>;
  197. status = "disabled";
  198. };
  199. pcie@7,0 {
  200. device_type = "pci";
  201. assigned-addresses = <0x82003800 0 0x88000 0 0x2000>;
  202. reg = <0x3800 0 0 0 0>;
  203. #address-cells = <3>;
  204. #size-cells = <2>;
  205. #interrupt-cells = <1>;
  206. ranges = <0x82000000 0 0 0x82000000 0x7 0 1 0
  207. 0x81000000 0 0 0x81000000 0x7 0 1 0>;
  208. interrupt-map-mask = <0 0 0 0>;
  209. interrupt-map = <0 0 0 0 &mpic 64>;
  210. marvell,pcie-port = <1>;
  211. marvell,pcie-lane = <2>;
  212. clocks = <&gateclk 11>;
  213. status = "disabled";
  214. };
  215. pcie@8,0 {
  216. device_type = "pci";
  217. assigned-addresses = <0x82004000 0 0x8c000 0 0x2000>;
  218. reg = <0x4000 0 0 0 0>;
  219. #address-cells = <3>;
  220. #size-cells = <2>;
  221. #interrupt-cells = <1>;
  222. ranges = <0x82000000 0 0 0x82000000 0x8 0 1 0
  223. 0x81000000 0 0 0x81000000 0x8 0 1 0>;
  224. interrupt-map-mask = <0 0 0 0>;
  225. interrupt-map = <0 0 0 0 &mpic 65>;
  226. marvell,pcie-port = <1>;
  227. marvell,pcie-lane = <3>;
  228. clocks = <&gateclk 12>;
  229. status = "disabled";
  230. };
  231. pcie@9,0 {
  232. device_type = "pci";
  233. assigned-addresses = <0x82004800 0 0x42000 0 0x2000>;
  234. reg = <0x4800 0 0 0 0>;
  235. #address-cells = <3>;
  236. #size-cells = <2>;
  237. #interrupt-cells = <1>;
  238. ranges = <0x82000000 0 0 0x82000000 0x9 0 1 0
  239. 0x81000000 0 0 0x81000000 0x9 0 1 0>;
  240. interrupt-map-mask = <0 0 0 0>;
  241. interrupt-map = <0 0 0 0 &mpic 99>;
  242. marvell,pcie-port = <2>;
  243. marvell,pcie-lane = <0>;
  244. clocks = <&gateclk 26>;
  245. status = "disabled";
  246. };
  247. pcie@10,0 {
  248. device_type = "pci";
  249. assigned-addresses = <0x82005000 0 0x82000 0 0x2000>;
  250. reg = <0x5000 0 0 0 0>;
  251. #address-cells = <3>;
  252. #size-cells = <2>;
  253. #interrupt-cells = <1>;
  254. ranges = <0x82000000 0 0 0x82000000 0xa 0 1 0
  255. 0x81000000 0 0 0x81000000 0xa 0 1 0>;
  256. interrupt-map-mask = <0 0 0 0>;
  257. interrupt-map = <0 0 0 0 &mpic 103>;
  258. marvell,pcie-port = <3>;
  259. marvell,pcie-lane = <0>;
  260. clocks = <&gateclk 27>;
  261. status = "disabled";
  262. };
  263. };
  264. internal-regs {
  265. pinctrl {
  266. compatible = "marvell,mv78460-pinctrl";
  267. reg = <0x18000 0x38>;
  268. sdio_pins: sdio-pins {
  269. marvell,pins = "mpp30", "mpp31", "mpp32",
  270. "mpp33", "mpp34", "mpp35";
  271. marvell,function = "sd0";
  272. };
  273. };
  274. gpio0: gpio@18100 {
  275. compatible = "marvell,orion-gpio";
  276. reg = <0x18100 0x40>;
  277. ngpios = <32>;
  278. gpio-controller;
  279. #gpio-cells = <2>;
  280. interrupt-controller;
  281. #interrupt-cells = <2>;
  282. interrupts = <82>, <83>, <84>, <85>;
  283. };
  284. gpio1: gpio@18140 {
  285. compatible = "marvell,orion-gpio";
  286. reg = <0x18140 0x40>;
  287. ngpios = <32>;
  288. gpio-controller;
  289. #gpio-cells = <2>;
  290. interrupt-controller;
  291. #interrupt-cells = <2>;
  292. interrupts = <87>, <88>, <89>, <90>;
  293. };
  294. gpio2: gpio@18180 {
  295. compatible = "marvell,orion-gpio";
  296. reg = <0x18180 0x40>;
  297. ngpios = <3>;
  298. gpio-controller;
  299. #gpio-cells = <2>;
  300. interrupt-controller;
  301. #interrupt-cells = <2>;
  302. interrupts = <91>;
  303. };
  304. eth3: ethernet@34000 {
  305. compatible = "marvell,armada-xp-neta";
  306. reg = <0x34000 0x4000>;
  307. interrupts = <14>;
  308. clocks = <&gateclk 1>;
  309. status = "disabled";
  310. };
  311. };
  312. };
  313. };