ft1500a-16c-generic-psci-soc.dtsi 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * dts file for FT-1500A SoC
  4. *
  5. * Copyright (C) 2019, Phytium Technology Co., Ltd.
  6. */
  7. #include <dt-bindings/interrupt-controller/arm-gic.h>
  8. / {
  9. compatible = "phytium,ft1500a";
  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", "arm,psci-0.2", "arm,psci";
  19. method = "smc";
  20. cpu_suspend = <0xc4000001>;
  21. cpu_off = <0x84000002>;
  22. cpu_on = <0xc4000003>;
  23. };
  24. cpus {
  25. #address-cells = <2>;
  26. #size-cells = <0>;
  27. cpu-map {
  28. cluster0 {
  29. core0 {
  30. cpu = <&cpu0>;
  31. };
  32. core1 {
  33. cpu = <&cpu1>;
  34. };
  35. core2 {
  36. cpu = <&cpu2>;
  37. };
  38. core3 {
  39. cpu = <&cpu3>;
  40. };
  41. };
  42. cluster1 {
  43. core0 {
  44. cpu = <&cpu4>;
  45. };
  46. core1 {
  47. cpu = <&cpu5>;
  48. };
  49. core2 {
  50. cpu = <&cpu6>;
  51. };
  52. core3 {
  53. cpu = <&cpu7>;
  54. };
  55. };
  56. cluster2 {
  57. core0 {
  58. cpu = <&cpu8>;
  59. };
  60. core1 {
  61. cpu = <&cpu9>;
  62. };
  63. core2 {
  64. cpu = <&cpu10>;
  65. };
  66. core3 {
  67. cpu = <&cpu11>;
  68. };
  69. };
  70. cluster3 {
  71. core0 {
  72. cpu = <&cpu12>;
  73. };
  74. core1 {
  75. cpu = <&cpu13>;
  76. };
  77. core2 {
  78. cpu = <&cpu14>;
  79. };
  80. core3 {
  81. cpu = <&cpu15>;
  82. };
  83. };
  84. };
  85. idle-states {
  86. entry-method = "arm,psci";
  87. CPU_SLEEP: cpu-sleep {
  88. compatible = "arm,idle-state";
  89. local-timer-stop;
  90. arm,psci-suspend-param = <0x0010000>;
  91. entry-latency-us = <100>;
  92. exit-latency-us = <100>;
  93. min-residency-us = <200>;
  94. };
  95. };
  96. cpu0:cpu@0 {
  97. device_type = "cpu";
  98. compatible = "arm,armv8";
  99. reg = <0x0 0x000>;
  100. enable-method = "psci";
  101. cpu-idle-states = <&CPU_SLEEP>;
  102. clocks = <&cpuclk 0>;
  103. clock-latency = <10000>;
  104. cooling-min-level = <0>; /* cooling options */
  105. cooling-max-level = <5>;
  106. #cooling-cells = <2>; /* min followed by max */
  107. };
  108. cpu1:cpu@1 {
  109. device_type = "cpu";
  110. compatible = "arm,armv8";
  111. reg = <0x0 0x001>;
  112. enable-method = "psci";
  113. cpu-idle-states = <&CPU_SLEEP>;
  114. clocks = <&cpuclk 0>;
  115. clock-latency = <10000>;
  116. };
  117. cpu2:cpu@2 {
  118. device_type = "cpu";
  119. compatible = "arm,armv8";
  120. reg = <0x0 0x002>;
  121. enable-method = "psci";
  122. cpu-idle-states = <&CPU_SLEEP>;
  123. clocks = <&cpuclk 0>;
  124. clock-latency = <10000>;
  125. };
  126. cpu3:cpu@3 {
  127. device_type = "cpu";
  128. compatible = "arm,armv8";
  129. reg = <0x0 0x003>;
  130. enable-method = "psci";
  131. cpu-idle-states = <&CPU_SLEEP>;
  132. clocks = <&cpuclk 0>;
  133. clock-latency = <10000>;
  134. };
  135. cpu4:cpu@100 {
  136. device_type = "cpu";
  137. compatible = "arm,armv8";
  138. reg = <0x0 0x100>;
  139. enable-method = "psci";
  140. cpu-idle-states = <&CPU_SLEEP>;
  141. clocks = <&cpuclk 1>;
  142. clock-latency = <10000>;
  143. cooling-min-level = <0>; /* cooling options */
  144. cooling-max-level = <5>;
  145. #cooling-cells = <2>; /* min followed by max */
  146. };
  147. cpu5:cpu@101 {
  148. device_type = "cpu";
  149. compatible = "arm,armv8";
  150. reg = <0x0 0x101>;
  151. enable-method = "psci";
  152. cpu-idle-states = <&CPU_SLEEP>;
  153. clocks = <&cpuclk 1>;
  154. clock-latency = <10000>;
  155. };
  156. cpu6:cpu@102 {
  157. device_type = "cpu";
  158. compatible = "arm,armv8";
  159. reg = <0x0 0x102>;
  160. enable-method = "psci";
  161. cpu-idle-states = <&CPU_SLEEP>;
  162. clocks = <&cpuclk 1>;
  163. clock-latency = <10000>;
  164. };
  165. cpu7:cpu@103 {
  166. device_type = "cpu";
  167. compatible = "arm,armv8";
  168. reg = <0x0 0x103>;
  169. enable-method = "psci";
  170. cpu-idle-states = <&CPU_SLEEP>;
  171. clocks = <&cpuclk 1>;
  172. clock-latency = <10000>;
  173. };
  174. cpu8:cpu@200 {
  175. device_type = "cpu";
  176. compatible = "arm,armv8";
  177. reg = <0x0 0x200>;
  178. enable-method = "psci";
  179. cpu-idle-states = <&CPU_SLEEP>;
  180. clocks = <&cpuclk 2>;
  181. clock-latency = <10000>;
  182. cooling-min-level = <0>; /* cooling options */
  183. cooling-max-level = <5>;
  184. #cooling-cells = <2>; /* min followed by max */
  185. };
  186. cpu9:cpu@201 {
  187. device_type = "cpu";
  188. compatible = "arm,armv8";
  189. reg = <0x0 0x201>;
  190. enable-method = "psci";
  191. cpu-idle-states = <&CPU_SLEEP>;
  192. clocks = <&cpuclk 2>;
  193. clock-latency = <10000>;
  194. };
  195. cpu10:cpu@202 {
  196. device_type = "cpu";
  197. compatible = "arm,armv8";
  198. reg = <0x0 0x202>;
  199. enable-method = "psci";
  200. cpu-idle-states = <&CPU_SLEEP>;
  201. clocks = <&cpuclk 2>;
  202. clock-latency = <10000>;
  203. };
  204. cpu11:cpu@203 {
  205. device_type = "cpu";
  206. compatible = "arm,armv8";
  207. reg = <0x0 0x203>;
  208. enable-method = "psci";
  209. cpu-idle-states = <&CPU_SLEEP>;
  210. clocks = <&cpuclk 2>;
  211. clock-latency = <10000>;
  212. };
  213. cpu12:cpu@300 {
  214. device_type = "cpu";
  215. compatible = "arm,armv8";
  216. reg = <0x0 0x300>;
  217. enable-method = "psci";
  218. cpu-idle-states = <&CPU_SLEEP>;
  219. clocks = <&cpuclk 3>;
  220. clock-latency = <10000>;
  221. cooling-min-level = <0>; /* cooling options */
  222. cooling-max-level = <5>;
  223. #cooling-cells = <2>; /* min followed by max */
  224. };
  225. cpu13:cpu@301 {
  226. device_type = "cpu";
  227. compatible = "arm,armv8";
  228. reg = <0x0 0x301>;
  229. enable-method = "psci";
  230. cpu-idle-states = <&CPU_SLEEP>;
  231. clocks = <&cpuclk 3>;
  232. clock-latency = <10000>;
  233. };
  234. cpu14:cpu@302 {
  235. device_type = "cpu";
  236. compatible = "arm,armv8";
  237. reg = <0x0 0x302>;
  238. enable-method = "psci";
  239. cpu-idle-states = <&CPU_SLEEP>;
  240. clocks = <&cpuclk 3>;
  241. clock-latency = <10000>;
  242. };
  243. cpu15:cpu@303 {
  244. device_type = "cpu";
  245. compatible = "arm,armv8";
  246. reg = <0x0 0x303>;
  247. enable-method = "psci";
  248. cpu-idle-states = <&CPU_SLEEP>;
  249. clocks = <&cpuclk 3>;
  250. clock-latency = <10000>;
  251. };
  252. };
  253. gic: interrupt-controller@29800000 {
  254. compatible = "arm,gic-v3";
  255. #interrupt-cells = <3>;
  256. #address-cells = <2>;
  257. #size-cells = <2>;
  258. ranges;
  259. interrupt-controller;
  260. reg = <0x0 0x29800000 0 0x10000>, /* GICD */
  261. <0x0 0x29a00000 0 0x200000>, /* GICR */
  262. <0x0 0x29c00000 0 0x10000>, /* GICC */
  263. <0x0 0x29c10000 0 0x10000>, /* GICH */
  264. <0x0 0x29c20000 0 0x10000>; /* GICV */
  265. interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
  266. its: gic-its@29820000 {
  267. compatible = "arm,gic-v3-its";
  268. msi-controller;
  269. reg = <0x0 0x29820000 0x0 0x20000>;
  270. };
  271. };
  272. timer {
  273. compatible = "arm,armv8-timer";
  274. interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
  275. <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
  276. <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
  277. <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
  278. clock-frequency = <50000000>;
  279. };
  280. pmu {
  281. compatible = "arm,armv8-pmuv3";
  282. interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW>;
  283. };
  284. clocks {
  285. #address-cells = <2>;
  286. #size-cells = <2>;
  287. ranges;
  288. /* 50 MHz reference crystal */
  289. refclk: refclk {
  290. compatible = "fixed-clock";
  291. #clock-cells = <0>;
  292. clock-frequency = <50000000>;
  293. };
  294. clk_100mhz: clk_100mhz {
  295. compatible = "fixed-clock";
  296. #clock-cells = <0>;
  297. clocks = <&refclk>;
  298. clock-frequency = <100000000>;
  299. };
  300. cpuclk: cpuclk {
  301. compatible = "phytium,1500a-cpu-clock";
  302. #clock-cells = <1>;
  303. reg = <0x0 0x28100600 0x0 0x10>;
  304. clocks = <&refclk>;
  305. mode = <0x2>; /* 0: do not use pll, 1: partially use pll, 2: totally use pll */
  306. /*big-clock;*/
  307. clock-output-names = "cluster0-clk",
  308. "cluster1-clk",
  309. "cluster2-clk",
  310. "cluster3-clk";
  311. };
  312. gmacclk: gmacclk {
  313. compatible = "phytium,1500a-gmac-clock";
  314. #clock-cells = <0>;
  315. reg = <0x0 0x2810050c 0x0 0x4>;
  316. clocks = <&refclk>;
  317. clock-frequency = <500000000>;
  318. clock-output-names = "gmac-clk";
  319. };
  320. };
  321. soc {
  322. compatible = "simple-bus";
  323. #address-cells = <2>;
  324. #size-cells = <2>;
  325. dma-coherent;
  326. ranges;
  327. uart0: serial@28000000 {
  328. compatible = "snps,dw-apb-uart";
  329. reg = <0x0 0x28000000 0x0 0x1000>;
  330. clock-frequency = <50000000>;
  331. interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
  332. reg-shift = <2>;
  333. reg-io-width = <4>;
  334. status = "disabled";
  335. };
  336. uart1: serial@28001000 {
  337. compatible = "snps,dw-apb-uart";
  338. reg = <0x0 0x28001000 0x0 0x1000>;
  339. clock-frequency = <50000000>;
  340. interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
  341. reg-shift = <2>;
  342. reg-io-width = <4>;
  343. status = "disabled";
  344. };
  345. i2c0: i2c@28002000 {
  346. #address-cells = <1>;
  347. #size-cells = <0>;
  348. compatible = "snps,designware-i2c";
  349. reg = <0x0 0x28002000 0x0 0x1000>;
  350. interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
  351. clock-frequency = <100000>;
  352. clocks = <&clk_100mhz>;
  353. status = "disabled";
  354. };
  355. i2c1: i2c@28003000 {
  356. #address-cells = <1>;
  357. #size-cells = <0>;
  358. compatible = "snps,designware-i2c";
  359. reg = <0x0 0x28003000 0x0 0x1000>;
  360. interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
  361. clock-frequency = <100000>;
  362. clocks = <&clk_100mhz>;
  363. status = "disabled";
  364. };
  365. wdt0: watchdog@28004000 {
  366. compatible = "snps,dw-wdt";
  367. reg = <0x0 0x28004000 0x0 0x1000>;
  368. clocks = <&refclk>;
  369. interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
  370. status = "disabled";
  371. };
  372. wdt1: watchdog@28005000 {
  373. compatible = "snps,dw-wdt";
  374. reg = <0x0 0x28005000 0x0 0x1000>;
  375. clocks = <&refclk>;
  376. interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
  377. status = "disabled";
  378. };
  379. gpio: gpio@28006000 {
  380. compatible = "snps,dw-apb-gpio";
  381. reg = <0x0 0x28006000 0x0 0x1000>;
  382. #address-cells = <1>;
  383. #size-cells = <0>;
  384. status = "disabled";
  385. porta: gpio-controller@0 {
  386. compatible = "snps,dw-apb-gpio-port";
  387. gpio-controller;
  388. #gpio-cells = <2>;
  389. snps,nr-gpios = <8>;
  390. reg = <0>;
  391. };
  392. portb: gpio-controller@1 {
  393. compatible = "snps,dw-apb-gpio-port";
  394. gpio-controller;
  395. #gpio-cells = <2>;
  396. snps,nr-gpios = <8>;
  397. reg = <1>;
  398. };
  399. portc: gpio-controller@2 {
  400. compatible = "snps,dw-apb-gpio-port";
  401. gpio-controller;
  402. #gpio-cells = <2>;
  403. snps,nr-gpios = <8>;
  404. reg = <2>;
  405. };
  406. portd: gpio-controller@3 {
  407. compatible = "snps,dw-apb-gpio-port";
  408. gpio-controller;
  409. #gpio-cells = <2>;
  410. snps,nr-gpios = <8>;
  411. reg = <3>;
  412. };
  413. };
  414. gmac0: ethernet@28c00000 {
  415. compatible = "snps,dwmac";
  416. reg = <0 0x28c00000 0x0 0x2000>;
  417. interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
  418. interrupt-names = "macirq";
  419. clocks = <&gmacclk>;
  420. clock-names = "stmmaceth";
  421. snps,pbl = <32>;
  422. snps,fixed-burst;
  423. snps,burst_len = <0xe>;
  424. snps,force_sf_dma_mode;
  425. snps,multicast-filter-bins = <64>;
  426. snps,perfect-filter-entries = <1>;
  427. max-frame-size = <9000>;
  428. status = "disabled";
  429. };
  430. gmac1: ethernet@28c02000 {
  431. compatible = "snps,dwmac";
  432. reg = <0 0x28c02000 0x0 0x2000>;
  433. interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
  434. interrupt-names = "macirq";
  435. clocks = <&gmacclk>;
  436. clock-names = "stmmaceth";
  437. snps,pbl = <32>;
  438. snps,fixed-burst;
  439. snps,burst_len = <0xe>;
  440. snps,force_sf_dma_mode;
  441. snps,multicast-filter-bins = <64>;
  442. snps,perfect-filter-entries = <1>;
  443. max-frame-size = <9000>;
  444. status = "disabled";
  445. };
  446. pcie0: pcie-controller {
  447. compatible = "pci-host-ecam-generic";
  448. device_type = "pci";
  449. #address-cells = <3>;
  450. #size-cells = <2>;
  451. #interrupt-cells = <1>;
  452. reg = <0 0x40000000 0 0x10000000>;
  453. msi-parent = <&its>;
  454. interrupt-map-mask = <0x0000 0x0 0x0 0x7>;
  455. interrupt-map = <0x0 0x0 0x0 0x1 &gic 0x0 0x0 GIC_SPI 0x33 IRQ_TYPE_LEVEL_HIGH>,
  456. <0x0 0x0 0x0 0x2 &gic 0x0 0x0 GIC_SPI 0x34 IRQ_TYPE_LEVEL_HIGH>,
  457. <0x0 0x0 0x0 0x3 &gic 0x0 0x0 GIC_SPI 0x35 IRQ_TYPE_LEVEL_HIGH>,
  458. <0x0 0x0 0x0 0x4 &gic 0x0 0x0 GIC_SPI 0x36 IRQ_TYPE_LEVEL_HIGH>;
  459. ranges = <0x01000000 0x00 0x00000000 0x00 0x50000000 0x00 0x1000000>,
  460. <0x02000000 0x00 0x60000000 0x00 0x60000000 0x00 0x20000000>,
  461. <0x43000000 0x01 0x00000000 0x01 0x00000000 0x01 0x00000000>;
  462. };
  463. };
  464. };