armada-37xx.dtsi 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Device Tree Include file for Marvell Armada 37xx family of SoCs.
  4. *
  5. * Copyright (C) 2016 Marvell
  6. *
  7. * Gregory CLEMENT <[email protected]>
  8. *
  9. */
  10. #include <dt-bindings/interrupt-controller/arm-gic.h>
  11. / {
  12. model = "Marvell Armada 37xx SoC";
  13. compatible = "marvell,armada3700";
  14. interrupt-parent = <&gic>;
  15. #address-cells = <2>;
  16. #size-cells = <2>;
  17. aliases {
  18. serial0 = &uart0;
  19. serial1 = &uart1;
  20. };
  21. reserved-memory {
  22. #address-cells = <2>;
  23. #size-cells = <2>;
  24. ranges;
  25. /*
  26. * The PSCI firmware region depicted below is the default one
  27. * and should be updated by the bootloader.
  28. */
  29. psci-area@4000000 {
  30. reg = <0 0x4000000 0 0x200000>;
  31. no-map;
  32. };
  33. };
  34. cpus {
  35. #address-cells = <1>;
  36. #size-cells = <0>;
  37. cpu0: cpu@0 {
  38. device_type = "cpu";
  39. compatible = "arm,cortex-a53";
  40. reg = <0>;
  41. clocks = <&nb_periph_clk 16>;
  42. enable-method = "psci";
  43. };
  44. };
  45. psci {
  46. compatible = "arm,psci-0.2";
  47. method = "smc";
  48. };
  49. timer {
  50. compatible = "arm,armv8-timer";
  51. interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>,
  52. <GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH>,
  53. <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>,
  54. <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH>;
  55. };
  56. pmu {
  57. compatible = "arm,armv8-pmuv3";
  58. interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>;
  59. };
  60. soc {
  61. compatible = "simple-bus";
  62. #address-cells = <2>;
  63. #size-cells = <2>;
  64. ranges;
  65. internal-regs@d0000000 {
  66. #address-cells = <1>;
  67. #size-cells = <1>;
  68. compatible = "simple-bus";
  69. /* 32M internal register @ 0xd000_0000 */
  70. ranges = <0x0 0x0 0xd0000000 0x2000000>;
  71. wdt: watchdog@8300 {
  72. compatible = "marvell,armada-3700-wdt";
  73. reg = <0x8300 0x40>;
  74. marvell,system-controller = <&cpu_misc>;
  75. clocks = <&xtalclk>;
  76. };
  77. cpu_misc: system-controller@d000 {
  78. compatible = "marvell,armada-3700-cpu-misc",
  79. "syscon";
  80. reg = <0xd000 0x1000>;
  81. };
  82. spi0: spi@10600 {
  83. compatible = "marvell,armada-3700-spi";
  84. #address-cells = <1>;
  85. #size-cells = <0>;
  86. reg = <0x10600 0xA00>;
  87. clocks = <&nb_periph_clk 7>;
  88. interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
  89. num-cs = <4>;
  90. status = "disabled";
  91. };
  92. i2c0: i2c@11000 {
  93. compatible = "marvell,armada-3700-i2c";
  94. reg = <0x11000 0x24>;
  95. #address-cells = <1>;
  96. #size-cells = <0>;
  97. clocks = <&nb_periph_clk 10>;
  98. interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
  99. mrvl,i2c-fast-mode;
  100. status = "disabled";
  101. };
  102. i2c1: i2c@11080 {
  103. compatible = "marvell,armada-3700-i2c";
  104. reg = <0x11080 0x24>;
  105. #address-cells = <1>;
  106. #size-cells = <0>;
  107. clocks = <&nb_periph_clk 9>;
  108. interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
  109. mrvl,i2c-fast-mode;
  110. status = "disabled";
  111. };
  112. avs: avs@11500 {
  113. compatible = "marvell,armada-3700-avs",
  114. "syscon";
  115. reg = <0x11500 0x40>;
  116. };
  117. uartclk: clock-controller@12010 {
  118. compatible = "marvell,armada-3700-uart-clock";
  119. reg = <0x12010 0x4>, <0x12210 0x4>;
  120. clocks = <&tbg 0>, <&tbg 1>, <&tbg 2>,
  121. <&tbg 3>, <&xtalclk>;
  122. clock-names = "TBG-A-P", "TBG-B-P", "TBG-A-S",
  123. "TBG-B-S", "xtal";
  124. #clock-cells = <1>;
  125. };
  126. uart0: serial@12000 {
  127. compatible = "marvell,armada-3700-uart";
  128. reg = <0x12000 0x18>;
  129. clocks = <&uartclk 0>;
  130. interrupts =
  131. <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
  132. <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
  133. <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
  134. interrupt-names = "uart-sum", "uart-tx", "uart-rx";
  135. status = "disabled";
  136. };
  137. uart1: serial@12200 {
  138. compatible = "marvell,armada-3700-uart-ext";
  139. reg = <0x12200 0x30>;
  140. clocks = <&uartclk 1>;
  141. interrupts =
  142. <GIC_SPI 30 IRQ_TYPE_EDGE_RISING>,
  143. <GIC_SPI 31 IRQ_TYPE_EDGE_RISING>;
  144. interrupt-names = "uart-tx", "uart-rx";
  145. status = "disabled";
  146. };
  147. nb_periph_clk: nb-periph-clk@13000 {
  148. compatible = "marvell,armada-3700-periph-clock-nb",
  149. "syscon";
  150. reg = <0x13000 0x100>;
  151. clocks = <&tbg 0>, <&tbg 1>, <&tbg 2>,
  152. <&tbg 3>, <&xtalclk>;
  153. #clock-cells = <1>;
  154. };
  155. sb_periph_clk: sb-periph-clk@18000 {
  156. compatible = "marvell,armada-3700-periph-clock-sb";
  157. reg = <0x18000 0x100>;
  158. clocks = <&tbg 0>, <&tbg 1>, <&tbg 2>,
  159. <&tbg 3>, <&xtalclk>;
  160. #clock-cells = <1>;
  161. };
  162. tbg: tbg@13200 {
  163. compatible = "marvell,armada-3700-tbg-clock";
  164. reg = <0x13200 0x100>;
  165. clocks = <&xtalclk>;
  166. #clock-cells = <1>;
  167. };
  168. pinctrl_nb: pinctrl@13800 {
  169. compatible = "marvell,armada3710-nb-pinctrl",
  170. "syscon", "simple-mfd";
  171. reg = <0x13800 0x100>, <0x13C00 0x20>;
  172. /* MPP1[19:0] */
  173. gpionb: gpio {
  174. #gpio-cells = <2>;
  175. gpio-ranges = <&pinctrl_nb 0 0 36>;
  176. gpio-controller;
  177. interrupt-controller;
  178. #interrupt-cells = <2>;
  179. interrupts =
  180. <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
  181. <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
  182. <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
  183. <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
  184. <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
  185. <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>,
  186. <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
  187. <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
  188. <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>,
  189. <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
  190. <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>,
  191. <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
  192. };
  193. xtalclk: xtal-clk {
  194. compatible = "marvell,armada-3700-xtal-clock";
  195. clock-output-names = "xtal";
  196. #clock-cells = <0>;
  197. };
  198. spi_quad_pins: spi-quad-pins {
  199. groups = "spi_quad";
  200. function = "spi";
  201. };
  202. spi_cs1_pins: spi-cs1-pins {
  203. groups = "spi_cs1";
  204. function = "spi";
  205. };
  206. i2c1_pins: i2c1-pins {
  207. groups = "i2c1";
  208. function = "i2c";
  209. };
  210. i2c2_pins: i2c2-pins {
  211. groups = "i2c2";
  212. function = "i2c";
  213. };
  214. uart1_pins: uart1-pins {
  215. groups = "uart1";
  216. function = "uart";
  217. };
  218. uart2_pins: uart2-pins {
  219. groups = "uart2";
  220. function = "uart";
  221. };
  222. mmc_pins: mmc-pins {
  223. groups = "emmc_nb";
  224. function = "emmc";
  225. };
  226. };
  227. nb_pm: syscon@14000 {
  228. compatible = "marvell,armada-3700-nb-pm",
  229. "syscon";
  230. reg = <0x14000 0x60>;
  231. };
  232. comphy: phy@18300 {
  233. compatible = "marvell,comphy-a3700";
  234. reg = <0x18300 0x300>,
  235. <0x1F000 0x400>,
  236. <0x5C000 0x400>,
  237. <0xe0178 0x8>;
  238. reg-names = "comphy",
  239. "lane1_pcie_gbe",
  240. "lane0_usb3_gbe",
  241. "lane2_sata_usb3";
  242. #address-cells = <1>;
  243. #size-cells = <0>;
  244. clocks = <&xtalclk>;
  245. clock-names = "xtal";
  246. comphy0: phy@0 {
  247. reg = <0>;
  248. #phy-cells = <1>;
  249. };
  250. comphy1: phy@1 {
  251. reg = <1>;
  252. #phy-cells = <1>;
  253. };
  254. comphy2: phy@2 {
  255. reg = <2>;
  256. #phy-cells = <1>;
  257. };
  258. };
  259. pinctrl_sb: pinctrl@18800 {
  260. compatible = "marvell,armada3710-sb-pinctrl",
  261. "syscon", "simple-mfd";
  262. reg = <0x18800 0x100>, <0x18C00 0x20>;
  263. /* MPP2[23:0] */
  264. gpiosb: gpio {
  265. #gpio-cells = <2>;
  266. gpio-ranges = <&pinctrl_sb 0 0 30>;
  267. gpio-controller;
  268. interrupt-controller;
  269. #interrupt-cells = <2>;
  270. interrupts =
  271. <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
  272. <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>,
  273. <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>,
  274. <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
  275. <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
  276. };
  277. rgmii_pins: mii-pins {
  278. groups = "rgmii";
  279. function = "mii";
  280. };
  281. smi_pins: smi-pins {
  282. groups = "smi";
  283. function = "smi";
  284. };
  285. sdio_pins: sdio-pins {
  286. groups = "sdio_sb";
  287. function = "sdio";
  288. };
  289. pcie_reset_pins: pcie-reset-pins {
  290. groups = "pcie1"; /* this actually controls "pcie1_reset" */
  291. function = "gpio";
  292. };
  293. pcie_clkreq_pins: pcie-clkreq-pins {
  294. groups = "pcie1_clkreq";
  295. function = "pcie";
  296. };
  297. };
  298. eth0: ethernet@30000 {
  299. compatible = "marvell,armada-3700-neta";
  300. reg = <0x30000 0x4000>;
  301. interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
  302. clocks = <&sb_periph_clk 8>;
  303. status = "disabled";
  304. };
  305. mdio: mdio@32004 {
  306. #address-cells = <1>;
  307. #size-cells = <0>;
  308. compatible = "marvell,orion-mdio";
  309. reg = <0x32004 0x4>;
  310. };
  311. eth1: ethernet@40000 {
  312. compatible = "marvell,armada-3700-neta";
  313. reg = <0x40000 0x4000>;
  314. interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
  315. clocks = <&sb_periph_clk 7>;
  316. status = "disabled";
  317. };
  318. usb3: usb@58000 {
  319. compatible = "marvell,armada3700-xhci",
  320. "generic-xhci";
  321. reg = <0x58000 0x4000>;
  322. marvell,usb-misc-reg = <&usb32_syscon>;
  323. interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
  324. clocks = <&sb_periph_clk 12>;
  325. phys = <&comphy0 0>, <&usb2_utmi_otg_phy>;
  326. phy-names = "usb3-phy", "usb2-utmi-otg-phy";
  327. status = "disabled";
  328. };
  329. usb2_utmi_otg_phy: phy@5d000 {
  330. compatible = "marvell,a3700-utmi-otg-phy";
  331. reg = <0x5d000 0x800>;
  332. marvell,usb-misc-reg = <&usb32_syscon>;
  333. #phy-cells = <0>;
  334. };
  335. usb32_syscon: system-controller@5d800 {
  336. compatible = "marvell,armada-3700-usb2-host-device-misc",
  337. "syscon";
  338. reg = <0x5d800 0x800>;
  339. };
  340. usb2: usb@5e000 {
  341. compatible = "marvell,armada-3700-ehci";
  342. reg = <0x5e000 0x1000>;
  343. marvell,usb-misc-reg = <&usb2_syscon>;
  344. interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
  345. phys = <&usb2_utmi_host_phy>;
  346. phy-names = "usb2-utmi-host-phy";
  347. status = "disabled";
  348. };
  349. usb2_utmi_host_phy: phy@5f000 {
  350. compatible = "marvell,a3700-utmi-host-phy";
  351. reg = <0x5f000 0x800>;
  352. marvell,usb-misc-reg = <&usb2_syscon>;
  353. #phy-cells = <0>;
  354. };
  355. usb2_syscon: system-controller@5f800 {
  356. compatible = "marvell,armada-3700-usb2-host-misc",
  357. "syscon";
  358. reg = <0x5f800 0x800>;
  359. };
  360. xor@60900 {
  361. compatible = "marvell,armada-3700-xor";
  362. reg = <0x60900 0x100>,
  363. <0x60b00 0x100>;
  364. xor10 {
  365. interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
  366. };
  367. xor11 {
  368. interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
  369. };
  370. };
  371. crypto: crypto@90000 {
  372. compatible = "inside-secure,safexcel-eip97ies";
  373. reg = <0x90000 0x20000>;
  374. interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
  375. <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
  376. <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>,
  377. <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
  378. <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
  379. <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
  380. interrupt-names = "mem", "ring0", "ring1",
  381. "ring2", "ring3", "eip";
  382. clocks = <&nb_periph_clk 15>;
  383. };
  384. rwtm: mailbox@b0000 {
  385. compatible = "marvell,armada-3700-rwtm-mailbox";
  386. reg = <0xb0000 0x100>;
  387. interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
  388. #mbox-cells = <1>;
  389. };
  390. sdhci1: mmc@d0000 {
  391. compatible = "marvell,armada-3700-sdhci",
  392. "marvell,sdhci-xenon";
  393. reg = <0xd0000 0x300>,
  394. <0x1e808 0x4>;
  395. interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
  396. clocks = <&nb_periph_clk 0>;
  397. clock-names = "core";
  398. status = "disabled";
  399. };
  400. sdhci0: mmc@d8000 {
  401. compatible = "marvell,armada-3700-sdhci",
  402. "marvell,sdhci-xenon";
  403. reg = <0xd8000 0x300>,
  404. <0x17808 0x4>;
  405. interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
  406. clocks = <&nb_periph_clk 0>;
  407. clock-names = "core";
  408. status = "disabled";
  409. };
  410. sata: sata@e0000 {
  411. compatible = "marvell,armada-3700-ahci";
  412. reg = <0xe0000 0x178>;
  413. interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
  414. clocks = <&nb_periph_clk 1>;
  415. phys = <&comphy2 0>;
  416. phy-names = "sata-phy";
  417. status = "disabled";
  418. };
  419. gic: interrupt-controller@1d00000 {
  420. compatible = "arm,gic-v3";
  421. #interrupt-cells = <3>;
  422. interrupt-controller;
  423. reg = <0x1d00000 0x10000>, /* GICD */
  424. <0x1d40000 0x40000>, /* GICR */
  425. <0x1d80000 0x2000>, /* GICC */
  426. <0x1d90000 0x2000>, /* GICH */
  427. <0x1da0000 0x20000>; /* GICV */
  428. interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
  429. };
  430. };
  431. pcie0: pcie@d0070000 {
  432. compatible = "marvell,armada-3700-pcie";
  433. device_type = "pci";
  434. status = "disabled";
  435. reg = <0 0xd0070000 0 0x20000>;
  436. #address-cells = <3>;
  437. #size-cells = <2>;
  438. bus-range = <0x00 0xff>;
  439. interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
  440. #interrupt-cells = <1>;
  441. clocks = <&sb_periph_clk 13>;
  442. msi-parent = <&pcie0>;
  443. msi-controller;
  444. /*
  445. * The 128 MiB address range [0xe8000000-0xf0000000] is
  446. * dedicated for PCIe and can be assigned to 8 windows
  447. * with size a power of two. Use one 64 KiB window for
  448. * IO at the end and the remaining seven windows
  449. * (totaling 127 MiB) for MEM.
  450. */
  451. ranges = <0x82000000 0 0xe8000000 0 0xe8000000 0 0x07f00000 /* Port 0 MEM */
  452. 0x81000000 0 0x00000000 0 0xefff0000 0 0x00010000>; /* Port 0 IO */
  453. interrupt-map-mask = <0 0 0 7>;
  454. interrupt-map = <0 0 0 1 &pcie_intc 0>,
  455. <0 0 0 2 &pcie_intc 1>,
  456. <0 0 0 3 &pcie_intc 2>,
  457. <0 0 0 4 &pcie_intc 3>;
  458. max-link-speed = <2>;
  459. phys = <&comphy1 0>;
  460. pcie_intc: interrupt-controller {
  461. interrupt-controller;
  462. #interrupt-cells = <1>;
  463. };
  464. };
  465. };
  466. firmware {
  467. armada-3700-rwtm {
  468. compatible = "marvell,armada-3700-rwtm-firmware";
  469. mboxes = <&rwtm 0>;
  470. status = "okay";
  471. };
  472. };
  473. };