armada-xp-98dx3236.dtsi 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Device Tree Include file for Marvell 98dx3236 family SoC
  4. *
  5. * Copyright (C) 2016 Allied Telesis Labs
  6. *
  7. * Contains definitions specific to the 98dx3236 SoC that are not
  8. * common to all Armada XP SoCs.
  9. */
  10. #include "armada-370-xp.dtsi"
  11. / {
  12. #address-cells = <2>;
  13. #size-cells = <2>;
  14. model = "Marvell 98DX3236 SoC";
  15. compatible = "marvell,armadaxp-98dx3236", "marvell,armada-370-xp";
  16. aliases {
  17. gpio0 = &gpio0;
  18. gpio1 = &gpio1;
  19. gpio2 = &gpio2;
  20. };
  21. cpus {
  22. #address-cells = <1>;
  23. #size-cells = <0>;
  24. enable-method = "marvell,98dx3236-smp";
  25. cpu@0 {
  26. device_type = "cpu";
  27. compatible = "marvell,sheeva-v7";
  28. reg = <0>;
  29. clocks = <&cpuclk 0>;
  30. clock-latency = <1000000>;
  31. };
  32. };
  33. soc {
  34. compatible = "marvell,armadaxp-mbus", "simple-bus";
  35. ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xf1000000 0x100000
  36. MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000
  37. MBUS_ID(0x01, 0x2f) 0 0 0xf0000000 0x1000000
  38. MBUS_ID(0x03, 0x00) 0 0 0xa8000000 0x4000000
  39. MBUS_ID(0x08, 0x00) 0 0 0xac000000 0x100000>;
  40. bootrom {
  41. compatible = "marvell,bootrom";
  42. reg = <MBUS_ID(0x01, 0x1d) 0 0x100000>;
  43. };
  44. /*
  45. * 98DX3236 has 1 x1 PCIe unit Gen2.0
  46. */
  47. pciec: pcie@82000000 {
  48. compatible = "marvell,armada-xp-pcie";
  49. status = "disabled";
  50. device_type = "pci";
  51. #address-cells = <3>;
  52. #size-cells = <2>;
  53. msi-parent = <&mpic>;
  54. bus-range = <0x00 0xff>;
  55. ranges =
  56. <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000 /* Port 0.0 registers */
  57. 0x82000000 0x1 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */
  58. 0x81000000 0x1 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO */>;
  59. pcie1: pcie@1,0 {
  60. device_type = "pci";
  61. assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
  62. reg = <0x0800 0 0 0 0>;
  63. #address-cells = <3>;
  64. #size-cells = <2>;
  65. interrupt-names = "intx";
  66. interrupts-extended = <&mpic 58>;
  67. #interrupt-cells = <1>;
  68. ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
  69. 0x81000000 0 0 0x81000000 0x1 0 1 0>;
  70. bus-range = <0x00 0xff>;
  71. interrupt-map-mask = <0 0 0 7>;
  72. interrupt-map = <0 0 0 1 &pcie1_intc 0>,
  73. <0 0 0 2 &pcie1_intc 1>,
  74. <0 0 0 3 &pcie1_intc 2>,
  75. <0 0 0 4 &pcie1_intc 3>;
  76. marvell,pcie-port = <0>;
  77. marvell,pcie-lane = <0>;
  78. clocks = <&gateclk 5>;
  79. status = "disabled";
  80. pcie1_intc: interrupt-controller {
  81. interrupt-controller;
  82. #interrupt-cells = <1>;
  83. };
  84. };
  85. };
  86. internal-regs {
  87. sdramc: sdramc@1400 {
  88. compatible = "marvell,armada-xp-sdram-controller";
  89. reg = <0x1400 0x500>;
  90. };
  91. L2: l2-cache@8000 {
  92. compatible = "marvell,aurora-system-cache";
  93. reg = <0x08000 0x1000>;
  94. cache-id-part = <0x100>;
  95. cache-level = <2>;
  96. cache-unified;
  97. wt-override;
  98. };
  99. gpio0: gpio@18100 {
  100. compatible = "marvell,orion-gpio";
  101. reg = <0x18100 0x40>;
  102. ngpios = <32>;
  103. gpio-controller;
  104. #gpio-cells = <2>;
  105. interrupt-controller;
  106. #interrupt-cells = <2>;
  107. interrupts = <82>, <83>, <84>, <85>;
  108. };
  109. /* does not exist */
  110. gpio1: gpio@18140 {
  111. compatible = "marvell,orion-gpio";
  112. reg = <0x18140 0x40>;
  113. status = "disabled";
  114. };
  115. gpio2: gpio@18180 { /* rework some properties */
  116. compatible = "marvell,orion-gpio";
  117. reg = <0x18180 0x40>;
  118. ngpios = <1>; /* only gpio #32 */
  119. gpio-controller;
  120. #gpio-cells = <2>;
  121. interrupt-controller;
  122. #interrupt-cells = <2>;
  123. interrupts = <87>;
  124. };
  125. systemc: system-controller@18200 {
  126. compatible = "marvell,armada-370-xp-system-controller";
  127. reg = <0x18200 0x500>;
  128. };
  129. gateclk: clock-gating-control@18220 {
  130. compatible = "marvell,mv98dx3236-gating-clock";
  131. reg = <0x18220 0x4>;
  132. clocks = <&coreclk 0>;
  133. #clock-cells = <1>;
  134. };
  135. cpuclk: clock-complex@18700 {
  136. #clock-cells = <1>;
  137. compatible = "marvell,mv98dx3236-cpu-clock";
  138. reg = <0x18700 0x24>, <0x1c054 0x10>;
  139. clocks = <&coreclk 1>;
  140. };
  141. corediv-clock@18740 {
  142. status = "disabled";
  143. };
  144. cpu-config@21000 {
  145. compatible = "marvell,armada-xp-cpu-config";
  146. reg = <0x21000 0x8>;
  147. };
  148. ethernet@70000 {
  149. compatible = "marvell,armada-xp-neta";
  150. };
  151. ethernet@74000 {
  152. compatible = "marvell,armada-xp-neta";
  153. };
  154. xor1: xor@f0800 {
  155. compatible = "marvell,orion-xor";
  156. reg = <0xf0800 0x100
  157. 0xf0a00 0x100>;
  158. clocks = <&gateclk 22>;
  159. status = "okay";
  160. xor10 {
  161. interrupts = <51>;
  162. dmacap,memcpy;
  163. dmacap,xor;
  164. };
  165. xor11 {
  166. interrupts = <52>;
  167. dmacap,memcpy;
  168. dmacap,xor;
  169. dmacap,memset;
  170. };
  171. };
  172. nand_controller: nand-controller@d0000 {
  173. clocks = <&dfx_coredivclk 0>;
  174. };
  175. xor0: xor@f0900 {
  176. compatible = "marvell,orion-xor";
  177. reg = <0xF0900 0x100
  178. 0xF0B00 0x100>;
  179. clocks = <&gateclk 28>;
  180. status = "okay";
  181. xor00 {
  182. interrupts = <94>;
  183. dmacap,memcpy;
  184. dmacap,xor;
  185. };
  186. xor01 {
  187. interrupts = <95>;
  188. dmacap,memcpy;
  189. dmacap,xor;
  190. dmacap,memset;
  191. };
  192. };
  193. };
  194. dfx: dfx-server@ac000000 {
  195. compatible = "marvell,dfx-server", "simple-bus";
  196. #address-cells = <1>;
  197. #size-cells = <1>;
  198. ranges = <0 MBUS_ID(0x08, 0x00) 0 0x100000>;
  199. reg = <MBUS_ID(0x08, 0x00) 0 0x100000>;
  200. coreclk: mvebu-sar@f8204 {
  201. compatible = "marvell,mv98dx3236-core-clock";
  202. reg = <0xf8204 0x4>;
  203. #clock-cells = <1>;
  204. };
  205. dfx_coredivclk: corediv-clock@f8268 {
  206. compatible = "marvell,mv98dx3236-corediv-clock";
  207. reg = <0xf8268 0xc>;
  208. #clock-cells = <1>;
  209. clocks = <&mainpll>;
  210. clock-output-names = "nand";
  211. };
  212. };
  213. switch: switch@a8000000 {
  214. compatible = "simple-bus";
  215. #address-cells = <1>;
  216. #size-cells = <1>;
  217. ranges = <0 MBUS_ID(0x03, 0x00) 0 0x100000>;
  218. pp0: packet-processor@0 {
  219. compatible = "marvell,prestera-98dx3236", "marvell,prestera";
  220. reg = <0 0x4000000>;
  221. interrupts = <33>, <34>, <35>;
  222. dfx = <&dfx>;
  223. };
  224. };
  225. };
  226. clocks {
  227. /* 25 MHz reference crystal */
  228. refclk: oscillator {
  229. compatible = "fixed-clock";
  230. #clock-cells = <0>;
  231. clock-frequency = <25000000>;
  232. };
  233. };
  234. };
  235. &i2c0 {
  236. compatible = "marvell,mv78230-i2c", "marvell,mv64xxx-i2c";
  237. reg = <0x11000 0x100>;
  238. pinctrl-names = "default";
  239. pinctrl-0 = <&i2c0_pins>;
  240. };
  241. &mpic {
  242. reg = <0x20a00 0x2d0>, <0x21070 0x58>;
  243. };
  244. &rtc {
  245. status = "disabled";
  246. };
  247. &timer {
  248. compatible = "marvell,armada-xp-timer";
  249. clocks = <&coreclk 2>, <&refclk>;
  250. clock-names = "nbclk", "fixed";
  251. };
  252. &watchdog {
  253. compatible = "marvell,armada-xp-wdt";
  254. clocks = <&coreclk 2>, <&refclk>;
  255. clock-names = "nbclk", "fixed";
  256. };
  257. &cpurst {
  258. reg = <0x20800 0x20>;
  259. };
  260. &usb0 {
  261. clocks = <&gateclk 18>;
  262. };
  263. &usb1 {
  264. clocks = <&gateclk 19>;
  265. };
  266. &pinctrl {
  267. compatible = "marvell,98dx3236-pinctrl";
  268. nand_pins: nand-pins {
  269. marvell,pins = "mpp20", "mpp21", "mpp22",
  270. "mpp23", "mpp24", "mpp25",
  271. "mpp26", "mpp27", "mpp28",
  272. "mpp29", "mpp30";
  273. marvell,function = "dev";
  274. };
  275. nand_rb: nand-rb {
  276. marvell,pins = "mpp19";
  277. marvell,function = "nand";
  278. };
  279. spi0_pins: spi0-pins {
  280. marvell,pins = "mpp0", "mpp1",
  281. "mpp2", "mpp3";
  282. marvell,function = "spi0";
  283. };
  284. i2c0_pins: i2c-pins-0 {
  285. marvell,pins = "mpp14", "mpp15";
  286. marvell,function = "i2c0";
  287. };
  288. };
  289. &spi0 {
  290. compatible = "marvell,armada-xp-spi", "marvell,orion-spi";
  291. pinctrl-0 = <&spi0_pins>;
  292. pinctrl-names = "default";
  293. };
  294. &sdio {
  295. status = "disabled";
  296. };
  297. &uart0 {
  298. compatible = "marvell,armada-38x-uart";
  299. };
  300. &uart1 {
  301. compatible = "marvell,armada-38x-uart";
  302. };