blob: 949105fb1f6722c12763d7923599937bd2df6ab7 [file] [log] [blame]
Usama Ariff5c58af2020-04-17 16:13:39 +01001/*
annsai0177241042023-02-20 13:34:57 +00002 * Copyright (c) 2020-2024, Arm Limited. All rights reserved.
Usama Ariff5c58af2020-04-17 16:13:39 +01003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Leo Yan79c6ede2024-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 Sisodia2c406dd2023-08-16 09:46:05 +010038
Usama Ariff5c58af2020-04-17 16:13:39 +010039/ {
Usama Arif6ec0c652021-04-09 17:07:41 +010040 compatible = "arm,tc";
Usama Ariff5c58af2020-04-17 16:13:39 +010041 interrupt-parent = <&gic>;
42 #address-cells = <2>;
43 #size-cells = <2>;
44
45 aliases {
Boyan Karatotev04274142023-11-14 13:57:56 +000046 serial0 = &os_uart;
Usama Ariff5c58af2020-04-17 16:13:39 +010047 };
48
49 chosen {
Ben Horganbafedcb2023-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 Ariff5c58af2020-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 Mehtae5da15e2020-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 Ariff5c58af2020-04-17 16:13:39 +010094 };
95 };
96
Usama Arif8ea4f802020-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 Karatotev04274142023-11-14 13:57:56 +0000102 entry-method = "psci";
Usama Arif8ea4f802020-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 Kayc19a82b2021-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 Kayc19a82b2021-05-18 18:49:51 +0100129 enable-at-el3;
130 };
131
132 mpmm_gear1: counter@1 {
133 reg = <1>;
Chris Kayc19a82b2021-05-18 18:49:51 +0100134 enable-at-el3;
135 };
136
137 mpmm_gear2: counter@2 {
138 reg = <2>;
Chris Kayc19a82b2021-05-18 18:49:51 +0100139 enable-at-el3;
140 };
141 };
142 };
143
Usama Ariff5c58af2020-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 Arif8ea4f802020-08-12 17:14:37 +0100150 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Boyan Karatoteva02bb362023-12-12 15:59:01 +0000151 capacity-dmips-mhz = <LIT_CAPACITY>;
Chris Kayc19a82b2021-05-18 18:49:51 +0100152 amu = <&amu>;
153 supports-mpmm;
Usama Ariff5c58af2020-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 Arif8ea4f802020-08-12 17:14:37 +0100162 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Boyan Karatoteva02bb362023-12-12 15:59:01 +0000163 capacity-dmips-mhz = <LIT_CAPACITY>;
Chris Kayc19a82b2021-05-18 18:49:51 +0100164 amu = <&amu>;
165 supports-mpmm;
Usama Ariff5c58af2020-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 Arif8ea4f802020-08-12 17:14:37 +0100173 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Chris Kayc19a82b2021-05-18 18:49:51 +0100174 amu = <&amu>;
175 supports-mpmm;
Usama Ariff5c58af2020-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 Arif8ea4f802020-08-12 17:14:37 +0100183 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Chris Kayc19a82b2021-05-18 18:49:51 +0100184 amu = <&amu>;
185 supports-mpmm;
Usama Ariff5c58af2020-04-17 16:13:39 +0100186 };
187
Avinash Mehtae5da15e2020-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 Arifa97c3902021-02-03 15:40:46 +0000193 clocks = <&scmi_dvfs 1>;
Avinash Mehtae5da15e2020-10-28 16:43:28 +0000194 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Boyan Karatoteva02bb362023-12-12 15:59:01 +0000195 capacity-dmips-mhz = <MID_CAPACITY>;
Chris Kayc19a82b2021-05-18 18:49:51 +0100196 amu = <&amu>;
197 supports-mpmm;
Avinash Mehtae5da15e2020-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 Arifa97c3902021-02-03 15:40:46 +0000205 clocks = <&scmi_dvfs 1>;
Avinash Mehtae5da15e2020-10-28 16:43:28 +0000206 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Boyan Karatoteva02bb362023-12-12 15:59:01 +0000207 capacity-dmips-mhz = <MID_CAPACITY>;
Chris Kayc19a82b2021-05-18 18:49:51 +0100208 amu = <&amu>;
209 supports-mpmm;
Avinash Mehtae5da15e2020-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 Mehtae5da15e2020-10-28 16:43:28 +0000217 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Chris Kayc19a82b2021-05-18 18:49:51 +0100218 amu = <&amu>;
219 supports-mpmm;
Avinash Mehtae5da15e2020-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 Mehtae5da15e2020-10-28 16:43:28 +0000227 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Chris Kayc19a82b2021-05-18 18:49:51 +0100228 amu = <&amu>;
229 supports-mpmm;
Avinash Mehtae5da15e2020-10-28 16:43:28 +0000230 };
Usama Ariff5c58af2020-04-17 16:13:39 +0100231 };
232
Arunachalam Ganapathyb153ce02020-12-14 12:31:32 +0000233 reserved-memory {
234 #address-cells = <2>;
235 #size-cells = <2>;
236 ranges;
237
Anders Dellienad60a422021-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 Karatotev6dacc272023-12-04 16:12:08 +0000245 optee {
Davidson K2fff46c2022-12-14 17:38:14 +0530246 compatible = "restricted-dma-pool";
Boyan Karatotev6dacc272023-12-04 16:12:08 +0000247 reg = <0x0 TC_NS_OPTEE_BASE 0x0 TC_NS_OPTEE_SIZE>;
Arunachalam Ganapathyb153ce02020-12-14 12:31:32 +0000248 };
Tudor Cretud0628722021-09-24 12:09:53 +0000249
Boyan Karatotev6dacc272023-12-04 16:12:08 +0000250 fwu_mm {
251 reg = <0x0 TC_NS_FWU_BASE 0x0 TC_NS_FWU_SIZE>;
Tudor Cretud0628722021-09-24 12:09:53 +0000252 no-map;
253 };
Arunachalam Ganapathyb153ce02020-12-14 12:31:32 +0000254 };
255
Boyan Karatotev5ee4deb2023-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 Ariff5c58af2020-04-17 16:13:39 +0100263 psci {
Usama Arif814646b2021-05-27 20:09:17 +0100264 compatible = "arm,psci-1.0", "arm,psci-0.2";
Usama Ariff5c58af2020-04-17 16:13:39 +0100265 method = "smc";
266 };
267
Boyan Karatotev553b06b2023-11-15 11:29:59 +0000268 cpu-pmu {
269 compatible = "arm,armv8-pmuv3";
270 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>;
Boyan Karatotev553b06b2023-11-15 11:29:59 +0000271 };
272
Usama Ariff5c58af2020-04-17 16:13:39 +0100273 sram: sram@6000000 {
274 compatible = "mmio-sram";
Boyan Karatotev5ee4deb2023-12-04 16:09:14 +0000275 reg = <0x0 PLAT_ARM_NSRAM_BASE 0x0 PLAT_ARM_NSRAM_SIZE>;
Usama Ariff5c58af2020-04-17 16:13:39 +0100276
277 #address-cells = <1>;
278 #size-cells = <1>;
Boyan Karatotev5ee4deb2023-12-04 16:09:14 +0000279 ranges = <0 0x0 PLAT_ARM_NSRAM_BASE PLAT_ARM_NSRAM_SIZE>;
Usama Ariff5c58af2020-04-17 16:13:39 +0100280
Boyan Karatotevf2596ff2024-04-19 12:27:46 +0100281 cpu_scp_scmi_a2p: scp-shmem@0 {
Usama Ariff5c58af2020-04-17 16:13:39 +0100282 compatible = "arm,scmi-shmem";
283 reg = <0x0 0x80>;
284 };
285 };
286
Leo Yanab0450f2024-04-15 09:05:34 +0100287 mbox_db_rx: mhu@MHU_RX_ADDR {
Boyan Karatotev6c069e72024-04-24 10:09:18 +0100288 compatible = MHU_RX_COMPAT;
289 reg = <0x0 ADDRESSIFY(MHU_RX_ADDR) 0x0 MHU_OFFSET>;
Boyan Karatotev04274142023-11-14 13:57:56 +0000290 clocks = <&soc_refclk>;
Usama Ariff5c58af2020-04-17 16:13:39 +0100291 clock-names = "apb_pclk";
Boyan Karatotev6c069e72024-04-24 10:09:18 +0100292 #mbox-cells = <MHU_MBOX_CELLS>;
293 interrupts = <GIC_SPI MHU_RX_INT_NUM IRQ_TYPE_LEVEL_HIGH>;
294 interrupt-names = MHU_RX_INT_NAME;
Usama Ariff5c58af2020-04-17 16:13:39 +0100295 };
296
Leo Yanab0450f2024-04-15 09:05:34 +0100297 mbox_db_tx: mhu@MHU_TX_ADDR {
Boyan Karatotev6c069e72024-04-24 10:09:18 +0100298 compatible = MHU_TX_COMPAT;
299 reg = <0x0 ADDRESSIFY(MHU_TX_ADDR) 0x0 MHU_OFFSET>;
Boyan Karatotev04274142023-11-14 13:57:56 +0000300 clocks = <&soc_refclk>;
Usama Ariff5c58af2020-04-17 16:13:39 +0100301 clock-names = "apb_pclk";
Boyan Karatotev6c069e72024-04-24 10:09:18 +0100302 #mbox-cells = <MHU_MBOX_CELLS>;
303 interrupt-names = MHU_TX_INT_NAME;
Usama Ariff5c58af2020-04-17 16:13:39 +0100304 };
305
Boyan Karatotevd42987c2024-04-19 13:59:11 +0100306 firmware {
307 scmi {
308 compatible = "arm,scmi";
309 mbox-names = "tx", "rx";
Boyan Karatotevd42987c2024-04-19 13:59:11 +0100310 #address-cells = <1>;
311 #size-cells = <0>;
Usama Ariff5c58af2020-04-17 16:13:39 +0100312
Kshitij Sisodiaa658b462023-11-22 17:03:45 +0000313#if TC_SCMI_PD_CTRL_EN
Boyan Karatotevd42987c2024-04-19 13:59:11 +0100314 scmi_devpd: protocol@11 {
315 reg = <0x11>;
316 #power-domain-cells = <1>;
317 };
Kshitij Sisodiaa658b462023-11-22 17:03:45 +0000318#endif /* TC_SCMI_PD_CTRL_EN */
Ben Horgan127eabe2023-07-26 20:45:27 +0100319
Boyan Karatotevd42987c2024-04-19 13:59:11 +0100320 scmi_dvfs: protocol@13 {
321 reg = <0x13>;
322 #clock-cells = <1>;
323 };
Usama Ariff5c58af2020-04-17 16:13:39 +0100324
Boyan Karatotevd42987c2024-04-19 13:59:11 +0100325 scmi_clk: protocol@14 {
326 reg = <0x14>;
327 #clock-cells = <1>;
328 };
Usama Ariff5c58af2020-04-17 16:13:39 +0100329 };
330 };
331
Boyan Karatotev1b8ed092023-11-15 11:54:33 +0000332 gic: interrupt-controller@GIC_CTRL_ADDR {
Boyan Karatotev04274142023-11-14 13:57:56 +0000333 compatible = "arm,gic-v3";
Usama Ariff5c58af2020-04-17 16:13:39 +0100334 #address-cells = <2>;
335 #interrupt-cells = <3>;
336 #size-cells = <2>;
337 ranges;
338 interrupt-controller;
339 reg = <0x0 0x30000000 0 0x10000>, /* GICD */
Boyan Karatotev1b8ed092023-11-15 11:54:33 +0000340 <0x0 0x30080000 0 GIC_GICR_OFFSET>; /* GICR */
Boyan Karatotevd2e44e72023-08-08 15:37:52 +0100341 interrupts = <GIC_PPI 0x9 IRQ_TYPE_LEVEL_LOW>;
Usama Ariff5c58af2020-04-17 16:13:39 +0100342 };
343
344 timer {
345 compatible = "arm,armv8-timer";
Boyan Karatotevd2e44e72023-08-08 15:37:52 +0100346 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
347 <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
348 <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
349 <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
Usama Ariff5c58af2020-04-17 16:13:39 +0100350 };
351
Boyan Karatotev04274142023-11-14 13:57:56 +0000352 soc_refclk: refclk {
Usama Ariff5c58af2020-04-17 16:13:39 +0100353 compatible = "fixed-clock";
354 #clock-cells = <0>;
Boyan Karatotev1b8ed092023-11-15 11:54:33 +0000355 clock-frequency = <1000000000>;
Usama Ariff5c58af2020-04-17 16:13:39 +0100356 clock-output-names = "apb_pclk";
357 };
358
359 soc_refclk60mhz: refclk60mhz {
360 compatible = "fixed-clock";
361 #clock-cells = <0>;
362 clock-frequency = <60000000>;
363 clock-output-names = "iofpga_clk";
364 };
365
Boyan Karatotev04274142023-11-14 13:57:56 +0000366 soc_uartclk: uartclk {
Usama Ariff5c58af2020-04-17 16:13:39 +0100367 compatible = "fixed-clock";
368 #clock-cells = <0>;
Boyan Karatotev62320dc2023-07-07 13:33:19 +0000369 clock-frequency = <UARTCLK_FREQ>;
Usama Ariff5c58af2020-04-17 16:13:39 +0100370 clock-output-names = "uartclk";
371 };
372
Boyan Karatotev1b8ed092023-11-15 11:54:33 +0000373 /* soc_uart0 on FPGA, ap_ns_uart on FVP */
Boyan Karatotev04274142023-11-14 13:57:56 +0000374 os_uart: serial@2a400000 {
Usama Ariff5c58af2020-04-17 16:13:39 +0100375 compatible = "arm,pl011", "arm,primecell";
Boyan Karatotev1b8ed092023-11-15 11:54:33 +0000376 reg = <0x0 0x2A400000 0x0 UART_OFFSET>;
Boyan Karatotevd2e44e72023-08-08 15:37:52 +0100377 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
Boyan Karatotev04274142023-11-14 13:57:56 +0000378 clocks = <&soc_uartclk>, <&soc_refclk>;
Usama Ariff5c58af2020-04-17 16:13:39 +0100379 clock-names = "uartclk", "apb_pclk";
380 status = "okay";
381 };
382
Leo Yan79c6ede2024-04-24 10:03:50 +0100383#if !TC_DPU_USE_SCMI_CLK
384 dpu_aclk: dpu_aclk {
385 compatible = "fixed-clock";
386 #clock-cells = <0>;
387 clock-frequency = <VENCODER_TIMING_CLK>;
388 clock-output-names = "fpga:dpu_aclk";
389 };
390
391 dpu_pixel_clk: dpu-pixel-clk {
392 compatible = "fixed-clock";
393 #clock-cells = <0>;
394 clock-frequency = <VENCODER_TIMING_CLK>;
395 clock-output-names = "pxclk";
396 };
397#endif /* !TC_DPU_USE_SCMI_CLK */
398
Usama Ariff5c58af2020-04-17 16:13:39 +0100399 vencoder {
400 compatible = "drm,virtual-encoder";
Usama Ariff5c58af2020-04-17 16:13:39 +0100401 port {
402 vencoder_in: endpoint {
Avinash Mehta0dc52292020-07-22 16:40:07 +0100403 remote-endpoint = <&dp_pl0_out0>;
Usama Ariff5c58af2020-04-17 16:13:39 +0100404 };
405 };
406
407 display-timings {
Boyan Karatotev04274142023-11-14 13:57:56 +0000408 timing-panel {
Boyan Karatotev1b8ed092023-11-15 11:54:33 +0000409 VENCODER_TIMING;
Usama Ariff5c58af2020-04-17 16:13:39 +0100410 };
411 };
412
413 };
414
Leo Yane6ef3ef2024-04-15 11:35:15 +0100415 ethernet: ethernet@18000000 {
Usama Ariff5c58af2020-04-17 16:13:39 +0100416 reg = <0x0 0x18000000 0x0 0x10000>;
Boyan Karatotevd2e44e72023-08-08 15:37:52 +0100417 interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
Boyan Karatotev1b8ed092023-11-15 11:54:33 +0000418
Boyan Karatotev1b8ed092023-11-15 11:54:33 +0000419 reg-io-width = <2>;
420 smsc,irq-push-pull;
Usama Ariff5c58af2020-04-17 16:13:39 +0100421 };
422
Usama Ariff5c58af2020-04-17 16:13:39 +0100423 bp_clock24mhz: clock24mhz {
424 compatible = "fixed-clock";
425 #clock-cells = <0>;
426 clock-frequency = <24000000>;
427 clock-output-names = "bp:clock24mhz";
428 };
429
Usama Ariff5c58af2020-04-17 16:13:39 +0100430
Usama Arifa41973a2020-06-10 16:27:53 +0100431 sysreg: sysreg@1c010000 {
432 compatible = "arm,vexpress-sysreg";
433 reg = <0x0 0x001c010000 0x0 0x1000>;
434 gpio-controller;
435 #gpio-cells = <2>;
436 };
437
438 fixed_3v3: v2m-3v3 {
439 compatible = "regulator-fixed";
440 regulator-name = "3V3";
441 regulator-min-microvolt = <3300000>;
442 regulator-max-microvolt = <3300000>;
443 regulator-always-on;
444 };
445
Leo Yane6ef3ef2024-04-15 11:35:15 +0100446 mmci: mmci@1c050000 {
Usama Arifa41973a2020-06-10 16:27:53 +0100447 compatible = "arm,pl180", "arm,primecell";
448 reg = <0x0 0x001c050000 0x0 0x1000>;
Boyan Karatotevd2e44e72023-08-08 15:37:52 +0100449 interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>,
450 <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
Usama Arifa41973a2020-06-10 16:27:53 +0100451 wp-gpios = <&sysreg 1 0>;
Boyan Karatotev1b8ed092023-11-15 11:54:33 +0000452 bus-width = <4>;
453 max-frequency = <25000000>;
Usama Arifa41973a2020-06-10 16:27:53 +0100454 vmmc-supply = <&fixed_3v3>;
455 clocks = <&bp_clock24mhz>, <&bp_clock24mhz>;
456 clock-names = "mclk", "apb_pclk";
457 };
458
Rupinderjit Singhcb3e9652023-02-03 09:29:57 +0000459 gpu_clk: gpu_clk {
460 compatible = "fixed-clock";
461 #clock-cells = <0>;
462 clock-frequency = <1000000000>;
463 };
464
465 gpu_core_clk: gpu_core_clk {
466 compatible = "fixed-clock";
467 #clock-cells = <0>;
468 clock-frequency = <1000000000>;
469 };
470
Anders Dellien82117bb2022-01-01 21:51:21 +0000471 gpu: gpu@2d000000 {
472 compatible = "arm,mali-midgard";
473 reg = <0x0 0x2d000000 0x0 0x200000>;
Boyan Karatotevd2e44e72023-08-08 15:37:52 +0100474 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>,
475 <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
476 <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
Anders Dellien82117bb2022-01-01 21:51:21 +0000477 interrupt-names = "JOB", "MMU", "GPU";
Ben Horgan127eabe2023-07-26 20:45:27 +0100478 clocks = <&gpu_core_clk>;
479 clock-names = "shadercores";
Kshitij Sisodiaa658b462023-11-22 17:03:45 +0000480#if TC_SCMI_PD_CTRL_EN
Boyan Karatoteva02bb362023-12-12 15:59:01 +0000481 power-domains = <&scmi_devpd GPU_SCMI_PD_IDX>;
Ben Horgan127eabe2023-07-26 20:45:27 +0100482 scmi-perf-domain = <3>;
Kshitij Sisodiaa658b462023-11-22 17:03:45 +0000483#endif /* TC_SCMI_PD_CTRL_EN */
484
485#if TC_IOMMU_EN
Davidson Ked80eab2022-11-21 17:49:51 +0530486 iommus = <&smmu_700 0x200>;
Kshitij Sisodiaa658b462023-11-22 17:03:45 +0000487#endif /* TC_IOMMU_EN */
Anders Dellien82117bb2022-01-01 21:51:21 +0000488 };
489
Boyan Karatotev04274142023-11-14 13:57:56 +0000490 power_model_simple {
Rupinderjit Singhcb3e9652023-02-03 09:29:57 +0000491 /*
492 * Numbers used are irrelevant to Titan,
493 * it helps suppressing the kernel warnings.
494 */
495 compatible = "arm,mali-simple-power-model";
496 static-coefficient = <2427750>;
497 dynamic-coefficient = <4687>;
498 ts = <20000 2000 (-20) 2>;
499 thermal-zone = "";
500 };
501
Kshitij Sisodiaa658b462023-11-22 17:03:45 +0000502#if TC_IOMMU_EN
Boyan Karatotev04274142023-11-14 13:57:56 +0000503 smmu_700: iommu@3f000000 {
Anders Dellien4a6ebee2022-01-01 21:56:25 +0000504 #iommu-cells = <1>;
505 compatible = "arm,smmu-v3";
Davidson Ked80eab2022-11-21 17:49:51 +0530506 reg = <0x0 0x3f000000 0x0 0x5000000>;
Kshitij Sisodia2c406dd2023-08-16 09:46:05 +0100507 interrupts = <GIC_SPI 228 IRQ_TYPE_EDGE_RISING>,
508 <GIC_SPI 229 IRQ_TYPE_EDGE_RISING>,
509 <GIC_SPI 230 IRQ_TYPE_EDGE_RISING>;
510 interrupt-names = "eventq", "cmdq-sync", "gerror";
Davidson Ked80eab2022-11-21 17:49:51 +0530511 dma-coherent;
Anders Dellien4a6ebee2022-01-01 21:56:25 +0000512 };
Kshitij Sisodiaa658b462023-11-22 17:03:45 +0000513#endif /* TC_IOMMU_EN */
Anders Dellien4a6ebee2022-01-01 21:56:25 +0000514
Leo Yanab0450f2024-04-15 09:05:34 +0100515 dp0: display@DPU_ADDR {
Usama Ariff5c58af2020-04-17 16:13:39 +0100516 #address-cells = <1>;
517 #size-cells = <0>;
518 compatible = "arm,mali-d71";
Leo Yanab0450f2024-04-15 09:05:34 +0100519 reg = <HI(ADDRESSIFY(DPU_ADDR)) LO(ADDRESSIFY(DPU_ADDR)) 0 0x20000>;
Davidson K8e941632023-12-14 12:03:23 +0530520 interrupts = <GIC_SPI DPU_IRQ IRQ_TYPE_LEVEL_HIGH>;
Usama Ariff5c58af2020-04-17 16:13:39 +0100521 interrupt-names = "DPU";
Boyan Karatotev1b8ed092023-11-15 11:54:33 +0000522 DPU_CLK_ATTR1;
Kshitij Sisodiaa658b462023-11-22 17:03:45 +0000523#if TC_IOMMU_EN
Davidson Ked80eab2022-11-21 17:49:51 +0530524 iommus = <&smmu_700 0x100>;
Kshitij Sisodiaa658b462023-11-22 17:03:45 +0000525#endif /* TC_IOMMU_EN */
Kshitij Sisodiaa658b462023-11-22 17:03:45 +0000526
Usama Ariff5c58af2020-04-17 16:13:39 +0100527 pl0: pipeline@0 {
528 reg = <0>;
Boyan Karatotev1b8ed092023-11-15 11:54:33 +0000529 DPU_CLK_ATTR2;
Usama Ariff5c58af2020-04-17 16:13:39 +0100530 pl_id = <0>;
531 ports {
532 #address-cells = <1>;
533 #size-cells = <0>;
534 port@0 {
535 reg = <0>;
536 dp_pl0_out0: endpoint {
537 remote-endpoint = <&vencoder_in>;
538 };
539 };
540 };
541 };
542
543 pl1: pipeline@1 {
544 reg = <1>;
Boyan Karatotev1b8ed092023-11-15 11:54:33 +0000545 DPU_CLK_ATTR3;
Usama Ariff5c58af2020-04-17 16:13:39 +0100546 pl_id = <1>;
547 ports {
548 #address-cells = <1>;
549 #size-cells = <0>;
550 port@0 {
551 reg = <0>;
552 };
553 };
554 };
555 };
Arunachalam Ganapathy39460d02020-11-17 15:05:01 +0000556
Davidson Kb45ec8c2023-01-13 14:02:13 +0530557 /*
558 * L3 cache in the DSU is the Memory System Component (MSC)
559 * The MPAM registers are accessed through utility bus in the DSU
560 */
561 msc0 {
562 compatible = "arm,mpam-msc";
Boyan Karatotev62320dc2023-07-07 13:33:19 +0000563 reg = <MPAM_ADDR 0x0 0x2000>;
Davidson Kb45ec8c2023-01-13 14:02:13 +0530564 };
565
Davidson K59da2072021-10-13 18:49:41 +0530566 ete0 {
567 compatible = "arm,embedded-trace-extension";
568 cpu = <&CPU0>;
569 };
570
571 ete1 {
572 compatible = "arm,embedded-trace-extension";
573 cpu = <&CPU1>;
574 };
575
576 ete2 {
577 compatible = "arm,embedded-trace-extension";
578 cpu = <&CPU2>;
579 };
580
581 ete3 {
582 compatible = "arm,embedded-trace-extension";
583 cpu = <&CPU3>;
584 };
585
586 ete4 {
587 compatible = "arm,embedded-trace-extension";
588 cpu = <&CPU4>;
589 };
590
591 ete5 {
592 compatible = "arm,embedded-trace-extension";
593 cpu = <&CPU5>;
594 };
595
596 ete6 {
597 compatible = "arm,embedded-trace-extension";
598 cpu = <&CPU6>;
599 };
600
601 ete7 {
602 compatible = "arm,embedded-trace-extension";
603 cpu = <&CPU7>;
604 };
605
Boyan Karatotev04274142023-11-14 13:57:56 +0000606 trbe {
Davidson K59da2072021-10-13 18:49:41 +0530607 compatible = "arm,trace-buffer-extension";
Boyan Karatotevd2e44e72023-08-08 15:37:52 +0100608 interrupts = <GIC_PPI 2 IRQ_TYPE_LEVEL_LOW>;
Davidson K59da2072021-10-13 18:49:41 +0530609 };
Arunachalam Ganapathyba197f52022-04-11 14:43:15 +0100610
611 trusty {
612 #size-cells = <0x02>;
613 #address-cells = <0x02>;
614 ranges = <0x00>;
615 compatible = "android,trusty-v1";
616
617 virtio {
618 compatible = "android,trusty-virtio-v1";
619 };
620
621 test {
622 compatible = "android,trusty-test-v1";
623 };
624
625 log {
626 compatible = "android,trusty-log-v1";
627 };
628
629 irq {
630 ipi-range = <0x08 0x0f 0x08>;
631 interrupt-ranges = <0x00 0x0f 0x00 0x10 0x1f 0x01 0x20 0x3f 0x02>;
632 interrupt-templates = <0x01 0x00 0x8001 0x01 0x01 0x04 0x8001 0x01 0x00 0x04>;
633 compatible = "android,trusty-irq-v1";
634 };
635 };
Boyan Karatotev4fc4e9c2023-11-28 16:08:52 +0000636
637 /* used in U-boot, Linux doesn't care */
638 arm_ffa {
639 compatible = "arm,ffa";
640 method = "smc";
641 };
Usama Ariff5c58af2020-04-17 16:13:39 +0100642};