armada-xp.dtsi 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Device Tree Include file for Marvell Armada XP 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. * Ben Dooks <[email protected]>
  11. *
  12. * Contains definitions specific to the Armada XP SoC that are not
  13. * common to all Armada SoCs.
  14. */
  15. #include "armada-370-xp.dtsi"
  16. / {
  17. #address-cells = <2>;
  18. #size-cells = <2>;
  19. model = "Marvell Armada XP family SoC";
  20. compatible = "marvell,armadaxp", "marvell,armada-370-xp";
  21. aliases {
  22. serial2 = &uart2;
  23. serial3 = &uart3;
  24. };
  25. soc {
  26. compatible = "marvell,armadaxp-mbus", "simple-bus";
  27. bootrom {
  28. compatible = "marvell,bootrom";
  29. reg = <MBUS_ID(0x01, 0x1d) 0 0x100000>;
  30. };
  31. internal-regs {
  32. sdramc: sdramc@1400 {
  33. compatible = "marvell,armada-xp-sdram-controller";
  34. reg = <0x1400 0x500>;
  35. };
  36. L2: l2-cache@8000 {
  37. compatible = "marvell,aurora-system-cache";
  38. reg = <0x08000 0x1000>;
  39. cache-id-part = <0x100>;
  40. cache-level = <2>;
  41. cache-unified;
  42. wt-override;
  43. };
  44. uart2: serial@12200 {
  45. compatible = "snps,dw-apb-uart";
  46. pinctrl-0 = <&uart2_pins>;
  47. pinctrl-names = "default";
  48. reg = <0x12200 0x100>;
  49. reg-shift = <2>;
  50. interrupts = <43>;
  51. reg-io-width = <1>;
  52. clocks = <&coreclk 0>;
  53. status = "disabled";
  54. };
  55. uart3: serial@12300 {
  56. compatible = "snps,dw-apb-uart";
  57. pinctrl-0 = <&uart3_pins>;
  58. pinctrl-names = "default";
  59. reg = <0x12300 0x100>;
  60. reg-shift = <2>;
  61. interrupts = <44>;
  62. reg-io-width = <1>;
  63. clocks = <&coreclk 0>;
  64. status = "disabled";
  65. };
  66. systemc: system-controller@18200 {
  67. compatible = "marvell,armada-370-xp-system-controller";
  68. reg = <0x18200 0x500>;
  69. };
  70. gateclk: clock-gating-control@18220 {
  71. compatible = "marvell,armada-xp-gating-clock";
  72. reg = <0x18220 0x4>;
  73. clocks = <&coreclk 0>;
  74. #clock-cells = <1>;
  75. };
  76. coreclk: mvebu-sar@18230 {
  77. compatible = "marvell,armada-xp-core-clock";
  78. reg = <0x18230 0x08>;
  79. #clock-cells = <1>;
  80. };
  81. thermal: thermal@182b0 {
  82. compatible = "marvell,armadaxp-thermal";
  83. reg = <0x182b0 0x4
  84. 0x184d0 0x4>;
  85. status = "okay";
  86. };
  87. cpuclk: clock-complex@18700 {
  88. #clock-cells = <1>;
  89. compatible = "marvell,armada-xp-cpu-clock";
  90. reg = <0x18700 0x24>, <0x1c054 0x10>;
  91. clocks = <&coreclk 1>;
  92. };
  93. cpu-config@21000 {
  94. compatible = "marvell,armada-xp-cpu-config";
  95. reg = <0x21000 0x8>;
  96. };
  97. eth2: ethernet@30000 {
  98. compatible = "marvell,armada-xp-neta";
  99. reg = <0x30000 0x4000>;
  100. interrupts = <12>;
  101. clocks = <&gateclk 2>;
  102. status = "disabled";
  103. };
  104. usb2: usb@52000 {
  105. compatible = "marvell,orion-ehci";
  106. reg = <0x52000 0x500>;
  107. interrupts = <47>;
  108. clocks = <&gateclk 20>;
  109. status = "disabled";
  110. };
  111. xor1: xor@60900 {
  112. compatible = "marvell,orion-xor";
  113. reg = <0x60900 0x100
  114. 0x60b00 0x100>;
  115. clocks = <&gateclk 22>;
  116. status = "okay";
  117. xor10 {
  118. interrupts = <51>;
  119. dmacap,memcpy;
  120. dmacap,xor;
  121. };
  122. xor11 {
  123. interrupts = <52>;
  124. dmacap,memcpy;
  125. dmacap,xor;
  126. dmacap,memset;
  127. };
  128. };
  129. ethernet@70000 {
  130. compatible = "marvell,armada-xp-neta";
  131. };
  132. ethernet@74000 {
  133. compatible = "marvell,armada-xp-neta";
  134. };
  135. cesa: crypto@90000 {
  136. compatible = "marvell,armada-xp-crypto";
  137. reg = <0x90000 0x10000>;
  138. reg-names = "regs";
  139. interrupts = <48>, <49>;
  140. clocks = <&gateclk 23>, <&gateclk 23>;
  141. clock-names = "cesa0", "cesa1";
  142. marvell,crypto-srams = <&crypto_sram0>,
  143. <&crypto_sram1>;
  144. marvell,crypto-sram-size = <0x800>;
  145. };
  146. bm: bm@c0000 {
  147. compatible = "marvell,armada-380-neta-bm";
  148. reg = <0xc0000 0xac>;
  149. clocks = <&gateclk 13>;
  150. internal-mem = <&bm_bppi>;
  151. status = "disabled";
  152. };
  153. xor0: xor@f0900 {
  154. compatible = "marvell,orion-xor";
  155. reg = <0xF0900 0x100
  156. 0xF0B00 0x100>;
  157. clocks = <&gateclk 28>;
  158. status = "okay";
  159. xor00 {
  160. interrupts = <94>;
  161. dmacap,memcpy;
  162. dmacap,xor;
  163. };
  164. xor01 {
  165. interrupts = <95>;
  166. dmacap,memcpy;
  167. dmacap,xor;
  168. dmacap,memset;
  169. };
  170. };
  171. };
  172. crypto_sram0: sa-sram0 {
  173. compatible = "mmio-sram";
  174. reg = <MBUS_ID(0x09, 0x09) 0 0x800>;
  175. clocks = <&gateclk 23>;
  176. #address-cells = <1>;
  177. #size-cells = <1>;
  178. ranges = <0 MBUS_ID(0x09, 0x09) 0 0x800>;
  179. };
  180. crypto_sram1: sa-sram1 {
  181. compatible = "mmio-sram";
  182. reg = <MBUS_ID(0x09, 0x05) 0 0x800>;
  183. clocks = <&gateclk 23>;
  184. #address-cells = <1>;
  185. #size-cells = <1>;
  186. ranges = <0 MBUS_ID(0x09, 0x05) 0 0x800>;
  187. };
  188. bm_bppi: bm-bppi {
  189. compatible = "mmio-sram";
  190. reg = <MBUS_ID(0x0c, 0x04) 0 0x100000>;
  191. ranges = <0 MBUS_ID(0x0c, 0x04) 0 0x100000>;
  192. #address-cells = <1>;
  193. #size-cells = <1>;
  194. clocks = <&gateclk 13>;
  195. no-memory-wc;
  196. status = "disabled";
  197. };
  198. };
  199. clocks {
  200. /* 25 MHz reference crystal */
  201. refclk: oscillator {
  202. compatible = "fixed-clock";
  203. #clock-cells = <0>;
  204. clock-frequency = <25000000>;
  205. };
  206. };
  207. };
  208. &i2c0 {
  209. compatible = "marvell,mv78230-i2c", "marvell,mv64xxx-i2c";
  210. reg = <0x11000 0x100>;
  211. };
  212. &i2c1 {
  213. compatible = "marvell,mv78230-i2c", "marvell,mv64xxx-i2c";
  214. reg = <0x11100 0x100>;
  215. };
  216. &mpic {
  217. reg = <0x20a00 0x2d0>, <0x21070 0x58>;
  218. };
  219. &timer {
  220. compatible = "marvell,armada-xp-timer";
  221. clocks = <&coreclk 2>, <&refclk>;
  222. clock-names = "nbclk", "fixed";
  223. };
  224. &watchdog {
  225. compatible = "marvell,armada-xp-wdt";
  226. clocks = <&coreclk 2>, <&refclk>;
  227. clock-names = "nbclk", "fixed";
  228. };
  229. &cpurst {
  230. reg = <0x20800 0x20>;
  231. };
  232. &usb0 {
  233. clocks = <&gateclk 18>;
  234. };
  235. &usb1 {
  236. clocks = <&gateclk 19>;
  237. };
  238. &pinctrl {
  239. ge0_gmii_pins: ge0-gmii-pins {
  240. marvell,pins =
  241. "mpp0", "mpp1", "mpp2", "mpp3",
  242. "mpp4", "mpp5", "mpp6", "mpp7",
  243. "mpp8", "mpp9", "mpp10", "mpp11",
  244. "mpp12", "mpp13", "mpp14", "mpp15",
  245. "mpp16", "mpp17", "mpp18", "mpp19",
  246. "mpp20", "mpp21", "mpp22", "mpp23";
  247. marvell,function = "ge0";
  248. };
  249. ge0_rgmii_pins: ge0-rgmii-pins {
  250. marvell,pins =
  251. "mpp0", "mpp1", "mpp2", "mpp3",
  252. "mpp4", "mpp5", "mpp6", "mpp7",
  253. "mpp8", "mpp9", "mpp10", "mpp11";
  254. marvell,function = "ge0";
  255. };
  256. ge1_rgmii_pins: ge1-rgmii-pins {
  257. marvell,pins =
  258. "mpp12", "mpp13", "mpp14", "mpp15",
  259. "mpp16", "mpp17", "mpp18", "mpp19",
  260. "mpp20", "mpp21", "mpp22", "mpp23";
  261. marvell,function = "ge1";
  262. };
  263. sdio_pins: sdio-pins {
  264. marvell,pins = "mpp30", "mpp31", "mpp32",
  265. "mpp33", "mpp34", "mpp35";
  266. marvell,function = "sd0";
  267. };
  268. spi0_pins: spi0-pins {
  269. marvell,pins = "mpp36", "mpp37",
  270. "mpp38", "mpp39";
  271. marvell,function = "spi0";
  272. };
  273. spi1_pins: spi1-pins {
  274. marvell,pins = "mpp13", "mpp14",
  275. "mpp16", "mpp17";
  276. marvell,function = "spi1";
  277. };
  278. uart2_pins: uart2-pins {
  279. marvell,pins = "mpp42", "mpp43";
  280. marvell,function = "uart2";
  281. };
  282. uart3_pins: uart3-pins {
  283. marvell,pins = "mpp44", "mpp45";
  284. marvell,function = "uart3";
  285. };
  286. };
  287. &spi0 {
  288. compatible = "marvell,armada-xp-spi", "marvell,orion-spi";
  289. pinctrl-0 = <&spi0_pins>;
  290. pinctrl-names = "default";
  291. };
  292. &spi1 {
  293. compatible = "marvell,armada-xp-spi", "marvell,orion-spi";
  294. pinctrl-0 = <&spi1_pins>;
  295. pinctrl-names = "default";
  296. };