armada-370.dtsi 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Device Tree Include file for Marvell Armada 370 family SoC
  4. *
  5. * Copyright (C) 2012 Marvell
  6. *
  7. * Lior Amsalem <[email protected]>
  8. * Gregory CLEMENT <[email protected]>
  9. * Thomas Petazzoni <[email protected]>
  10. *
  11. * Contains definitions specific to the Armada 370 SoC that are not
  12. * common to all Armada SoCs.
  13. */
  14. #include "armada-370-xp.dtsi"
  15. / {
  16. #address-cells = <1>;
  17. #size-cells = <1>;
  18. model = "Marvell Armada 370 family SoC";
  19. compatible = "marvell,armada370", "marvell,armada-370-xp";
  20. aliases {
  21. gpio0 = &gpio0;
  22. gpio1 = &gpio1;
  23. gpio2 = &gpio2;
  24. };
  25. soc {
  26. compatible = "marvell,armada370-mbus", "simple-bus";
  27. bootrom {
  28. compatible = "marvell,bootrom";
  29. reg = <MBUS_ID(0x01, 0xe0) 0 0x100000>;
  30. };
  31. pciec: pcie@82000000 {
  32. compatible = "marvell,armada-370-pcie";
  33. status = "disabled";
  34. device_type = "pci";
  35. #address-cells = <3>;
  36. #size-cells = <2>;
  37. msi-parent = <&mpic>;
  38. bus-range = <0x00 0xff>;
  39. ranges =
  40. <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000
  41. 0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000
  42. 0x82000000 0x1 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */
  43. 0x81000000 0x1 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO */
  44. 0x82000000 0x2 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 MEM */
  45. 0x81000000 0x2 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 1.0 IO */>;
  46. pcie0: pcie@1,0 {
  47. device_type = "pci";
  48. assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
  49. reg = <0x0800 0 0 0 0>;
  50. #address-cells = <3>;
  51. #size-cells = <2>;
  52. interrupt-names = "intx";
  53. interrupts-extended = <&mpic 58>;
  54. #interrupt-cells = <1>;
  55. ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
  56. 0x81000000 0 0 0x81000000 0x1 0 1 0>;
  57. bus-range = <0x00 0xff>;
  58. interrupt-map-mask = <0 0 0 7>;
  59. interrupt-map = <0 0 0 1 &pcie0_intc 0>,
  60. <0 0 0 2 &pcie0_intc 1>,
  61. <0 0 0 3 &pcie0_intc 2>,
  62. <0 0 0 4 &pcie0_intc 3>;
  63. marvell,pcie-port = <0>;
  64. marvell,pcie-lane = <0>;
  65. clocks = <&gateclk 5>;
  66. status = "disabled";
  67. pcie0_intc: interrupt-controller {
  68. interrupt-controller;
  69. #interrupt-cells = <1>;
  70. };
  71. };
  72. pcie2: pcie@2,0 {
  73. device_type = "pci";
  74. assigned-addresses = <0x82001000 0 0x80000 0 0x2000>;
  75. reg = <0x1000 0 0 0 0>;
  76. #address-cells = <3>;
  77. #size-cells = <2>;
  78. interrupt-names = "intx";
  79. interrupts-extended = <&mpic 62>;
  80. #interrupt-cells = <1>;
  81. ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
  82. 0x81000000 0 0 0x81000000 0x2 0 1 0>;
  83. bus-range = <0x00 0xff>;
  84. interrupt-map-mask = <0 0 0 7>;
  85. interrupt-map = <0 0 0 1 &pcie2_intc 0>,
  86. <0 0 0 2 &pcie2_intc 1>,
  87. <0 0 0 3 &pcie2_intc 2>,
  88. <0 0 0 4 &pcie2_intc 3>;
  89. marvell,pcie-port = <1>;
  90. marvell,pcie-lane = <0>;
  91. clocks = <&gateclk 9>;
  92. status = "disabled";
  93. pcie2_intc: interrupt-controller {
  94. interrupt-controller;
  95. #interrupt-cells = <1>;
  96. };
  97. };
  98. };
  99. internal-regs {
  100. L2: l2-cache@8000 {
  101. compatible = "marvell,aurora-outer-cache";
  102. reg = <0x08000 0x1000>;
  103. cache-id-part = <0x100>;
  104. cache-level = <2>;
  105. cache-unified;
  106. wt-override;
  107. };
  108. gpio0: gpio@18100 {
  109. compatible = "marvell,armada-370-gpio",
  110. "marvell,orion-gpio";
  111. reg = <0x18100 0x40>, <0x181c0 0x08>;
  112. reg-names = "gpio", "pwm";
  113. ngpios = <32>;
  114. gpio-controller;
  115. #gpio-cells = <2>;
  116. #pwm-cells = <2>;
  117. interrupt-controller;
  118. #interrupt-cells = <2>;
  119. interrupts = <82>, <83>, <84>, <85>;
  120. clocks = <&coreclk 0>;
  121. };
  122. gpio1: gpio@18140 {
  123. compatible = "marvell,armada-370-gpio",
  124. "marvell,orion-gpio";
  125. reg = <0x18140 0x40>, <0x181c8 0x08>;
  126. reg-names = "gpio", "pwm";
  127. ngpios = <32>;
  128. gpio-controller;
  129. #gpio-cells = <2>;
  130. #pwm-cells = <2>;
  131. interrupt-controller;
  132. #interrupt-cells = <2>;
  133. interrupts = <87>, <88>, <89>, <90>;
  134. clocks = <&coreclk 0>;
  135. };
  136. gpio2: gpio@18180 {
  137. compatible = "marvell,armada-370-gpio",
  138. "marvell,orion-gpio";
  139. reg = <0x18180 0x40>;
  140. ngpios = <2>;
  141. gpio-controller;
  142. #gpio-cells = <2>;
  143. interrupt-controller;
  144. #interrupt-cells = <2>;
  145. interrupts = <91>;
  146. };
  147. systemc: system-controller@18200 {
  148. compatible = "marvell,armada-370-xp-system-controller";
  149. reg = <0x18200 0x100>;
  150. };
  151. gateclk: clock-gating-control@18220 {
  152. compatible = "marvell,armada-370-gating-clock";
  153. reg = <0x18220 0x4>;
  154. clocks = <&coreclk 0>;
  155. #clock-cells = <1>;
  156. };
  157. coreclk: mvebu-sar@18230 {
  158. compatible = "marvell,armada-370-core-clock";
  159. reg = <0x18230 0x08>;
  160. #clock-cells = <1>;
  161. };
  162. thermal: thermal@18300 {
  163. compatible = "marvell,armada370-thermal";
  164. reg = <0x18300 0x4
  165. 0x18304 0x4>;
  166. status = "okay";
  167. };
  168. sscg: sscg@18330 {
  169. reg = <0x18330 0x4>;
  170. };
  171. cpuconf: cpu-config@21000 {
  172. compatible = "marvell,armada-370-cpu-config";
  173. reg = <0x21000 0x8>;
  174. };
  175. audio_controller: audio-controller@30000 {
  176. #sound-dai-cells = <1>;
  177. compatible = "marvell,armada370-audio";
  178. reg = <0x30000 0x4000>;
  179. interrupts = <93>;
  180. clocks = <&gateclk 0>;
  181. clock-names = "internal";
  182. status = "disabled";
  183. };
  184. xor0: xor@60800 {
  185. compatible = "marvell,orion-xor";
  186. reg = <0x60800 0x100
  187. 0x60A00 0x100>;
  188. status = "okay";
  189. xor00 {
  190. interrupts = <51>;
  191. dmacap,memcpy;
  192. dmacap,xor;
  193. };
  194. xor01 {
  195. interrupts = <52>;
  196. dmacap,memcpy;
  197. dmacap,xor;
  198. dmacap,memset;
  199. };
  200. };
  201. xor1: xor@60900 {
  202. compatible = "marvell,orion-xor";
  203. reg = <0x60900 0x100
  204. 0x60b00 0x100>;
  205. status = "okay";
  206. xor10 {
  207. interrupts = <94>;
  208. dmacap,memcpy;
  209. dmacap,xor;
  210. };
  211. xor11 {
  212. interrupts = <95>;
  213. dmacap,memcpy;
  214. dmacap,xor;
  215. dmacap,memset;
  216. };
  217. };
  218. cesa: crypto@90000 {
  219. compatible = "marvell,armada-370-crypto";
  220. reg = <0x90000 0x10000>;
  221. reg-names = "regs";
  222. interrupts = <48>;
  223. clocks = <&gateclk 23>;
  224. clock-names = "cesa0";
  225. marvell,crypto-srams = <&crypto_sram>;
  226. marvell,crypto-sram-size = <0x7e0>;
  227. };
  228. };
  229. crypto_sram: sa-sram {
  230. compatible = "mmio-sram";
  231. reg = <MBUS_ID(0x09, 0x01) 0 0x800>;
  232. reg-names = "sram";
  233. clocks = <&gateclk 23>;
  234. #address-cells = <1>;
  235. #size-cells = <1>;
  236. ranges = <0 MBUS_ID(0x09, 0x01) 0 0x800>;
  237. /*
  238. * The Armada 370 has an erratum preventing the use of
  239. * the standard workflow for CPU idle support (relying
  240. * on the BootROM code to enter/exit idle state).
  241. * Reserve some amount of the crypto SRAM to put the
  242. * cpuidle workaround.
  243. */
  244. idle-sram@0 {
  245. reg = <0x0 0x20>;
  246. };
  247. };
  248. };
  249. };
  250. /*
  251. * Default UART pinctrl setting without RTS/CTS, can be overwritten on
  252. * board level if a different configuration is used.
  253. */
  254. &uart0 {
  255. pinctrl-0 = <&uart0_pins>;
  256. pinctrl-names = "default";
  257. };
  258. &uart1 {
  259. pinctrl-0 = <&uart1_pins>;
  260. pinctrl-names = "default";
  261. };
  262. &i2c0 {
  263. reg = <0x11000 0x20>;
  264. };
  265. &i2c1 {
  266. reg = <0x11100 0x20>;
  267. };
  268. &mpic {
  269. reg = <0x20a00 0x1d0>, <0x21870 0x58>;
  270. };
  271. &timer {
  272. compatible = "marvell,armada-370-timer";
  273. clocks = <&coreclk 2>;
  274. };
  275. &watchdog {
  276. compatible = "marvell,armada-370-wdt";
  277. clocks = <&coreclk 2>;
  278. };
  279. &usb0 {
  280. clocks = <&coreclk 0>;
  281. };
  282. &usb1 {
  283. clocks = <&coreclk 0>;
  284. };
  285. &eth0 {
  286. compatible = "marvell,armada-370-neta";
  287. };
  288. &eth1 {
  289. compatible = "marvell,armada-370-neta";
  290. };
  291. &pinctrl {
  292. compatible = "marvell,mv88f6710-pinctrl";
  293. spi0_pins1: spi0-pins1 {
  294. marvell,pins = "mpp33", "mpp34",
  295. "mpp35", "mpp36";
  296. marvell,function = "spi0";
  297. };
  298. spi0_pins2: spi0_pins2 {
  299. marvell,pins = "mpp32", "mpp63",
  300. "mpp64", "mpp65";
  301. marvell,function = "spi0";
  302. };
  303. spi1_pins: spi1-pins {
  304. marvell,pins = "mpp49", "mpp50",
  305. "mpp51", "mpp52";
  306. marvell,function = "spi1";
  307. };
  308. uart0_pins: uart0-pins {
  309. marvell,pins = "mpp0", "mpp1";
  310. marvell,function = "uart0";
  311. };
  312. uart1_pins: uart1-pins {
  313. marvell,pins = "mpp41", "mpp42";
  314. marvell,function = "uart1";
  315. };
  316. sdio_pins1: sdio-pins1 {
  317. marvell,pins = "mpp9", "mpp11", "mpp12",
  318. "mpp13", "mpp14", "mpp15";
  319. marvell,function = "sd0";
  320. };
  321. sdio_pins2: sdio-pins2 {
  322. marvell,pins = "mpp47", "mpp48", "mpp49",
  323. "mpp50", "mpp51", "mpp52";
  324. marvell,function = "sd0";
  325. };
  326. sdio_pins3: sdio-pins3 {
  327. marvell,pins = "mpp48", "mpp49", "mpp50",
  328. "mpp51", "mpp52", "mpp53";
  329. marvell,function = "sd0";
  330. };
  331. i2c0_pins: i2c0-pins {
  332. marvell,pins = "mpp2", "mpp3";
  333. marvell,function = "i2c0";
  334. };
  335. i2s_pins1: i2s-pins1 {
  336. marvell,pins = "mpp5", "mpp6", "mpp7",
  337. "mpp8", "mpp9", "mpp10",
  338. "mpp12", "mpp13";
  339. marvell,function = "audio";
  340. };
  341. i2s_pins2: i2s-pins2 {
  342. marvell,pins = "mpp49", "mpp47", "mpp50",
  343. "mpp59", "mpp57", "mpp61",
  344. "mpp62", "mpp60", "mpp58";
  345. marvell,function = "audio";
  346. };
  347. mdio_pins: mdio-pins {
  348. marvell,pins = "mpp17", "mpp18";
  349. marvell,function = "ge";
  350. };
  351. ge0_rgmii_pins: ge0-rgmii-pins {
  352. marvell,pins = "mpp5", "mpp6", "mpp7", "mpp8",
  353. "mpp9", "mpp10", "mpp11", "mpp12",
  354. "mpp13", "mpp14", "mpp15", "mpp16";
  355. marvell,function = "ge0";
  356. };
  357. ge1_rgmii_pins: ge1-rgmii-pins {
  358. marvell,pins = "mpp19", "mpp20", "mpp21", "mpp22",
  359. "mpp23", "mpp24", "mpp25", "mpp26",
  360. "mpp27", "mpp28", "mpp29", "mpp30";
  361. marvell,function = "ge1";
  362. };
  363. };
  364. /*
  365. * Default SPI pinctrl setting, can be overwritten on
  366. * board level if a different configuration is used.
  367. */
  368. &spi0 {
  369. compatible = "marvell,armada-370-spi", "marvell,orion-spi";
  370. pinctrl-0 = <&spi0_pins1>;
  371. pinctrl-names = "default";
  372. };
  373. &spi1 {
  374. compatible = "marvell,armada-370-spi", "marvell,orion-spi";
  375. pinctrl-0 = <&spi1_pins>;
  376. pinctrl-names = "default";
  377. };