Skip to content

Commit 4c965bc

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 4c965bc

File tree

1 file changed

+98
-0
lines changed

1 file changed

+98
-0
lines changed

dts/arm64/rockchip/rk3588.dtsi

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

0 commit comments

Comments
 (0)