armada-xp-mv78460.dtsi 9.8 KB

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