blob: e32d215216a75494dbcc9dfcfad1565bcd8fe59a [file] [log] [blame]
Usama Arifbec5afd2020-04-17 16:13:39 +01001/*
annsai017c607f22023-02-20 13:34:57 +00002 * Copyright (c) 2020-2024, Arm Limited. All rights reserved.
Usama Arifbec5afd2020-04-17 16:13:39 +01003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Leo Yan9add6712024-04-24 10:03:50 +01007/* If SCMI power domain control is enabled */
8#if TC_SCMI_PD_CTRL_EN
9#define GPU_SCMI_PD_IDX (PLAT_MAX_CPUS_PER_CLUSTER + 1)
10#define DPU_SCMI_PD_IDX (PLAT_MAX_CPUS_PER_CLUSTER + 2)
11#endif /* TC_SCMI_PD_CTRL_EN */
12
13/* Use SCMI controlled clocks */
14#if TC_DPU_USE_SCMI_CLK
15#define DPU_CLK_ATTR1 \
16 clocks = <&scmi_clk 0>; \
17 clock-names = "aclk"
18
19#define DPU_CLK_ATTR2 \
20 clocks = <&scmi_clk 1>; \
21 clock-names = "pxclk"
22
23#define DPU_CLK_ATTR3 \
24 clocks = <&scmi_clk 2>; \
25 clock-names = "pxclk" \
26/* Use fixed clocks */
27#else /* !TC_DPU_USE_SCMI_CLK */
28#define DPU_CLK_ATTR1 \
29 clocks = <&dpu_aclk>; \
30 clock-names = "aclk"
31
32#define DPU_CLK_ATTR2 \
33 clocks = <&dpu_pixel_clk>, <&dpu_aclk>; \
34 clock-names = "pxclk", "aclk"
35
36#define DPU_CLK_ATTR3 DPU_CLK_ATTR2
37#endif /* !TC_DPU_USE_SCMI_CLK */
Kshitij Sisodiab32a8f42023-08-16 09:46:05 +010038
Usama Arifbec5afd2020-04-17 16:13:39 +010039/ {
Usama Ariff1513622021-04-09 17:07:41 +010040 compatible = "arm,tc";
Usama Arifbec5afd2020-04-17 16:13:39 +010041 interrupt-parent = <&gic>;
42 #address-cells = <2>;
43 #size-cells = <2>;
44
45 aliases {
Boyan Karatotev13b8e742023-11-14 13:57:56 +000046 serial0 = &os_uart;
Usama Arifbec5afd2020-04-17 16:13:39 +010047 };
48
49 chosen {
Ben Horgan7160e0d2023-12-11 16:01:10 +000050 /*
51 * Add some dummy entropy for Linux so it
52 * doesn't delay the boot waiting for it.
53 */
54 rng-seed = <0x01 0x02 0x04 0x05 0x06 0x07 0x08 \
55 0x01 0x02 0x04 0x05 0x06 0x07 0x08 \
56 0x01 0x02 0x04 0x05 0x06 0x07 0x08 \
57 0x01 0x02 0x04 0x05 0x06 0x07 0x08 \
58 0x01 0x02 0x04 0x05 0x06 0x07 0x08 \
59 0x01 0x02 0x04 0x05 0x06 0x07 0x08 \
60 0x01 0x02 0x04 0x05 0x06 0x07 0x08 \
61 0x01 0x02 0x04 0x05 0x06 0x07 0x08 >;
Usama Arifbec5afd2020-04-17 16:13:39 +010062 };
63
64 cpus {
65 #address-cells = <1>;
66 #size-cells = <0>;
67
68 cpu-map {
69 cluster0 {
70 core0 {
71 cpu = <&CPU0>;
72 };
73 core1 {
74 cpu = <&CPU1>;
75 };
76 core2 {
77 cpu = <&CPU2>;
78 };
79 core3 {
80 cpu = <&CPU3>;
81 };
Avinash Mehtaf68a0842020-10-28 16:43:28 +000082 core4 {
83 cpu = <&CPU4>;
84 };
85 core5 {
86 cpu = <&CPU5>;
87 };
88 core6 {
89 cpu = <&CPU6>;
90 };
91 core7 {
92 cpu = <&CPU7>;
93 };
Usama Arifbec5afd2020-04-17 16:13:39 +010094 };
95 };
96
Usama Arif57900782020-08-12 17:14:37 +010097 /*
98 * The timings below are just to demonstrate working cpuidle.
99 * These values may be inaccurate.
100 */
101 idle-states {
Boyan Karatotev13b8e742023-11-14 13:57:56 +0000102 entry-method = "psci";
Usama Arif57900782020-08-12 17:14:37 +0100103
104 CPU_SLEEP_0: cpu-sleep-0 {
105 compatible = "arm,idle-state";
106 arm,psci-suspend-param = <0x0010000>;
107 local-timer-stop;
108 entry-latency-us = <300>;
109 exit-latency-us = <1200>;
110 min-residency-us = <2000>;
111 };
112 CLUSTER_SLEEP_0: cluster-sleep-0 {
113 compatible = "arm,idle-state";
114 arm,psci-suspend-param = <0x1010000>;
115 local-timer-stop;
116 entry-latency-us = <400>;
117 exit-latency-us = <1200>;
118 min-residency-us = <2500>;
119 };
120 };
121
Chris Kayc2d29ba2021-05-18 18:49:51 +0100122 amus {
123 amu: amu-0 {
124 #address-cells = <1>;
125 #size-cells = <0>;
126
127 mpmm_gear0: counter@0 {
128 reg = <0>;
Chris Kayc2d29ba2021-05-18 18:49:51 +0100129 enable-at-el3;
130 };
131
132 mpmm_gear1: counter@1 {
133 reg = <1>;
Chris Kayc2d29ba2021-05-18 18:49:51 +0100134 enable-at-el3;
135 };
136
137 mpmm_gear2: counter@2 {
138 reg = <2>;
Chris Kayc2d29ba2021-05-18 18:49:51 +0100139 enable-at-el3;
140 };
141 };
142 };
143
Usama Arifbec5afd2020-04-17 16:13:39 +0100144 CPU0:cpu@0 {
145 device_type = "cpu";
146 compatible = "arm,armv8";
147 reg = <0x0>;
148 enable-method = "psci";
149 clocks = <&scmi_dvfs 0>;
Usama Arif57900782020-08-12 17:14:37 +0100150 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Boyan Karatotev192ad5d2023-12-12 15:59:01 +0000151 capacity-dmips-mhz = <LIT_CAPACITY>;
Chris Kayc2d29ba2021-05-18 18:49:51 +0100152 amu = <&amu>;
153 supports-mpmm;
Usama Arifbec5afd2020-04-17 16:13:39 +0100154 };
155
156 CPU1:cpu@100 {
157 device_type = "cpu";
158 compatible = "arm,armv8";
159 reg = <0x100>;
160 enable-method = "psci";
161 clocks = <&scmi_dvfs 0>;
Usama Arif57900782020-08-12 17:14:37 +0100162 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Boyan Karatotev192ad5d2023-12-12 15:59:01 +0000163 capacity-dmips-mhz = <LIT_CAPACITY>;
Chris Kayc2d29ba2021-05-18 18:49:51 +0100164 amu = <&amu>;
165 supports-mpmm;
Usama Arifbec5afd2020-04-17 16:13:39 +0100166 };
167
168 CPU2:cpu@200 {
169 device_type = "cpu";
170 compatible = "arm,armv8";
171 reg = <0x200>;
172 enable-method = "psci";
Usama Arif57900782020-08-12 17:14:37 +0100173 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Chris Kayc2d29ba2021-05-18 18:49:51 +0100174 amu = <&amu>;
175 supports-mpmm;
Usama Arifbec5afd2020-04-17 16:13:39 +0100176 };
177
178 CPU3:cpu@300 {
179 device_type = "cpu";
180 compatible = "arm,armv8";
181 reg = <0x300>;
182 enable-method = "psci";
Usama Arif57900782020-08-12 17:14:37 +0100183 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Chris Kayc2d29ba2021-05-18 18:49:51 +0100184 amu = <&amu>;
185 supports-mpmm;
Usama Arifbec5afd2020-04-17 16:13:39 +0100186 };
187
Avinash Mehtaf68a0842020-10-28 16:43:28 +0000188 CPU4:cpu@400 {
189 device_type = "cpu";
190 compatible = "arm,armv8";
191 reg = <0x400>;
192 enable-method = "psci";
Usama Arif75edb752021-02-03 15:40:46 +0000193 clocks = <&scmi_dvfs 1>;
Avinash Mehtaf68a0842020-10-28 16:43:28 +0000194 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Boyan Karatotev192ad5d2023-12-12 15:59:01 +0000195 capacity-dmips-mhz = <MID_CAPACITY>;
Chris Kayc2d29ba2021-05-18 18:49:51 +0100196 amu = <&amu>;
197 supports-mpmm;
Avinash Mehtaf68a0842020-10-28 16:43:28 +0000198 };
199
200 CPU5:cpu@500 {
201 device_type = "cpu";
202 compatible = "arm,armv8";
203 reg = <0x500>;
204 enable-method = "psci";
Usama Arif75edb752021-02-03 15:40:46 +0000205 clocks = <&scmi_dvfs 1>;
Avinash Mehtaf68a0842020-10-28 16:43:28 +0000206 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Boyan Karatotev192ad5d2023-12-12 15:59:01 +0000207 capacity-dmips-mhz = <MID_CAPACITY>;
Chris Kayc2d29ba2021-05-18 18:49:51 +0100208 amu = <&amu>;
209 supports-mpmm;
Avinash Mehtaf68a0842020-10-28 16:43:28 +0000210 };
211
212 CPU6:cpu@600 {
213 device_type = "cpu";
214 compatible = "arm,armv8";
215 reg = <0x600>;
216 enable-method = "psci";
Avinash Mehtaf68a0842020-10-28 16:43:28 +0000217 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Chris Kayc2d29ba2021-05-18 18:49:51 +0100218 amu = <&amu>;
219 supports-mpmm;
Avinash Mehtaf68a0842020-10-28 16:43:28 +0000220 };
221
222 CPU7:cpu@700 {
223 device_type = "cpu";
224 compatible = "arm,armv8";
225 reg = <0x700>;
226 enable-method = "psci";
Avinash Mehtaf68a0842020-10-28 16:43:28 +0000227 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Boyan Karatotev192ad5d2023-12-12 15:59:01 +0000228 amu = <&amu>;
229 supports-mpmm;
230 };
Usama Arifbec5afd2020-04-17 16:13:39 +0100231 };
232
Arunachalam Ganapathy948bb442020-12-14 12:31:32 +0000233 reserved-memory {
234 #address-cells = <2>;
235 #size-cells = <2>;
236 ranges;
237
Anders Delliena6c9b722021-12-08 21:57:21 +0000238 linux,cma {
239 compatible = "shared-dma-pool";
240 reusable;
241 size = <0x0 0x8000000>;
242 linux,cma-default;
243 };
244
Boyan Karatotev88309be2023-12-04 16:12:08 +0000245 optee {
Davidson K4662a882022-12-14 17:38:14 +0530246 compatible = "restricted-dma-pool";
Boyan Karatotev88309be2023-12-04 16:12:08 +0000247 reg = <0x0 TC_NS_OPTEE_BASE 0x0 TC_NS_OPTEE_SIZE>;
Arunachalam Ganapathy948bb442020-12-14 12:31:32 +0000248 };
Tudor Cretu77b301a2021-09-24 12:09:53 +0000249
Boyan Karatotev88309be2023-12-04 16:12:08 +0000250 fwu_mm {
251 reg = <0x0 TC_NS_FWU_BASE 0x0 TC_NS_FWU_SIZE>;
Tudor Cretu77b301a2021-09-24 12:09:53 +0000252 no-map;
253 };
Arunachalam Ganapathy948bb442020-12-14 12:31:32 +0000254 };
255
Boyan Karatoteva439dfd2023-12-04 16:09:14 +0000256 memory {
257 device_type = "memory";
258 reg = <0x0 TC_NS_DRAM1_BASE 0x0 TC_NS_DRAM1_SIZE>,
259 <HI(PLAT_ARM_DRAM2_BASE) LO(PLAT_ARM_DRAM2_BASE)
260 HI(TC_NS_DRAM2_SIZE) LO(TC_NS_DRAM2_SIZE)>;
261 };
262
Usama Arifbec5afd2020-04-17 16:13:39 +0100263 psci {
Usama Arif7a64bfa2021-05-27 20:09:17 +0100264 compatible = "arm,psci-1.0", "arm,psci-0.2";
Usama Arifbec5afd2020-04-17 16:13:39 +0100265 method = "smc";
266 };
267
Boyan Karatotev4fef47c2023-11-15 11:29:59 +0000268 cpu-pmu {
269 compatible = "arm,armv8-pmuv3";
270 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>;
Boyan Karatotev4fef47c2023-11-15 11:29:59 +0000271 };
272
Usama Arifbec5afd2020-04-17 16:13:39 +0100273 sram: sram@6000000 {
274 compatible = "mmio-sram";
Boyan Karatoteva439dfd2023-12-04 16:09:14 +0000275 reg = <0x0 PLAT_ARM_NSRAM_BASE 0x0 PLAT_ARM_NSRAM_SIZE>;
Usama Arifbec5afd2020-04-17 16:13:39 +0100276
277 #address-cells = <1>;
278 #size-cells = <1>;
Boyan Karatoteva439dfd2023-12-04 16:09:14 +0000279 ranges = <0 0x0 PLAT_ARM_NSRAM_BASE PLAT_ARM_NSRAM_SIZE>;
Usama Arifbec5afd2020-04-17 16:13:39 +0100280
281 cpu_scp_scmi_mem: scp-shmem@0 {
282 compatible = "arm,scmi-shmem";
283 reg = <0x0 0x80>;
284 };
285 };
286
Leo Yanbd7dc052024-04-15 09:05:34 +0100287 mbox_db_rx: mhu@MHU_RX_ADDR {
Usama Arifb315c702021-05-27 20:01:39 +0100288 compatible = "arm,mhuv2-rx","arm,primecell";
Leo Yanbd7dc052024-04-15 09:05:34 +0100289 reg = <0x0 ADDRESSIFY(MHU_RX_ADDR) 0x0 0x1000>;
Boyan Karatotev13b8e742023-11-14 13:57:56 +0000290 clocks = <&soc_refclk>;
Usama Arifbec5afd2020-04-17 16:13:39 +0100291 clock-names = "apb_pclk";
Usama Arifb315c702021-05-27 20:01:39 +0100292 #mbox-cells = <2>;
Boyan Karatotev6ed3bf62023-07-07 13:33:19 +0000293 interrupts = <GIC_SPI INT_MBOX_RX IRQ_TYPE_LEVEL_HIGH>;
Usama Arifbec5afd2020-04-17 16:13:39 +0100294 interrupt-names = "mhu_rx";
Usama Arifbec5afd2020-04-17 16:13:39 +0100295 };
296
Leo Yanbd7dc052024-04-15 09:05:34 +0100297 mbox_db_tx: mhu@MHU_TX_ADDR {
Usama Arifb315c702021-05-27 20:01:39 +0100298 compatible = "arm,mhuv2-tx","arm,primecell";
Leo Yanbd7dc052024-04-15 09:05:34 +0100299 reg = <0x0 ADDRESSIFY(MHU_TX_ADDR) 0x0 0x1000>;
Boyan Karatotev13b8e742023-11-14 13:57:56 +0000300 clocks = <&soc_refclk>;
Usama Arifbec5afd2020-04-17 16:13:39 +0100301 clock-names = "apb_pclk";
Usama Arifb315c702021-05-27 20:01:39 +0100302 #mbox-cells = <2>;
Usama Arifbec5afd2020-04-17 16:13:39 +0100303 interrupt-names = "mhu_tx";
Usama Arifbec5afd2020-04-17 16:13:39 +0100304 };
305
Boyan Karatotevfdeb95f2024-04-19 13:59:11 +0100306 firmware {
307 scmi {
308 compatible = "arm,scmi";
309 mbox-names = "tx", "rx";
310 mboxes = <&mbox_db_tx 0 0 &mbox_db_rx 0 0 >;
311 shmem = <&cpu_scp_scmi_mem &cpu_scp_scmi_mem>;
312 #address-cells = <1>;
313 #size-cells = <0>;
Usama Arifbec5afd2020-04-17 16:13:39 +0100314
Kshitij Sisodia090a6aa2023-11-22 17:03:45 +0000315#if TC_SCMI_PD_CTRL_EN
Boyan Karatotevfdeb95f2024-04-19 13:59:11 +0100316 scmi_devpd: protocol@11 {
317 reg = <0x11>;
318 #power-domain-cells = <1>;
319 };
Kshitij Sisodia090a6aa2023-11-22 17:03:45 +0000320#endif /* TC_SCMI_PD_CTRL_EN */
Ben Horgan80781a52023-07-26 20:45:27 +0100321
Boyan Karatotevfdeb95f2024-04-19 13:59:11 +0100322 scmi_dvfs: protocol@13 {
323 reg = <0x13>;
324 #clock-cells = <1>;
325 };
Usama Arifbec5afd2020-04-17 16:13:39 +0100326
Boyan Karatotevfdeb95f2024-04-19 13:59:11 +0100327 scmi_clk: protocol@14 {
328 reg = <0x14>;
329 #clock-cells = <1>;
330 };
Usama Arifbec5afd2020-04-17 16:13:39 +0100331 };
332 };
333
Boyan Karatotev95562762023-11-15 11:54:33 +0000334 gic: interrupt-controller@GIC_CTRL_ADDR {
Boyan Karatotev13b8e742023-11-14 13:57:56 +0000335 compatible = "arm,gic-v3";
Usama Arifbec5afd2020-04-17 16:13:39 +0100336 #address-cells = <2>;
337 #interrupt-cells = <3>;
338 #size-cells = <2>;
339 ranges;
340 interrupt-controller;
341 reg = <0x0 0x30000000 0 0x10000>, /* GICD */
Boyan Karatotev95562762023-11-15 11:54:33 +0000342 <0x0 0x30080000 0 GIC_GICR_OFFSET>; /* GICR */
Boyan Karatotev25c4fb72023-08-08 15:37:52 +0100343 interrupts = <GIC_PPI 0x9 IRQ_TYPE_LEVEL_LOW>;
Usama Arifbec5afd2020-04-17 16:13:39 +0100344 };
345
346 timer {
347 compatible = "arm,armv8-timer";
Boyan Karatotev25c4fb72023-08-08 15:37:52 +0100348 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
349 <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
350 <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
351 <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
Usama Arifbec5afd2020-04-17 16:13:39 +0100352 };
353
Boyan Karatotev13b8e742023-11-14 13:57:56 +0000354 soc_refclk: refclk {
Usama Arifbec5afd2020-04-17 16:13:39 +0100355 compatible = "fixed-clock";
356 #clock-cells = <0>;
Boyan Karatotev95562762023-11-15 11:54:33 +0000357 clock-frequency = <1000000000>;
Usama Arifbec5afd2020-04-17 16:13:39 +0100358 clock-output-names = "apb_pclk";
359 };
360
361 soc_refclk60mhz: refclk60mhz {
362 compatible = "fixed-clock";
363 #clock-cells = <0>;
364 clock-frequency = <60000000>;
365 clock-output-names = "iofpga_clk";
366 };
367
Boyan Karatotev13b8e742023-11-14 13:57:56 +0000368 soc_uartclk: uartclk {
Usama Arifbec5afd2020-04-17 16:13:39 +0100369 compatible = "fixed-clock";
370 #clock-cells = <0>;
Boyan Karatotev6ed3bf62023-07-07 13:33:19 +0000371 clock-frequency = <UARTCLK_FREQ>;
Usama Arifbec5afd2020-04-17 16:13:39 +0100372 clock-output-names = "uartclk";
373 };
374
Boyan Karatotev95562762023-11-15 11:54:33 +0000375 /* soc_uart0 on FPGA, ap_ns_uart on FVP */
Boyan Karatotev13b8e742023-11-14 13:57:56 +0000376 os_uart: serial@2a400000 {
Usama Arifbec5afd2020-04-17 16:13:39 +0100377 compatible = "arm,pl011", "arm,primecell";
Boyan Karatotev95562762023-11-15 11:54:33 +0000378 reg = <0x0 0x2A400000 0x0 UART_OFFSET>;
Boyan Karatotev25c4fb72023-08-08 15:37:52 +0100379 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
Boyan Karatotev13b8e742023-11-14 13:57:56 +0000380 clocks = <&soc_uartclk>, <&soc_refclk>;
Usama Arifbec5afd2020-04-17 16:13:39 +0100381 clock-names = "uartclk", "apb_pclk";
382 status = "okay";
383 };
Leo Yan9add6712024-04-24 10:03:50 +0100384
385#if !TC_DPU_USE_SCMI_CLK
386 dpu_aclk: dpu_aclk {
387 compatible = "fixed-clock";
388 #clock-cells = <0>;
389 clock-frequency = <VENCODER_TIMING_CLK>;
390 clock-output-names = "fpga:dpu_aclk";
391 };
392
393 dpu_pixel_clk: dpu-pixel-clk {
394 compatible = "fixed-clock";
395 #clock-cells = <0>;
396 clock-frequency = <VENCODER_TIMING_CLK>;
397 clock-output-names = "pxclk";
398 };
399#endif /* !TC_DPU_USE_SCMI_CLK */
Usama Arifbec5afd2020-04-17 16:13:39 +0100400
401 vencoder {
402 compatible = "drm,virtual-encoder";
Usama Arifbec5afd2020-04-17 16:13:39 +0100403 port {
404 vencoder_in: endpoint {
Avinash Mehtadf71a602020-07-22 16:40:07 +0100405 remote-endpoint = <&dp_pl0_out0>;
Usama Arifbec5afd2020-04-17 16:13:39 +0100406 };
407 };
408
409 display-timings {
Boyan Karatotev13b8e742023-11-14 13:57:56 +0000410 timing-panel {
Boyan Karatotev95562762023-11-15 11:54:33 +0000411 VENCODER_TIMING;
Usama Arifbec5afd2020-04-17 16:13:39 +0100412 };
413 };
414
415 };
416
Leo Yane0c24102024-04-15 11:35:15 +0100417 ethernet: ethernet@18000000 {
Usama Arifbec5afd2020-04-17 16:13:39 +0100418 reg = <0x0 0x18000000 0x0 0x10000>;
Boyan Karatotev25c4fb72023-08-08 15:37:52 +0100419 interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
Boyan Karatotev95562762023-11-15 11:54:33 +0000420
Boyan Karatotev95562762023-11-15 11:54:33 +0000421 reg-io-width = <2>;
422 smsc,irq-push-pull;
Usama Arifbec5afd2020-04-17 16:13:39 +0100423 };
424
Usama Arifbec5afd2020-04-17 16:13:39 +0100425 bp_clock24mhz: clock24mhz {
426 compatible = "fixed-clock";
427 #clock-cells = <0>;
428 clock-frequency = <24000000>;
429 clock-output-names = "bp:clock24mhz";
430 };
431
Usama Arifbec5afd2020-04-17 16:13:39 +0100432
Usama Arif1cd56dc2020-06-10 16:27:53 +0100433 sysreg: sysreg@1c010000 {
434 compatible = "arm,vexpress-sysreg";
435 reg = <0x0 0x001c010000 0x0 0x1000>;
436 gpio-controller;
437 #gpio-cells = <2>;
438 };
439
440 fixed_3v3: v2m-3v3 {
441 compatible = "regulator-fixed";
442 regulator-name = "3V3";
443 regulator-min-microvolt = <3300000>;
444 regulator-max-microvolt = <3300000>;
445 regulator-always-on;
446 };
447
Leo Yane0c24102024-04-15 11:35:15 +0100448 mmci: mmci@1c050000 {
Usama Arif1cd56dc2020-06-10 16:27:53 +0100449 compatible = "arm,pl180", "arm,primecell";
450 reg = <0x0 0x001c050000 0x0 0x1000>;
Boyan Karatotev25c4fb72023-08-08 15:37:52 +0100451 interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>,
452 <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
Usama Arif1cd56dc2020-06-10 16:27:53 +0100453 wp-gpios = <&sysreg 1 0>;
Boyan Karatotev95562762023-11-15 11:54:33 +0000454 bus-width = <4>;
455 max-frequency = <25000000>;
Usama Arif1cd56dc2020-06-10 16:27:53 +0100456 vmmc-supply = <&fixed_3v3>;
457 clocks = <&bp_clock24mhz>, <&bp_clock24mhz>;
458 clock-names = "mclk", "apb_pclk";
459 };
460
Rupinderjit Singhb2a75b82023-02-03 09:29:57 +0000461 gpu_clk: gpu_clk {
462 compatible = "fixed-clock";
463 #clock-cells = <0>;
464 clock-frequency = <1000000000>;
465 };
466
467 gpu_core_clk: gpu_core_clk {
468 compatible = "fixed-clock";
469 #clock-cells = <0>;
470 clock-frequency = <1000000000>;
471 };
472
Anders Dellien7a849802022-01-01 21:51:21 +0000473 gpu: gpu@2d000000 {
474 compatible = "arm,mali-midgard";
475 reg = <0x0 0x2d000000 0x0 0x200000>;
Boyan Karatotev25c4fb72023-08-08 15:37:52 +0100476 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>,
477 <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
478 <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
Anders Dellien7a849802022-01-01 21:51:21 +0000479 interrupt-names = "JOB", "MMU", "GPU";
Ben Horgan80781a52023-07-26 20:45:27 +0100480 clocks = <&gpu_core_clk>;
481 clock-names = "shadercores";
Kshitij Sisodia090a6aa2023-11-22 17:03:45 +0000482#if TC_SCMI_PD_CTRL_EN
Boyan Karatotev192ad5d2023-12-12 15:59:01 +0000483 power-domains = <&scmi_devpd GPU_SCMI_PD_IDX>;
Ben Horgan80781a52023-07-26 20:45:27 +0100484 scmi-perf-domain = <3>;
Kshitij Sisodia090a6aa2023-11-22 17:03:45 +0000485#endif /* TC_SCMI_PD_CTRL_EN */
486
487#if TC_IOMMU_EN
Davidson Kce633122022-11-21 17:49:51 +0530488 iommus = <&smmu_700 0x200>;
Kshitij Sisodia090a6aa2023-11-22 17:03:45 +0000489#endif /* TC_IOMMU_EN */
Anders Dellien7a849802022-01-01 21:51:21 +0000490 };
491
Boyan Karatotev13b8e742023-11-14 13:57:56 +0000492 power_model_simple {
Rupinderjit Singhb2a75b82023-02-03 09:29:57 +0000493 /*
494 * Numbers used are irrelevant to Titan,
495 * it helps suppressing the kernel warnings.
496 */
497 compatible = "arm,mali-simple-power-model";
498 static-coefficient = <2427750>;
499 dynamic-coefficient = <4687>;
500 ts = <20000 2000 (-20) 2>;
501 thermal-zone = "";
502 };
503
Kshitij Sisodia090a6aa2023-11-22 17:03:45 +0000504#if TC_IOMMU_EN
Boyan Karatotev13b8e742023-11-14 13:57:56 +0000505 smmu_700: iommu@3f000000 {
Anders Delliena1914132022-01-01 21:56:25 +0000506 #iommu-cells = <1>;
507 compatible = "arm,smmu-v3";
Davidson Kce633122022-11-21 17:49:51 +0530508 reg = <0x0 0x3f000000 0x0 0x5000000>;
Kshitij Sisodiab32a8f42023-08-16 09:46:05 +0100509 interrupts = <GIC_SPI 228 IRQ_TYPE_EDGE_RISING>,
510 <GIC_SPI 229 IRQ_TYPE_EDGE_RISING>,
511 <GIC_SPI 230 IRQ_TYPE_EDGE_RISING>;
512 interrupt-names = "eventq", "cmdq-sync", "gerror";
Davidson Kce633122022-11-21 17:49:51 +0530513 dma-coherent;
Anders Delliena1914132022-01-01 21:56:25 +0000514 };
Kshitij Sisodia090a6aa2023-11-22 17:03:45 +0000515#endif /* TC_IOMMU_EN */
Anders Delliena1914132022-01-01 21:56:25 +0000516
Leo Yanbd7dc052024-04-15 09:05:34 +0100517 dp0: display@DPU_ADDR {
Usama Arifbec5afd2020-04-17 16:13:39 +0100518 #address-cells = <1>;
519 #size-cells = <0>;
520 compatible = "arm,mali-d71";
Leo Yanbd7dc052024-04-15 09:05:34 +0100521 reg = <HI(ADDRESSIFY(DPU_ADDR)) LO(ADDRESSIFY(DPU_ADDR)) 0 0x20000>;
Davidson K938124e2023-12-14 12:03:23 +0530522 interrupts = <GIC_SPI DPU_IRQ IRQ_TYPE_LEVEL_HIGH>;
Usama Arifbec5afd2020-04-17 16:13:39 +0100523 interrupt-names = "DPU";
Boyan Karatotev95562762023-11-15 11:54:33 +0000524 DPU_CLK_ATTR1;
Kshitij Sisodia090a6aa2023-11-22 17:03:45 +0000525#if TC_IOMMU_EN
Davidson Kce633122022-11-21 17:49:51 +0530526 iommus = <&smmu_700 0x100>;
Kshitij Sisodia090a6aa2023-11-22 17:03:45 +0000527#endif /* TC_IOMMU_EN */
Kshitij Sisodia090a6aa2023-11-22 17:03:45 +0000528
Usama Arifbec5afd2020-04-17 16:13:39 +0100529 pl0: pipeline@0 {
530 reg = <0>;
Boyan Karatotev95562762023-11-15 11:54:33 +0000531 DPU_CLK_ATTR2;
Usama Arifbec5afd2020-04-17 16:13:39 +0100532 pl_id = <0>;
533 ports {
534 #address-cells = <1>;
535 #size-cells = <0>;
536 port@0 {
537 reg = <0>;
538 dp_pl0_out0: endpoint {
539 remote-endpoint = <&vencoder_in>;
540 };
541 };
542 };
543 };
544
545 pl1: pipeline@1 {
546 reg = <1>;
Boyan Karatotev95562762023-11-15 11:54:33 +0000547 DPU_CLK_ATTR3;
Usama Arifbec5afd2020-04-17 16:13:39 +0100548 pl_id = <1>;
549 ports {
550 #address-cells = <1>;
551 #size-cells = <0>;
552 port@0 {
553 reg = <0>;
554 };
555 };
556 };
557 };
Arunachalam Ganapathyc44e43d2020-11-17 15:05:01 +0000558
Davidson K1ad2c412023-01-13 14:02:13 +0530559 /*
560 * L3 cache in the DSU is the Memory System Component (MSC)
561 * The MPAM registers are accessed through utility bus in the DSU
562 */
563 msc0 {
564 compatible = "arm,mpam-msc";
Boyan Karatotev6ed3bf62023-07-07 13:33:19 +0000565 reg = <MPAM_ADDR 0x0 0x2000>;
Davidson K1ad2c412023-01-13 14:02:13 +0530566 };
567
Davidson K65361052021-10-13 18:49:41 +0530568 ete0 {
569 compatible = "arm,embedded-trace-extension";
570 cpu = <&CPU0>;
571 };
572
573 ete1 {
574 compatible = "arm,embedded-trace-extension";
575 cpu = <&CPU1>;
576 };
577
578 ete2 {
579 compatible = "arm,embedded-trace-extension";
580 cpu = <&CPU2>;
581 };
582
583 ete3 {
584 compatible = "arm,embedded-trace-extension";
585 cpu = <&CPU3>;
586 };
587
588 ete4 {
589 compatible = "arm,embedded-trace-extension";
590 cpu = <&CPU4>;
591 };
592
593 ete5 {
594 compatible = "arm,embedded-trace-extension";
595 cpu = <&CPU5>;
596 };
597
598 ete6 {
599 compatible = "arm,embedded-trace-extension";
600 cpu = <&CPU6>;
601 };
602
603 ete7 {
604 compatible = "arm,embedded-trace-extension";
605 cpu = <&CPU7>;
606 };
607
Boyan Karatotev13b8e742023-11-14 13:57:56 +0000608 trbe {
Davidson K65361052021-10-13 18:49:41 +0530609 compatible = "arm,trace-buffer-extension";
Boyan Karatotev25c4fb72023-08-08 15:37:52 +0100610 interrupts = <GIC_PPI 2 IRQ_TYPE_LEVEL_LOW>;
Davidson K65361052021-10-13 18:49:41 +0530611 };
Arunachalam Ganapathy63128dc2022-04-11 14:43:15 +0100612
613 trusty {
614 #size-cells = <0x02>;
615 #address-cells = <0x02>;
616 ranges = <0x00>;
617 compatible = "android,trusty-v1";
618
619 virtio {
620 compatible = "android,trusty-virtio-v1";
621 };
622
623 test {
624 compatible = "android,trusty-test-v1";
625 };
626
627 log {
628 compatible = "android,trusty-log-v1";
629 };
630
631 irq {
632 ipi-range = <0x08 0x0f 0x08>;
633 interrupt-ranges = <0x00 0x0f 0x00 0x10 0x1f 0x01 0x20 0x3f 0x02>;
634 interrupt-templates = <0x01 0x00 0x8001 0x01 0x01 0x04 0x8001 0x01 0x00 0x04>;
635 compatible = "android,trusty-irq-v1";
636 };
637 };
Boyan Karatotevd2ca2872023-11-28 16:08:52 +0000638
639 /* used in U-boot, Linux doesn't care */
640 arm_ffa {
641 compatible = "arm,ffa";
642 method = "smc";
643 };
Usama Arifbec5afd2020-04-17 16:13:39 +0100644};