Skip to content

Commit 31ceede

Browse files
pdp7ConchuOD
authored andcommitted
riscv: dts: thead: add BeagleV Ahead board device tree
The BeagleV Ahead single board computer uses the T-Head TH1520 SoC. Add a minimal device tree to support basic uart/gpio/dmac drivers so that a user can boot to a basic shell. Link: https://beagleboard.org/beaglev-ahead Reviewed-by: Guo Ren <guoren@kernel.org> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Drew Fustini <dfustini@baylibre.com> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
1 parent d19c10d commit 31ceede

File tree

2 files changed

+62
-1
lines changed

2 files changed

+62
-1
lines changed

arch/riscv/boot/dts/thead/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
dtb-$(CONFIG_ARCH_THEAD) += th1520-lichee-pi-4a.dtb
2+
dtb-$(CONFIG_ARCH_THEAD) += th1520-lichee-pi-4a.dtb th1520-beaglev-ahead.dtb
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2+
/*
3+
* Copyright (C) 2023 Jisheng Zhang <jszhang@kernel.org>
4+
* Copyright (C) 2023 Drew Fustini <dfustini@baylibre.com>
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include "th1520.dtsi"
10+
11+
/ {
12+
model = "BeagleV Ahead";
13+
compatible = "beagle,beaglev-ahead", "thead,th1520";
14+
15+
aliases {
16+
gpio0 = &gpio0;
17+
gpio1 = &gpio1;
18+
gpio2 = &gpio2;
19+
gpio3 = &gpio3;
20+
serial0 = &uart0;
21+
serial1 = &uart1;
22+
serial2 = &uart2;
23+
serial3 = &uart3;
24+
serial4 = &uart4;
25+
serial5 = &uart5;
26+
};
27+
28+
chosen {
29+
stdout-path = "serial0:115200n8";
30+
};
31+
32+
memory@0 {
33+
device_type = "memory";
34+
reg = <0x0 0x00000000 0x1 0x00000000>;
35+
36+
};
37+
};
38+
39+
&osc {
40+
clock-frequency = <24000000>;
41+
};
42+
43+
&osc_32k {
44+
clock-frequency = <32768>;
45+
};
46+
47+
&apb_clk {
48+
clock-frequency = <62500000>;
49+
};
50+
51+
&uart_sclk {
52+
clock-frequency = <100000000>;
53+
};
54+
55+
&dmac0 {
56+
status = "okay";
57+
};
58+
59+
&uart0 {
60+
status = "okay";
61+
};

0 commit comments

Comments
 (0)