armada-37xx.dtsi 13 KB

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