blob: 891a4c903b8714a95b8969542eb64f20e2453ff9 [file] [log] [blame]
Usama Arifbec5afd2020-04-17 16:13:39 +01001/*
Usama Ariffdfd2502021-03-30 16:39:19 +01002 * Copyright (c) 2020-2021, Arm Limited. All rights reserved.
Usama Arifbec5afd2020-04-17 16:13:39 +01003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7/dts-v1/;
8
9/ {
Usama Ariff1513622021-04-09 17:07:41 +010010 compatible = "arm,tc";
Usama Arifbec5afd2020-04-17 16:13:39 +010011 interrupt-parent = <&gic>;
12 #address-cells = <2>;
13 #size-cells = <2>;
14
15 aliases {
16 serial0 = &soc_uart0;
17 };
18
19 chosen {
Nikos Nikoleris35800bd2021-01-21 13:50:25 +000020 stdout-path = "serial0:115200n8";
Usama Arifbec5afd2020-04-17 16:13:39 +010021 };
22
23 cpus {
24 #address-cells = <1>;
25 #size-cells = <0>;
26
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 };
Avinash Mehtaf68a0842020-10-28 16:43:28 +000041 core4 {
42 cpu = <&CPU4>;
43 };
44 core5 {
45 cpu = <&CPU5>;
46 };
47 core6 {
48 cpu = <&CPU6>;
49 };
50 core7 {
51 cpu = <&CPU7>;
52 };
Usama Arifbec5afd2020-04-17 16:13:39 +010053 };
54 };
55
Usama Arif57900782020-08-12 17:14:37 +010056 /*
57 * The timings below are just to demonstrate working cpuidle.
58 * These values may be inaccurate.
59 */
60 idle-states {
61 entry-method = "arm,psci";
62
63 CPU_SLEEP_0: cpu-sleep-0 {
64 compatible = "arm,idle-state";
65 arm,psci-suspend-param = <0x0010000>;
66 local-timer-stop;
67 entry-latency-us = <300>;
68 exit-latency-us = <1200>;
69 min-residency-us = <2000>;
70 };
71 CLUSTER_SLEEP_0: cluster-sleep-0 {
72 compatible = "arm,idle-state";
73 arm,psci-suspend-param = <0x1010000>;
74 local-timer-stop;
75 entry-latency-us = <400>;
76 exit-latency-us = <1200>;
77 min-residency-us = <2500>;
78 };
79 };
80
Chris Kayc2d29ba2021-05-18 18:49:51 +010081 amus {
82 amu: amu-0 {
83 #address-cells = <1>;
84 #size-cells = <0>;
85
86 mpmm_gear0: counter@0 {
87 reg = <0>;
88
89 enable-at-el3;
90 };
91
92 mpmm_gear1: counter@1 {
93 reg = <1>;
94
95 enable-at-el3;
96 };
97
98 mpmm_gear2: counter@2 {
99 reg = <2>;
100
101 enable-at-el3;
102 };
103 };
104 };
105
Usama Arifbec5afd2020-04-17 16:13:39 +0100106 CPU0:cpu@0 {
107 device_type = "cpu";
108 compatible = "arm,armv8";
109 reg = <0x0>;
110 enable-method = "psci";
111 clocks = <&scmi_dvfs 0>;
Usama Arif57900782020-08-12 17:14:37 +0100112 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Usama Arifecbc8462021-06-14 12:38:37 +0100113 capacity-dmips-mhz = <406>;
Chris Kayc2d29ba2021-05-18 18:49:51 +0100114 amu = <&amu>;
115 supports-mpmm;
Usama Arifbec5afd2020-04-17 16:13:39 +0100116 };
117
118 CPU1:cpu@100 {
119 device_type = "cpu";
120 compatible = "arm,armv8";
121 reg = <0x100>;
122 enable-method = "psci";
123 clocks = <&scmi_dvfs 0>;
Usama Arif57900782020-08-12 17:14:37 +0100124 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Usama Arifecbc8462021-06-14 12:38:37 +0100125 capacity-dmips-mhz = <406>;
Chris Kayc2d29ba2021-05-18 18:49:51 +0100126 amu = <&amu>;
127 supports-mpmm;
Usama Arifbec5afd2020-04-17 16:13:39 +0100128 };
129
130 CPU2:cpu@200 {
131 device_type = "cpu";
132 compatible = "arm,armv8";
133 reg = <0x200>;
134 enable-method = "psci";
135 clocks = <&scmi_dvfs 0>;
Usama Arif57900782020-08-12 17:14:37 +0100136 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Usama Arifecbc8462021-06-14 12:38:37 +0100137 capacity-dmips-mhz = <406>;
Chris Kayc2d29ba2021-05-18 18:49:51 +0100138 amu = <&amu>;
139 supports-mpmm;
Usama Arifbec5afd2020-04-17 16:13:39 +0100140 };
141
142 CPU3:cpu@300 {
143 device_type = "cpu";
144 compatible = "arm,armv8";
145 reg = <0x300>;
146 enable-method = "psci";
147 clocks = <&scmi_dvfs 0>;
Usama Arif57900782020-08-12 17:14:37 +0100148 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Usama Arifecbc8462021-06-14 12:38:37 +0100149 capacity-dmips-mhz = <406>;
Chris Kayc2d29ba2021-05-18 18:49:51 +0100150 amu = <&amu>;
151 supports-mpmm;
Usama Arifbec5afd2020-04-17 16:13:39 +0100152 };
153
Avinash Mehtaf68a0842020-10-28 16:43:28 +0000154 CPU4:cpu@400 {
155 device_type = "cpu";
156 compatible = "arm,armv8";
157 reg = <0x400>;
158 enable-method = "psci";
Usama Arif75edb752021-02-03 15:40:46 +0000159 clocks = <&scmi_dvfs 1>;
Avinash Mehtaf68a0842020-10-28 16:43:28 +0000160 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Usama Arifecbc8462021-06-14 12:38:37 +0100161 capacity-dmips-mhz = <912>;
Chris Kayc2d29ba2021-05-18 18:49:51 +0100162 amu = <&amu>;
163 supports-mpmm;
Avinash Mehtaf68a0842020-10-28 16:43:28 +0000164 };
165
166 CPU5:cpu@500 {
167 device_type = "cpu";
168 compatible = "arm,armv8";
169 reg = <0x500>;
170 enable-method = "psci";
Usama Arif75edb752021-02-03 15:40:46 +0000171 clocks = <&scmi_dvfs 1>;
Avinash Mehtaf68a0842020-10-28 16:43:28 +0000172 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Usama Arifecbc8462021-06-14 12:38:37 +0100173 capacity-dmips-mhz = <912>;
Chris Kayc2d29ba2021-05-18 18:49:51 +0100174 amu = <&amu>;
175 supports-mpmm;
Avinash Mehtaf68a0842020-10-28 16:43:28 +0000176 };
177
178 CPU6:cpu@600 {
179 device_type = "cpu";
180 compatible = "arm,armv8";
181 reg = <0x600>;
182 enable-method = "psci";
Usama Arif75edb752021-02-03 15:40:46 +0000183 clocks = <&scmi_dvfs 1>;
Avinash Mehtaf68a0842020-10-28 16:43:28 +0000184 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Usama Arifecbc8462021-06-14 12:38:37 +0100185 capacity-dmips-mhz = <912>;
Chris Kayc2d29ba2021-05-18 18:49:51 +0100186 amu = <&amu>;
187 supports-mpmm;
Avinash Mehtaf68a0842020-10-28 16:43:28 +0000188 };
189
190 CPU7:cpu@700 {
191 device_type = "cpu";
192 compatible = "arm,armv8";
193 reg = <0x700>;
194 enable-method = "psci";
Usama Arif410d50d2021-04-07 11:48:22 +0100195 clocks = <&scmi_dvfs 2>;
Avinash Mehtaf68a0842020-10-28 16:43:28 +0000196 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Usama Arifecbc8462021-06-14 12:38:37 +0100197 capacity-dmips-mhz = <1024>;
Chris Kayc2d29ba2021-05-18 18:49:51 +0100198 amu = <&amu>;
199 supports-mpmm;
Avinash Mehtaf68a0842020-10-28 16:43:28 +0000200 };
201
Usama Arifbec5afd2020-04-17 16:13:39 +0100202 };
203
Arunachalam Ganapathy948bb442020-12-14 12:31:32 +0000204 reserved-memory {
205 #address-cells = <2>;
206 #size-cells = <2>;
207 ranges;
208
Anders Delliena6c9b722021-12-08 21:57:21 +0000209 linux,cma {
210 compatible = "shared-dma-pool";
211 reusable;
212 size = <0x0 0x8000000>;
213 linux,cma-default;
214 };
215
Arunachalam Ganapathy948bb442020-12-14 12:31:32 +0000216 optee@0xfce00000 {
217 reg = <0x00000000 0xfce00000 0 0x00200000>;
218 no-map;
219 };
220 };
221
Usama Arifbec5afd2020-04-17 16:13:39 +0100222 psci {
Usama Arif7a64bfa2021-05-27 20:09:17 +0100223 compatible = "arm,psci-1.0", "arm,psci-0.2";
Usama Arifbec5afd2020-04-17 16:13:39 +0100224 method = "smc";
225 };
226
227 sram: sram@6000000 {
228 compatible = "mmio-sram";
229 reg = <0x0 0x06000000 0x0 0x8000>;
230
231 #address-cells = <1>;
232 #size-cells = <1>;
233 ranges = <0 0x0 0x06000000 0x8000>;
234
235 cpu_scp_scmi_mem: scp-shmem@0 {
236 compatible = "arm,scmi-shmem";
237 reg = <0x0 0x80>;
238 };
239 };
240
241 mbox_db_rx: mhu@45010000 {
Usama Arifb315c702021-05-27 20:01:39 +0100242 compatible = "arm,mhuv2-rx","arm,primecell";
Usama Arifbec5afd2020-04-17 16:13:39 +0100243 reg = <0x0 0x45010000 0x0 0x1000>;
244 clocks = <&soc_refclk100mhz>;
245 clock-names = "apb_pclk";
Usama Arifb315c702021-05-27 20:01:39 +0100246 #mbox-cells = <2>;
Usama Arif884f40d2020-08-18 12:56:44 +0100247 interrupts = <0 317 4>;
Usama Arifbec5afd2020-04-17 16:13:39 +0100248 interrupt-names = "mhu_rx";
249 mhu-protocol = "doorbell";
Usama Arifb315c702021-05-27 20:01:39 +0100250 arm,mhuv2-protocols = <0 1>;
Usama Arifbec5afd2020-04-17 16:13:39 +0100251 };
252
253 mbox_db_tx: mhu@45000000 {
Usama Arifb315c702021-05-27 20:01:39 +0100254 compatible = "arm,mhuv2-tx","arm,primecell";
Usama Arifbec5afd2020-04-17 16:13:39 +0100255 reg = <0x0 0x45000000 0x0 0x1000>;
256 clocks = <&soc_refclk100mhz>;
257 clock-names = "apb_pclk";
Usama Arifb315c702021-05-27 20:01:39 +0100258 #mbox-cells = <2>;
Usama Arifbec5afd2020-04-17 16:13:39 +0100259 interrupt-names = "mhu_tx";
260 mhu-protocol = "doorbell";
Usama Arifb315c702021-05-27 20:01:39 +0100261 arm,mhuv2-protocols = <0 1>;
Usama Arifbec5afd2020-04-17 16:13:39 +0100262 };
263
264 scmi {
265 compatible = "arm,scmi";
Usama Arifbec5afd2020-04-17 16:13:39 +0100266 mbox-names = "tx", "rx";
Usama Arifb315c702021-05-27 20:01:39 +0100267 mboxes = <&mbox_db_tx 0 0 &mbox_db_rx 0 0 >;
Usama Arifbec5afd2020-04-17 16:13:39 +0100268 shmem = <&cpu_scp_scmi_mem &cpu_scp_scmi_mem>;
269 #address-cells = <1>;
270 #size-cells = <0>;
271
272 scmi_dvfs: protocol@13 {
273 reg = <0x13>;
274 #clock-cells = <1>;
275 };
276
277 scmi_clk: protocol@14 {
278 reg = <0x14>;
279 #clock-cells = <1>;
280 };
281 };
282
283 gic: interrupt-controller@2c010000 {
284 compatible = "arm,gic-600", "arm,gic-v3";
285 #address-cells = <2>;
286 #interrupt-cells = <3>;
287 #size-cells = <2>;
288 ranges;
289 interrupt-controller;
290 reg = <0x0 0x30000000 0 0x10000>, /* GICD */
Usama Ariffdfd2502021-03-30 16:39:19 +0100291 <0x0 0x30080000 0 0x200000>; /* GICR */
Usama Arifbec5afd2020-04-17 16:13:39 +0100292 interrupts = <0x1 0x9 0x4>;
293 };
294
295 timer {
296 compatible = "arm,armv8-timer";
297 interrupts = <0x1 13 0x8>,
298 <0x1 14 0x8>,
299 <0x1 11 0x8>,
300 <0x1 10 0x8>;
301 };
302
303 soc_refclk100mhz: refclk100mhz {
304 compatible = "fixed-clock";
305 #clock-cells = <0>;
306 clock-frequency = <100000000>;
307 clock-output-names = "apb_pclk";
308 };
309
310 soc_refclk60mhz: refclk60mhz {
311 compatible = "fixed-clock";
312 #clock-cells = <0>;
313 clock-frequency = <60000000>;
314 clock-output-names = "iofpga_clk";
315 };
316
317 soc_uartclk: uartclk {
318 compatible = "fixed-clock";
319 #clock-cells = <0>;
320 clock-frequency = <50000000>;
321 clock-output-names = "uartclk";
322 };
323
324 soc_uart0: uart@7ff80000 {
325 compatible = "arm,pl011", "arm,primecell";
326 reg = <0x0 0x7ff80000 0x0 0x1000>;
327 interrupts = <0x0 116 0x4>;
328 clocks = <&soc_uartclk>, <&soc_refclk100mhz>;
329 clock-names = "uartclk", "apb_pclk";
330 status = "okay";
331 };
332
333 vencoder {
334 compatible = "drm,virtual-encoder";
335
336 port {
337 vencoder_in: endpoint {
Avinash Mehtadf71a602020-07-22 16:40:07 +0100338 remote-endpoint = <&dp_pl0_out0>;
Usama Arifbec5afd2020-04-17 16:13:39 +0100339 };
340 };
341
342 display-timings {
343 panel-timing {
344 clock-frequency = <25175000>;
345 hactive = <640>;
346 vactive = <480>;
347 hfront-porch = <16>;
348 hback-porch = <48>;
349 hsync-len = <96>;
350 vfront-porch = <10>;
351 vback-porch = <33>;
352 vsync-len = <2>;
353 };
354 };
355
356 };
357
358 hdlcd: hdlcd@7ff60000 {
359 compatible = "arm,hdlcd";
360 reg = <0x0 0x7ff60000 0x0 0x1000>;
361 interrupts = <0x0 117 0x4>;
362 clocks = <&fake_hdlcd_clk>;
363 clock-names = "pxlclk";
Avinash Mehtadf71a602020-07-22 16:40:07 +0100364 status = "disabled";
Usama Arifbec5afd2020-04-17 16:13:39 +0100365
366 port {
367 hdlcd_out: endpoint {
368 remote-endpoint = <&vencoder_in>;
369 };
370 };
371 };
372
373 fake_hdlcd_clk: fake-hdlcd-clk {
374 compatible = "fixed-clock";
375 #clock-cells = <0>;
376 clock-frequency = <25175000>;
377 clock-output-names = "pxlclk";
378 };
379
380 ethernet@18000000 {
381 compatible = "smsc,lan91c111";
382 reg = <0x0 0x18000000 0x0 0x10000>;
383 interrupts = <0 109 4>;
384 };
385
386 kmi@1c060000 {
387 compatible = "arm,pl050", "arm,primecell";
388 reg = <0x0 0x001c060000 0x0 0x1000>;
389 interrupts = <0 197 4>;
390 clocks = <&bp_clock24mhz>, <&bp_clock24mhz>;
391 clock-names = "KMIREFCLK", "apb_pclk";
392 };
393
394 kmi@1c070000 {
395 compatible = "arm,pl050", "arm,primecell";
396 reg = <0x0 0x001c070000 0x0 0x1000>;
397 interrupts = <0 103 4>;
398 clocks = <&bp_clock24mhz>, <&bp_clock24mhz>;
399 clock-names = "KMIREFCLK", "apb_pclk";
400 };
401
402 bp_clock24mhz: clock24mhz {
403 compatible = "fixed-clock";
404 #clock-cells = <0>;
405 clock-frequency = <24000000>;
406 clock-output-names = "bp:clock24mhz";
407 };
408
409 virtio_block@1c130000 {
410 compatible = "virtio,mmio";
411 reg = <0x0 0x1c130000 0x0 0x200>;
412 interrupts = <0 204 4>;
413 };
414
Usama Arif1cd56dc2020-06-10 16:27:53 +0100415 sysreg: sysreg@1c010000 {
416 compatible = "arm,vexpress-sysreg";
417 reg = <0x0 0x001c010000 0x0 0x1000>;
418 gpio-controller;
419 #gpio-cells = <2>;
420 };
421
422 fixed_3v3: v2m-3v3 {
423 compatible = "regulator-fixed";
424 regulator-name = "3V3";
425 regulator-min-microvolt = <3300000>;
426 regulator-max-microvolt = <3300000>;
427 regulator-always-on;
428 };
429
430 mmci@1c050000 {
431 compatible = "arm,pl180", "arm,primecell";
432 reg = <0x0 0x001c050000 0x0 0x1000>;
433 interrupts = <0 107 0x4>,
434 <0 108 0x4>;
435 cd-gpios = <&sysreg 0 0>;
436 wp-gpios = <&sysreg 1 0>;
437 bus-width = <8>;
438 max-frequency = <12000000>;
439 vmmc-supply = <&fixed_3v3>;
440 clocks = <&bp_clock24mhz>, <&bp_clock24mhz>;
441 clock-names = "mclk", "apb_pclk";
442 };
443
Anders Dellien7a849802022-01-01 21:51:21 +0000444 gpu: gpu@2d000000 {
445 compatible = "arm,mali-midgard";
446 reg = <0x0 0x2d000000 0x0 0x200000>;
447 interrupts = <0 66 4>, <0 67 4>, <0 65 4>;
448 interrupt-names = "JOB", "MMU", "GPU";
449 clocks = <&soc_refclk100mhz>;
450 clock-names = "clk_mali";
451 operating-points = <
452 /* KHz uV */
453 50000 820000
454 >;
455 };
456
Usama Arifbec5afd2020-04-17 16:13:39 +0100457 dp0: display@2cc00000 {
458 #address-cells = <1>;
459 #size-cells = <0>;
460 compatible = "arm,mali-d71";
461 reg = <0 0x2cc00000 0 0x20000>;
462 interrupts = <0 69 4>;
463 interrupt-names = "DPU";
464 clocks = <&scmi_clk 0>;
465 clock-names = "aclk";
Usama Arifbec5afd2020-04-17 16:13:39 +0100466 pl0: pipeline@0 {
467 reg = <0>;
468 clocks = <&scmi_clk 1>;
469 clock-names = "pxclk";
470 pl_id = <0>;
471 ports {
472 #address-cells = <1>;
473 #size-cells = <0>;
474 port@0 {
475 reg = <0>;
476 dp_pl0_out0: endpoint {
477 remote-endpoint = <&vencoder_in>;
478 };
479 };
480 };
481 };
482
483 pl1: pipeline@1 {
484 reg = <1>;
485 clocks = <&scmi_clk 2>;
486 clock-names = "pxclk";
487 pl_id = <1>;
488 ports {
489 #address-cells = <1>;
490 #size-cells = <0>;
491 port@0 {
492 reg = <0>;
493 };
494 };
495 };
496 };
Arunachalam Ganapathyc44e43d2020-11-17 15:05:01 +0000497
Davidson K65361052021-10-13 18:49:41 +0530498 ete0 {
499 compatible = "arm,embedded-trace-extension";
500 cpu = <&CPU0>;
501 };
502
503 ete1 {
504 compatible = "arm,embedded-trace-extension";
505 cpu = <&CPU1>;
506 };
507
508 ete2 {
509 compatible = "arm,embedded-trace-extension";
510 cpu = <&CPU2>;
511 };
512
513 ete3 {
514 compatible = "arm,embedded-trace-extension";
515 cpu = <&CPU3>;
516 };
517
518 ete4 {
519 compatible = "arm,embedded-trace-extension";
520 cpu = <&CPU4>;
521 };
522
523 ete5 {
524 compatible = "arm,embedded-trace-extension";
525 cpu = <&CPU5>;
526 };
527
528 ete6 {
529 compatible = "arm,embedded-trace-extension";
530 cpu = <&CPU6>;
531 };
532
533 ete7 {
534 compatible = "arm,embedded-trace-extension";
535 cpu = <&CPU7>;
536 };
537
538 trbe0 {
539 compatible = "arm,trace-buffer-extension";
540 interrupts = <1 2 4>;
541 };
Usama Arifbec5afd2020-04-17 16:13:39 +0100542};