Skip to content

Commit 5af4cb0

Browse files
xhackerustcConchuOD
authored andcommitted
riscv: dts: thead: add sipeed Lichee Pi 4A board device tree
Sipeed's Lichee Pi 4A development board uses Lichee Module 4A core module which is powered by T-HEAD's TH1520 SoC. Add minimal device tree files for the core module and the development board. Support basic uart/gpio/dmac drivers, so supports booting to a basic shell. Signed-off-by: Jisheng Zhang <jszhang@kernel.org> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
1 parent 8e39688 commit 5af4cb0

4 files changed

Lines changed: 73 additions & 0 deletions

File tree

arch/riscv/boot/dts/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
subdir-y += allwinner
33
subdir-y += sifive
44
subdir-y += starfive
5+
subdir-y += thead
56
subdir-y += canaan
67
subdir-y += microchip
78
subdir-y += renesas

arch/riscv/boot/dts/thead/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
dtb-$(CONFIG_ARCH_THEAD) += th1520-lichee-pi-4a.dtb
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// SPDX-License-Identifier: GPL-2.0
2+
/*
3+
* Copyright (C) 2023 Jisheng Zhang <jszhang@kernel.org>
4+
*/
5+
6+
/dts-v1/;
7+
8+
#include "th1520.dtsi"
9+
10+
/ {
11+
model = "Sipeed Lichee Module 4A";
12+
compatible = "sipeed,lichee-module-4a", "thead,th1520";
13+
14+
memory@0 {
15+
device_type = "memory";
16+
reg = <0x0 0x00000000 0x2 0x00000000>;
17+
};
18+
};
19+
20+
&osc {
21+
clock-frequency = <24000000>;
22+
};
23+
24+
&osc_32k {
25+
clock-frequency = <32768>;
26+
};
27+
28+
&apb_clk {
29+
clock-frequency = <62500000>;
30+
};
31+
32+
&uart_sclk {
33+
clock-frequency = <100000000>;
34+
};
35+
36+
&dmac0 {
37+
status = "okay";
38+
};
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// SPDX-License-Identifier: GPL-2.0
2+
/*
3+
* Copyright (C) 2023 Jisheng Zhang <jszhang@kernel.org>
4+
*/
5+
6+
#include "th1520-lichee-module-4a.dtsi"
7+
8+
/ {
9+
model = "Sipeed Lichee Pi 4A";
10+
compatible = "sipeed,lichee-pi-4a", "sipeed,lichee-module-4a", "thead,th1520";
11+
12+
aliases {
13+
gpio0 = &gpio0;
14+
gpio1 = &gpio1;
15+
gpio2 = &gpio2;
16+
gpio3 = &gpio3;
17+
serial0 = &uart0;
18+
serial1 = &uart1;
19+
serial2 = &uart2;
20+
serial3 = &uart3;
21+
serial4 = &uart4;
22+
serial5 = &uart5;
23+
};
24+
25+
chosen {
26+
stdout-path = "serial0:115200n8";
27+
};
28+
};
29+
30+
&uart0 {
31+
status = "okay";
32+
};

0 commit comments

Comments
 (0)