d2000-generic-psci-soc.dtsi 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * dts file for Phytium D2000 SoC
  4. *
  5. * Copyright (C) 2020, Phytium Technology Co., Ltd.
  6. */
  7. #include <dt-bindings/interrupt-controller/arm-gic.h>
  8. / {
  9. compatible = "phytium,d2000";
  10. interrupt-parent = <&gic>;
  11. #address-cells = <2>;
  12. #size-cells = <2>;
  13. aliases {
  14. ethernet0 = &gmac0;
  15. ethernet1 = &gmac1;
  16. };
  17. psci {
  18. compatible = "arm,psci-1.0";
  19. method = "smc";
  20. cpu_suspend = <0xc4000001>;
  21. cpu_off = <0x84000002>;
  22. cpu_on = <0xc4000003>;
  23. sys_poweroff = <0x84000008>;
  24. sys_reset = <0x84000009>;
  25. };
  26. cpus {
  27. #address-cells = <0x2>;
  28. #size-cells = <0x0>;
  29. cpu0: cpu@0 {
  30. device_type = "cpu";
  31. compatible = "arm,armv8";
  32. reg = <0x0 0x0>;
  33. enable-method = "psci";
  34. numa-node-id = <0>;
  35. clocks = <&scpi_dvfs 0>;
  36. };
  37. cpu1: cpu@1 {
  38. device_type = "cpu";
  39. compatible = "arm,armv8";
  40. reg = <0x0 0x1>;
  41. enable-method = "psci";
  42. numa-node-id = <0>;
  43. clocks = <&scpi_dvfs 0>;
  44. };
  45. cpu2: cpu@100 {
  46. device_type = "cpu";
  47. compatible = "arm,armv8";
  48. reg = <0x0 0x100>;
  49. enable-method = "psci";
  50. numa-node-id = <0>;
  51. clocks = <&scpi_dvfs 1>;
  52. };
  53. cpu3: cpu@101 {
  54. device_type = "cpu";
  55. compatible = "arm,armv8";
  56. reg = <0x0 0x101>;
  57. enable-method = "psci";
  58. numa-node-id = <0>;
  59. clocks = <&scpi_dvfs 1>;
  60. };
  61. cpu4: cpu@200 {
  62. device_type = "cpu";
  63. compatible = "arm,armv8";
  64. reg = <0x0 0x200>;
  65. enable-method = "psci";
  66. numa-node-id = <0>;
  67. clocks = <&scpi_dvfs 2>;
  68. };
  69. cpu5: cpu@201 {
  70. device_type = "cpu";
  71. compatible = "arm,armv8";
  72. reg = <0x0 0x201>;
  73. enable-method = "psci";
  74. numa-node-id = <0>;
  75. clocks = <&scpi_dvfs 2>;
  76. };
  77. cpu6: cpu@300 {
  78. device_type = "cpu";
  79. compatible = "arm,armv8";
  80. reg = <0x0 0x300>;
  81. enable-method = "psci";
  82. numa-node-id = <0>;
  83. clocks = <&scpi_dvfs 3>;
  84. };
  85. cpu7: cpu@301 {
  86. device_type = "cpu";
  87. compatible = "arm,armv8";
  88. reg = <0x0 0x301>;
  89. enable-method = "psci";
  90. numa-node-id = <0>;
  91. clocks = <&scpi_dvfs 3>;
  92. };
  93. };
  94. gic: interrupt-controller@29900000 {
  95. compatible = "arm,gic-v3";
  96. #interrupt-cells = <3>;
  97. #address-cells = <2>;
  98. #size-cells = <2>;
  99. ranges;
  100. interrupt-controller;
  101. reg = <0x0 0x29a00000 0 0x20000>, /* GICD */
  102. <0x0 0x29b00000 0 0x100000>, /* GICR */
  103. <0x0 0x29c00000 0 0x10000>, /* GICC */
  104. <0x0 0x29c10000 0 0x10000>, /* GICH */
  105. <0x0 0x29c20000 0 0x10000>; /* GICV */
  106. interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
  107. its: gic-its@29920000 {
  108. compatible = "arm,gic-v3-its";
  109. msi-controller;
  110. reg = <0x0 0x29a20000 0x0 0x20000>;
  111. };
  112. };
  113. timer {
  114. compatible = "arm,armv8-timer";
  115. interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
  116. <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
  117. <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
  118. <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
  119. clock-frequency = <48000000>;
  120. };
  121. clocks {
  122. #address-cells = <2>;
  123. #size-cells = <2>;
  124. ranges;
  125. clk250mhz: clk250mhz {
  126. compatible = "fixed-clock";
  127. #clock-cells = <0>;
  128. clock-frequency = <250000000>;
  129. };
  130. sysclk_48mhz: clk48mhz {
  131. compatible = "fixed-clock";
  132. #clock-cells = <0>;
  133. clock-frequency = <48000000>;
  134. };
  135. sysclk_600mhz: clk600mhz {
  136. compatible = "fixed-clock";
  137. #clock-cells = <0>;
  138. clock-frequency = <600000000>;
  139. };
  140. };
  141. soc {
  142. compatible = "simple-bus";
  143. #address-cells = <2>;
  144. #size-cells = <2>;
  145. dma-coherent;
  146. ranges;
  147. gpio0: gpio@28004000 {
  148. compatible = "phytium,gpio";
  149. reg = <0x0 0x28004000 0x0 0x1000>;
  150. interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
  151. gpio-controller;
  152. #gpio-cells = <2>;
  153. #address-cells = <1>;
  154. #size-cells = <0>;
  155. porta {
  156. compatible = "phytium,gpio-port";
  157. reg = <0>;
  158. nr-gpios = <8>;
  159. };
  160. portb {
  161. compatible = "phytium,gpio-port";
  162. reg = <1>;
  163. nr-gpios = <8>;
  164. };
  165. };
  166. gpio1: gpio@28005000 {
  167. compatible = "phytium,gpio";
  168. reg = <0x0 0x28005000 0x0 0x1000>;
  169. interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
  170. gpio-controller;
  171. #gpio-cells = <2>;
  172. #address-cells = <1>;
  173. #size-cells = <0>;
  174. porta {
  175. compatible = "phytium,gpio-port";
  176. reg = <0>;
  177. nr-gpios = <8>;
  178. };
  179. portb {
  180. compatible = "phytium,gpio-port";
  181. reg = <1>;
  182. nr-gpios = <8>;
  183. };
  184. };
  185. uart0: uart@28000000 {
  186. compatible = "arm,pl011", "arm,primecell";
  187. reg = <0x0 0x28000000 0x0 0x1000>;
  188. baud = <115200>;
  189. reg-shift = <2>;
  190. reg-io-width = <4>;
  191. interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
  192. clocks = <&sysclk_48mhz &sysclk_48mhz>;
  193. clock-names = "uartclk", "apb_pclk";
  194. };
  195. uart1: uart@28001000 {
  196. compatible = "arm,pl011", "arm,primecell";
  197. reg = <0x0 0x28001000 0x0 0x1000>;
  198. baud = <115200>;
  199. reg-shift = <2>;
  200. reg-io-width = <4>;
  201. interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
  202. clocks = <&sysclk_48mhz &sysclk_48mhz>;
  203. clock-names = "uartclk", "apb_pclk";
  204. };
  205. uart2: uart@28002000 {
  206. compatible = "arm,pl011", "arm,primecell";
  207. reg = <0x0 0x28002000 0x0 0x1000>;
  208. baud = <115200>;
  209. reg-shift = <2>;
  210. reg-io-width = <4>;
  211. interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
  212. clocks = <&sysclk_48mhz &sysclk_48mhz>;
  213. clock-names = "uartclk", "apb_pclk";
  214. };
  215. uart3: uart@28003000 {
  216. compatible = "arm,pl011", "arm,primecell";
  217. reg = <0x0 0x28003000 0x0 0x1000>;
  218. baud = <115200>;
  219. reg-shift = <2>;
  220. reg-io-width = <4>;
  221. interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
  222. clocks = <&sysclk_48mhz &sysclk_48mhz>;
  223. clock-names = "uartclk", "apb_pclk";
  224. };
  225. sdci: sdci@28207c00 {
  226. compatible = "phytium,sdci";
  227. reg = <0x0 0x28207c00 0x0 0x100>;
  228. interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
  229. <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>,
  230. <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
  231. clocks = <&sysclk_600mhz &sysclk_600mhz>;
  232. clock-names = "phytium_sdc_clk";
  233. no-sdio;
  234. no-mmc;
  235. no-dma-coherent;
  236. };
  237. watchdog0: watchdog@2800a000 {
  238. compatible = "arm,sbsa-gwdt";
  239. reg = <0x0 0x2800b000 0x0 0x1000>,
  240. <0x0 0x2800a000 0x0 0x1000>;
  241. interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
  242. timeout-sec = <30>;
  243. };
  244. watchdog1: watchdog@28016000 {
  245. compatible = "arm,sbsa-gwdt";
  246. reg = <0x0 0x28017000 0x0 0x1000>,
  247. <0x0 0x28016000 0x0 0x1000>;
  248. interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
  249. timeout-sec = <30>;
  250. };
  251. rtc0: rtc@2800d000 {
  252. compatible = "phytium,rtc";
  253. reg = <0x0 0x2800d000 0x0 0x1000>;
  254. clocks = <&sysclk_48mhz>;
  255. clock-names = "rtc_pclk";
  256. interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
  257. status = "disabled";
  258. };
  259. i2c0: i2c@28006000 {
  260. compatible = "snps,designware-i2c";
  261. reg = <0x0 0x28006000 0x0 0x1000>;
  262. interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
  263. clocks = <&sysclk_48mhz>;
  264. status = "disabled";
  265. };
  266. i2c1: i2c@28007000 {
  267. compatible = "snps,designware-i2c";
  268. reg = <0x0 0x28007000 0x0 0x1000>;
  269. interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
  270. clocks = <&sysclk_48mhz>;
  271. status = "disabled";
  272. };
  273. i2c2: i2c@28008000 {
  274. compatible = "snps,designware-i2c";
  275. reg = <0x0 0x28008000 0x0 0x1000>;
  276. interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
  277. clocks = <&sysclk_48mhz>;
  278. status = "disabled";
  279. };
  280. i2c3: i2c@28009000 {
  281. compatible = "snps,designware-i2c";
  282. reg = <0x0 0x28009000 0x0 0x1000>;
  283. interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
  284. clocks = <&sysclk_48mhz>;
  285. status = "disabled";
  286. };
  287. spi0: spi@2800c000 {
  288. compatible = "phytium,spi";
  289. interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
  290. reg = <0x0 0x2800c000 0x0 0x1000>;
  291. clocks = <&sysclk_48mhz>;
  292. num-cs = <4>;
  293. };
  294. spi1: spi@28013000 {
  295. compatible = "phytium,spi";
  296. interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
  297. reg = <0x0 0x28013000 0x0 0x1000>;
  298. clocks = <&sysclk_48mhz>;
  299. num-cs = <4>;
  300. };
  301. qspi: qspi@28014000 {
  302. compatible = "phytium,qspi";
  303. reg = <0x0 0x28014000 0x0 0x1000>,
  304. <0x0 0x0 0x0 0x02000000>;
  305. reg-names = "qspi", "qspi_mm";
  306. clocks = <&sysclk_600mhz>;
  307. flash@0 {
  308. spi-rx-bus-width = <1>;
  309. spi-max-frequency = <600000000>;
  310. };
  311. };
  312. phytium_axi_setup: stmmac-axi-config {
  313. snps,wr_osr_lmt = <0>;
  314. snps,rd_osr_lmt = <0>;
  315. snps,blen = <0 0 0 0 16 8 4>;
  316. };
  317. gmac0: eth@2820c000 {
  318. compatible = "snps,dwmac";
  319. reg = <0x0 0x2820c000 0x0 0x2000>;
  320. interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
  321. interrupt-names = "macirq";
  322. clocks = <&clk250mhz>;
  323. clock-names = "stmmaceth";
  324. status = "disabled";
  325. snps,pbl = <16>;
  326. snps,fixed-burst;
  327. snps,axi-config = <&phytium_axi_setup>;
  328. snps,force_sf_dma_mode;
  329. snps,multicast-filter-bins = <64>;
  330. snps,perfect-filter-entries = <128>;
  331. tx-fifo-depth = <4096>;
  332. rx-fifo-depth = <4096>;
  333. max-frame-size = <9000>;
  334. };
  335. gmac1: eth@28210000 {
  336. compatible = "snps,dwmac";
  337. reg = <0x0 0x28210000 0x0 0x2000>;
  338. interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
  339. interrupt-names = "macirq";
  340. clocks = <&clk250mhz>;
  341. clock-names = "stmmaceth";
  342. status = "disabled";
  343. snps,pbl = <16>;
  344. snps,fixed-burst;
  345. snps,axi-config = <&phytium_axi_setup>;
  346. snps,force_sf_dma_mode;
  347. snps,multicast-filter-bins = <64>;
  348. snps,perfect-filter-entries = <128>;
  349. snps,rx-queues-to-use = <2>;
  350. tx-fifo-depth = <4096>;
  351. rx-fifo-depth = <4096>;
  352. max-frame-size = <9000>;
  353. };
  354. can0: can@28207000 {
  355. compatible = "phytium,can";
  356. reg = <0x0 0x28207000 0x0 0x400>;
  357. interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
  358. clocks = <&sysclk_600mhz>;
  359. clock-names = "phytium_can_clk";
  360. tx-fifo-depth = <0x40>;
  361. rx-fifo-depth = <0x40>;
  362. };
  363. can1: can@28207400 {
  364. compatible = "phytium,can";
  365. reg = <0x0 0x28207400 0x0 0x400>;
  366. interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
  367. clocks = <&sysclk_600mhz>;
  368. clock-names = "phytium_can_clk";
  369. tx-fifo-depth = <0x40>;
  370. rx-fifo-depth = <0x40>;
  371. };
  372. can2: can@028207800 {
  373. compatible = "phytium,can";
  374. reg = <0x0 0x28207800 0x0 0x400>;
  375. interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
  376. clocks = <&sysclk_600mhz>;
  377. clock-names = "phytium_can_clk";
  378. tx-fifo-depth = <0x40>;
  379. rx-fifo-depth = <0x40>;
  380. };
  381. hda: hda@28206000 {
  382. compatible = "phytium,hda";
  383. reg = <0 0x28206000 0x0 0x1000>;
  384. interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
  385. clocks = <&sysclk_48mhz>;
  386. clock-names = "phytium_hda_clk";
  387. };
  388. mbox: mailbox@2a000000 {
  389. compatible = "phytium,mbox";
  390. reg = <0x0 0x2a000000 0x0 0x1000>;
  391. interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
  392. #mbox-cells = <1>;
  393. clocks = <&sysclk_48mhz>;
  394. clock-names = "apb_pclk";
  395. };
  396. sram: sram@2a006000 {
  397. compatible = "phytium,ft2004-sram-ns","mmio-sram";
  398. reg = <0x0 0x2a006000 0x0 0x2000>;
  399. #address-cells = <1>;
  400. #size-cells = <1>;
  401. ranges = <0x0 0x0 0x2a006000 0x2000>;
  402. scpi_lpri: scpi-shmem@0 {
  403. compatible = "phytium,ft2004-scpi-shmem";
  404. reg = <0x1000 0x800>;
  405. };
  406. };
  407. scpi_protocol: scpi {
  408. compatible = "arm,scpi";
  409. mboxes = <&mbox 0>;
  410. shmem = <&scpi_lpri>;
  411. clocks {
  412. compatible = "arm,scpi-clocks";
  413. scpi_dvfs: scpi_clocks@0 {
  414. compatible = "arm,scpi-dvfs-clocks";
  415. #clock-cells = <1>;
  416. clock-indices = <0>, <1>, <2>, <3>;
  417. clock-output-names = "c0", "c1", "c2", "c3";
  418. };
  419. };
  420. scpi_sensors: sensors {
  421. compatible = "arm,scpi-sensors";
  422. #thermal-sensor-cells = <1>;
  423. };
  424. };
  425. ixic: interrupt-controller@29000000 {
  426. compatible = "phytium,d2000-ixic";
  427. reg-names = "ctr", "hpb";
  428. reg = <0x0 0x29000000 0x0 0x00060000>,
  429. <0x0 0x29100000 0x0 0x00002000>;
  430. interrupt-controller;
  431. interrupt-parent = <&gic>;
  432. #interrupt-cells = <3>;
  433. intx-spi-base = <28>;
  434. };
  435. pcie: pcie {
  436. compatible = "pci-host-ecam-generic";
  437. device_type = "pci";
  438. #address-cells = <3>;
  439. #size-cells = <2>;
  440. #interrupt-cells = <1>;
  441. reg = <0x0 0x40000000 0x0 0x10000000>;
  442. msi-parent = <&its>;
  443. bus-range = <0x0 0xff>;
  444. interrupt-map-mask = <0x0 0x0 0x0 0x7>;
  445. interrupt-map = <0x0 0x0 0x0 0x1 &ixic GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>,
  446. <0x0 0x0 0x0 0x2 &ixic GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>,
  447. <0x0 0x0 0x0 0x3 &ixic GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>,
  448. <0x0 0x0 0x0 0x4 &ixic GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
  449. ranges = <0x01000000 0x00 0x00000000 0x0 0x50000000 0x0 0x00f00000>,
  450. <0x02000000 0x00 0x58000000 0x0 0x58000000 0x0 0x28000000>,
  451. <0x03000000 0x10 0x00000000 0x10 0x00000000 0x10 0x00000000>;
  452. };
  453. };
  454. };