blob: 048f7f51ae19eaf60c8d1700661044b317795740 [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/ {
10 compatible = "arm,tc0";
11 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
Usama Arifbec5afd2020-04-17 16:13:39 +010081 CPU0:cpu@0 {
82 device_type = "cpu";
83 compatible = "arm,armv8";
84 reg = <0x0>;
85 enable-method = "psci";
86 clocks = <&scmi_dvfs 0>;
Usama Arif57900782020-08-12 17:14:37 +010087 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Usama Arifbec5afd2020-04-17 16:13:39 +010088 };
89
90 CPU1:cpu@100 {
91 device_type = "cpu";
92 compatible = "arm,armv8";
93 reg = <0x100>;
94 enable-method = "psci";
95 clocks = <&scmi_dvfs 0>;
Usama Arif57900782020-08-12 17:14:37 +010096 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Usama Arifbec5afd2020-04-17 16:13:39 +010097 };
98
99 CPU2:cpu@200 {
100 device_type = "cpu";
101 compatible = "arm,armv8";
102 reg = <0x200>;
103 enable-method = "psci";
104 clocks = <&scmi_dvfs 0>;
Usama Arif57900782020-08-12 17:14:37 +0100105 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Usama Arifbec5afd2020-04-17 16:13:39 +0100106 };
107
108 CPU3:cpu@300 {
109 device_type = "cpu";
110 compatible = "arm,armv8";
111 reg = <0x300>;
112 enable-method = "psci";
113 clocks = <&scmi_dvfs 0>;
Usama Arif57900782020-08-12 17:14:37 +0100114 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Usama Arifbec5afd2020-04-17 16:13:39 +0100115 };
116
Avinash Mehtaf68a0842020-10-28 16:43:28 +0000117 CPU4:cpu@400 {
118 device_type = "cpu";
119 compatible = "arm,armv8";
120 reg = <0x400>;
121 enable-method = "psci";
Usama Arif75edb752021-02-03 15:40:46 +0000122 clocks = <&scmi_dvfs 1>;
Avinash Mehtaf68a0842020-10-28 16:43:28 +0000123 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
124 };
125
126 CPU5:cpu@500 {
127 device_type = "cpu";
128 compatible = "arm,armv8";
129 reg = <0x500>;
130 enable-method = "psci";
Usama Arif75edb752021-02-03 15:40:46 +0000131 clocks = <&scmi_dvfs 1>;
Avinash Mehtaf68a0842020-10-28 16:43:28 +0000132 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
133 };
134
135 CPU6:cpu@600 {
136 device_type = "cpu";
137 compatible = "arm,armv8";
138 reg = <0x600>;
139 enable-method = "psci";
Usama Arif75edb752021-02-03 15:40:46 +0000140 clocks = <&scmi_dvfs 1>;
Avinash Mehtaf68a0842020-10-28 16:43:28 +0000141 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
142 };
143
144 CPU7:cpu@700 {
145 device_type = "cpu";
146 compatible = "arm,armv8";
147 reg = <0x700>;
148 enable-method = "psci";
Usama Arif410d50d2021-04-07 11:48:22 +0100149 clocks = <&scmi_dvfs 2>;
Avinash Mehtaf68a0842020-10-28 16:43:28 +0000150 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
151 };
152
Usama Arifbec5afd2020-04-17 16:13:39 +0100153 };
154
155 memory@80000000 {
156 device_type = "memory";
Arunachalam Ganapathy81da5582020-09-22 12:47:33 +0100157 reg = <0x0 0x80000000 0x0 0x7d000000>;
Usama Arifbec5afd2020-04-17 16:13:39 +0100158 };
159
Arunachalam Ganapathy948bb442020-12-14 12:31:32 +0000160 reserved-memory {
161 #address-cells = <2>;
162 #size-cells = <2>;
163 ranges;
164
165 optee@0xfce00000 {
166 reg = <0x00000000 0xfce00000 0 0x00200000>;
167 no-map;
168 };
169 };
170
Usama Arifbec5afd2020-04-17 16:13:39 +0100171 psci {
172 compatible = "arm,psci-1.0", "arm,psci-0.2", "arm,psci";
173 method = "smc";
174 };
175
176 sram: sram@6000000 {
177 compatible = "mmio-sram";
178 reg = <0x0 0x06000000 0x0 0x8000>;
179
180 #address-cells = <1>;
181 #size-cells = <1>;
182 ranges = <0 0x0 0x06000000 0x8000>;
183
184 cpu_scp_scmi_mem: scp-shmem@0 {
185 compatible = "arm,scmi-shmem";
186 reg = <0x0 0x80>;
187 };
188 };
189
190 mbox_db_rx: mhu@45010000 {
Usama Arifb315c702021-05-27 20:01:39 +0100191 compatible = "arm,mhuv2-rx","arm,primecell";
Usama Arifbec5afd2020-04-17 16:13:39 +0100192 reg = <0x0 0x45010000 0x0 0x1000>;
193 clocks = <&soc_refclk100mhz>;
194 clock-names = "apb_pclk";
Usama Arifb315c702021-05-27 20:01:39 +0100195 #mbox-cells = <2>;
Usama Arif884f40d2020-08-18 12:56:44 +0100196 interrupts = <0 317 4>;
Usama Arifbec5afd2020-04-17 16:13:39 +0100197 interrupt-names = "mhu_rx";
198 mhu-protocol = "doorbell";
Usama Arifb315c702021-05-27 20:01:39 +0100199 arm,mhuv2-protocols = <0 1>;
Usama Arifbec5afd2020-04-17 16:13:39 +0100200 };
201
202 mbox_db_tx: mhu@45000000 {
Usama Arifb315c702021-05-27 20:01:39 +0100203 compatible = "arm,mhuv2-tx","arm,primecell";
Usama Arifbec5afd2020-04-17 16:13:39 +0100204 reg = <0x0 0x45000000 0x0 0x1000>;
205 clocks = <&soc_refclk100mhz>;
206 clock-names = "apb_pclk";
Usama Arifb315c702021-05-27 20:01:39 +0100207 #mbox-cells = <2>;
Usama Arifbec5afd2020-04-17 16:13:39 +0100208 interrupt-names = "mhu_tx";
209 mhu-protocol = "doorbell";
Usama Arifb315c702021-05-27 20:01:39 +0100210 arm,mhuv2-protocols = <0 1>;
Usama Arifbec5afd2020-04-17 16:13:39 +0100211 };
212
213 scmi {
214 compatible = "arm,scmi";
Usama Arifbec5afd2020-04-17 16:13:39 +0100215 mbox-names = "tx", "rx";
Usama Arifb315c702021-05-27 20:01:39 +0100216 mboxes = <&mbox_db_tx 0 0 &mbox_db_rx 0 0 >;
Usama Arifbec5afd2020-04-17 16:13:39 +0100217 shmem = <&cpu_scp_scmi_mem &cpu_scp_scmi_mem>;
218 #address-cells = <1>;
219 #size-cells = <0>;
220
221 scmi_dvfs: protocol@13 {
222 reg = <0x13>;
223 #clock-cells = <1>;
224 };
225
226 scmi_clk: protocol@14 {
227 reg = <0x14>;
228 #clock-cells = <1>;
229 };
230 };
231
232 gic: interrupt-controller@2c010000 {
233 compatible = "arm,gic-600", "arm,gic-v3";
234 #address-cells = <2>;
235 #interrupt-cells = <3>;
236 #size-cells = <2>;
237 ranges;
238 interrupt-controller;
239 reg = <0x0 0x30000000 0 0x10000>, /* GICD */
Usama Ariffdfd2502021-03-30 16:39:19 +0100240 <0x0 0x30080000 0 0x200000>; /* GICR */
Usama Arifbec5afd2020-04-17 16:13:39 +0100241 interrupts = <0x1 0x9 0x4>;
242 };
243
244 timer {
245 compatible = "arm,armv8-timer";
246 interrupts = <0x1 13 0x8>,
247 <0x1 14 0x8>,
248 <0x1 11 0x8>,
249 <0x1 10 0x8>;
250 };
251
252 soc_refclk100mhz: refclk100mhz {
253 compatible = "fixed-clock";
254 #clock-cells = <0>;
255 clock-frequency = <100000000>;
256 clock-output-names = "apb_pclk";
257 };
258
259 soc_refclk60mhz: refclk60mhz {
260 compatible = "fixed-clock";
261 #clock-cells = <0>;
262 clock-frequency = <60000000>;
263 clock-output-names = "iofpga_clk";
264 };
265
266 soc_uartclk: uartclk {
267 compatible = "fixed-clock";
268 #clock-cells = <0>;
269 clock-frequency = <50000000>;
270 clock-output-names = "uartclk";
271 };
272
273 soc_uart0: uart@7ff80000 {
274 compatible = "arm,pl011", "arm,primecell";
275 reg = <0x0 0x7ff80000 0x0 0x1000>;
276 interrupts = <0x0 116 0x4>;
277 clocks = <&soc_uartclk>, <&soc_refclk100mhz>;
278 clock-names = "uartclk", "apb_pclk";
279 status = "okay";
280 };
281
282 vencoder {
283 compatible = "drm,virtual-encoder";
284
285 port {
286 vencoder_in: endpoint {
Avinash Mehtadf71a602020-07-22 16:40:07 +0100287 remote-endpoint = <&dp_pl0_out0>;
Usama Arifbec5afd2020-04-17 16:13:39 +0100288 };
289 };
290
291 display-timings {
292 panel-timing {
293 clock-frequency = <25175000>;
294 hactive = <640>;
295 vactive = <480>;
296 hfront-porch = <16>;
297 hback-porch = <48>;
298 hsync-len = <96>;
299 vfront-porch = <10>;
300 vback-porch = <33>;
301 vsync-len = <2>;
302 };
303 };
304
305 };
306
307 hdlcd: hdlcd@7ff60000 {
308 compatible = "arm,hdlcd";
309 reg = <0x0 0x7ff60000 0x0 0x1000>;
310 interrupts = <0x0 117 0x4>;
311 clocks = <&fake_hdlcd_clk>;
312 clock-names = "pxlclk";
Avinash Mehtadf71a602020-07-22 16:40:07 +0100313 status = "disabled";
Usama Arifbec5afd2020-04-17 16:13:39 +0100314
315 port {
316 hdlcd_out: endpoint {
317 remote-endpoint = <&vencoder_in>;
318 };
319 };
320 };
321
322 fake_hdlcd_clk: fake-hdlcd-clk {
323 compatible = "fixed-clock";
324 #clock-cells = <0>;
325 clock-frequency = <25175000>;
326 clock-output-names = "pxlclk";
327 };
328
329 ethernet@18000000 {
330 compatible = "smsc,lan91c111";
331 reg = <0x0 0x18000000 0x0 0x10000>;
332 interrupts = <0 109 4>;
333 };
334
335 kmi@1c060000 {
336 compatible = "arm,pl050", "arm,primecell";
337 reg = <0x0 0x001c060000 0x0 0x1000>;
338 interrupts = <0 197 4>;
339 clocks = <&bp_clock24mhz>, <&bp_clock24mhz>;
340 clock-names = "KMIREFCLK", "apb_pclk";
341 };
342
343 kmi@1c070000 {
344 compatible = "arm,pl050", "arm,primecell";
345 reg = <0x0 0x001c070000 0x0 0x1000>;
346 interrupts = <0 103 4>;
347 clocks = <&bp_clock24mhz>, <&bp_clock24mhz>;
348 clock-names = "KMIREFCLK", "apb_pclk";
349 };
350
351 bp_clock24mhz: clock24mhz {
352 compatible = "fixed-clock";
353 #clock-cells = <0>;
354 clock-frequency = <24000000>;
355 clock-output-names = "bp:clock24mhz";
356 };
357
358 virtio_block@1c130000 {
359 compatible = "virtio,mmio";
360 reg = <0x0 0x1c130000 0x0 0x200>;
361 interrupts = <0 204 4>;
362 };
363
Usama Arif1cd56dc2020-06-10 16:27:53 +0100364 sysreg: sysreg@1c010000 {
365 compatible = "arm,vexpress-sysreg";
366 reg = <0x0 0x001c010000 0x0 0x1000>;
367 gpio-controller;
368 #gpio-cells = <2>;
369 };
370
371 fixed_3v3: v2m-3v3 {
372 compatible = "regulator-fixed";
373 regulator-name = "3V3";
374 regulator-min-microvolt = <3300000>;
375 regulator-max-microvolt = <3300000>;
376 regulator-always-on;
377 };
378
379 mmci@1c050000 {
380 compatible = "arm,pl180", "arm,primecell";
381 reg = <0x0 0x001c050000 0x0 0x1000>;
382 interrupts = <0 107 0x4>,
383 <0 108 0x4>;
384 cd-gpios = <&sysreg 0 0>;
385 wp-gpios = <&sysreg 1 0>;
386 bus-width = <8>;
387 max-frequency = <12000000>;
388 vmmc-supply = <&fixed_3v3>;
389 clocks = <&bp_clock24mhz>, <&bp_clock24mhz>;
390 clock-names = "mclk", "apb_pclk";
391 };
392
Usama Arifbec5afd2020-04-17 16:13:39 +0100393 dp0: display@2cc00000 {
394 #address-cells = <1>;
395 #size-cells = <0>;
396 compatible = "arm,mali-d71";
397 reg = <0 0x2cc00000 0 0x20000>;
398 interrupts = <0 69 4>;
399 interrupt-names = "DPU";
400 clocks = <&scmi_clk 0>;
401 clock-names = "aclk";
Usama Arifbec5afd2020-04-17 16:13:39 +0100402 pl0: pipeline@0 {
403 reg = <0>;
404 clocks = <&scmi_clk 1>;
405 clock-names = "pxclk";
406 pl_id = <0>;
407 ports {
408 #address-cells = <1>;
409 #size-cells = <0>;
410 port@0 {
411 reg = <0>;
412 dp_pl0_out0: endpoint {
413 remote-endpoint = <&vencoder_in>;
414 };
415 };
416 };
417 };
418
419 pl1: pipeline@1 {
420 reg = <1>;
421 clocks = <&scmi_clk 2>;
422 clock-names = "pxclk";
423 pl_id = <1>;
424 ports {
425 #address-cells = <1>;
426 #size-cells = <0>;
427 port@0 {
428 reg = <0>;
429 };
430 };
431 };
432 };
Arunachalam Ganapathyc44e43d2020-11-17 15:05:01 +0000433
434 ffa {
435 compatible = "arm,ffa";
436 conduit = "smc";
437 mem_share_buffer = "tx";
438 };
439
440 firmware {
441 optee {
442 compatible = "linaro,optee-tz";
443 method = "ffa";
444 };
445 };
Usama Arifbec5afd2020-04-17 16:13:39 +0100446};