Skip to content

Commit 27df2ed

Browse files
xhackerustcConchuOD
authored andcommitted
riscv: dts: sophgo: add Milk-V Duo board device tree
Milk-V Duo[1] board is an embedded development platform based on the CV1800B chip. Add minimal device tree files for the development board. Support basic uart drivers, so supports booting to a basic shell. Link: https://milkv.io/duo [1] Signed-off-by: Jisheng Zhang <jszhang@kernel.org> Acked-by: Chen Wang <unicorn_wang@outlook.com> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
1 parent c3dffa8 commit 27df2ed

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# SPDX-License-Identifier: GPL-2.0
2+
dtb-$(CONFIG_ARCH_SOPHGO) += cv1800b-milkv-duo.dtb
23
dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-milkv-pioneer.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 OR MIT)
2+
/*
3+
* Copyright (C) 2023 Jisheng Zhang <jszhang@kernel.org>
4+
*/
5+
6+
/dts-v1/;
7+
8+
#include "cv1800b.dtsi"
9+
10+
/ {
11+
model = "Milk-V Duo";
12+
compatible = "milkv,duo", "sophgo,cv1800b";
13+
14+
aliases {
15+
serial0 = &uart0;
16+
serial1 = &uart1;
17+
serial2 = &uart2;
18+
serial3 = &uart3;
19+
serial4 = &uart4;
20+
};
21+
22+
chosen {
23+
stdout-path = "serial0:115200n8";
24+
};
25+
26+
memory@80000000 {
27+
device_type = "memory";
28+
reg = <0x80000000 0x3f40000>;
29+
};
30+
};
31+
32+
&osc {
33+
clock-frequency = <25000000>;
34+
};
35+
36+
&uart0 {
37+
status = "okay";
38+
};

0 commit comments

Comments
 (0)