armada-xp-mv78460.dtsi 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  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 dual-licensed: you can use it either under the terms
  9. * of the GPL or the X11 license, at your option. Note that this dual
  10. * licensing only applies to this file, and not this project as a
  11. * whole.
  12. *
  13. * a) This file is free software; you can redistribute it and/or
  14. * modify it under the terms of the GNU General Public License as
  15. * published by the Free Software Foundation; either version 2 of the
  16. * License, or (at your option) any later version.
  17. *
  18. * This file is distributed in the hope that it will be useful
  19. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. * GNU General Public License for more details.
  22. *
  23. * Or, alternatively
  24. *
  25. * b) Permission is hereby granted, free of charge, to any person
  26. * obtaining a copy of this software and associated documentation
  27. * files (the "Software"), to deal in the Software without
  28. * restriction, including without limitation the rights to use
  29. * copy, modify, merge, publish, distribute, sublicense, and/or
  30. * sell copies of the Software, and to permit persons to whom the
  31. * Software is furnished to do so, subject to the following
  32. * conditions:
  33. *
  34. * The above copyright notice and this permission notice shall be
  35. * included in all copies or substantial portions of the Software.
  36. *
  37. * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
  38. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  39. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  40. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  41. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
  42. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  43. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  44. * OTHER DEALINGS IN THE SOFTWARE.
  45. *
  46. * Contains definitions specific to the Armada XP MV78460 SoC that are not
  47. * common to all Armada XP SoCs.
  48. */
  49. #include "armada-xp.dtsi"
  50. / {
  51. model = "Marvell Armada XP MV78460 SoC";
  52. compatible = "marvell,armadaxp-mv78460", "marvell,armadaxp", "marvell,armada-370-xp";
  53. aliases {
  54. gpio0 = &gpio0;
  55. gpio1 = &gpio1;
  56. gpio2 = &gpio2;
  57. };
  58. cpus {
  59. #address-cells = <1>;
  60. #size-cells = <0>;
  61. enable-method = "marvell,armada-xp-smp";
  62. cpu@0 {
  63. device_type = "cpu";
  64. compatible = "marvell,sheeva-v7";
  65. reg = <0>;
  66. clocks = <&cpuclk 0>;
  67. clock-latency = <1000000>;
  68. };
  69. cpu@1 {
  70. device_type = "cpu";
  71. compatible = "marvell,sheeva-v7";
  72. reg = <1>;
  73. clocks = <&cpuclk 1>;
  74. clock-latency = <1000000>;
  75. };
  76. cpu@2 {
  77. device_type = "cpu";
  78. compatible = "marvell,sheeva-v7";
  79. reg = <2>;
  80. clocks = <&cpuclk 2>;
  81. clock-latency = <1000000>;
  82. };
  83. cpu@3 {
  84. device_type = "cpu";
  85. compatible = "marvell,sheeva-v7";
  86. reg = <3>;
  87. clocks = <&cpuclk 3>;
  88. clock-latency = <1000000>;
  89. };
  90. };
  91. soc {
  92. /*
  93. * MV78460 has 4 PCIe units Gen2.0: Two units can be
  94. * configured as x4 or quad x1 lanes. Two units are
  95. * x4/x1.
  96. */
  97. pcie-controller {
  98. compatible = "marvell,armada-xp-pcie";
  99. status = "disabled";
  100. device_type = "pci";
  101. #address-cells = <3>;
  102. #size-cells = <2>;
  103. msi-parent = <&mpic>;
  104. bus-range = <0x00 0xff>;
  105. ranges =
  106. <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000 /* Port 0.0 registers */
  107. 0x82000000 0 0x42000 MBUS_ID(0xf0, 0x01) 0x42000 0 0x00002000 /* Port 2.0 registers */
  108. 0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000 /* Port 0.1 registers */
  109. 0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000 /* Port 0.2 registers */
  110. 0x82000000 0 0x4c000 MBUS_ID(0xf0, 0x01) 0x4c000 0 0x00002000 /* Port 0.3 registers */
  111. 0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000 /* Port 1.0 registers */
  112. 0x82000000 0 0x82000 MBUS_ID(0xf0, 0x01) 0x82000 0 0x00002000 /* Port 3.0 registers */
  113. 0x82000000 0 0x84000 MBUS_ID(0xf0, 0x01) 0x84000 0 0x00002000 /* Port 1.1 registers */
  114. 0x82000000 0 0x88000 MBUS_ID(0xf0, 0x01) 0x88000 0 0x00002000 /* Port 1.2 registers */
  115. 0x82000000 0 0x8c000 MBUS_ID(0xf0, 0x01) 0x8c000 0 0x00002000 /* Port 1.3 registers */
  116. 0x82000000 0x1 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */
  117. 0x81000000 0x1 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO */
  118. 0x82000000 0x2 0 MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 0.1 MEM */
  119. 0x81000000 0x2 0 MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 0.1 IO */
  120. 0x82000000 0x3 0 MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 0.2 MEM */
  121. 0x81000000 0x3 0 MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 0.2 IO */
  122. 0x82000000 0x4 0 MBUS_ID(0x04, 0x78) 0 1 0 /* Port 0.3 MEM */
  123. 0x81000000 0x4 0 MBUS_ID(0x04, 0x70) 0 1 0 /* Port 0.3 IO */
  124. 0x82000000 0x5 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 MEM */
  125. 0x81000000 0x5 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 1.0 IO */
  126. 0x82000000 0x6 0 MBUS_ID(0x08, 0xd8) 0 1 0 /* Port 1.1 MEM */
  127. 0x81000000 0x6 0 MBUS_ID(0x08, 0xd0) 0 1 0 /* Port 1.1 IO */
  128. 0x82000000 0x7 0 MBUS_ID(0x08, 0xb8) 0 1 0 /* Port 1.2 MEM */
  129. 0x81000000 0x7 0 MBUS_ID(0x08, 0xb0) 0 1 0 /* Port 1.2 IO */
  130. 0x82000000 0x8 0 MBUS_ID(0x08, 0x78) 0 1 0 /* Port 1.3 MEM */
  131. 0x81000000 0x8 0 MBUS_ID(0x08, 0x70) 0 1 0 /* Port 1.3 IO */
  132. 0x82000000 0x9 0 MBUS_ID(0x04, 0xf8) 0 1 0 /* Port 2.0 MEM */
  133. 0x81000000 0x9 0 MBUS_ID(0x04, 0xf0) 0 1 0 /* Port 2.0 IO */
  134. 0x82000000 0xa 0 MBUS_ID(0x08, 0xf8) 0 1 0 /* Port 3.0 MEM */
  135. 0x81000000 0xa 0 MBUS_ID(0x08, 0xf0) 0 1 0 /* Port 3.0 IO */>;
  136. pcie@1,0 {
  137. device_type = "pci";
  138. assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
  139. reg = <0x0800 0 0 0 0>;
  140. #address-cells = <3>;
  141. #size-cells = <2>;
  142. #interrupt-cells = <1>;
  143. ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
  144. 0x81000000 0 0 0x81000000 0x1 0 1 0>;
  145. interrupt-map-mask = <0 0 0 0>;
  146. interrupt-map = <0 0 0 0 &mpic 58>;
  147. marvell,pcie-port = <0>;
  148. marvell,pcie-lane = <0>;
  149. clocks = <&gateclk 5>;
  150. status = "disabled";
  151. };
  152. pcie@2,0 {
  153. device_type = "pci";
  154. assigned-addresses = <0x82001000 0 0x44000 0 0x2000>;
  155. reg = <0x1000 0 0 0 0>;
  156. #address-cells = <3>;
  157. #size-cells = <2>;
  158. #interrupt-cells = <1>;
  159. ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
  160. 0x81000000 0 0 0x81000000 0x2 0 1 0>;
  161. interrupt-map-mask = <0 0 0 0>;
  162. interrupt-map = <0 0 0 0 &mpic 59>;
  163. marvell,pcie-port = <0>;
  164. marvell,pcie-lane = <1>;
  165. clocks = <&gateclk 6>;
  166. status = "disabled";
  167. };
  168. pcie@3,0 {
  169. device_type = "pci";
  170. assigned-addresses = <0x82001800 0 0x48000 0 0x2000>;
  171. reg = <0x1800 0 0 0 0>;
  172. #address-cells = <3>;
  173. #size-cells = <2>;
  174. #interrupt-cells = <1>;
  175. ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0
  176. 0x81000000 0 0 0x81000000 0x3 0 1 0>;
  177. interrupt-map-mask = <0 0 0 0>;
  178. interrupt-map = <0 0 0 0 &mpic 60>;
  179. marvell,pcie-port = <0>;
  180. marvell,pcie-lane = <2>;
  181. clocks = <&gateclk 7>;
  182. status = "disabled";
  183. };
  184. pcie@4,0 {
  185. device_type = "pci";
  186. assigned-addresses = <0x82002000 0 0x4c000 0 0x2000>;
  187. reg = <0x2000 0 0 0 0>;
  188. #address-cells = <3>;
  189. #size-cells = <2>;
  190. #interrupt-cells = <1>;
  191. ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0
  192. 0x81000000 0 0 0x81000000 0x4 0 1 0>;
  193. interrupt-map-mask = <0 0 0 0>;
  194. interrupt-map = <0 0 0 0 &mpic 61>;
  195. marvell,pcie-port = <0>;
  196. marvell,pcie-lane = <3>;
  197. clocks = <&gateclk 8>;
  198. status = "disabled";
  199. };
  200. pcie@5,0 {
  201. device_type = "pci";
  202. assigned-addresses = <0x82002800 0 0x80000 0 0x2000>;
  203. reg = <0x2800 0 0 0 0>;
  204. #address-cells = <3>;
  205. #size-cells = <2>;
  206. #interrupt-cells = <1>;
  207. ranges = <0x82000000 0 0 0x82000000 0x5 0 1 0
  208. 0x81000000 0 0 0x81000000 0x5 0 1 0>;
  209. interrupt-map-mask = <0 0 0 0>;
  210. interrupt-map = <0 0 0 0 &mpic 62>;
  211. marvell,pcie-port = <1>;
  212. marvell,pcie-lane = <0>;
  213. clocks = <&gateclk 9>;
  214. status = "disabled";
  215. };
  216. pcie@6,0 {
  217. device_type = "pci";
  218. assigned-addresses = <0x82003000 0 0x84000 0 0x2000>;
  219. reg = <0x3000 0 0 0 0>;
  220. #address-cells = <3>;
  221. #size-cells = <2>;
  222. #interrupt-cells = <1>;
  223. ranges = <0x82000000 0 0 0x82000000 0x6 0 1 0
  224. 0x81000000 0 0 0x81000000 0x6 0 1 0>;
  225. interrupt-map-mask = <0 0 0 0>;
  226. interrupt-map = <0 0 0 0 &mpic 63>;
  227. marvell,pcie-port = <1>;
  228. marvell,pcie-lane = <1>;
  229. clocks = <&gateclk 10>;
  230. status = "disabled";
  231. };
  232. pcie@7,0 {
  233. device_type = "pci";
  234. assigned-addresses = <0x82003800 0 0x88000 0 0x2000>;
  235. reg = <0x3800 0 0 0 0>;
  236. #address-cells = <3>;
  237. #size-cells = <2>;
  238. #interrupt-cells = <1>;
  239. ranges = <0x82000000 0 0 0x82000000 0x7 0 1 0
  240. 0x81000000 0 0 0x81000000 0x7 0 1 0>;
  241. interrupt-map-mask = <0 0 0 0>;
  242. interrupt-map = <0 0 0 0 &mpic 64>;
  243. marvell,pcie-port = <1>;
  244. marvell,pcie-lane = <2>;
  245. clocks = <&gateclk 11>;
  246. status = "disabled";
  247. };
  248. pcie@8,0 {
  249. device_type = "pci";
  250. assigned-addresses = <0x82004000 0 0x8c000 0 0x2000>;
  251. reg = <0x4000 0 0 0 0>;
  252. #address-cells = <3>;
  253. #size-cells = <2>;
  254. #interrupt-cells = <1>;
  255. ranges = <0x82000000 0 0 0x82000000 0x8 0 1 0
  256. 0x81000000 0 0 0x81000000 0x8 0 1 0>;
  257. interrupt-map-mask = <0 0 0 0>;
  258. interrupt-map = <0 0 0 0 &mpic 65>;
  259. marvell,pcie-port = <1>;
  260. marvell,pcie-lane = <3>;
  261. clocks = <&gateclk 12>;
  262. status = "disabled";
  263. };
  264. pcie@9,0 {
  265. device_type = "pci";
  266. assigned-addresses = <0x82004800 0 0x42000 0 0x2000>;
  267. reg = <0x4800 0 0 0 0>;
  268. #address-cells = <3>;
  269. #size-cells = <2>;
  270. #interrupt-cells = <1>;
  271. ranges = <0x82000000 0 0 0x82000000 0x9 0 1 0
  272. 0x81000000 0 0 0x81000000 0x9 0 1 0>;
  273. interrupt-map-mask = <0 0 0 0>;
  274. interrupt-map = <0 0 0 0 &mpic 99>;
  275. marvell,pcie-port = <2>;
  276. marvell,pcie-lane = <0>;
  277. clocks = <&gateclk 26>;
  278. status = "disabled";
  279. };
  280. pcie@10,0 {
  281. device_type = "pci";
  282. assigned-addresses = <0x82005000 0 0x82000 0 0x2000>;
  283. reg = <0x5000 0 0 0 0>;
  284. #address-cells = <3>;
  285. #size-cells = <2>;
  286. #interrupt-cells = <1>;
  287. ranges = <0x82000000 0 0 0x82000000 0xa 0 1 0
  288. 0x81000000 0 0 0x81000000 0xa 0 1 0>;
  289. interrupt-map-mask = <0 0 0 0>;
  290. interrupt-map = <0 0 0 0 &mpic 103>;
  291. marvell,pcie-port = <3>;
  292. marvell,pcie-lane = <0>;
  293. clocks = <&gateclk 27>;
  294. status = "disabled";
  295. };
  296. };
  297. internal-regs {
  298. gpio0: gpio@18100 {
  299. compatible = "marvell,orion-gpio";
  300. reg = <0x18100 0x40>;
  301. ngpios = <32>;
  302. gpio-controller;
  303. #gpio-cells = <2>;
  304. interrupt-controller;
  305. #interrupt-cells = <2>;
  306. interrupts = <82>, <83>, <84>, <85>;
  307. };
  308. gpio1: gpio@18140 {
  309. compatible = "marvell,orion-gpio";
  310. reg = <0x18140 0x40>;
  311. ngpios = <32>;
  312. gpio-controller;
  313. #gpio-cells = <2>;
  314. interrupt-controller;
  315. #interrupt-cells = <2>;
  316. interrupts = <87>, <88>, <89>, <90>;
  317. };
  318. gpio2: gpio@18180 {
  319. compatible = "marvell,orion-gpio";
  320. reg = <0x18180 0x40>;
  321. ngpios = <3>;
  322. gpio-controller;
  323. #gpio-cells = <2>;
  324. interrupt-controller;
  325. #interrupt-cells = <2>;
  326. interrupts = <91>;
  327. };
  328. eth3: ethernet@34000 {
  329. compatible = "marvell,armada-xp-neta";
  330. reg = <0x34000 0x4000>;
  331. interrupts = <14>;
  332. clocks = <&gateclk 1>;
  333. status = "disabled";
  334. };
  335. };
  336. };
  337. };
  338. &pinctrl {
  339. compatible = "marvell,mv78460-pinctrl";
  340. };