riscv: dts: sophgo: add Milk-V Pioneer board device tree
authorChen Wang <unicorn_wang@outlook.com>
Wed, 4 Oct 2023 15:44:25 +0000 (23:44 +0800)
committerConor Dooley <conor.dooley@microchip.com>
Sat, 7 Oct 2023 10:17:01 +0000 (11:17 +0100)
Milk-V Pioneer [1] is a developer motherboard based on SG2042
in a standard mATX form factor.

Currently only support booting into console with only uart
enabled, other features will be added soon later.

Link: https://milkv.io/pioneer
Reviewed-by: Guo Ren <guoren@kernel.org>
Acked-by: Chao Wei <chao.wei@sophgo.com>
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
arch/riscv/boot/dts/Makefile
arch/riscv/boot/dts/sophgo/Makefile [new file with mode: 0644]
arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts [new file with mode: 0644]

index f60a280abb1573ee8b775ab5e55b917885aaaf08..72030fd727af64be783c19d0c4654c9c10e89caf 100644 (file)
@@ -4,6 +4,7 @@ subdir-y += canaan
 subdir-y += microchip
 subdir-y += renesas
 subdir-y += sifive
+subdir-y += sophgo
 subdir-y += starfive
 subdir-y += thead
 
diff --git a/arch/riscv/boot/dts/sophgo/Makefile b/arch/riscv/boot/dts/sophgo/Makefile
new file mode 100644 (file)
index 0000000..73af15f
--- /dev/null
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0
+dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-milkv-pioneer.dtb
diff --git a/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts b/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts
new file mode 100644 (file)
index 0000000..49b4b9c
--- /dev/null
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: GPL-2.0 OR MIT
+/*
+ * Copyright (C) 2022 Sophgo Technology Inc. All rights reserved.
+ */
+
+#include "sg2042.dtsi"
+
+/ {
+       model = "Milk-V Pioneer";
+       compatible = "milkv,pioneer", "sophgo,sg2042";
+
+       chosen {
+               stdout-path = "serial0";
+       };
+};
+
+&uart0 {
+       status = "okay";
+};