morello-soc.dts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492
  1. /*
  2. * Copyright (c) 2021-2023, Arm Limited. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. /dts-v1/;
  7. #include "morello.dtsi"
  8. #include "morello-coresight.dtsi"
  9. / {
  10. model = "Arm Morello System Development Platform";
  11. chosen {
  12. stdout-path = "serial0:115200n8";
  13. };
  14. reserved-memory {
  15. #address-cells = <2>;
  16. #size-cells = <2>;
  17. ranges;
  18. secure-firmware@ff000000 {
  19. reg = <0 0xff000000 0 0x01000000>;
  20. no-map;
  21. };
  22. };
  23. /*
  24. * The timings below are just to demonstrate working cpuidle.
  25. * These values may be inaccurate.
  26. */
  27. idle-states {
  28. entry-method = "psci";
  29. cluster_sleep: cluster-sleep {
  30. compatible = "arm,idle-state";
  31. arm,psci-suspend-param = <0x40000022>;
  32. local-timer-stop;
  33. entry-latency-us = <500>;
  34. exit-latency-us = <1000>;
  35. min-residency-us = <2500>;
  36. };
  37. cpu_sleep: cpu-sleep {
  38. compatible = "arm,idle-state";
  39. arm,psci-suspend-param = <0x40000002>;
  40. local-timer-stop;
  41. entry-latency-us = <150>;
  42. exit-latency-us = <300>;
  43. min-residency-us = <200>;
  44. };
  45. };
  46. cpus {
  47. #address-cells = <2>;
  48. #size-cells = <0>;
  49. cpu0: cpu0@0 {
  50. compatible = "arm,armv8";
  51. reg = <0x0 0x0>;
  52. device_type = "cpu";
  53. enable-method = "psci";
  54. clocks = <&scmi_dvfs 0>;
  55. operating-points = <
  56. /* kHz uV */
  57. 2600000 925000
  58. 2400000 875000
  59. 2200000 825000
  60. 2000000 775000
  61. 1800000 750000
  62. >;
  63. #cooling-cells = <2>;
  64. cpu-idle-states = <&cpu_sleep &cluster_sleep>;
  65. };
  66. cpu1: cpu1@100 {
  67. compatible = "arm,armv8";
  68. reg = <0x0 0x100>;
  69. device_type = "cpu";
  70. enable-method = "psci";
  71. clocks = <&scmi_dvfs 0>;
  72. operating-points = <
  73. /* kHz uV */
  74. 2600000 925000
  75. 2400000 875000
  76. 2200000 825000
  77. 2000000 775000
  78. 1800000 750000
  79. >;
  80. #cooling-cells = <2>;
  81. cpu-idle-states = <&cpu_sleep &cluster_sleep>;
  82. };
  83. cpu2: cpu2@10000 {
  84. compatible = "arm,armv8";
  85. reg = <0x0 0x10000>;
  86. device_type = "cpu";
  87. enable-method = "psci";
  88. clocks = <&scmi_dvfs 1>;
  89. operating-points = <
  90. /* kHz uV */
  91. 2600000 925000
  92. 2400000 875000
  93. 2200000 825000
  94. 2000000 775000
  95. 1800000 750000
  96. >;
  97. #cooling-cells = <2>;
  98. cpu-idle-states = <&cpu_sleep &cluster_sleep>;
  99. };
  100. cpu3: cpu3@10100 {
  101. compatible = "arm,armv8";
  102. reg = <0x0 0x10100>;
  103. device_type = "cpu";
  104. enable-method = "psci";
  105. clocks = <&scmi_dvfs 1>;
  106. operating-points = <
  107. /* kHz uV */
  108. 2600000 925000
  109. 2400000 875000
  110. 2200000 825000
  111. 2000000 775000
  112. 1800000 750000
  113. >;
  114. #cooling-cells = <2>;
  115. cpu-idle-states = <&cpu_sleep &cluster_sleep>;
  116. };
  117. };
  118. /* The first bank of memory, memory map is actually provided by UEFI. */
  119. memory@80000000 {
  120. device_type = "memory";
  121. /* [0x80000000-0xffffffff] */
  122. reg = <0x00000000 0x80000000 0x0 0x7F000000>;
  123. };
  124. memory@8080000000 {
  125. device_type = "memory";
  126. /* [0x8080000000-0x83f7ffffff] */
  127. reg = <0x00000080 0x80000000 0x3 0x78000000>;
  128. };
  129. smmu_pcie: iommu@4f400000 {
  130. compatible = "arm,smmu-v3";
  131. reg = <0 0x4f400000 0 0x40000>;
  132. interrupts = <GIC_SPI 235 IRQ_TYPE_EDGE_RISING>,
  133. <GIC_SPI 237 IRQ_TYPE_EDGE_RISING>,
  134. <GIC_SPI 40 IRQ_TYPE_EDGE_RISING>,
  135. <GIC_SPI 236 IRQ_TYPE_EDGE_RISING>;
  136. interrupt-names = "eventq", "gerror", "priq", "cmdq-sync";
  137. msi-parent = <&its2 0>;
  138. #iommu-cells = <1>;
  139. dma-coherent;
  140. };
  141. pcie_ctlr: pcie@28c0000000 {
  142. compatible = "pci-host-ecam-generic";
  143. device_type = "pci";
  144. reg = <0x28 0xC0000000 0 0x10000000>;
  145. bus-range = <0 255>;
  146. linux,pci-domain = <0>;
  147. #address-cells = <3>;
  148. #size-cells = <2>;
  149. dma-coherent;
  150. ranges = <0x01000000 0x00 0x00000000 0x00 0x6F000000 0x00 0x00800000>,
  151. <0x02000000 0x00 0x60000000 0x00 0x60000000 0x00 0x0F000000>,
  152. <0x42000000 0x09 0x00000000 0x09 0x00000000 0x1F 0xC0000000>;
  153. #interrupt-cells = <1>;
  154. interrupt-map-mask = <0 0 0 7>;
  155. interrupt-map = <0 0 0 1 &gic 0 0 0 169 IRQ_TYPE_LEVEL_HIGH>,
  156. <0 0 0 2 &gic 0 0 0 170 IRQ_TYPE_LEVEL_HIGH>,
  157. <0 0 0 3 &gic 0 0 0 171 IRQ_TYPE_LEVEL_HIGH>,
  158. <0 0 0 4 &gic 0 0 0 172 IRQ_TYPE_LEVEL_HIGH>;
  159. msi-map = <0 &its_pcie 0 0x10000>;
  160. iommu-map = <0 &smmu_pcie 0 0x10000>;
  161. status = "okay";
  162. };
  163. smmu_ccix: iommu@4f000000 {
  164. compatible = "arm,smmu-v3";
  165. reg = <0 0x4f000000 0 0x40000>;
  166. interrupts = <GIC_SPI 228 IRQ_TYPE_EDGE_RISING>,
  167. <GIC_SPI 230 IRQ_TYPE_EDGE_RISING>,
  168. <GIC_SPI 41 IRQ_TYPE_EDGE_RISING>,
  169. <GIC_SPI 229 IRQ_TYPE_EDGE_RISING>;
  170. interrupt-names = "eventq", "gerror", "priq", "cmdq-sync";
  171. msi-parent = <&its1 0>;
  172. #iommu-cells = <1>;
  173. dma-coherent;
  174. };
  175. ccix_pcie_ctlr: pcie@4fc0000000 {
  176. compatible = "pci-host-ecam-generic";
  177. device_type = "pci";
  178. reg = <0x4F 0xC0000000 0 0x10000000>;
  179. bus-range = <0 255>;
  180. linux,pci-domain = <1>;
  181. #address-cells = <3>;
  182. #size-cells = <2>;
  183. dma-coherent;
  184. ranges = <0x01000000 0x00 0x00000000 0x00 0x7F000000 0x00 0x00800000>,
  185. <0x02000000 0x00 0x70000000 0x00 0x70000000 0x00 0x0F000000>,
  186. <0x42000000 0x30 0x00000000 0x30 0x00000000 0x1F 0xC0000000>;
  187. #interrupt-cells = <1>;
  188. interrupt-map-mask = <0 0 0 7>;
  189. interrupt-map = <0 0 0 1 &gic 0 0 0 201 IRQ_TYPE_LEVEL_HIGH>,
  190. <0 0 0 2 &gic 0 0 0 202 IRQ_TYPE_LEVEL_HIGH>,
  191. <0 0 0 3 &gic 0 0 0 203 IRQ_TYPE_LEVEL_HIGH>,
  192. <0 0 0 4 &gic 0 0 0 204 IRQ_TYPE_LEVEL_HIGH>;
  193. msi-map = <0 &its_ccix 0 0x10000>;
  194. iommu-map = <0 &smmu_ccix 0 0x10000>;
  195. status = "okay";
  196. };
  197. smmu_dp: iommu@2ce00000 {
  198. compatible = "arm,smmu-v3";
  199. reg = <0 0x2ce00000 0 0x40000>;
  200. interrupts = <GIC_SPI 76 IRQ_TYPE_EDGE_RISING>,
  201. <GIC_SPI 80 IRQ_TYPE_EDGE_RISING>,
  202. <GIC_SPI 78 IRQ_TYPE_EDGE_RISING>;
  203. interrupt-names = "eventq", "gerror", "cmdq-sync";
  204. #iommu-cells = <1>;
  205. };
  206. dp0: display@2cc00000 {
  207. #address-cells = <1>;
  208. #size-cells = <0>;
  209. compatible = "arm,mali-d32", "arm,mali-d71";
  210. reg = <0 0x2cc00000 0 0x20000>;
  211. interrupts = <0 69 4>;
  212. interrupt-names = "DPU";
  213. clocks = <&dpu_aclk>;
  214. clock-names = "aclk";
  215. iommus = <&smmu_dp 0>, <&smmu_dp 1>, <&smmu_dp 2>, <&smmu_dp 3>,
  216. <&smmu_dp 8>;
  217. pl0: pipeline@0 {
  218. reg = <0>;
  219. clocks = <&scmi_clk 1>;
  220. clock-names = "pxclk";
  221. pl_id = <0>;
  222. ports {
  223. #address-cells = <1>;
  224. #size-cells = <0>;
  225. port@0 {
  226. reg = <0>;
  227. dp_pl0_out0: endpoint {
  228. remote-endpoint = <&tda998x_0_input>;
  229. };
  230. };
  231. };
  232. };
  233. };
  234. i2c@1c0f0000 {
  235. compatible = "cdns,i2c-r1p14";
  236. reg = <0x0 0x1c0f0000 0x0 0x1000>;
  237. #address-cells = <1>;
  238. #size-cells = <0>;
  239. clock-frequency = <100000>;
  240. i2c-sda-hold-time-ns = <500>;
  241. interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
  242. clocks = <&dpu_aclk>;
  243. hdmi_tx: hdmi-transmitter@70 {
  244. compatible = "nxp,tda998x";
  245. reg = <0x70>;
  246. video-ports = <0x234501>;
  247. #sound-dai-cells = <0>;
  248. audio-ports = <2 0x03>;
  249. port {
  250. tda998x_0_input: endpoint {
  251. remote-endpoint = <&dp_pl0_out0>;
  252. };
  253. };
  254. };
  255. };
  256. dpu_aclk: dpu_aclk {
  257. /* 77.1 MHz derived from 24 MHz reference clock */
  258. compatible = "fixed-clock";
  259. #clock-cells = <0>;
  260. clock-frequency = <350000000>;
  261. clock-output-names = "aclk";
  262. };
  263. gpu@2d000000 {
  264. compatible = "arm,mali-bifrost";
  265. reg = <0x0 0x2d000000 0x0 0x4000>;
  266. interrupts =
  267. <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>,
  268. <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>,
  269. <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
  270. interrupt-names =
  271. "gpu",
  272. "job",
  273. "mmu";
  274. clocks = <&clk_gpu>;
  275. clock-names = "clk_mali";
  276. status = "okay";
  277. };
  278. clk_gpu: clk_gpu {
  279. compatible = "fixed-clock";
  280. #clock-cells = <0>;
  281. clock-frequency = <650000000>;
  282. clock-output-names = "clk_mali";
  283. };
  284. firmware {
  285. scmi {
  286. compatible = "arm,scmi";
  287. mbox-names = "tx", "rx";
  288. mboxes = <&mailbox 1 0>, <&mailbox 1 1>;
  289. shmem = <&cpu_scp_hpri0>, <&cpu_scp_hpri1>;
  290. #address-cells = <1>;
  291. #size-cells = <0>;
  292. scmi_dvfs: protocol@13 {
  293. reg = <0x13>;
  294. #clock-cells = <1>;
  295. };
  296. scmi_clk: protocol@14 {
  297. reg = <0x14>;
  298. #clock-cells = <1>;
  299. };
  300. scmi_sensor: protocol@15 {
  301. reg = <0x15>;
  302. #thermal-sensor-cells = <1>;
  303. };
  304. };
  305. };
  306. thermal-zones {
  307. clus0-thermal {
  308. polling-delay-passive = <200>; /* ms */
  309. polling-delay = <1000>; /* ms */
  310. thermal-sensors = <&scmi_sensor 0>;
  311. trips {
  312. clus0_alarm: clus0-alarm {
  313. temperature = <85000>; /* millicelsius */
  314. hysteresis = <1000>; /* millicelsius */
  315. type = "passive";
  316. };
  317. clus0_shutdown: clus0-shutdown {
  318. temperature = <90000>; /* millicelsius */
  319. hysteresis = <0>; /* millicelsius */
  320. type = "critical";
  321. };
  322. };
  323. cooling-maps {
  324. map0 {
  325. trip = <&clus0_alarm>;
  326. cooling-device = <&cpu0 4 4>, <&cpu1 4 4>;
  327. };
  328. };
  329. };
  330. clus1-thermal {
  331. polling-delay-passive = <200>; /* ms */
  332. polling-delay = <1000>; /* ms */
  333. thermal-sensors = <&scmi_sensor 1>;
  334. trips {
  335. clus1_alarm: clus1-alarm {
  336. temperature = <85000>; /* millicelsius */
  337. hysteresis = <1000>; /* millicelsius */
  338. type = "passive";
  339. };
  340. clus1_shutdown: clus1-shutdown {
  341. temperature = <90000>; /* millicelsius */
  342. hysteresis = <0>; /* millicelsius */
  343. type = "critical";
  344. };
  345. };
  346. cooling-maps {
  347. map0 {
  348. trip = <&clus1_alarm>;
  349. cooling-device = <&cpu2 4 4>, <&cpu3 4 4>;
  350. };
  351. };
  352. };
  353. sys-thermal {
  354. polling-delay-passive = <200>; /* ms */
  355. polling-delay = <1000>; /* ms */
  356. thermal-sensors = <&scmi_sensor 2>;
  357. trips {
  358. sys_alarm: sys-alarm {
  359. temperature = <85000>; /* millicelsius */
  360. hysteresis = <1000>; /* millicelsius */
  361. type = "passive";
  362. };
  363. sys_shutdown: sys-shutdown {
  364. temperature = <90000>; /* millicelsius */
  365. hysteresis = <0>; /* millicelsius */
  366. type = "critical";
  367. };
  368. };
  369. cooling-maps {
  370. map0 {
  371. trip = <&sys_alarm>;
  372. cooling-device = <&cpu0 4 4>,
  373. <&cpu1 4 4>,
  374. <&cpu2 4 4>,
  375. <&cpu3 4 4>;
  376. };
  377. };
  378. };
  379. };
  380. iofpga_i2s: xlnx-i2s@1c150000 {
  381. #sound-dai-cells = <0>;
  382. compatible = "xlnx,i2s-transmitter-1.0";
  383. #address-cells = <1>;
  384. #size-cells = <0>;
  385. reg = <0x0 0x1c150000 0x0 0x10000>;
  386. xlnx,dwidth = <0x18>;
  387. xlnx,num-channels = <1>;
  388. };
  389. audio_formatter: audio-formatter@1c100000 {
  390. compatible = "xlnx,audio-formatter-1.0";
  391. reg = <0x0 0x1c000000 0x0 0x10000>;
  392. #sound-dai-cells = <0>;
  393. interrupt-names = "irq_mm2s";
  394. interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>;
  395. clock-names = "s_axi_lite_aclk", "aud_mclk", "m_axis_mm2s_aclk";
  396. clocks = <&soc_refclk85mhz>, <&i2s_audclk>, <&soc_refclk85mhz>;
  397. };
  398. sound {
  399. compatible = "simple-audio-card";
  400. simple-audio-card,format = "i2s";
  401. simple-audio-card,bitclock-master = <&audio_master>;
  402. simple-audio-card,frame-master = <&audio_master>;
  403. audio_master: simple-audio-card,cpu {
  404. sound-dai = <&iofpga_i2s>;
  405. clocks = <&i2s_audclk>;
  406. };
  407. simple-audio-card,codec {
  408. sound-dai = <&hdmi_tx>;
  409. };
  410. simple-audio-card,plat {
  411. sound-dai = <&audio_formatter>;
  412. };
  413. };
  414. i2s_audclk: i2s_audclk {
  415. compatible = "fixed-clock";
  416. #clock-cells = <0>;
  417. clock-frequency = <12288000>;
  418. clock-output-names = "iofpga:i2s_audclk";
  419. };
  420. };
  421. &gic {
  422. reg = <0x0 0x30000000 0 0x10000>, /* GICD */
  423. <0x0 0x300c0000 0 0x80000>; /* GICR */
  424. interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
  425. its1: msi-controller@30040000 {
  426. compatible = "arm,gic-v3-its";
  427. msi-controller;
  428. #msi-cells = <1>;
  429. reg = <0x0 0x30040000 0x0 0x20000>;
  430. };
  431. its2: msi-controller@30060000 {
  432. compatible = "arm,gic-v3-its";
  433. msi-controller;
  434. #msi-cells = <1>;
  435. reg = <0x0 0x30060000 0x0 0x20000>;
  436. };
  437. its_ccix: msi-controller@30080000 {
  438. compatible = "arm,gic-v3-its";
  439. msi-controller;
  440. #msi-cells = <1>;
  441. reg = <0x0 0x30080000 0x0 0x20000>;
  442. };
  443. its_pcie: msi-controller@300a0000 {
  444. compatible = "arm,gic-v3-its";
  445. msi-controller;
  446. #msi-cells = <1>;
  447. reg = <0x0 0x300a0000 0x0 0x20000>;
  448. };
  449. };