Skip to content

Commit 752998a

Browse files
committed
dts: rockchip: add rk3588
Add initial device tree support for the Rockchip RK3588 SoC. The DTS describes: - Four Cortex-A55 cores with PSCI enable-method - GICv3 interrupt controller - ARMv8 timer - UART2 and UART3 (disabled by default) Signed-off-by: Guowei Li <[email protected]>
1 parent 169b47c commit 752998a

File tree

1 file changed

+95
-0
lines changed

1 file changed

+95
-0
lines changed

dts/arm64/rockchip/rk3588.dtsi

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
/*
2+
* Copyright (c) 2025 Syswonder
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
#include <mem.h>
7+
#include <arm64/armv8-a.dtsi>
8+
#include <zephyr/dt-bindings/interrupt-controller/arm-gic.h>
9+
10+
11+
/ {
12+
#address-cells = <1>;
13+
#size-cells = <1>;
14+
15+
compatible = "rockchip,rk3588";
16+
interrupt-parent = <&gic>;
17+
18+
cpus {
19+
#address-cells = <1>;
20+
#size-cells = <0>;
21+
22+
cpu@0 {
23+
device_type = "cpu";
24+
compatible = "arm,cortex-a55";
25+
enable-method = "psci";
26+
clock-frequency = <24000000>;
27+
reg = <0x000>;
28+
};
29+
30+
cpu@100 {
31+
device_type = "cpu";
32+
compatible = "arm,cortex-a55";
33+
enable-method = "psci";
34+
reg = <0x100>;
35+
};
36+
37+
cpu@200 {
38+
device_type = "cpu";
39+
compatible = "arm,cortex-a55";
40+
enable-method = "psci";
41+
reg = <0x200>;
42+
43+
};
44+
45+
cpu@300 {
46+
device_type = "cpu";
47+
compatible = "arm,cortex-a55";
48+
enable-method = "psci";
49+
reg = <0x300>;
50+
};
51+
};
52+
53+
gic: interrupt-controller@fe600000 {
54+
#address-cells = <1>;
55+
compatible = "arm,gic-v3","arm,gic";
56+
#interrupt-cells = <4>;
57+
interrupt-controller;
58+
59+
reg = <0xfe600000 0x10000>, /* GICD */
60+
<0xfe680000 0x100000>; /* GICR */
61+
status = "okay";
62+
};
63+
64+
psci {
65+
compatible = "arm,psci-0.2", "arm,psci";
66+
method = "smc";
67+
};
68+
69+
timer {
70+
compatible = "arm,armv8-timer";
71+
interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>,
72+
<GIC_PPI 14 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>,
73+
<GIC_PPI 11 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>,
74+
<GIC_PPI 10 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
75+
interrupt-parent = <&gic>;
76+
};
77+
78+
uart2: serial@feb50000 {
79+
compatible = "rockchip,rk3588-uart", "ns16550";
80+
reg = <0xfeb50000 0x100>;
81+
interrupts = <GIC_SPI 333 IRQ_TYPE_EDGE IRQ_DEFAULT_PRIORITY>;
82+
clock-frequency = <12000000>;
83+
reg-shift = <2>;
84+
status = "disabled";
85+
};
86+
87+
uart3: serial@feb60000 {
88+
compatible = "rockchip,rk3588-uart", "ns16550";
89+
reg = <0xfeb60000 0x100>;
90+
interrupts = <GIC_SPI 334 IRQ_TYPE_EDGE IRQ_DEFAULT_PRIORITY>;
91+
clock-frequency = <24000000>;
92+
reg-shift = <2>;
93+
status = "disabled";
94+
};
95+
};

0 commit comments

Comments
 (0)