blob: ac5bd630f1551d93a3ad3557b87b1b171c22fd64 [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2021 Rockchip Electronics Co., Ltd.
4 */
5
6#include <dt-bindings/clock/rockchip,rk3588-cru.h>
7#include <dt-bindings/interrupt-controller/arm-gic.h>
8#include <dt-bindings/interrupt-controller/irq.h>
9#include <dt-bindings/power/rk3588-power.h>
10#include <dt-bindings/reset/rockchip,rk3588-cru.h>
11#include <dt-bindings/phy/phy.h>
12#include <dt-bindings/ata/ahci.h>
13
14/ {
15 compatible = "rockchip,rk3588";
16
17 interrupt-parent = <&gic>;
18 #address-cells = <2>;
19 #size-cells = <2>;
20
Tom Rini93743d22024-04-01 09:08:13 -040021 aliases {
22 gpio0 = &gpio0;
23 gpio1 = &gpio1;
24 gpio2 = &gpio2;
25 gpio3 = &gpio3;
26 gpio4 = &gpio4;
27 i2c0 = &i2c0;
28 i2c1 = &i2c1;
29 i2c2 = &i2c2;
30 i2c3 = &i2c3;
31 i2c4 = &i2c4;
32 i2c5 = &i2c5;
33 i2c6 = &i2c6;
34 i2c7 = &i2c7;
35 i2c8 = &i2c8;
36 serial0 = &uart0;
37 serial1 = &uart1;
38 serial2 = &uart2;
39 serial3 = &uart3;
40 serial4 = &uart4;
41 serial5 = &uart5;
42 serial6 = &uart6;
43 serial7 = &uart7;
44 serial8 = &uart8;
45 serial9 = &uart9;
46 spi0 = &spi0;
47 spi1 = &spi1;
48 spi2 = &spi2;
49 spi3 = &spi3;
50 spi4 = &spi4;
51 };
52
Tom Rini53633a82024-02-29 12:33:36 -050053 cpus {
54 #address-cells = <1>;
55 #size-cells = <0>;
56
57 cpu-map {
58 cluster0 {
59 core0 {
60 cpu = <&cpu_l0>;
61 };
62 core1 {
63 cpu = <&cpu_l1>;
64 };
65 core2 {
66 cpu = <&cpu_l2>;
67 };
68 core3 {
69 cpu = <&cpu_l3>;
70 };
71 };
72 cluster1 {
73 core0 {
74 cpu = <&cpu_b0>;
75 };
76 core1 {
77 cpu = <&cpu_b1>;
78 };
79 };
80 cluster2 {
81 core0 {
82 cpu = <&cpu_b2>;
83 };
84 core1 {
85 cpu = <&cpu_b3>;
86 };
87 };
88 };
89
90 cpu_l0: cpu@0 {
91 device_type = "cpu";
92 compatible = "arm,cortex-a55";
93 reg = <0x0>;
94 enable-method = "psci";
95 capacity-dmips-mhz = <530>;
96 clocks = <&scmi_clk SCMI_CLK_CPUL>;
97 assigned-clocks = <&scmi_clk SCMI_CLK_CPUL>;
98 assigned-clock-rates = <816000000>;
99 cpu-idle-states = <&CPU_SLEEP>;
100 i-cache-size = <32768>;
101 i-cache-line-size = <64>;
102 i-cache-sets = <128>;
103 d-cache-size = <32768>;
104 d-cache-line-size = <64>;
105 d-cache-sets = <128>;
106 next-level-cache = <&l2_cache_l0>;
107 dynamic-power-coefficient = <228>;
108 #cooling-cells = <2>;
109 };
110
111 cpu_l1: cpu@100 {
112 device_type = "cpu";
113 compatible = "arm,cortex-a55";
114 reg = <0x100>;
115 enable-method = "psci";
116 capacity-dmips-mhz = <530>;
117 clocks = <&scmi_clk SCMI_CLK_CPUL>;
118 cpu-idle-states = <&CPU_SLEEP>;
119 i-cache-size = <32768>;
120 i-cache-line-size = <64>;
121 i-cache-sets = <128>;
122 d-cache-size = <32768>;
123 d-cache-line-size = <64>;
124 d-cache-sets = <128>;
125 next-level-cache = <&l2_cache_l1>;
126 dynamic-power-coefficient = <228>;
127 #cooling-cells = <2>;
128 };
129
130 cpu_l2: cpu@200 {
131 device_type = "cpu";
132 compatible = "arm,cortex-a55";
133 reg = <0x200>;
134 enable-method = "psci";
135 capacity-dmips-mhz = <530>;
136 clocks = <&scmi_clk SCMI_CLK_CPUL>;
137 cpu-idle-states = <&CPU_SLEEP>;
138 i-cache-size = <32768>;
139 i-cache-line-size = <64>;
140 i-cache-sets = <128>;
141 d-cache-size = <32768>;
142 d-cache-line-size = <64>;
143 d-cache-sets = <128>;
144 next-level-cache = <&l2_cache_l2>;
145 dynamic-power-coefficient = <228>;
146 #cooling-cells = <2>;
147 };
148
149 cpu_l3: cpu@300 {
150 device_type = "cpu";
151 compatible = "arm,cortex-a55";
152 reg = <0x300>;
153 enable-method = "psci";
154 capacity-dmips-mhz = <530>;
155 clocks = <&scmi_clk SCMI_CLK_CPUL>;
156 cpu-idle-states = <&CPU_SLEEP>;
157 i-cache-size = <32768>;
158 i-cache-line-size = <64>;
159 i-cache-sets = <128>;
160 d-cache-size = <32768>;
161 d-cache-line-size = <64>;
162 d-cache-sets = <128>;
163 next-level-cache = <&l2_cache_l3>;
164 dynamic-power-coefficient = <228>;
165 #cooling-cells = <2>;
166 };
167
168 cpu_b0: cpu@400 {
169 device_type = "cpu";
170 compatible = "arm,cortex-a76";
171 reg = <0x400>;
172 enable-method = "psci";
173 capacity-dmips-mhz = <1024>;
174 clocks = <&scmi_clk SCMI_CLK_CPUB01>;
175 assigned-clocks = <&scmi_clk SCMI_CLK_CPUB01>;
176 assigned-clock-rates = <816000000>;
177 cpu-idle-states = <&CPU_SLEEP>;
178 i-cache-size = <65536>;
179 i-cache-line-size = <64>;
180 i-cache-sets = <256>;
181 d-cache-size = <65536>;
182 d-cache-line-size = <64>;
183 d-cache-sets = <256>;
184 next-level-cache = <&l2_cache_b0>;
185 dynamic-power-coefficient = <416>;
186 #cooling-cells = <2>;
187 };
188
189 cpu_b1: cpu@500 {
190 device_type = "cpu";
191 compatible = "arm,cortex-a76";
192 reg = <0x500>;
193 enable-method = "psci";
194 capacity-dmips-mhz = <1024>;
195 clocks = <&scmi_clk SCMI_CLK_CPUB01>;
196 cpu-idle-states = <&CPU_SLEEP>;
197 i-cache-size = <65536>;
198 i-cache-line-size = <64>;
199 i-cache-sets = <256>;
200 d-cache-size = <65536>;
201 d-cache-line-size = <64>;
202 d-cache-sets = <256>;
203 next-level-cache = <&l2_cache_b1>;
204 dynamic-power-coefficient = <416>;
205 #cooling-cells = <2>;
206 };
207
208 cpu_b2: cpu@600 {
209 device_type = "cpu";
210 compatible = "arm,cortex-a76";
211 reg = <0x600>;
212 enable-method = "psci";
213 capacity-dmips-mhz = <1024>;
214 clocks = <&scmi_clk SCMI_CLK_CPUB23>;
215 assigned-clocks = <&scmi_clk SCMI_CLK_CPUB23>;
216 assigned-clock-rates = <816000000>;
217 cpu-idle-states = <&CPU_SLEEP>;
218 i-cache-size = <65536>;
219 i-cache-line-size = <64>;
220 i-cache-sets = <256>;
221 d-cache-size = <65536>;
222 d-cache-line-size = <64>;
223 d-cache-sets = <256>;
224 next-level-cache = <&l2_cache_b2>;
225 dynamic-power-coefficient = <416>;
226 #cooling-cells = <2>;
227 };
228
229 cpu_b3: cpu@700 {
230 device_type = "cpu";
231 compatible = "arm,cortex-a76";
232 reg = <0x700>;
233 enable-method = "psci";
234 capacity-dmips-mhz = <1024>;
235 clocks = <&scmi_clk SCMI_CLK_CPUB23>;
236 cpu-idle-states = <&CPU_SLEEP>;
237 i-cache-size = <65536>;
238 i-cache-line-size = <64>;
239 i-cache-sets = <256>;
240 d-cache-size = <65536>;
241 d-cache-line-size = <64>;
242 d-cache-sets = <256>;
243 next-level-cache = <&l2_cache_b3>;
244 dynamic-power-coefficient = <416>;
245 #cooling-cells = <2>;
246 };
247
248 idle-states {
249 entry-method = "psci";
250 CPU_SLEEP: cpu-sleep {
251 compatible = "arm,idle-state";
252 local-timer-stop;
253 arm,psci-suspend-param = <0x0010000>;
254 entry-latency-us = <100>;
255 exit-latency-us = <120>;
256 min-residency-us = <1000>;
257 };
258 };
259
260 l2_cache_l0: l2-cache-l0 {
261 compatible = "cache";
262 cache-size = <131072>;
263 cache-line-size = <64>;
264 cache-sets = <512>;
265 cache-level = <2>;
266 cache-unified;
267 next-level-cache = <&l3_cache>;
268 };
269
270 l2_cache_l1: l2-cache-l1 {
271 compatible = "cache";
272 cache-size = <131072>;
273 cache-line-size = <64>;
274 cache-sets = <512>;
275 cache-level = <2>;
276 cache-unified;
277 next-level-cache = <&l3_cache>;
278 };
279
280 l2_cache_l2: l2-cache-l2 {
281 compatible = "cache";
282 cache-size = <131072>;
283 cache-line-size = <64>;
284 cache-sets = <512>;
285 cache-level = <2>;
286 cache-unified;
287 next-level-cache = <&l3_cache>;
288 };
289
290 l2_cache_l3: l2-cache-l3 {
291 compatible = "cache";
292 cache-size = <131072>;
293 cache-line-size = <64>;
294 cache-sets = <512>;
295 cache-level = <2>;
296 cache-unified;
297 next-level-cache = <&l3_cache>;
298 };
299
300 l2_cache_b0: l2-cache-b0 {
301 compatible = "cache";
302 cache-size = <524288>;
303 cache-line-size = <64>;
304 cache-sets = <1024>;
305 cache-level = <2>;
306 cache-unified;
307 next-level-cache = <&l3_cache>;
308 };
309
310 l2_cache_b1: l2-cache-b1 {
311 compatible = "cache";
312 cache-size = <524288>;
313 cache-line-size = <64>;
314 cache-sets = <1024>;
315 cache-level = <2>;
316 cache-unified;
317 next-level-cache = <&l3_cache>;
318 };
319
320 l2_cache_b2: l2-cache-b2 {
321 compatible = "cache";
322 cache-size = <524288>;
323 cache-line-size = <64>;
324 cache-sets = <1024>;
325 cache-level = <2>;
326 cache-unified;
327 next-level-cache = <&l3_cache>;
328 };
329
330 l2_cache_b3: l2-cache-b3 {
331 compatible = "cache";
332 cache-size = <524288>;
333 cache-line-size = <64>;
334 cache-sets = <1024>;
335 cache-level = <2>;
336 cache-unified;
337 next-level-cache = <&l3_cache>;
338 };
339
340 l3_cache: l3-cache {
341 compatible = "cache";
342 cache-size = <3145728>;
343 cache-line-size = <64>;
344 cache-sets = <4096>;
345 cache-level = <3>;
346 cache-unified;
347 };
348 };
349
Diederik de Haas2fed50d2024-05-29 01:03:58 +0800350 display_subsystem: display-subsystem {
351 compatible = "rockchip,display-subsystem";
352 ports = <&vop_out>;
353 };
354
Tom Rini53633a82024-02-29 12:33:36 -0500355 firmware {
356 optee: optee {
357 compatible = "linaro,optee-tz";
358 method = "smc";
359 };
360
361 scmi: scmi {
362 compatible = "arm,scmi-smc";
363 arm,smc-id = <0x82000010>;
364 shmem = <&scmi_shmem>;
365 #address-cells = <1>;
366 #size-cells = <0>;
367
368 scmi_clk: protocol@14 {
369 reg = <0x14>;
370 #clock-cells = <1>;
371 };
372
373 scmi_reset: protocol@16 {
374 reg = <0x16>;
375 #reset-cells = <1>;
376 };
377 };
378 };
379
380 pmu-a55 {
381 compatible = "arm,cortex-a55-pmu";
382 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH &ppi_partition0>;
383 };
384
385 pmu-a76 {
386 compatible = "arm,cortex-a76-pmu";
387 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH &ppi_partition1>;
388 };
389
390 psci {
391 compatible = "arm,psci-1.0";
392 method = "smc";
393 };
394
395 spll: clock-0 {
396 compatible = "fixed-clock";
397 clock-frequency = <702000000>;
398 clock-output-names = "spll";
399 #clock-cells = <0>;
400 };
401
402 timer {
403 compatible = "arm,armv8-timer";
404 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH 0>,
405 <GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH 0>,
406 <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH 0>,
407 <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH 0>,
408 <GIC_PPI 12 IRQ_TYPE_LEVEL_HIGH 0>;
409 interrupt-names = "sec-phys", "phys", "virt", "hyp-phys", "hyp-virt";
410 };
411
412 xin24m: clock-1 {
413 compatible = "fixed-clock";
414 clock-frequency = <24000000>;
415 clock-output-names = "xin24m";
416 #clock-cells = <0>;
417 };
418
419 xin32k: clock-2 {
420 compatible = "fixed-clock";
421 clock-frequency = <32768>;
422 clock-output-names = "xin32k";
423 #clock-cells = <0>;
424 };
425
426 pmu_sram: sram@10f000 {
427 compatible = "mmio-sram";
428 reg = <0x0 0x0010f000 0x0 0x100>;
429 ranges = <0 0x0 0x0010f000 0x100>;
430 #address-cells = <1>;
431 #size-cells = <1>;
432
433 scmi_shmem: sram@0 {
434 compatible = "arm,scmi-shmem";
435 reg = <0x0 0x100>;
436 };
437 };
438
Diederik de Haas2fed50d2024-05-29 01:03:58 +0800439 gpu: gpu@fb000000 {
440 compatible = "rockchip,rk3588-mali", "arm,mali-valhall-csf";
441 reg = <0x0 0xfb000000 0x0 0x200000>;
442 #cooling-cells = <2>;
443 assigned-clocks = <&scmi_clk SCMI_CLK_GPU>;
444 assigned-clock-rates = <200000000>;
445 clocks = <&cru CLK_GPU>, <&cru CLK_GPU_COREGROUP>,
446 <&cru CLK_GPU_STACKS>;
447 clock-names = "core", "coregroup", "stacks";
448 dynamic-power-coefficient = <2982>;
449 interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH 0>,
450 <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH 0>,
451 <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH 0>;
452 interrupt-names = "job", "mmu", "gpu";
453 operating-points-v2 = <&gpu_opp_table>;
454 power-domains = <&power RK3588_PD_GPU>;
455 status = "disabled";
456
457 gpu_opp_table: opp-table {
458 compatible = "operating-points-v2";
459
460 opp-300000000 {
461 opp-hz = /bits/ 64 <300000000>;
462 opp-microvolt = <675000 675000 850000>;
463 };
464 opp-400000000 {
465 opp-hz = /bits/ 64 <400000000>;
466 opp-microvolt = <675000 675000 850000>;
467 };
468 opp-500000000 {
469 opp-hz = /bits/ 64 <500000000>;
470 opp-microvolt = <675000 675000 850000>;
471 };
472 opp-600000000 {
473 opp-hz = /bits/ 64 <600000000>;
474 opp-microvolt = <675000 675000 850000>;
475 };
476 opp-700000000 {
477 opp-hz = /bits/ 64 <700000000>;
478 opp-microvolt = <700000 700000 850000>;
479 };
480 opp-800000000 {
481 opp-hz = /bits/ 64 <800000000>;
482 opp-microvolt = <750000 750000 850000>;
483 };
484 opp-900000000 {
485 opp-hz = /bits/ 64 <900000000>;
486 opp-microvolt = <800000 800000 850000>;
487 };
488 opp-1000000000 {
489 opp-hz = /bits/ 64 <1000000000>;
490 opp-microvolt = <850000 850000 850000>;
491 };
492 };
493 };
494
Tom Rini53633a82024-02-29 12:33:36 -0500495 usb_host0_ehci: usb@fc800000 {
496 compatible = "rockchip,rk3588-ehci", "generic-ehci";
497 reg = <0x0 0xfc800000 0x0 0x40000>;
498 interrupts = <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH 0>;
499 clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST_ARB0>, <&cru ACLK_USB>, <&u2phy2>;
500 phys = <&u2phy2_host>;
501 phy-names = "usb";
502 power-domains = <&power RK3588_PD_USB>;
503 status = "disabled";
504 };
505
506 usb_host0_ohci: usb@fc840000 {
507 compatible = "rockchip,rk3588-ohci", "generic-ohci";
508 reg = <0x0 0xfc840000 0x0 0x40000>;
509 interrupts = <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH 0>;
510 clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST_ARB0>, <&cru ACLK_USB>, <&u2phy2>;
511 phys = <&u2phy2_host>;
512 phy-names = "usb";
513 power-domains = <&power RK3588_PD_USB>;
514 status = "disabled";
515 };
516
517 usb_host1_ehci: usb@fc880000 {
518 compatible = "rockchip,rk3588-ehci", "generic-ehci";
519 reg = <0x0 0xfc880000 0x0 0x40000>;
520 interrupts = <GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH 0>;
521 clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST_ARB1>, <&cru ACLK_USB>, <&u2phy3>;
522 phys = <&u2phy3_host>;
523 phy-names = "usb";
524 power-domains = <&power RK3588_PD_USB>;
525 status = "disabled";
526 };
527
528 usb_host1_ohci: usb@fc8c0000 {
529 compatible = "rockchip,rk3588-ohci", "generic-ohci";
530 reg = <0x0 0xfc8c0000 0x0 0x40000>;
531 interrupts = <GIC_SPI 219 IRQ_TYPE_LEVEL_HIGH 0>;
532 clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST_ARB1>, <&cru ACLK_USB>, <&u2phy3>;
533 phys = <&u2phy3_host>;
534 phy-names = "usb";
535 power-domains = <&power RK3588_PD_USB>;
536 status = "disabled";
537 };
538
539 usb_host2_xhci: usb@fcd00000 {
540 compatible = "rockchip,rk3588-dwc3", "snps,dwc3";
541 reg = <0x0 0xfcd00000 0x0 0x400000>;
542 interrupts = <GIC_SPI 222 IRQ_TYPE_LEVEL_HIGH 0>;
543 clocks = <&cru REF_CLK_USB3OTG2>, <&cru SUSPEND_CLK_USB3OTG2>,
544 <&cru ACLK_USB3OTG2>, <&cru CLK_UTMI_OTG2>,
545 <&cru CLK_PIPEPHY2_PIPE_U3_G>;
546 clock-names = "ref_clk", "suspend_clk", "bus_clk", "utmi", "pipe";
547 dr_mode = "host";
548 phys = <&combphy2_psu PHY_TYPE_USB3>;
549 phy-names = "usb3-phy";
550 phy_type = "utmi_wide";
551 resets = <&cru SRST_A_USB3OTG2>;
552 snps,dis_enblslpm_quirk;
553 snps,dis-u2-freeclk-exists-quirk;
554 snps,dis-del-phy-power-chg-quirk;
555 snps,dis-tx-ipgap-linecheck-quirk;
556 snps,dis_rxdet_inp3_quirk;
557 status = "disabled";
Boris Brezillon189f7582024-05-29 01:03:57 +0800558 };
559
Tom Rini53633a82024-02-29 12:33:36 -0500560 pmu1grf: syscon@fd58a000 {
561 compatible = "rockchip,rk3588-pmugrf", "syscon", "simple-mfd";
562 reg = <0x0 0xfd58a000 0x0 0x10000>;
563 };
564
565 sys_grf: syscon@fd58c000 {
566 compatible = "rockchip,rk3588-sys-grf", "syscon";
567 reg = <0x0 0xfd58c000 0x0 0x1000>;
568 };
569
Tom Rini93743d22024-04-01 09:08:13 -0400570 vop_grf: syscon@fd5a4000 {
571 compatible = "rockchip,rk3588-vop-grf", "syscon";
572 reg = <0x0 0xfd5a4000 0x0 0x2000>;
573 };
574
575 vo1_grf: syscon@fd5a8000 {
576 compatible = "rockchip,rk3588-vo-grf", "syscon";
577 reg = <0x0 0xfd5a8000 0x0 0x100>;
Tom Rini6bb92fc2024-05-20 09:54:58 -0600578 clocks = <&cru PCLK_VO1GRF>;
Tom Rini93743d22024-04-01 09:08:13 -0400579 };
580
Tom Rini53633a82024-02-29 12:33:36 -0500581 php_grf: syscon@fd5b0000 {
582 compatible = "rockchip,rk3588-php-grf", "syscon";
583 reg = <0x0 0xfd5b0000 0x0 0x1000>;
584 };
585
586 pipe_phy0_grf: syscon@fd5bc000 {
587 compatible = "rockchip,rk3588-pipe-phy-grf", "syscon";
588 reg = <0x0 0xfd5bc000 0x0 0x100>;
589 };
590
591 pipe_phy2_grf: syscon@fd5c4000 {
592 compatible = "rockchip,rk3588-pipe-phy-grf", "syscon";
593 reg = <0x0 0xfd5c4000 0x0 0x100>;
594 };
595
596 usb2phy2_grf: syscon@fd5d8000 {
597 compatible = "rockchip,rk3588-usb2phy-grf", "syscon", "simple-mfd";
598 reg = <0x0 0xfd5d8000 0x0 0x4000>;
599 #address-cells = <1>;
600 #size-cells = <1>;
601
602 u2phy2: usb2-phy@8000 {
603 compatible = "rockchip,rk3588-usb2phy";
604 reg = <0x8000 0x10>;
605 interrupts = <GIC_SPI 391 IRQ_TYPE_LEVEL_HIGH 0>;
606 resets = <&cru SRST_OTGPHY_U2_0>, <&cru SRST_P_USB2PHY_U2_0_GRF0>;
607 reset-names = "phy", "apb";
608 clocks = <&cru CLK_USB2PHY_HDPTXRXPHY_REF>;
609 clock-names = "phyclk";
610 clock-output-names = "usb480m_phy2";
611 #clock-cells = <0>;
612 status = "disabled";
613
614 u2phy2_host: host-port {
615 #phy-cells = <0>;
616 status = "disabled";
617 };
618 };
619 };
620
621 usb2phy3_grf: syscon@fd5dc000 {
622 compatible = "rockchip,rk3588-usb2phy-grf", "syscon", "simple-mfd";
623 reg = <0x0 0xfd5dc000 0x0 0x4000>;
624 #address-cells = <1>;
625 #size-cells = <1>;
626
627 u2phy3: usb2-phy@c000 {
628 compatible = "rockchip,rk3588-usb2phy";
629 reg = <0xc000 0x10>;
630 interrupts = <GIC_SPI 392 IRQ_TYPE_LEVEL_HIGH 0>;
631 resets = <&cru SRST_OTGPHY_U2_1>, <&cru SRST_P_USB2PHY_U2_1_GRF0>;
632 reset-names = "phy", "apb";
633 clocks = <&cru CLK_USB2PHY_HDPTXRXPHY_REF>;
634 clock-names = "phyclk";
635 clock-output-names = "usb480m_phy3";
636 #clock-cells = <0>;
637 status = "disabled";
638
639 u2phy3_host: host-port {
640 #phy-cells = <0>;
641 status = "disabled";
642 };
643 };
644 };
645
Tom Rini6bb92fc2024-05-20 09:54:58 -0600646 hdptxphy0_grf: syscon@fd5e0000 {
647 compatible = "rockchip,rk3588-hdptxphy-grf", "syscon";
648 reg = <0x0 0xfd5e0000 0x0 0x100>;
649 };
650
Tom Rini53633a82024-02-29 12:33:36 -0500651 ioc: syscon@fd5f0000 {
652 compatible = "rockchip,rk3588-ioc", "syscon";
653 reg = <0x0 0xfd5f0000 0x0 0x10000>;
654 };
655
656 system_sram1: sram@fd600000 {
657 compatible = "mmio-sram";
658 reg = <0x0 0xfd600000 0x0 0x100000>;
659 ranges = <0x0 0x0 0xfd600000 0x100000>;
660 #address-cells = <1>;
661 #size-cells = <1>;
662 };
663
664 cru: clock-controller@fd7c0000 {
665 compatible = "rockchip,rk3588-cru";
666 reg = <0x0 0xfd7c0000 0x0 0x5c000>;
667 assigned-clocks =
668 <&cru PLL_PPLL>, <&cru PLL_AUPLL>,
669 <&cru PLL_NPLL>, <&cru PLL_GPLL>,
670 <&cru ACLK_CENTER_ROOT>,
671 <&cru HCLK_CENTER_ROOT>, <&cru ACLK_CENTER_LOW_ROOT>,
672 <&cru ACLK_TOP_ROOT>, <&cru PCLK_TOP_ROOT>,
673 <&cru ACLK_LOW_TOP_ROOT>, <&cru PCLK_PMU0_ROOT>,
674 <&cru HCLK_PMU_CM0_ROOT>, <&cru ACLK_VOP>,
675 <&cru ACLK_BUS_ROOT>, <&cru CLK_150M_SRC>,
676 <&cru CLK_GPU>;
677 assigned-clock-rates =
678 <1100000000>, <786432000>,
679 <850000000>, <1188000000>,
680 <702000000>,
681 <400000000>, <500000000>,
682 <800000000>, <100000000>,
683 <400000000>, <100000000>,
684 <200000000>, <500000000>,
685 <375000000>, <150000000>,
686 <200000000>;
687 rockchip,grf = <&php_grf>;
688 #clock-cells = <1>;
689 #reset-cells = <1>;
690 };
691
692 i2c0: i2c@fd880000 {
693 compatible = "rockchip,rk3588-i2c", "rockchip,rk3399-i2c";
694 reg = <0x0 0xfd880000 0x0 0x1000>;
695 interrupts = <GIC_SPI 317 IRQ_TYPE_LEVEL_HIGH 0>;
696 clocks = <&cru CLK_I2C0>, <&cru PCLK_I2C0>;
697 clock-names = "i2c", "pclk";
698 pinctrl-0 = <&i2c0m0_xfer>;
699 pinctrl-names = "default";
700 #address-cells = <1>;
701 #size-cells = <0>;
702 status = "disabled";
703 };
704
705 uart0: serial@fd890000 {
706 compatible = "rockchip,rk3588-uart", "snps,dw-apb-uart";
707 reg = <0x0 0xfd890000 0x0 0x100>;
708 interrupts = <GIC_SPI 331 IRQ_TYPE_LEVEL_HIGH 0>;
709 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
710 clock-names = "baudclk", "apb_pclk";
711 dmas = <&dmac0 6>, <&dmac0 7>;
712 dma-names = "tx", "rx";
713 pinctrl-0 = <&uart0m1_xfer>;
714 pinctrl-names = "default";
715 reg-shift = <2>;
716 reg-io-width = <4>;
717 status = "disabled";
718 };
719
720 pwm0: pwm@fd8b0000 {
721 compatible = "rockchip,rk3588-pwm", "rockchip,rk3328-pwm";
722 reg = <0x0 0xfd8b0000 0x0 0x10>;
723 clocks = <&cru CLK_PMU1PWM>, <&cru PCLK_PMU1PWM>;
724 clock-names = "pwm", "pclk";
725 pinctrl-0 = <&pwm0m0_pins>;
726 pinctrl-names = "default";
727 #pwm-cells = <3>;
728 status = "disabled";
729 };
730
731 pwm1: pwm@fd8b0010 {
732 compatible = "rockchip,rk3588-pwm", "rockchip,rk3328-pwm";
733 reg = <0x0 0xfd8b0010 0x0 0x10>;
734 clocks = <&cru CLK_PMU1PWM>, <&cru PCLK_PMU1PWM>;
735 clock-names = "pwm", "pclk";
736 pinctrl-0 = <&pwm1m0_pins>;
737 pinctrl-names = "default";
738 #pwm-cells = <3>;
739 status = "disabled";
740 };
741
742 pwm2: pwm@fd8b0020 {
743 compatible = "rockchip,rk3588-pwm", "rockchip,rk3328-pwm";
744 reg = <0x0 0xfd8b0020 0x0 0x10>;
745 clocks = <&cru CLK_PMU1PWM>, <&cru PCLK_PMU1PWM>;
746 clock-names = "pwm", "pclk";
747 pinctrl-0 = <&pwm2m0_pins>;
748 pinctrl-names = "default";
749 #pwm-cells = <3>;
750 status = "disabled";
751 };
752
753 pwm3: pwm@fd8b0030 {
754 compatible = "rockchip,rk3588-pwm", "rockchip,rk3328-pwm";
755 reg = <0x0 0xfd8b0030 0x0 0x10>;
756 clocks = <&cru CLK_PMU1PWM>, <&cru PCLK_PMU1PWM>;
757 clock-names = "pwm", "pclk";
758 pinctrl-0 = <&pwm3m0_pins>;
759 pinctrl-names = "default";
760 #pwm-cells = <3>;
761 status = "disabled";
762 };
763
764 pmu: power-management@fd8d8000 {
765 compatible = "rockchip,rk3588-pmu", "syscon", "simple-mfd";
766 reg = <0x0 0xfd8d8000 0x0 0x400>;
767
768 power: power-controller {
769 compatible = "rockchip,rk3588-power-controller";
770 #address-cells = <1>;
771 #power-domain-cells = <1>;
772 #size-cells = <0>;
773 status = "okay";
774
775 /* These power domains are grouped by VD_NPU */
776 power-domain@RK3588_PD_NPU {
777 reg = <RK3588_PD_NPU>;
778 #power-domain-cells = <0>;
779 #address-cells = <1>;
780 #size-cells = <0>;
781
782 power-domain@RK3588_PD_NPUTOP {
783 reg = <RK3588_PD_NPUTOP>;
784 clocks = <&cru HCLK_NPU_ROOT>,
785 <&cru PCLK_NPU_ROOT>,
786 <&cru CLK_NPU_DSU0>,
787 <&cru HCLK_NPU_CM0_ROOT>;
788 pm_qos = <&qos_npu0_mwr>,
789 <&qos_npu0_mro>,
790 <&qos_mcu_npu>;
791 #power-domain-cells = <0>;
792 #address-cells = <1>;
793 #size-cells = <0>;
794
795 power-domain@RK3588_PD_NPU1 {
796 reg = <RK3588_PD_NPU1>;
797 clocks = <&cru HCLK_NPU_ROOT>,
798 <&cru PCLK_NPU_ROOT>,
799 <&cru CLK_NPU_DSU0>;
800 pm_qos = <&qos_npu1>;
801 #power-domain-cells = <0>;
802 };
803 power-domain@RK3588_PD_NPU2 {
804 reg = <RK3588_PD_NPU2>;
805 clocks = <&cru HCLK_NPU_ROOT>,
806 <&cru PCLK_NPU_ROOT>,
807 <&cru CLK_NPU_DSU0>;
808 pm_qos = <&qos_npu2>;
809 #power-domain-cells = <0>;
810 };
811 };
812 };
813 /* These power domains are grouped by VD_GPU */
814 power-domain@RK3588_PD_GPU {
815 reg = <RK3588_PD_GPU>;
816 clocks = <&cru CLK_GPU>,
817 <&cru CLK_GPU_COREGROUP>,
818 <&cru CLK_GPU_STACKS>;
819 pm_qos = <&qos_gpu_m0>,
820 <&qos_gpu_m1>,
821 <&qos_gpu_m2>,
822 <&qos_gpu_m3>;
823 #power-domain-cells = <0>;
824 };
825 /* These power domains are grouped by VD_VCODEC */
826 power-domain@RK3588_PD_VCODEC {
827 reg = <RK3588_PD_VCODEC>;
828 #address-cells = <1>;
829 #size-cells = <0>;
830 #power-domain-cells = <0>;
831
832 power-domain@RK3588_PD_RKVDEC0 {
833 reg = <RK3588_PD_RKVDEC0>;
834 clocks = <&cru HCLK_RKVDEC0>,
835 <&cru HCLK_VDPU_ROOT>,
836 <&cru ACLK_VDPU_ROOT>,
837 <&cru ACLK_RKVDEC0>,
838 <&cru ACLK_RKVDEC_CCU>;
839 pm_qos = <&qos_rkvdec0>;
840 #power-domain-cells = <0>;
841 };
842 power-domain@RK3588_PD_RKVDEC1 {
843 reg = <RK3588_PD_RKVDEC1>;
844 clocks = <&cru HCLK_RKVDEC1>,
845 <&cru HCLK_VDPU_ROOT>,
846 <&cru ACLK_VDPU_ROOT>,
847 <&cru ACLK_RKVDEC1>;
848 pm_qos = <&qos_rkvdec1>;
849 #power-domain-cells = <0>;
850 };
851 power-domain@RK3588_PD_VENC0 {
852 reg = <RK3588_PD_VENC0>;
853 clocks = <&cru HCLK_RKVENC0>,
854 <&cru ACLK_RKVENC0>;
855 pm_qos = <&qos_rkvenc0_m0ro>,
856 <&qos_rkvenc0_m1ro>,
857 <&qos_rkvenc0_m2wo>;
858 #address-cells = <1>;
859 #size-cells = <0>;
860 #power-domain-cells = <0>;
861
862 power-domain@RK3588_PD_VENC1 {
863 reg = <RK3588_PD_VENC1>;
864 clocks = <&cru HCLK_RKVENC1>,
865 <&cru HCLK_RKVENC0>,
866 <&cru ACLK_RKVENC0>,
867 <&cru ACLK_RKVENC1>;
868 pm_qos = <&qos_rkvenc1_m0ro>,
869 <&qos_rkvenc1_m1ro>,
870 <&qos_rkvenc1_m2wo>;
871 #power-domain-cells = <0>;
872 };
873 };
874 };
875 /* These power domains are grouped by VD_LOGIC */
876 power-domain@RK3588_PD_VDPU {
877 reg = <RK3588_PD_VDPU>;
878 clocks = <&cru HCLK_VDPU_ROOT>,
879 <&cru ACLK_VDPU_LOW_ROOT>,
880 <&cru ACLK_VDPU_ROOT>,
881 <&cru ACLK_JPEG_DECODER_ROOT>,
882 <&cru ACLK_IEP2P0>,
883 <&cru HCLK_IEP2P0>,
884 <&cru ACLK_JPEG_ENCODER0>,
885 <&cru HCLK_JPEG_ENCODER0>,
886 <&cru ACLK_JPEG_ENCODER1>,
887 <&cru HCLK_JPEG_ENCODER1>,
888 <&cru ACLK_JPEG_ENCODER2>,
889 <&cru HCLK_JPEG_ENCODER2>,
890 <&cru ACLK_JPEG_ENCODER3>,
891 <&cru HCLK_JPEG_ENCODER3>,
892 <&cru ACLK_JPEG_DECODER>,
893 <&cru HCLK_JPEG_DECODER>,
894 <&cru ACLK_RGA2>,
895 <&cru HCLK_RGA2>;
896 pm_qos = <&qos_iep>,
897 <&qos_jpeg_dec>,
898 <&qos_jpeg_enc0>,
899 <&qos_jpeg_enc1>,
900 <&qos_jpeg_enc2>,
901 <&qos_jpeg_enc3>,
902 <&qos_rga2_mro>,
903 <&qos_rga2_mwo>;
904 #address-cells = <1>;
905 #size-cells = <0>;
906 #power-domain-cells = <0>;
907
908
909 power-domain@RK3588_PD_AV1 {
910 reg = <RK3588_PD_AV1>;
911 clocks = <&cru PCLK_AV1>,
912 <&cru ACLK_AV1>,
913 <&cru HCLK_VDPU_ROOT>;
914 pm_qos = <&qos_av1>;
915 #power-domain-cells = <0>;
916 };
917 power-domain@RK3588_PD_RKVDEC0 {
918 reg = <RK3588_PD_RKVDEC0>;
919 clocks = <&cru HCLK_RKVDEC0>,
920 <&cru HCLK_VDPU_ROOT>,
921 <&cru ACLK_VDPU_ROOT>,
922 <&cru ACLK_RKVDEC0>;
923 pm_qos = <&qos_rkvdec0>;
924 #power-domain-cells = <0>;
925 };
926 power-domain@RK3588_PD_RKVDEC1 {
927 reg = <RK3588_PD_RKVDEC1>;
928 clocks = <&cru HCLK_RKVDEC1>,
929 <&cru HCLK_VDPU_ROOT>,
930 <&cru ACLK_VDPU_ROOT>;
931 pm_qos = <&qos_rkvdec1>;
932 #power-domain-cells = <0>;
933 };
934 power-domain@RK3588_PD_RGA30 {
935 reg = <RK3588_PD_RGA30>;
936 clocks = <&cru ACLK_RGA3_0>,
937 <&cru HCLK_RGA3_0>;
938 pm_qos = <&qos_rga3_0>;
939 #power-domain-cells = <0>;
940 };
941 };
942 power-domain@RK3588_PD_VOP {
943 reg = <RK3588_PD_VOP>;
944 clocks = <&cru PCLK_VOP_ROOT>,
945 <&cru HCLK_VOP_ROOT>,
946 <&cru ACLK_VOP>;
947 pm_qos = <&qos_vop_m0>,
948 <&qos_vop_m1>;
949 #address-cells = <1>;
950 #size-cells = <0>;
951 #power-domain-cells = <0>;
952
953 power-domain@RK3588_PD_VO0 {
954 reg = <RK3588_PD_VO0>;
955 clocks = <&cru PCLK_VO0_ROOT>,
956 <&cru PCLK_VO0_S_ROOT>,
957 <&cru HCLK_VO0_S_ROOT>,
958 <&cru ACLK_VO0_ROOT>,
959 <&cru HCLK_HDCP0>,
960 <&cru ACLK_HDCP0>,
961 <&cru HCLK_VOP_ROOT>;
962 pm_qos = <&qos_hdcp0>;
963 #power-domain-cells = <0>;
964 };
965 };
966 power-domain@RK3588_PD_VO1 {
967 reg = <RK3588_PD_VO1>;
968 clocks = <&cru PCLK_VO1_ROOT>,
969 <&cru PCLK_VO1_S_ROOT>,
970 <&cru HCLK_VO1_S_ROOT>,
971 <&cru HCLK_HDCP1>,
972 <&cru ACLK_HDCP1>,
973 <&cru ACLK_HDMIRX_ROOT>,
974 <&cru HCLK_VO1USB_TOP_ROOT>;
975 pm_qos = <&qos_hdcp1>,
976 <&qos_hdmirx>;
977 #power-domain-cells = <0>;
978 };
979 power-domain@RK3588_PD_VI {
980 reg = <RK3588_PD_VI>;
981 clocks = <&cru HCLK_VI_ROOT>,
982 <&cru PCLK_VI_ROOT>,
983 <&cru HCLK_ISP0>,
984 <&cru ACLK_ISP0>,
985 <&cru HCLK_VICAP>,
986 <&cru ACLK_VICAP>;
987 pm_qos = <&qos_isp0_mro>,
988 <&qos_isp0_mwo>,
989 <&qos_vicap_m0>,
990 <&qos_vicap_m1>;
991 #address-cells = <1>;
992 #size-cells = <0>;
993 #power-domain-cells = <0>;
994
995 power-domain@RK3588_PD_ISP1 {
996 reg = <RK3588_PD_ISP1>;
997 clocks = <&cru HCLK_ISP1>,
998 <&cru ACLK_ISP1>,
999 <&cru HCLK_VI_ROOT>,
1000 <&cru PCLK_VI_ROOT>;
1001 pm_qos = <&qos_isp1_mwo>,
1002 <&qos_isp1_mro>;
1003 #power-domain-cells = <0>;
1004 };
1005 power-domain@RK3588_PD_FEC {
1006 reg = <RK3588_PD_FEC>;
1007 clocks = <&cru HCLK_FISHEYE0>,
1008 <&cru ACLK_FISHEYE0>,
1009 <&cru HCLK_FISHEYE1>,
1010 <&cru ACLK_FISHEYE1>,
1011 <&cru PCLK_VI_ROOT>;
1012 pm_qos = <&qos_fisheye0>,
1013 <&qos_fisheye1>;
1014 #power-domain-cells = <0>;
1015 };
1016 };
1017 power-domain@RK3588_PD_RGA31 {
1018 reg = <RK3588_PD_RGA31>;
1019 clocks = <&cru HCLK_RGA3_1>,
1020 <&cru ACLK_RGA3_1>;
1021 pm_qos = <&qos_rga3_1>;
1022 #power-domain-cells = <0>;
1023 };
1024 power-domain@RK3588_PD_USB {
1025 reg = <RK3588_PD_USB>;
1026 clocks = <&cru PCLK_PHP_ROOT>,
1027 <&cru ACLK_USB_ROOT>,
Tom Rini93743d22024-04-01 09:08:13 -04001028 <&cru ACLK_USB>,
Tom Rini53633a82024-02-29 12:33:36 -05001029 <&cru HCLK_USB_ROOT>,
1030 <&cru HCLK_HOST0>,
1031 <&cru HCLK_HOST_ARB0>,
1032 <&cru HCLK_HOST1>,
1033 <&cru HCLK_HOST_ARB1>;
1034 pm_qos = <&qos_usb3_0>,
1035 <&qos_usb3_1>,
1036 <&qos_usb2host_0>,
1037 <&qos_usb2host_1>;
1038 #power-domain-cells = <0>;
1039 };
1040 power-domain@RK3588_PD_GMAC {
1041 reg = <RK3588_PD_GMAC>;
1042 clocks = <&cru PCLK_PHP_ROOT>,
1043 <&cru ACLK_PCIE_ROOT>,
1044 <&cru ACLK_PHP_ROOT>;
1045 #power-domain-cells = <0>;
1046 };
1047 power-domain@RK3588_PD_PCIE {
1048 reg = <RK3588_PD_PCIE>;
1049 clocks = <&cru PCLK_PHP_ROOT>,
1050 <&cru ACLK_PCIE_ROOT>,
1051 <&cru ACLK_PHP_ROOT>;
1052 #power-domain-cells = <0>;
1053 };
1054 power-domain@RK3588_PD_SDIO {
1055 reg = <RK3588_PD_SDIO>;
1056 clocks = <&cru HCLK_SDIO>,
1057 <&cru HCLK_NVM_ROOT>;
1058 pm_qos = <&qos_sdio>;
1059 #power-domain-cells = <0>;
1060 };
1061 power-domain@RK3588_PD_AUDIO {
1062 reg = <RK3588_PD_AUDIO>;
1063 clocks = <&cru HCLK_AUDIO_ROOT>,
1064 <&cru PCLK_AUDIO_ROOT>;
1065 #power-domain-cells = <0>;
1066 };
1067 power-domain@RK3588_PD_SDMMC {
1068 reg = <RK3588_PD_SDMMC>;
1069 pm_qos = <&qos_sdmmc>;
1070 #power-domain-cells = <0>;
1071 };
1072 };
1073 };
1074
Diederik de Haas2fed50d2024-05-29 01:03:58 +08001075 av1d: video-codec@fdc70000 {
1076 compatible = "rockchip,rk3588-av1-vpu";
1077 reg = <0x0 0xfdc70000 0x0 0x800>;
1078 interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH 0>;
1079 interrupt-names = "vdpu";
1080 assigned-clocks = <&cru ACLK_AV1>, <&cru PCLK_AV1>;
1081 assigned-clock-rates = <400000000>, <400000000>;
1082 clocks = <&cru ACLK_AV1>, <&cru PCLK_AV1>;
1083 clock-names = "aclk", "hclk";
1084 power-domains = <&power RK3588_PD_AV1>;
1085 resets = <&cru SRST_A_AV1>, <&cru SRST_P_AV1>, <&cru SRST_A_AV1_BIU>, <&cru SRST_P_AV1_BIU>;
1086 };
1087
1088 vop: vop@fdd90000 {
1089 compatible = "rockchip,rk3588-vop";
1090 reg = <0x0 0xfdd90000 0x0 0x4200>, <0x0 0xfdd95000 0x0 0x1000>;
1091 reg-names = "vop", "gamma-lut";
1092 interrupts = <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH 0>;
1093 clocks = <&cru ACLK_VOP>,
1094 <&cru HCLK_VOP>,
1095 <&cru DCLK_VOP0>,
1096 <&cru DCLK_VOP1>,
1097 <&cru DCLK_VOP2>,
1098 <&cru DCLK_VOP3>,
1099 <&cru PCLK_VOP_ROOT>;
1100 clock-names = "aclk",
1101 "hclk",
1102 "dclk_vp0",
1103 "dclk_vp1",
1104 "dclk_vp2",
1105 "dclk_vp3",
1106 "pclk_vop";
1107 iommus = <&vop_mmu>;
1108 power-domains = <&power RK3588_PD_VOP>;
1109 rockchip,grf = <&sys_grf>;
1110 rockchip,vop-grf = <&vop_grf>;
1111 rockchip,vo1-grf = <&vo1_grf>;
1112 rockchip,pmu = <&pmu>;
1113 status = "disabled";
1114
1115 vop_out: ports {
1116 #address-cells = <1>;
1117 #size-cells = <0>;
1118
1119 vp0: port@0 {
1120 #address-cells = <1>;
1121 #size-cells = <0>;
1122 reg = <0>;
1123 };
1124
1125 vp1: port@1 {
1126 #address-cells = <1>;
1127 #size-cells = <0>;
1128 reg = <1>;
1129 };
1130
1131 vp2: port@2 {
1132 #address-cells = <1>;
1133 #size-cells = <0>;
1134 reg = <2>;
1135 };
1136
1137 vp3: port@3 {
1138 #address-cells = <1>;
1139 #size-cells = <0>;
1140 reg = <3>;
1141 };
1142 };
1143 };
1144
1145 vop_mmu: iommu@fdd97e00 {
1146 compatible = "rockchip,rk3588-iommu", "rockchip,rk3568-iommu";
1147 reg = <0x0 0xfdd97e00 0x0 0x100>, <0x0 0xfdd97f00 0x0 0x100>;
1148 interrupts = <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH 0>;
1149 clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>;
1150 clock-names = "aclk", "iface";
1151 #iommu-cells = <0>;
1152 power-domains = <&power RK3588_PD_VOP>;
1153 status = "disabled";
1154 };
1155
Tom Rini53633a82024-02-29 12:33:36 -05001156 i2s4_8ch: i2s@fddc0000 {
1157 compatible = "rockchip,rk3588-i2s-tdm";
1158 reg = <0x0 0xfddc0000 0x0 0x1000>;
1159 interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH 0>;
1160 clocks = <&cru MCLK_I2S4_8CH_TX>, <&cru MCLK_I2S4_8CH_TX>, <&cru HCLK_I2S4_8CH>;
1161 clock-names = "mclk_tx", "mclk_rx", "hclk";
1162 assigned-clocks = <&cru CLK_I2S4_8CH_TX_SRC>;
1163 assigned-clock-parents = <&cru PLL_AUPLL>;
1164 dmas = <&dmac2 0>;
1165 dma-names = "tx";
1166 power-domains = <&power RK3588_PD_VO0>;
1167 resets = <&cru SRST_M_I2S4_8CH_TX>;
1168 reset-names = "tx-m";
1169 #sound-dai-cells = <0>;
1170 status = "disabled";
1171 };
1172
1173 i2s5_8ch: i2s@fddf0000 {
1174 compatible = "rockchip,rk3588-i2s-tdm";
1175 reg = <0x0 0xfddf0000 0x0 0x1000>;
1176 interrupts = <GIC_SPI 185 IRQ_TYPE_LEVEL_HIGH 0>;
1177 clocks = <&cru MCLK_I2S5_8CH_TX>, <&cru MCLK_I2S5_8CH_TX>, <&cru HCLK_I2S5_8CH>;
1178 clock-names = "mclk_tx", "mclk_rx", "hclk";
1179 assigned-clocks = <&cru CLK_I2S5_8CH_TX_SRC>;
1180 assigned-clock-parents = <&cru PLL_AUPLL>;
1181 dmas = <&dmac2 2>;
1182 dma-names = "tx";
1183 power-domains = <&power RK3588_PD_VO1>;
1184 resets = <&cru SRST_M_I2S5_8CH_TX>;
1185 reset-names = "tx-m";
1186 #sound-dai-cells = <0>;
1187 status = "disabled";
1188 };
1189
1190 i2s9_8ch: i2s@fddfc000 {
1191 compatible = "rockchip,rk3588-i2s-tdm";
1192 reg = <0x0 0xfddfc000 0x0 0x1000>;
1193 interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH 0>;
1194 clocks = <&cru MCLK_I2S9_8CH_RX>, <&cru MCLK_I2S9_8CH_RX>, <&cru HCLK_I2S9_8CH>;
1195 clock-names = "mclk_tx", "mclk_rx", "hclk";
1196 assigned-clocks = <&cru CLK_I2S9_8CH_RX_SRC>;
1197 assigned-clock-parents = <&cru PLL_AUPLL>;
1198 dmas = <&dmac2 23>;
1199 dma-names = "rx";
1200 power-domains = <&power RK3588_PD_VO1>;
1201 resets = <&cru SRST_M_I2S9_8CH_RX>;
1202 reset-names = "rx-m";
1203 #sound-dai-cells = <0>;
1204 status = "disabled";
1205 };
1206
1207 qos_gpu_m0: qos@fdf35000 {
1208 compatible = "rockchip,rk3588-qos", "syscon";
1209 reg = <0x0 0xfdf35000 0x0 0x20>;
1210 };
1211
1212 qos_gpu_m1: qos@fdf35200 {
1213 compatible = "rockchip,rk3588-qos", "syscon";
1214 reg = <0x0 0xfdf35200 0x0 0x20>;
1215 };
1216
1217 qos_gpu_m2: qos@fdf35400 {
1218 compatible = "rockchip,rk3588-qos", "syscon";
1219 reg = <0x0 0xfdf35400 0x0 0x20>;
1220 };
1221
1222 qos_gpu_m3: qos@fdf35600 {
1223 compatible = "rockchip,rk3588-qos", "syscon";
1224 reg = <0x0 0xfdf35600 0x0 0x20>;
1225 };
1226
1227 qos_rga3_1: qos@fdf36000 {
1228 compatible = "rockchip,rk3588-qos", "syscon";
1229 reg = <0x0 0xfdf36000 0x0 0x20>;
1230 };
1231
1232 qos_sdio: qos@fdf39000 {
1233 compatible = "rockchip,rk3588-qos", "syscon";
1234 reg = <0x0 0xfdf39000 0x0 0x20>;
1235 };
1236
1237 qos_sdmmc: qos@fdf3d800 {
1238 compatible = "rockchip,rk3588-qos", "syscon";
1239 reg = <0x0 0xfdf3d800 0x0 0x20>;
1240 };
1241
1242 qos_usb3_1: qos@fdf3e000 {
1243 compatible = "rockchip,rk3588-qos", "syscon";
1244 reg = <0x0 0xfdf3e000 0x0 0x20>;
1245 };
1246
1247 qos_usb3_0: qos@fdf3e200 {
1248 compatible = "rockchip,rk3588-qos", "syscon";
1249 reg = <0x0 0xfdf3e200 0x0 0x20>;
1250 };
1251
1252 qos_usb2host_0: qos@fdf3e400 {
1253 compatible = "rockchip,rk3588-qos", "syscon";
1254 reg = <0x0 0xfdf3e400 0x0 0x20>;
1255 };
1256
1257 qos_usb2host_1: qos@fdf3e600 {
1258 compatible = "rockchip,rk3588-qos", "syscon";
1259 reg = <0x0 0xfdf3e600 0x0 0x20>;
1260 };
1261
1262 qos_fisheye0: qos@fdf40000 {
1263 compatible = "rockchip,rk3588-qos", "syscon";
1264 reg = <0x0 0xfdf40000 0x0 0x20>;
1265 };
1266
1267 qos_fisheye1: qos@fdf40200 {
1268 compatible = "rockchip,rk3588-qos", "syscon";
1269 reg = <0x0 0xfdf40200 0x0 0x20>;
1270 };
1271
1272 qos_isp0_mro: qos@fdf40400 {
1273 compatible = "rockchip,rk3588-qos", "syscon";
1274 reg = <0x0 0xfdf40400 0x0 0x20>;
1275 };
1276
1277 qos_isp0_mwo: qos@fdf40500 {
1278 compatible = "rockchip,rk3588-qos", "syscon";
1279 reg = <0x0 0xfdf40500 0x0 0x20>;
1280 };
1281
1282 qos_vicap_m0: qos@fdf40600 {
1283 compatible = "rockchip,rk3588-qos", "syscon";
1284 reg = <0x0 0xfdf40600 0x0 0x20>;
1285 };
1286
1287 qos_vicap_m1: qos@fdf40800 {
1288 compatible = "rockchip,rk3588-qos", "syscon";
1289 reg = <0x0 0xfdf40800 0x0 0x20>;
1290 };
1291
1292 qos_isp1_mwo: qos@fdf41000 {
1293 compatible = "rockchip,rk3588-qos", "syscon";
1294 reg = <0x0 0xfdf41000 0x0 0x20>;
1295 };
1296
1297 qos_isp1_mro: qos@fdf41100 {
1298 compatible = "rockchip,rk3588-qos", "syscon";
1299 reg = <0x0 0xfdf41100 0x0 0x20>;
1300 };
1301
1302 qos_rkvenc0_m0ro: qos@fdf60000 {
1303 compatible = "rockchip,rk3588-qos", "syscon";
1304 reg = <0x0 0xfdf60000 0x0 0x20>;
1305 };
1306
1307 qos_rkvenc0_m1ro: qos@fdf60200 {
1308 compatible = "rockchip,rk3588-qos", "syscon";
1309 reg = <0x0 0xfdf60200 0x0 0x20>;
1310 };
1311
1312 qos_rkvenc0_m2wo: qos@fdf60400 {
1313 compatible = "rockchip,rk3588-qos", "syscon";
1314 reg = <0x0 0xfdf60400 0x0 0x20>;
1315 };
1316
1317 qos_rkvenc1_m0ro: qos@fdf61000 {
1318 compatible = "rockchip,rk3588-qos", "syscon";
1319 reg = <0x0 0xfdf61000 0x0 0x20>;
1320 };
1321
1322 qos_rkvenc1_m1ro: qos@fdf61200 {
1323 compatible = "rockchip,rk3588-qos", "syscon";
1324 reg = <0x0 0xfdf61200 0x0 0x20>;
1325 };
1326
1327 qos_rkvenc1_m2wo: qos@fdf61400 {
1328 compatible = "rockchip,rk3588-qos", "syscon";
1329 reg = <0x0 0xfdf61400 0x0 0x20>;
1330 };
1331
1332 qos_rkvdec0: qos@fdf62000 {
1333 compatible = "rockchip,rk3588-qos", "syscon";
1334 reg = <0x0 0xfdf62000 0x0 0x20>;
1335 };
1336
1337 qos_rkvdec1: qos@fdf63000 {
1338 compatible = "rockchip,rk3588-qos", "syscon";
1339 reg = <0x0 0xfdf63000 0x0 0x20>;
1340 };
1341
1342 qos_av1: qos@fdf64000 {
1343 compatible = "rockchip,rk3588-qos", "syscon";
1344 reg = <0x0 0xfdf64000 0x0 0x20>;
1345 };
1346
1347 qos_iep: qos@fdf66000 {
1348 compatible = "rockchip,rk3588-qos", "syscon";
1349 reg = <0x0 0xfdf66000 0x0 0x20>;
1350 };
1351
1352 qos_jpeg_dec: qos@fdf66200 {
1353 compatible = "rockchip,rk3588-qos", "syscon";
1354 reg = <0x0 0xfdf66200 0x0 0x20>;
1355 };
1356
1357 qos_jpeg_enc0: qos@fdf66400 {
1358 compatible = "rockchip,rk3588-qos", "syscon";
1359 reg = <0x0 0xfdf66400 0x0 0x20>;
1360 };
1361
1362 qos_jpeg_enc1: qos@fdf66600 {
1363 compatible = "rockchip,rk3588-qos", "syscon";
1364 reg = <0x0 0xfdf66600 0x0 0x20>;
1365 };
1366
1367 qos_jpeg_enc2: qos@fdf66800 {
1368 compatible = "rockchip,rk3588-qos", "syscon";
1369 reg = <0x0 0xfdf66800 0x0 0x20>;
1370 };
1371
1372 qos_jpeg_enc3: qos@fdf66a00 {
1373 compatible = "rockchip,rk3588-qos", "syscon";
1374 reg = <0x0 0xfdf66a00 0x0 0x20>;
1375 };
1376
1377 qos_rga2_mro: qos@fdf66c00 {
1378 compatible = "rockchip,rk3588-qos", "syscon";
1379 reg = <0x0 0xfdf66c00 0x0 0x20>;
1380 };
1381
1382 qos_rga2_mwo: qos@fdf66e00 {
1383 compatible = "rockchip,rk3588-qos", "syscon";
1384 reg = <0x0 0xfdf66e00 0x0 0x20>;
1385 };
1386
1387 qos_rga3_0: qos@fdf67000 {
1388 compatible = "rockchip,rk3588-qos", "syscon";
1389 reg = <0x0 0xfdf67000 0x0 0x20>;
1390 };
1391
1392 qos_vdpu: qos@fdf67200 {
1393 compatible = "rockchip,rk3588-qos", "syscon";
1394 reg = <0x0 0xfdf67200 0x0 0x20>;
1395 };
1396
1397 qos_npu1: qos@fdf70000 {
1398 compatible = "rockchip,rk3588-qos", "syscon";
1399 reg = <0x0 0xfdf70000 0x0 0x20>;
1400 };
1401
1402 qos_npu2: qos@fdf71000 {
1403 compatible = "rockchip,rk3588-qos", "syscon";
1404 reg = <0x0 0xfdf71000 0x0 0x20>;
1405 };
1406
1407 qos_npu0_mwr: qos@fdf72000 {
1408 compatible = "rockchip,rk3588-qos", "syscon";
1409 reg = <0x0 0xfdf72000 0x0 0x20>;
1410 };
1411
1412 qos_npu0_mro: qos@fdf72200 {
1413 compatible = "rockchip,rk3588-qos", "syscon";
1414 reg = <0x0 0xfdf72200 0x0 0x20>;
1415 };
1416
1417 qos_mcu_npu: qos@fdf72400 {
1418 compatible = "rockchip,rk3588-qos", "syscon";
1419 reg = <0x0 0xfdf72400 0x0 0x20>;
1420 };
1421
1422 qos_hdcp0: qos@fdf80000 {
1423 compatible = "rockchip,rk3588-qos", "syscon";
1424 reg = <0x0 0xfdf80000 0x0 0x20>;
1425 };
1426
1427 qos_hdcp1: qos@fdf81000 {
1428 compatible = "rockchip,rk3588-qos", "syscon";
1429 reg = <0x0 0xfdf81000 0x0 0x20>;
1430 };
1431
1432 qos_hdmirx: qos@fdf81200 {
1433 compatible = "rockchip,rk3588-qos", "syscon";
1434 reg = <0x0 0xfdf81200 0x0 0x20>;
1435 };
1436
1437 qos_vop_m0: qos@fdf82000 {
1438 compatible = "rockchip,rk3588-qos", "syscon";
1439 reg = <0x0 0xfdf82000 0x0 0x20>;
1440 };
1441
1442 qos_vop_m1: qos@fdf82200 {
1443 compatible = "rockchip,rk3588-qos", "syscon";
1444 reg = <0x0 0xfdf82200 0x0 0x20>;
1445 };
1446
Diederik de Haas2fed50d2024-05-29 01:03:58 +08001447 dfi: dfi@fe060000 {
1448 reg = <0x00 0xfe060000 0x00 0x10000>;
1449 compatible = "rockchip,rk3588-dfi";
1450 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH 0>,
1451 <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH 0>,
1452 <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH 0>,
1453 <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH 0>;
1454 rockchip,pmu = <&pmu1grf>;
1455 };
1456
Tom Rini53633a82024-02-29 12:33:36 -05001457 pcie2x1l1: pcie@fe180000 {
1458 compatible = "rockchip,rk3588-pcie", "rockchip,rk3568-pcie";
1459 bus-range = <0x30 0x3f>;
1460 clocks = <&cru ACLK_PCIE_1L1_MSTR>, <&cru ACLK_PCIE_1L1_SLV>,
1461 <&cru ACLK_PCIE_1L1_DBI>, <&cru PCLK_PCIE_1L1>,
1462 <&cru CLK_PCIE_AUX3>, <&cru CLK_PCIE1L1_PIPE>;
1463 clock-names = "aclk_mst", "aclk_slv",
1464 "aclk_dbi", "pclk",
1465 "aux", "pipe";
1466 device_type = "pci";
1467 interrupts = <GIC_SPI 248 IRQ_TYPE_LEVEL_HIGH 0>,
1468 <GIC_SPI 247 IRQ_TYPE_LEVEL_HIGH 0>,
1469 <GIC_SPI 246 IRQ_TYPE_LEVEL_HIGH 0>,
1470 <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH 0>,
1471 <GIC_SPI 244 IRQ_TYPE_LEVEL_HIGH 0>;
1472 interrupt-names = "sys", "pmc", "msg", "legacy", "err";
1473 #interrupt-cells = <1>;
1474 interrupt-map-mask = <0 0 0 7>;
1475 interrupt-map = <0 0 0 1 &pcie2x1l1_intc 0>,
1476 <0 0 0 2 &pcie2x1l1_intc 1>,
1477 <0 0 0 3 &pcie2x1l1_intc 2>,
1478 <0 0 0 4 &pcie2x1l1_intc 3>;
1479 linux,pci-domain = <3>;
1480 max-link-speed = <2>;
1481 msi-map = <0x3000 &its0 0x3000 0x1000>;
1482 num-lanes = <1>;
1483 phys = <&combphy2_psu PHY_TYPE_PCIE>;
1484 phy-names = "pcie-phy";
1485 power-domains = <&power RK3588_PD_PCIE>;
1486 ranges = <0x01000000 0x0 0xf3100000 0x0 0xf3100000 0x0 0x00100000>,
1487 <0x02000000 0x0 0xf3200000 0x0 0xf3200000 0x0 0x00e00000>,
1488 <0x03000000 0x0 0x40000000 0x9 0xc0000000 0x0 0x40000000>;
1489 reg = <0xa 0x40c00000 0x0 0x00400000>,
1490 <0x0 0xfe180000 0x0 0x00010000>,
1491 <0x0 0xf3000000 0x0 0x00100000>;
1492 reg-names = "dbi", "apb", "config";
1493 resets = <&cru SRST_PCIE3_POWER_UP>, <&cru SRST_P_PCIE3>;
1494 reset-names = "pwr", "pipe";
1495 #address-cells = <3>;
1496 #size-cells = <2>;
1497 status = "disabled";
1498
1499 pcie2x1l1_intc: legacy-interrupt-controller {
1500 interrupt-controller;
1501 #address-cells = <0>;
1502 #interrupt-cells = <1>;
1503 interrupt-parent = <&gic>;
1504 interrupts = <GIC_SPI 245 IRQ_TYPE_EDGE_RISING 0>;
1505 };
1506 };
1507
1508 pcie2x1l2: pcie@fe190000 {
1509 compatible = "rockchip,rk3588-pcie", "rockchip,rk3568-pcie";
1510 bus-range = <0x40 0x4f>;
1511 clocks = <&cru ACLK_PCIE_1L2_MSTR>, <&cru ACLK_PCIE_1L2_SLV>,
1512 <&cru ACLK_PCIE_1L2_DBI>, <&cru PCLK_PCIE_1L2>,
1513 <&cru CLK_PCIE_AUX4>, <&cru CLK_PCIE1L2_PIPE>;
1514 clock-names = "aclk_mst", "aclk_slv",
1515 "aclk_dbi", "pclk",
1516 "aux", "pipe";
1517 device_type = "pci";
1518 interrupts = <GIC_SPI 253 IRQ_TYPE_LEVEL_HIGH 0>,
1519 <GIC_SPI 252 IRQ_TYPE_LEVEL_HIGH 0>,
1520 <GIC_SPI 251 IRQ_TYPE_LEVEL_HIGH 0>,
1521 <GIC_SPI 250 IRQ_TYPE_LEVEL_HIGH 0>,
1522 <GIC_SPI 249 IRQ_TYPE_LEVEL_HIGH 0>;
1523 interrupt-names = "sys", "pmc", "msg", "legacy", "err";
1524 #interrupt-cells = <1>;
1525 interrupt-map-mask = <0 0 0 7>;
1526 interrupt-map = <0 0 0 1 &pcie2x1l2_intc 0>,
1527 <0 0 0 2 &pcie2x1l2_intc 1>,
1528 <0 0 0 3 &pcie2x1l2_intc 2>,
1529 <0 0 0 4 &pcie2x1l2_intc 3>;
1530 linux,pci-domain = <4>;
1531 max-link-speed = <2>;
1532 msi-map = <0x4000 &its0 0x4000 0x1000>;
1533 num-lanes = <1>;
1534 phys = <&combphy0_ps PHY_TYPE_PCIE>;
1535 phy-names = "pcie-phy";
1536 power-domains = <&power RK3588_PD_PCIE>;
1537 ranges = <0x01000000 0x0 0xf4100000 0x0 0xf4100000 0x0 0x00100000>,
1538 <0x02000000 0x0 0xf4200000 0x0 0xf4200000 0x0 0x00e00000>,
1539 <0x03000000 0x0 0x40000000 0xa 0x00000000 0x0 0x40000000>;
1540 reg = <0xa 0x41000000 0x0 0x00400000>,
1541 <0x0 0xfe190000 0x0 0x00010000>,
1542 <0x0 0xf4000000 0x0 0x00100000>;
1543 reg-names = "dbi", "apb", "config";
1544 resets = <&cru SRST_PCIE4_POWER_UP>, <&cru SRST_P_PCIE4>;
1545 reset-names = "pwr", "pipe";
1546 #address-cells = <3>;
1547 #size-cells = <2>;
1548 status = "disabled";
1549
1550 pcie2x1l2_intc: legacy-interrupt-controller {
1551 interrupt-controller;
1552 #address-cells = <0>;
1553 #interrupt-cells = <1>;
1554 interrupt-parent = <&gic>;
1555 interrupts = <GIC_SPI 250 IRQ_TYPE_EDGE_RISING 0>;
1556 };
1557 };
1558
Tom Rini53633a82024-02-29 12:33:36 -05001559 gmac1: ethernet@fe1c0000 {
1560 compatible = "rockchip,rk3588-gmac", "snps,dwmac-4.20a";
1561 reg = <0x0 0xfe1c0000 0x0 0x10000>;
1562 interrupts = <GIC_SPI 234 IRQ_TYPE_LEVEL_HIGH 0>,
1563 <GIC_SPI 233 IRQ_TYPE_LEVEL_HIGH 0>;
1564 interrupt-names = "macirq", "eth_wake_irq";
1565 clocks = <&cru CLK_GMAC_125M>, <&cru CLK_GMAC_50M>,
1566 <&cru PCLK_GMAC1>, <&cru ACLK_GMAC1>,
1567 <&cru CLK_GMAC1_PTP_REF>;
1568 clock-names = "stmmaceth", "clk_mac_ref",
1569 "pclk_mac", "aclk_mac",
1570 "ptp_ref";
1571 power-domains = <&power RK3588_PD_GMAC>;
1572 resets = <&cru SRST_A_GMAC1>;
1573 reset-names = "stmmaceth";
1574 rockchip,grf = <&sys_grf>;
1575 rockchip,php-grf = <&php_grf>;
1576 snps,axi-config = <&gmac1_stmmac_axi_setup>;
1577 snps,mixed-burst;
1578 snps,mtl-rx-config = <&gmac1_mtl_rx_setup>;
1579 snps,mtl-tx-config = <&gmac1_mtl_tx_setup>;
1580 snps,tso;
1581 status = "disabled";
1582
1583 mdio1: mdio {
1584 compatible = "snps,dwmac-mdio";
1585 #address-cells = <0x1>;
1586 #size-cells = <0x0>;
1587 };
1588
1589 gmac1_stmmac_axi_setup: stmmac-axi-config {
1590 snps,blen = <0 0 0 0 16 8 4>;
1591 snps,wr_osr_lmt = <4>;
1592 snps,rd_osr_lmt = <8>;
1593 };
1594
1595 gmac1_mtl_rx_setup: rx-queues-config {
1596 snps,rx-queues-to-use = <2>;
1597 queue0 {};
1598 queue1 {};
1599 };
1600
1601 gmac1_mtl_tx_setup: tx-queues-config {
1602 snps,tx-queues-to-use = <2>;
1603 queue0 {};
1604 queue1 {};
1605 };
1606 };
1607
1608 sata0: sata@fe210000 {
1609 compatible = "rockchip,rk3588-dwc-ahci", "snps,dwc-ahci";
1610 reg = <0 0xfe210000 0 0x1000>;
1611 interrupts = <GIC_SPI 273 IRQ_TYPE_LEVEL_HIGH 0>;
1612 clocks = <&cru ACLK_SATA0>, <&cru CLK_PMALIVE0>,
1613 <&cru CLK_RXOOB0>, <&cru CLK_PIPEPHY0_REF>,
1614 <&cru CLK_PIPEPHY0_PIPE_ASIC_G>;
1615 clock-names = "sata", "pmalive", "rxoob", "ref", "asic";
1616 ports-implemented = <0x1>;
1617 #address-cells = <1>;
1618 #size-cells = <0>;
1619 status = "disabled";
1620
1621 sata-port@0 {
1622 reg = <0>;
1623 hba-port-cap = <HBA_PORT_FBSCP>;
1624 phys = <&combphy0_ps PHY_TYPE_SATA>;
1625 phy-names = "sata-phy";
1626 snps,rx-ts-max = <32>;
1627 snps,tx-ts-max = <32>;
1628 };
1629 };
1630
1631 sata2: sata@fe230000 {
1632 compatible = "rockchip,rk3588-dwc-ahci", "snps,dwc-ahci";
1633 reg = <0 0xfe230000 0 0x1000>;
1634 interrupts = <GIC_SPI 275 IRQ_TYPE_LEVEL_HIGH 0>;
1635 clocks = <&cru ACLK_SATA2>, <&cru CLK_PMALIVE2>,
1636 <&cru CLK_RXOOB2>, <&cru CLK_PIPEPHY2_REF>,
1637 <&cru CLK_PIPEPHY2_PIPE_ASIC_G>;
1638 clock-names = "sata", "pmalive", "rxoob", "ref", "asic";
1639 ports-implemented = <0x1>;
1640 #address-cells = <1>;
1641 #size-cells = <0>;
1642 status = "disabled";
1643
1644 sata-port@0 {
1645 reg = <0>;
1646 hba-port-cap = <HBA_PORT_FBSCP>;
1647 phys = <&combphy2_psu PHY_TYPE_SATA>;
1648 phy-names = "sata-phy";
1649 snps,rx-ts-max = <32>;
1650 snps,tx-ts-max = <32>;
1651 };
1652 };
1653
1654 sfc: spi@fe2b0000 {
1655 compatible = "rockchip,sfc";
1656 reg = <0x0 0xfe2b0000 0x0 0x4000>;
1657 interrupts = <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH 0>;
1658 clocks = <&cru SCLK_SFC>, <&cru HCLK_SFC>;
1659 clock-names = "clk_sfc", "hclk_sfc";
1660 #address-cells = <1>;
1661 #size-cells = <0>;
1662 status = "disabled";
1663 };
1664
1665 sdmmc: mmc@fe2c0000 {
1666 compatible = "rockchip,rk3588-dw-mshc", "rockchip,rk3288-dw-mshc";
1667 reg = <0x0 0xfe2c0000 0x0 0x4000>;
1668 interrupts = <GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH 0>;
1669 clocks = <&scmi_clk SCMI_HCLK_SD>, <&scmi_clk SCMI_CCLK_SD>,
1670 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
1671 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
1672 fifo-depth = <0x100>;
1673 max-frequency = <200000000>;
1674 pinctrl-names = "default";
1675 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_det &sdmmc_bus4>;
1676 power-domains = <&power RK3588_PD_SDMMC>;
1677 status = "disabled";
1678 };
1679
1680 sdio: mmc@fe2d0000 {
1681 compatible = "rockchip,rk3588-dw-mshc", "rockchip,rk3288-dw-mshc";
1682 reg = <0x00 0xfe2d0000 0x00 0x4000>;
1683 interrupts = <GIC_SPI 204 IRQ_TYPE_LEVEL_HIGH 0>;
1684 clocks = <&cru HCLK_SDIO>, <&cru CCLK_SRC_SDIO>,
1685 <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
1686 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
1687 fifo-depth = <0x100>;
1688 max-frequency = <200000000>;
1689 pinctrl-names = "default";
1690 pinctrl-0 = <&sdiom1_pins>;
1691 power-domains = <&power RK3588_PD_SDIO>;
1692 status = "disabled";
1693 };
1694
1695 sdhci: mmc@fe2e0000 {
1696 compatible = "rockchip,rk3588-dwcmshc";
1697 reg = <0x0 0xfe2e0000 0x0 0x10000>;
1698 interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH 0>;
1699 assigned-clocks = <&cru BCLK_EMMC>, <&cru TMCLK_EMMC>, <&cru CCLK_EMMC>;
1700 assigned-clock-rates = <200000000>, <24000000>, <200000000>;
1701 clocks = <&cru CCLK_EMMC>, <&cru HCLK_EMMC>,
1702 <&cru ACLK_EMMC>, <&cru BCLK_EMMC>,
1703 <&cru TMCLK_EMMC>;
1704 clock-names = "core", "bus", "axi", "block", "timer";
1705 max-frequency = <200000000>;
1706 pinctrl-0 = <&emmc_rstnout>, <&emmc_bus8>, <&emmc_clk>,
1707 <&emmc_cmd>, <&emmc_data_strobe>;
1708 pinctrl-names = "default";
1709 resets = <&cru SRST_C_EMMC>, <&cru SRST_H_EMMC>,
1710 <&cru SRST_A_EMMC>, <&cru SRST_B_EMMC>,
1711 <&cru SRST_T_EMMC>;
1712 reset-names = "core", "bus", "axi", "block", "timer";
1713 status = "disabled";
1714 };
1715
1716 i2s0_8ch: i2s@fe470000 {
1717 compatible = "rockchip,rk3588-i2s-tdm";
1718 reg = <0x0 0xfe470000 0x0 0x1000>;
1719 interrupts = <GIC_SPI 180 IRQ_TYPE_LEVEL_HIGH 0>;
1720 clocks = <&cru MCLK_I2S0_8CH_TX>, <&cru MCLK_I2S0_8CH_RX>, <&cru HCLK_I2S0_8CH>;
1721 clock-names = "mclk_tx", "mclk_rx", "hclk";
1722 assigned-clocks = <&cru CLK_I2S0_8CH_TX_SRC>, <&cru CLK_I2S0_8CH_RX_SRC>;
1723 assigned-clock-parents = <&cru PLL_AUPLL>, <&cru PLL_AUPLL>;
1724 dmas = <&dmac0 0>, <&dmac0 1>;
1725 dma-names = "tx", "rx";
1726 power-domains = <&power RK3588_PD_AUDIO>;
1727 resets = <&cru SRST_M_I2S0_8CH_TX>, <&cru SRST_M_I2S0_8CH_RX>;
1728 reset-names = "tx-m", "rx-m";
1729 rockchip,trcm-sync-tx-only;
1730 pinctrl-names = "default";
1731 pinctrl-0 = <&i2s0_lrck
1732 &i2s0_sclk
1733 &i2s0_sdi0
1734 &i2s0_sdi1
1735 &i2s0_sdi2
1736 &i2s0_sdi3
1737 &i2s0_sdo0
1738 &i2s0_sdo1
1739 &i2s0_sdo2
1740 &i2s0_sdo3>;
1741 #sound-dai-cells = <0>;
1742 status = "disabled";
1743 };
1744
1745 i2s1_8ch: i2s@fe480000 {
1746 compatible = "rockchip,rk3588-i2s-tdm";
1747 reg = <0x0 0xfe480000 0x0 0x1000>;
1748 interrupts = <GIC_SPI 181 IRQ_TYPE_LEVEL_HIGH 0>;
1749 clocks = <&cru MCLK_I2S1_8CH_TX>, <&cru MCLK_I2S1_8CH_RX>, <&cru HCLK_I2S1_8CH>;
1750 clock-names = "mclk_tx", "mclk_rx", "hclk";
1751 dmas = <&dmac0 2>, <&dmac0 3>;
1752 dma-names = "tx", "rx";
1753 resets = <&cru SRST_M_I2S1_8CH_TX>, <&cru SRST_M_I2S1_8CH_RX>;
1754 reset-names = "tx-m", "rx-m";
1755 rockchip,trcm-sync-tx-only;
1756 pinctrl-names = "default";
1757 pinctrl-0 = <&i2s1m0_lrck
1758 &i2s1m0_sclk
1759 &i2s1m0_sdi0
1760 &i2s1m0_sdi1
1761 &i2s1m0_sdi2
1762 &i2s1m0_sdi3
1763 &i2s1m0_sdo0
1764 &i2s1m0_sdo1
1765 &i2s1m0_sdo2
1766 &i2s1m0_sdo3>;
1767 #sound-dai-cells = <0>;
1768 status = "disabled";
1769 };
1770
1771 i2s2_2ch: i2s@fe490000 {
1772 compatible = "rockchip,rk3588-i2s", "rockchip,rk3066-i2s";
1773 reg = <0x0 0xfe490000 0x0 0x1000>;
1774 interrupts = <GIC_SPI 182 IRQ_TYPE_LEVEL_HIGH 0>;
1775 clocks = <&cru MCLK_I2S2_2CH>, <&cru HCLK_I2S2_2CH>;
1776 clock-names = "i2s_clk", "i2s_hclk";
1777 assigned-clocks = <&cru CLK_I2S2_2CH_SRC>;
1778 assigned-clock-parents = <&cru PLL_AUPLL>;
1779 dmas = <&dmac1 0>, <&dmac1 1>;
1780 dma-names = "tx", "rx";
1781 power-domains = <&power RK3588_PD_AUDIO>;
Tom Rini53633a82024-02-29 12:33:36 -05001782 pinctrl-names = "default";
1783 pinctrl-0 = <&i2s2m1_lrck
1784 &i2s2m1_sclk
1785 &i2s2m1_sdi
1786 &i2s2m1_sdo>;
1787 #sound-dai-cells = <0>;
1788 status = "disabled";
1789 };
1790
1791 i2s3_2ch: i2s@fe4a0000 {
1792 compatible = "rockchip,rk3588-i2s", "rockchip,rk3066-i2s";
1793 reg = <0x0 0xfe4a0000 0x0 0x1000>;
1794 interrupts = <GIC_SPI 183 IRQ_TYPE_LEVEL_HIGH 0>;
1795 clocks = <&cru MCLK_I2S3_2CH>, <&cru HCLK_I2S3_2CH>;
1796 clock-names = "i2s_clk", "i2s_hclk";
1797 assigned-clocks = <&cru CLK_I2S3_2CH_SRC>;
1798 assigned-clock-parents = <&cru PLL_AUPLL>;
1799 dmas = <&dmac1 2>, <&dmac1 3>;
1800 dma-names = "tx", "rx";
1801 power-domains = <&power RK3588_PD_AUDIO>;
Tom Rini53633a82024-02-29 12:33:36 -05001802 pinctrl-names = "default";
1803 pinctrl-0 = <&i2s3_lrck
1804 &i2s3_sclk
1805 &i2s3_sdi
1806 &i2s3_sdo>;
1807 #sound-dai-cells = <0>;
1808 status = "disabled";
1809 };
1810
1811 gic: interrupt-controller@fe600000 {
1812 compatible = "arm,gic-v3";
1813 reg = <0x0 0xfe600000 0 0x10000>, /* GICD */
1814 <0x0 0xfe680000 0 0x100000>; /* GICR */
1815 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH 0>;
1816 interrupt-controller;
1817 mbi-alias = <0x0 0xfe610000>;
1818 mbi-ranges = <424 56>;
1819 msi-controller;
1820 ranges;
1821 #address-cells = <2>;
1822 #interrupt-cells = <4>;
1823 #size-cells = <2>;
1824
1825 its0: msi-controller@fe640000 {
1826 compatible = "arm,gic-v3-its";
1827 reg = <0x0 0xfe640000 0x0 0x20000>;
1828 msi-controller;
1829 #msi-cells = <1>;
1830 };
1831
1832 its1: msi-controller@fe660000 {
1833 compatible = "arm,gic-v3-its";
1834 reg = <0x0 0xfe660000 0x0 0x20000>;
1835 msi-controller;
1836 #msi-cells = <1>;
1837 };
1838
1839 ppi-partitions {
1840 ppi_partition0: interrupt-partition-0 {
1841 affinity = <&cpu_l0 &cpu_l1 &cpu_l2 &cpu_l3>;
1842 };
1843
1844 ppi_partition1: interrupt-partition-1 {
1845 affinity = <&cpu_b0 &cpu_b1 &cpu_b2 &cpu_b3>;
1846 };
1847 };
1848 };
1849
1850 dmac0: dma-controller@fea10000 {
1851 compatible = "arm,pl330", "arm,primecell";
1852 reg = <0x0 0xfea10000 0x0 0x4000>;
1853 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH 0>,
1854 <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH 0>;
1855 arm,pl330-periph-burst;
1856 clocks = <&cru ACLK_DMAC0>;
1857 clock-names = "apb_pclk";
1858 #dma-cells = <1>;
1859 };
1860
1861 dmac1: dma-controller@fea30000 {
1862 compatible = "arm,pl330", "arm,primecell";
1863 reg = <0x0 0xfea30000 0x0 0x4000>;
1864 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH 0>,
1865 <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH 0>;
1866 arm,pl330-periph-burst;
1867 clocks = <&cru ACLK_DMAC1>;
1868 clock-names = "apb_pclk";
1869 #dma-cells = <1>;
1870 };
1871
1872 i2c1: i2c@fea90000 {
1873 compatible = "rockchip,rk3588-i2c", "rockchip,rk3399-i2c";
1874 reg = <0x0 0xfea90000 0x0 0x1000>;
1875 clocks = <&cru CLK_I2C1>, <&cru PCLK_I2C1>;
1876 clock-names = "i2c", "pclk";
1877 interrupts = <GIC_SPI 318 IRQ_TYPE_LEVEL_HIGH 0>;
1878 pinctrl-0 = <&i2c1m0_xfer>;
1879 pinctrl-names = "default";
1880 #address-cells = <1>;
1881 #size-cells = <0>;
1882 status = "disabled";
1883 };
1884
1885 i2c2: i2c@feaa0000 {
1886 compatible = "rockchip,rk3588-i2c", "rockchip,rk3399-i2c";
1887 reg = <0x0 0xfeaa0000 0x0 0x1000>;
1888 clocks = <&cru CLK_I2C2>, <&cru PCLK_I2C2>;
1889 clock-names = "i2c", "pclk";
1890 interrupts = <GIC_SPI 319 IRQ_TYPE_LEVEL_HIGH 0>;
1891 pinctrl-0 = <&i2c2m0_xfer>;
1892 pinctrl-names = "default";
1893 #address-cells = <1>;
1894 #size-cells = <0>;
1895 status = "disabled";
1896 };
1897
1898 i2c3: i2c@feab0000 {
1899 compatible = "rockchip,rk3588-i2c", "rockchip,rk3399-i2c";
1900 reg = <0x0 0xfeab0000 0x0 0x1000>;
1901 clocks = <&cru CLK_I2C3>, <&cru PCLK_I2C3>;
1902 clock-names = "i2c", "pclk";
1903 interrupts = <GIC_SPI 320 IRQ_TYPE_LEVEL_HIGH 0>;
1904 pinctrl-0 = <&i2c3m0_xfer>;
1905 pinctrl-names = "default";
1906 #address-cells = <1>;
1907 #size-cells = <0>;
1908 status = "disabled";
1909 };
1910
1911 i2c4: i2c@feac0000 {
1912 compatible = "rockchip,rk3588-i2c", "rockchip,rk3399-i2c";
1913 reg = <0x0 0xfeac0000 0x0 0x1000>;
1914 clocks = <&cru CLK_I2C4>, <&cru PCLK_I2C4>;
1915 clock-names = "i2c", "pclk";
1916 interrupts = <GIC_SPI 321 IRQ_TYPE_LEVEL_HIGH 0>;
1917 pinctrl-0 = <&i2c4m0_xfer>;
1918 pinctrl-names = "default";
1919 #address-cells = <1>;
1920 #size-cells = <0>;
1921 status = "disabled";
1922 };
1923
1924 i2c5: i2c@fead0000 {
1925 compatible = "rockchip,rk3588-i2c", "rockchip,rk3399-i2c";
1926 reg = <0x0 0xfead0000 0x0 0x1000>;
1927 clocks = <&cru CLK_I2C5>, <&cru PCLK_I2C5>;
1928 clock-names = "i2c", "pclk";
1929 interrupts = <GIC_SPI 322 IRQ_TYPE_LEVEL_HIGH 0>;
1930 pinctrl-0 = <&i2c5m0_xfer>;
1931 pinctrl-names = "default";
1932 #address-cells = <1>;
1933 #size-cells = <0>;
1934 status = "disabled";
1935 };
1936
1937 timer0: timer@feae0000 {
1938 compatible = "rockchip,rk3588-timer", "rockchip,rk3288-timer";
1939 reg = <0x0 0xfeae0000 0x0 0x20>;
1940 interrupts = <GIC_SPI 289 IRQ_TYPE_LEVEL_HIGH 0>;
1941 clocks = <&cru PCLK_BUSTIMER0>, <&cru CLK_BUSTIMER0>;
1942 clock-names = "pclk", "timer";
1943 };
1944
1945 wdt: watchdog@feaf0000 {
1946 compatible = "rockchip,rk3588-wdt", "snps,dw-wdt";
1947 reg = <0x0 0xfeaf0000 0x0 0x100>;
1948 clocks = <&cru TCLK_WDT0>, <&cru PCLK_WDT0>;
1949 clock-names = "tclk", "pclk";
1950 interrupts = <GIC_SPI 315 IRQ_TYPE_LEVEL_HIGH 0>;
1951 };
1952
1953 spi0: spi@feb00000 {
1954 compatible = "rockchip,rk3588-spi", "rockchip,rk3066-spi";
1955 reg = <0x0 0xfeb00000 0x0 0x1000>;
1956 interrupts = <GIC_SPI 326 IRQ_TYPE_LEVEL_HIGH 0>;
1957 clocks = <&cru CLK_SPI0>, <&cru PCLK_SPI0>;
1958 clock-names = "spiclk", "apb_pclk";
1959 dmas = <&dmac0 14>, <&dmac0 15>;
1960 dma-names = "tx", "rx";
1961 num-cs = <2>;
1962 pinctrl-0 = <&spi0m0_cs0 &spi0m0_cs1 &spi0m0_pins>;
1963 pinctrl-names = "default";
1964 #address-cells = <1>;
1965 #size-cells = <0>;
1966 status = "disabled";
1967 };
1968
1969 spi1: spi@feb10000 {
1970 compatible = "rockchip,rk3588-spi", "rockchip,rk3066-spi";
1971 reg = <0x0 0xfeb10000 0x0 0x1000>;
1972 interrupts = <GIC_SPI 327 IRQ_TYPE_LEVEL_HIGH 0>;
1973 clocks = <&cru CLK_SPI1>, <&cru PCLK_SPI1>;
1974 clock-names = "spiclk", "apb_pclk";
1975 dmas = <&dmac0 16>, <&dmac0 17>;
1976 dma-names = "tx", "rx";
1977 num-cs = <2>;
1978 pinctrl-0 = <&spi1m1_cs0 &spi1m1_cs1 &spi1m1_pins>;
1979 pinctrl-names = "default";
1980 #address-cells = <1>;
1981 #size-cells = <0>;
1982 status = "disabled";
1983 };
1984
1985 spi2: spi@feb20000 {
1986 compatible = "rockchip,rk3588-spi", "rockchip,rk3066-spi";
1987 reg = <0x0 0xfeb20000 0x0 0x1000>;
1988 interrupts = <GIC_SPI 328 IRQ_TYPE_LEVEL_HIGH 0>;
1989 clocks = <&cru CLK_SPI2>, <&cru PCLK_SPI2>;
1990 clock-names = "spiclk", "apb_pclk";
1991 dmas = <&dmac1 15>, <&dmac1 16>;
1992 dma-names = "tx", "rx";
1993 num-cs = <2>;
1994 pinctrl-0 = <&spi2m2_cs0 &spi2m2_cs1 &spi2m2_pins>;
1995 pinctrl-names = "default";
1996 #address-cells = <1>;
1997 #size-cells = <0>;
1998 status = "disabled";
1999 };
2000
2001 spi3: spi@feb30000 {
2002 compatible = "rockchip,rk3588-spi", "rockchip,rk3066-spi";
2003 reg = <0x0 0xfeb30000 0x0 0x1000>;
2004 interrupts = <GIC_SPI 329 IRQ_TYPE_LEVEL_HIGH 0>;
2005 clocks = <&cru CLK_SPI3>, <&cru PCLK_SPI3>;
2006 clock-names = "spiclk", "apb_pclk";
2007 dmas = <&dmac1 17>, <&dmac1 18>;
2008 dma-names = "tx", "rx";
2009 num-cs = <2>;
2010 pinctrl-0 = <&spi3m1_cs0 &spi3m1_cs1 &spi3m1_pins>;
2011 pinctrl-names = "default";
2012 #address-cells = <1>;
2013 #size-cells = <0>;
2014 status = "disabled";
2015 };
2016
2017 uart1: serial@feb40000 {
2018 compatible = "rockchip,rk3588-uart", "snps,dw-apb-uart";
2019 reg = <0x0 0xfeb40000 0x0 0x100>;
2020 interrupts = <GIC_SPI 332 IRQ_TYPE_LEVEL_HIGH 0>;
2021 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
2022 clock-names = "baudclk", "apb_pclk";
2023 dmas = <&dmac0 8>, <&dmac0 9>;
2024 dma-names = "tx", "rx";
2025 pinctrl-0 = <&uart1m1_xfer>;
2026 pinctrl-names = "default";
2027 reg-io-width = <4>;
2028 reg-shift = <2>;
2029 status = "disabled";
2030 };
2031
2032 uart2: serial@feb50000 {
2033 compatible = "rockchip,rk3588-uart", "snps,dw-apb-uart";
2034 reg = <0x0 0xfeb50000 0x0 0x100>;
2035 interrupts = <GIC_SPI 333 IRQ_TYPE_LEVEL_HIGH 0>;
2036 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
2037 clock-names = "baudclk", "apb_pclk";
2038 dmas = <&dmac0 10>, <&dmac0 11>;
2039 dma-names = "tx", "rx";
2040 pinctrl-0 = <&uart2m1_xfer>;
2041 pinctrl-names = "default";
2042 reg-io-width = <4>;
2043 reg-shift = <2>;
2044 status = "disabled";
2045 };
2046
2047 uart3: serial@feb60000 {
2048 compatible = "rockchip,rk3588-uart", "snps,dw-apb-uart";
2049 reg = <0x0 0xfeb60000 0x0 0x100>;
2050 interrupts = <GIC_SPI 334 IRQ_TYPE_LEVEL_HIGH 0>;
2051 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
2052 clock-names = "baudclk", "apb_pclk";
2053 dmas = <&dmac0 12>, <&dmac0 13>;
2054 dma-names = "tx", "rx";
2055 pinctrl-0 = <&uart3m1_xfer>;
2056 pinctrl-names = "default";
2057 reg-io-width = <4>;
2058 reg-shift = <2>;
2059 status = "disabled";
2060 };
2061
2062 uart4: serial@feb70000 {
2063 compatible = "rockchip,rk3588-uart", "snps,dw-apb-uart";
2064 reg = <0x0 0xfeb70000 0x0 0x100>;
2065 interrupts = <GIC_SPI 335 IRQ_TYPE_LEVEL_HIGH 0>;
2066 clocks = <&cru SCLK_UART4>, <&cru PCLK_UART4>;
2067 clock-names = "baudclk", "apb_pclk";
2068 dmas = <&dmac1 9>, <&dmac1 10>;
2069 dma-names = "tx", "rx";
2070 pinctrl-0 = <&uart4m1_xfer>;
2071 pinctrl-names = "default";
2072 reg-io-width = <4>;
2073 reg-shift = <2>;
2074 status = "disabled";
2075 };
2076
2077 uart5: serial@feb80000 {
2078 compatible = "rockchip,rk3588-uart", "snps,dw-apb-uart";
2079 reg = <0x0 0xfeb80000 0x0 0x100>;
2080 interrupts = <GIC_SPI 336 IRQ_TYPE_LEVEL_HIGH 0>;
2081 clocks = <&cru SCLK_UART5>, <&cru PCLK_UART5>;
2082 clock-names = "baudclk", "apb_pclk";
2083 dmas = <&dmac1 11>, <&dmac1 12>;
2084 dma-names = "tx", "rx";
2085 pinctrl-0 = <&uart5m1_xfer>;
2086 pinctrl-names = "default";
2087 reg-io-width = <4>;
2088 reg-shift = <2>;
2089 status = "disabled";
2090 };
2091
2092 uart6: serial@feb90000 {
2093 compatible = "rockchip,rk3588-uart", "snps,dw-apb-uart";
2094 reg = <0x0 0xfeb90000 0x0 0x100>;
2095 interrupts = <GIC_SPI 337 IRQ_TYPE_LEVEL_HIGH 0>;
2096 clocks = <&cru SCLK_UART6>, <&cru PCLK_UART6>;
2097 clock-names = "baudclk", "apb_pclk";
2098 dmas = <&dmac1 13>, <&dmac1 14>;
2099 dma-names = "tx", "rx";
2100 pinctrl-0 = <&uart6m1_xfer>;
2101 pinctrl-names = "default";
2102 reg-io-width = <4>;
2103 reg-shift = <2>;
2104 status = "disabled";
2105 };
2106
2107 uart7: serial@feba0000 {
2108 compatible = "rockchip,rk3588-uart", "snps,dw-apb-uart";
2109 reg = <0x0 0xfeba0000 0x0 0x100>;
2110 interrupts = <GIC_SPI 338 IRQ_TYPE_LEVEL_HIGH 0>;
2111 clocks = <&cru SCLK_UART7>, <&cru PCLK_UART7>;
2112 clock-names = "baudclk", "apb_pclk";
2113 dmas = <&dmac2 7>, <&dmac2 8>;
2114 dma-names = "tx", "rx";
2115 pinctrl-0 = <&uart7m1_xfer>;
2116 pinctrl-names = "default";
2117 reg-io-width = <4>;
2118 reg-shift = <2>;
2119 status = "disabled";
2120 };
2121
2122 uart8: serial@febb0000 {
2123 compatible = "rockchip,rk3588-uart", "snps,dw-apb-uart";
2124 reg = <0x0 0xfebb0000 0x0 0x100>;
2125 interrupts = <GIC_SPI 339 IRQ_TYPE_LEVEL_HIGH 0>;
2126 clocks = <&cru SCLK_UART8>, <&cru PCLK_UART8>;
2127 clock-names = "baudclk", "apb_pclk";
2128 dmas = <&dmac2 9>, <&dmac2 10>;
2129 dma-names = "tx", "rx";
2130 pinctrl-0 = <&uart8m1_xfer>;
2131 pinctrl-names = "default";
2132 reg-io-width = <4>;
2133 reg-shift = <2>;
2134 status = "disabled";
2135 };
2136
2137 uart9: serial@febc0000 {
2138 compatible = "rockchip,rk3588-uart", "snps,dw-apb-uart";
2139 reg = <0x0 0xfebc0000 0x0 0x100>;
2140 interrupts = <GIC_SPI 340 IRQ_TYPE_LEVEL_HIGH 0>;
2141 clocks = <&cru SCLK_UART9>, <&cru PCLK_UART9>;
2142 clock-names = "baudclk", "apb_pclk";
2143 dmas = <&dmac2 11>, <&dmac2 12>;
2144 dma-names = "tx", "rx";
2145 pinctrl-0 = <&uart9m1_xfer>;
2146 pinctrl-names = "default";
2147 reg-io-width = <4>;
2148 reg-shift = <2>;
2149 status = "disabled";
2150 };
2151
2152 pwm4: pwm@febd0000 {
2153 compatible = "rockchip,rk3588-pwm", "rockchip,rk3328-pwm";
2154 reg = <0x0 0xfebd0000 0x0 0x10>;
2155 clocks = <&cru CLK_PWM1>, <&cru PCLK_PWM1>;
2156 clock-names = "pwm", "pclk";
2157 pinctrl-0 = <&pwm4m0_pins>;
2158 pinctrl-names = "default";
2159 #pwm-cells = <3>;
2160 status = "disabled";
2161 };
2162
2163 pwm5: pwm@febd0010 {
2164 compatible = "rockchip,rk3588-pwm", "rockchip,rk3328-pwm";
2165 reg = <0x0 0xfebd0010 0x0 0x10>;
2166 clocks = <&cru CLK_PWM1>, <&cru PCLK_PWM1>;
2167 clock-names = "pwm", "pclk";
2168 pinctrl-0 = <&pwm5m0_pins>;
2169 pinctrl-names = "default";
2170 #pwm-cells = <3>;
2171 status = "disabled";
2172 };
2173
2174 pwm6: pwm@febd0020 {
2175 compatible = "rockchip,rk3588-pwm", "rockchip,rk3328-pwm";
2176 reg = <0x0 0xfebd0020 0x0 0x10>;
2177 clocks = <&cru CLK_PWM1>, <&cru PCLK_PWM1>;
2178 clock-names = "pwm", "pclk";
2179 pinctrl-0 = <&pwm6m0_pins>;
2180 pinctrl-names = "default";
2181 #pwm-cells = <3>;
2182 status = "disabled";
2183 };
2184
2185 pwm7: pwm@febd0030 {
2186 compatible = "rockchip,rk3588-pwm", "rockchip,rk3328-pwm";
2187 reg = <0x0 0xfebd0030 0x0 0x10>;
2188 clocks = <&cru CLK_PWM1>, <&cru PCLK_PWM1>;
2189 clock-names = "pwm", "pclk";
2190 pinctrl-0 = <&pwm7m0_pins>;
2191 pinctrl-names = "default";
2192 #pwm-cells = <3>;
2193 status = "disabled";
2194 };
2195
2196 pwm8: pwm@febe0000 {
2197 compatible = "rockchip,rk3588-pwm", "rockchip,rk3328-pwm";
2198 reg = <0x0 0xfebe0000 0x0 0x10>;
2199 clocks = <&cru CLK_PWM2>, <&cru PCLK_PWM2>;
2200 clock-names = "pwm", "pclk";
2201 pinctrl-0 = <&pwm8m0_pins>;
2202 pinctrl-names = "default";
2203 #pwm-cells = <3>;
2204 status = "disabled";
2205 };
2206
2207 pwm9: pwm@febe0010 {
2208 compatible = "rockchip,rk3588-pwm", "rockchip,rk3328-pwm";
2209 reg = <0x0 0xfebe0010 0x0 0x10>;
2210 clocks = <&cru CLK_PWM2>, <&cru PCLK_PWM2>;
2211 clock-names = "pwm", "pclk";
2212 pinctrl-0 = <&pwm9m0_pins>;
2213 pinctrl-names = "default";
2214 #pwm-cells = <3>;
2215 status = "disabled";
2216 };
2217
2218 pwm10: pwm@febe0020 {
2219 compatible = "rockchip,rk3588-pwm", "rockchip,rk3328-pwm";
2220 reg = <0x0 0xfebe0020 0x0 0x10>;
2221 clocks = <&cru CLK_PWM2>, <&cru PCLK_PWM2>;
2222 clock-names = "pwm", "pclk";
2223 pinctrl-0 = <&pwm10m0_pins>;
2224 pinctrl-names = "default";
2225 #pwm-cells = <3>;
2226 status = "disabled";
2227 };
2228
2229 pwm11: pwm@febe0030 {
2230 compatible = "rockchip,rk3588-pwm", "rockchip,rk3328-pwm";
2231 reg = <0x0 0xfebe0030 0x0 0x10>;
2232 clocks = <&cru CLK_PWM2>, <&cru PCLK_PWM2>;
2233 clock-names = "pwm", "pclk";
2234 pinctrl-0 = <&pwm11m0_pins>;
2235 pinctrl-names = "default";
2236 #pwm-cells = <3>;
2237 status = "disabled";
2238 };
2239
2240 pwm12: pwm@febf0000 {
2241 compatible = "rockchip,rk3588-pwm", "rockchip,rk3328-pwm";
2242 reg = <0x0 0xfebf0000 0x0 0x10>;
2243 clocks = <&cru CLK_PWM3>, <&cru PCLK_PWM3>;
2244 clock-names = "pwm", "pclk";
2245 pinctrl-0 = <&pwm12m0_pins>;
2246 pinctrl-names = "default";
2247 #pwm-cells = <3>;
2248 status = "disabled";
2249 };
2250
2251 pwm13: pwm@febf0010 {
2252 compatible = "rockchip,rk3588-pwm", "rockchip,rk3328-pwm";
2253 reg = <0x0 0xfebf0010 0x0 0x10>;
2254 clocks = <&cru CLK_PWM3>, <&cru PCLK_PWM3>;
2255 clock-names = "pwm", "pclk";
2256 pinctrl-0 = <&pwm13m0_pins>;
2257 pinctrl-names = "default";
2258 #pwm-cells = <3>;
2259 status = "disabled";
2260 };
2261
2262 pwm14: pwm@febf0020 {
2263 compatible = "rockchip,rk3588-pwm", "rockchip,rk3328-pwm";
2264 reg = <0x0 0xfebf0020 0x0 0x10>;
2265 clocks = <&cru CLK_PWM3>, <&cru PCLK_PWM3>;
2266 clock-names = "pwm", "pclk";
2267 pinctrl-0 = <&pwm14m0_pins>;
2268 pinctrl-names = "default";
2269 #pwm-cells = <3>;
2270 status = "disabled";
2271 };
2272
2273 pwm15: pwm@febf0030 {
2274 compatible = "rockchip,rk3588-pwm", "rockchip,rk3328-pwm";
2275 reg = <0x0 0xfebf0030 0x0 0x10>;
2276 clocks = <&cru CLK_PWM3>, <&cru PCLK_PWM3>;
2277 clock-names = "pwm", "pclk";
2278 pinctrl-0 = <&pwm15m0_pins>;
2279 pinctrl-names = "default";
2280 #pwm-cells = <3>;
2281 status = "disabled";
2282 };
2283
2284 tsadc: tsadc@fec00000 {
2285 compatible = "rockchip,rk3588-tsadc";
2286 reg = <0x0 0xfec00000 0x0 0x400>;
2287 interrupts = <GIC_SPI 397 IRQ_TYPE_LEVEL_HIGH 0>;
2288 clocks = <&cru CLK_TSADC>, <&cru PCLK_TSADC>;
2289 clock-names = "tsadc", "apb_pclk";
2290 assigned-clocks = <&cru CLK_TSADC>;
2291 assigned-clock-rates = <2000000>;
2292 resets = <&cru SRST_P_TSADC>, <&cru SRST_TSADC>;
2293 reset-names = "tsadc-apb", "tsadc";
2294 rockchip,hw-tshut-temp = <120000>;
2295 rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */
2296 rockchip,hw-tshut-polarity = <0>; /* tshut polarity 0:LOW 1:HIGH */
2297 pinctrl-0 = <&tsadc_gpio_func>;
2298 pinctrl-1 = <&tsadc_shut>;
2299 pinctrl-names = "gpio", "otpout";
2300 #thermal-sensor-cells = <1>;
2301 status = "disabled";
2302 };
2303
2304 saradc: adc@fec10000 {
2305 compatible = "rockchip,rk3588-saradc";
2306 reg = <0x0 0xfec10000 0x0 0x10000>;
2307 interrupts = <GIC_SPI 398 IRQ_TYPE_LEVEL_HIGH 0>;
2308 #io-channel-cells = <1>;
2309 clocks = <&cru CLK_SARADC>, <&cru PCLK_SARADC>;
2310 clock-names = "saradc", "apb_pclk";
2311 resets = <&cru SRST_P_SARADC>;
2312 reset-names = "saradc-apb";
2313 status = "disabled";
2314 };
2315
2316 i2c6: i2c@fec80000 {
2317 compatible = "rockchip,rk3588-i2c", "rockchip,rk3399-i2c";
2318 reg = <0x0 0xfec80000 0x0 0x1000>;
2319 clocks = <&cru CLK_I2C6>, <&cru PCLK_I2C6>;
2320 clock-names = "i2c", "pclk";
2321 interrupts = <GIC_SPI 323 IRQ_TYPE_LEVEL_HIGH 0>;
2322 pinctrl-0 = <&i2c6m0_xfer>;
2323 pinctrl-names = "default";
2324 #address-cells = <1>;
2325 #size-cells = <0>;
2326 status = "disabled";
2327 };
2328
2329 i2c7: i2c@fec90000 {
2330 compatible = "rockchip,rk3588-i2c", "rockchip,rk3399-i2c";
2331 reg = <0x0 0xfec90000 0x0 0x1000>;
2332 clocks = <&cru CLK_I2C7>, <&cru PCLK_I2C7>;
2333 clock-names = "i2c", "pclk";
2334 interrupts = <GIC_SPI 324 IRQ_TYPE_LEVEL_HIGH 0>;
2335 pinctrl-0 = <&i2c7m0_xfer>;
2336 pinctrl-names = "default";
2337 #address-cells = <1>;
2338 #size-cells = <0>;
2339 status = "disabled";
2340 };
2341
2342 i2c8: i2c@feca0000 {
2343 compatible = "rockchip,rk3588-i2c", "rockchip,rk3399-i2c";
2344 reg = <0x0 0xfeca0000 0x0 0x1000>;
2345 clocks = <&cru CLK_I2C8>, <&cru PCLK_I2C8>;
2346 clock-names = "i2c", "pclk";
2347 interrupts = <GIC_SPI 325 IRQ_TYPE_LEVEL_HIGH 0>;
2348 pinctrl-0 = <&i2c8m0_xfer>;
2349 pinctrl-names = "default";
2350 #address-cells = <1>;
2351 #size-cells = <0>;
2352 status = "disabled";
2353 };
2354
2355 spi4: spi@fecb0000 {
2356 compatible = "rockchip,rk3588-spi", "rockchip,rk3066-spi";
2357 reg = <0x0 0xfecb0000 0x0 0x1000>;
2358 interrupts = <GIC_SPI 330 IRQ_TYPE_LEVEL_HIGH 0>;
2359 clocks = <&cru CLK_SPI4>, <&cru PCLK_SPI4>;
2360 clock-names = "spiclk", "apb_pclk";
2361 dmas = <&dmac2 13>, <&dmac2 14>;
2362 dma-names = "tx", "rx";
2363 num-cs = <2>;
2364 pinctrl-0 = <&spi4m0_cs0 &spi4m0_cs1 &spi4m0_pins>;
2365 pinctrl-names = "default";
2366 #address-cells = <1>;
2367 #size-cells = <0>;
2368 status = "disabled";
2369 };
2370
2371 otp: efuse@fecc0000 {
2372 compatible = "rockchip,rk3588-otp";
2373 reg = <0x0 0xfecc0000 0x0 0x400>;
2374 clocks = <&cru CLK_OTPC_NS>, <&cru PCLK_OTPC_NS>,
2375 <&cru CLK_OTP_PHY_G>, <&cru CLK_OTPC_ARB>;
2376 clock-names = "otp", "apb_pclk", "phy", "arb";
2377 resets = <&cru SRST_OTPC_NS>, <&cru SRST_P_OTPC_NS>,
2378 <&cru SRST_OTPC_ARB>;
2379 reset-names = "otp", "apb", "arb";
2380 #address-cells = <1>;
2381 #size-cells = <1>;
2382
2383 cpu_code: cpu-code@2 {
2384 reg = <0x02 0x2>;
2385 };
2386
2387 otp_id: id@7 {
2388 reg = <0x07 0x10>;
2389 };
2390
2391 cpub0_leakage: cpu-leakage@17 {
2392 reg = <0x17 0x1>;
2393 };
2394
2395 cpub1_leakage: cpu-leakage@18 {
2396 reg = <0x18 0x1>;
2397 };
2398
2399 cpul_leakage: cpu-leakage@19 {
2400 reg = <0x19 0x1>;
2401 };
2402
2403 log_leakage: log-leakage@1a {
2404 reg = <0x1a 0x1>;
2405 };
2406
2407 gpu_leakage: gpu-leakage@1b {
2408 reg = <0x1b 0x1>;
2409 };
2410
2411 otp_cpu_version: cpu-version@1c {
2412 reg = <0x1c 0x1>;
2413 bits = <3 3>;
2414 };
2415
2416 npu_leakage: npu-leakage@28 {
2417 reg = <0x28 0x1>;
2418 };
2419
2420 codec_leakage: codec-leakage@29 {
2421 reg = <0x29 0x1>;
2422 };
2423 };
2424
2425 dmac2: dma-controller@fed10000 {
2426 compatible = "arm,pl330", "arm,primecell";
2427 reg = <0x0 0xfed10000 0x0 0x4000>;
2428 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH 0>,
2429 <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH 0>;
2430 arm,pl330-periph-burst;
2431 clocks = <&cru ACLK_DMAC2>;
2432 clock-names = "apb_pclk";
2433 #dma-cells = <1>;
2434 };
2435
Tom Rini6bb92fc2024-05-20 09:54:58 -06002436 hdptxphy_hdmi0: phy@fed60000 {
2437 compatible = "rockchip,rk3588-hdptx-phy";
2438 reg = <0x0 0xfed60000 0x0 0x2000>;
2439 clocks = <&cru CLK_USB2PHY_HDPTXRXPHY_REF>, <&cru PCLK_HDPTX0>;
2440 clock-names = "ref", "apb";
2441 #phy-cells = <0>;
2442 resets = <&cru SRST_HDPTX0>, <&cru SRST_P_HDPTX0>,
2443 <&cru SRST_HDPTX0_INIT>, <&cru SRST_HDPTX0_CMN>,
2444 <&cru SRST_HDPTX0_LANE>, <&cru SRST_HDPTX0_ROPLL>,
2445 <&cru SRST_HDPTX0_LCPLL>;
2446 reset-names = "phy", "apb", "init", "cmn", "lane", "ropll",
2447 "lcpll";
2448 rockchip,grf = <&hdptxphy0_grf>;
2449 status = "disabled";
2450 };
2451
Tom Rini53633a82024-02-29 12:33:36 -05002452 combphy0_ps: phy@fee00000 {
2453 compatible = "rockchip,rk3588-naneng-combphy";
2454 reg = <0x0 0xfee00000 0x0 0x100>;
2455 clocks = <&cru CLK_REF_PIPE_PHY0>, <&cru PCLK_PCIE_COMBO_PIPE_PHY0>,
2456 <&cru PCLK_PHP_ROOT>;
2457 clock-names = "ref", "apb", "pipe";
2458 assigned-clocks = <&cru CLK_REF_PIPE_PHY0>;
2459 assigned-clock-rates = <100000000>;
2460 #phy-cells = <1>;
2461 resets = <&cru SRST_REF_PIPE_PHY0>, <&cru SRST_P_PCIE2_PHY0>;
2462 reset-names = "phy", "apb";
2463 rockchip,pipe-grf = <&php_grf>;
2464 rockchip,pipe-phy-grf = <&pipe_phy0_grf>;
2465 status = "disabled";
2466 };
2467
2468 combphy2_psu: phy@fee20000 {
2469 compatible = "rockchip,rk3588-naneng-combphy";
2470 reg = <0x0 0xfee20000 0x0 0x100>;
2471 clocks = <&cru CLK_REF_PIPE_PHY2>, <&cru PCLK_PCIE_COMBO_PIPE_PHY2>,
2472 <&cru PCLK_PHP_ROOT>;
2473 clock-names = "ref", "apb", "pipe";
2474 assigned-clocks = <&cru CLK_REF_PIPE_PHY2>;
2475 assigned-clock-rates = <100000000>;
2476 #phy-cells = <1>;
2477 resets = <&cru SRST_REF_PIPE_PHY2>, <&cru SRST_P_PCIE2_PHY2>;
2478 reset-names = "phy", "apb";
2479 rockchip,pipe-grf = <&php_grf>;
2480 rockchip,pipe-phy-grf = <&pipe_phy2_grf>;
2481 status = "disabled";
2482 };
2483
2484 system_sram2: sram@ff001000 {
2485 compatible = "mmio-sram";
2486 reg = <0x0 0xff001000 0x0 0xef000>;
2487 ranges = <0x0 0x0 0xff001000 0xef000>;
2488 #address-cells = <1>;
2489 #size-cells = <1>;
2490 };
2491
2492 pinctrl: pinctrl {
2493 compatible = "rockchip,rk3588-pinctrl";
2494 ranges;
2495 rockchip,grf = <&ioc>;
2496 #address-cells = <2>;
2497 #size-cells = <2>;
2498
2499 gpio0: gpio@fd8a0000 {
2500 compatible = "rockchip,gpio-bank";
2501 reg = <0x0 0xfd8a0000 0x0 0x100>;
2502 interrupts = <GIC_SPI 277 IRQ_TYPE_LEVEL_HIGH 0>;
2503 clocks = <&cru PCLK_GPIO0>, <&cru DBCLK_GPIO0>;
2504 gpio-controller;
2505 gpio-ranges = <&pinctrl 0 0 32>;
2506 interrupt-controller;
2507 #gpio-cells = <2>;
2508 #interrupt-cells = <2>;
2509 };
2510
2511 gpio1: gpio@fec20000 {
2512 compatible = "rockchip,gpio-bank";
2513 reg = <0x0 0xfec20000 0x0 0x100>;
2514 interrupts = <GIC_SPI 278 IRQ_TYPE_LEVEL_HIGH 0>;
2515 clocks = <&cru PCLK_GPIO1>, <&cru DBCLK_GPIO1>;
2516 gpio-controller;
2517 gpio-ranges = <&pinctrl 0 32 32>;
2518 interrupt-controller;
2519 #gpio-cells = <2>;
2520 #interrupt-cells = <2>;
2521 };
2522
2523 gpio2: gpio@fec30000 {
2524 compatible = "rockchip,gpio-bank";
2525 reg = <0x0 0xfec30000 0x0 0x100>;
2526 interrupts = <GIC_SPI 279 IRQ_TYPE_LEVEL_HIGH 0>;
2527 clocks = <&cru PCLK_GPIO2>, <&cru DBCLK_GPIO2>;
2528 gpio-controller;
2529 gpio-ranges = <&pinctrl 0 64 32>;
2530 interrupt-controller;
2531 #gpio-cells = <2>;
2532 #interrupt-cells = <2>;
2533 };
2534
2535 gpio3: gpio@fec40000 {
2536 compatible = "rockchip,gpio-bank";
2537 reg = <0x0 0xfec40000 0x0 0x100>;
2538 interrupts = <GIC_SPI 280 IRQ_TYPE_LEVEL_HIGH 0>;
2539 clocks = <&cru PCLK_GPIO3>, <&cru DBCLK_GPIO3>;
2540 gpio-controller;
2541 gpio-ranges = <&pinctrl 0 96 32>;
2542 interrupt-controller;
2543 #gpio-cells = <2>;
2544 #interrupt-cells = <2>;
2545 };
2546
2547 gpio4: gpio@fec50000 {
2548 compatible = "rockchip,gpio-bank";
2549 reg = <0x0 0xfec50000 0x0 0x100>;
2550 interrupts = <GIC_SPI 281 IRQ_TYPE_LEVEL_HIGH 0>;
2551 clocks = <&cru PCLK_GPIO4>, <&cru DBCLK_GPIO4>;
2552 gpio-controller;
2553 gpio-ranges = <&pinctrl 0 128 32>;
2554 interrupt-controller;
2555 #gpio-cells = <2>;
2556 #interrupt-cells = <2>;
2557 };
2558 };
Tom Rini53633a82024-02-29 12:33:36 -05002559};
2560
2561#include "rk3588s-pinctrl.dtsi"