armada-370.dtsi 9.3 KB

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