All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chen Wang <unicornxw@gmail.com>
To: aou@eecs.berkeley.edu, chao.wei@sophgo.com, conor@kernel.org,
	devicetree@vger.kernel.org, emil.renner.berthing@canonical.com,
	guoren@kernel.org, jszhang@kernel.org,
	krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org,
	linux-riscv@lists.infradead.org, palmer@dabbelt.com,
	paul.walmsley@sifive.com, robh+dt@kernel.org,
	xiaoguang.xing@sophgo.com
Cc: Chen Wang <wangchen20@iscas.ac.cn>
Subject: [PATCH v2 10/11] riscv: dts: sophgo: add Milk-V Pioneer board device tree
Date: Wed, 20 Sep 2023 14:40:53 +0800	[thread overview]
Message-ID: <e9ff83e4fac9a9ebd217ef10e5f8d3260342102b.1695189879.git.wangchen20@iscas.ac.cn> (raw)
In-Reply-To: <cover.1695189879.git.wangchen20@iscas.ac.cn>

Milk-V Pioneer [1] is a developer motherboard based on SOPHON
SG2042 in a standard mATX form factor. It is a good
choice for RISC-V developers and hardware pioneers to
experience the cutting edge technology of RISC-V.

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

[1]: https://milkv.io/pioneer

Acked-by: Xiaoguang Xing <xiaoguang.xing@sophgo.com>
Signed-off-by: Chen Wang <wangchen20@iscas.ac.cn>
---
 arch/riscv/boot/dts/Makefile                  |  1 +
 arch/riscv/boot/dts/sophgo/Makefile           |  3 +++
 .../boot/dts/sophgo/sg2042-milkv-pioneer.dts  | 19 +++++++++++++++++++
 3 files changed, 23 insertions(+)
 create mode 100644 arch/riscv/boot/dts/sophgo/Makefile
 create mode 100644 arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts

diff --git a/arch/riscv/boot/dts/Makefile b/arch/riscv/boot/dts/Makefile
index f60a280abb15..94788486f13e 100644
--- a/arch/riscv/boot/dts/Makefile
+++ b/arch/riscv/boot/dts/Makefile
@@ -6,5 +6,6 @@ subdir-y += renesas
 subdir-y += sifive
 subdir-y += starfive
 subdir-y += thead
+subdir-y += sophgo
 
 obj-$(CONFIG_BUILTIN_DTB) := $(addsuffix /, $(subdir-y))
diff --git a/arch/riscv/boot/dts/sophgo/Makefile b/arch/riscv/boot/dts/sophgo/Makefile
new file mode 100644
index 000000000000..5a471b19df22
--- /dev/null
+++ b/arch/riscv/boot/dts/sophgo/Makefile
@@ -0,0 +1,3 @@
+# 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
index 000000000000..d6e8c0285d1e
--- /dev/null
+++ b/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts
@@ -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: chosen {
+		stdout-path = "serial0";
+	};
+};
+
+&uart0 {
+	status = "okay";
+};
-- 
2.25.1


WARNING: multiple messages have this Message-ID (diff)
From: Chen Wang <unicornxw@gmail.com>
To: aou@eecs.berkeley.edu, chao.wei@sophgo.com, conor@kernel.org,
	devicetree@vger.kernel.org, emil.renner.berthing@canonical.com,
	guoren@kernel.org, jszhang@kernel.org,
	krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org,
	linux-riscv@lists.infradead.org, palmer@dabbelt.com,
	paul.walmsley@sifive.com, robh+dt@kernel.org,
	xiaoguang.xing@sophgo.com
Cc: Chen Wang <wangchen20@iscas.ac.cn>
Subject: [PATCH v2 10/11] riscv: dts: sophgo: add Milk-V Pioneer board device tree
Date: Wed, 20 Sep 2023 14:40:53 +0800	[thread overview]
Message-ID: <e9ff83e4fac9a9ebd217ef10e5f8d3260342102b.1695189879.git.wangchen20@iscas.ac.cn> (raw)
In-Reply-To: <cover.1695189879.git.wangchen20@iscas.ac.cn>

Milk-V Pioneer [1] is a developer motherboard based on SOPHON
SG2042 in a standard mATX form factor. It is a good
choice for RISC-V developers and hardware pioneers to
experience the cutting edge technology of RISC-V.

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

[1]: https://milkv.io/pioneer

Acked-by: Xiaoguang Xing <xiaoguang.xing@sophgo.com>
Signed-off-by: Chen Wang <wangchen20@iscas.ac.cn>
---
 arch/riscv/boot/dts/Makefile                  |  1 +
 arch/riscv/boot/dts/sophgo/Makefile           |  3 +++
 .../boot/dts/sophgo/sg2042-milkv-pioneer.dts  | 19 +++++++++++++++++++
 3 files changed, 23 insertions(+)
 create mode 100644 arch/riscv/boot/dts/sophgo/Makefile
 create mode 100644 arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts

diff --git a/arch/riscv/boot/dts/Makefile b/arch/riscv/boot/dts/Makefile
index f60a280abb15..94788486f13e 100644
--- a/arch/riscv/boot/dts/Makefile
+++ b/arch/riscv/boot/dts/Makefile
@@ -6,5 +6,6 @@ subdir-y += renesas
 subdir-y += sifive
 subdir-y += starfive
 subdir-y += thead
+subdir-y += sophgo
 
 obj-$(CONFIG_BUILTIN_DTB) := $(addsuffix /, $(subdir-y))
diff --git a/arch/riscv/boot/dts/sophgo/Makefile b/arch/riscv/boot/dts/sophgo/Makefile
new file mode 100644
index 000000000000..5a471b19df22
--- /dev/null
+++ b/arch/riscv/boot/dts/sophgo/Makefile
@@ -0,0 +1,3 @@
+# 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
index 000000000000..d6e8c0285d1e
--- /dev/null
+++ b/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts
@@ -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: chosen {
+		stdout-path = "serial0";
+	};
+};
+
+&uart0 {
+	status = "okay";
+};
-- 
2.25.1


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

  parent reply	other threads:[~2023-09-20  6:41 UTC|newest]

Thread overview: 176+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-20  6:33 [PATCH v2 00/11] Add Milk-V Pioneer RISC-V board support Chen Wang
2023-09-20  6:33 ` Chen Wang
2023-09-20  6:34 ` [PATCH v2 01/11] riscv: Add SOPHGO SOC family Kconfig support Chen Wang
2023-09-20  6:34   ` Chen Wang
2023-09-20  7:34   ` Guo Ren
2023-09-20  7:34     ` Guo Ren
2023-09-20  8:21   ` Conor Dooley
2023-09-20  8:21     ` Conor Dooley
2023-09-20  6:37 ` [PATCH v2 02/11] dt-bindings: vendor-prefixes: add milkv/sophgo Chen Wang
2023-09-20  6:37   ` Chen Wang
2023-09-20  7:38   ` Guo Ren
2023-09-20  7:38     ` Guo Ren
2023-09-20  8:22   ` Conor Dooley
2023-09-20  8:22     ` Conor Dooley
2023-09-20  9:14     ` Chen Wang
2023-09-20  9:14       ` Chen Wang
2023-09-20  6:37 ` [PATCH v2 03/11] dt-bindings: riscv: add sophgo sg2042 bindings Chen Wang
2023-09-20  6:37   ` Chen Wang
2023-09-20  7:43   ` Guo Ren
2023-09-20  7:43     ` Guo Ren
2023-09-20  8:28   ` Conor Dooley
2023-09-20  8:28     ` Conor Dooley
2023-09-21 10:21     ` Chen Wang
2023-09-21 10:21       ` Chen Wang
2023-09-21 12:18       ` Conor Dooley
2023-09-21 12:18         ` Conor Dooley
2023-09-21 13:40         ` Chen Wang
2023-09-21 13:40           ` Chen Wang
2023-09-21 13:51         ` Chen Wang
2023-09-21 13:51           ` Chen Wang
2023-09-21 14:00           ` Conor Dooley
2023-09-21 14:00             ` Conor Dooley
2023-09-22  1:48     ` Chen Wang
2023-09-22  1:48       ` Chen Wang
2023-09-20 11:55   ` Krzysztof Kozlowski
2023-09-20 11:55     ` Krzysztof Kozlowski
2023-09-20 12:03     ` 汪辰
2023-09-20 12:03       ` 汪辰
2023-09-21  0:48       ` Jisheng Zhang
2023-09-21  0:48         ` Jisheng Zhang
2023-09-20  6:38 ` [PATCH v2 04/11] dt-bindings: riscv: Add T-HEAD C920 compatibles Chen Wang
2023-09-20  6:38   ` Chen Wang
2023-09-20  7:44   ` Guo Ren
2023-09-20  7:44     ` Guo Ren
2023-09-20  8:37   ` Conor Dooley
2023-09-20  8:37     ` Conor Dooley
2023-09-20  6:39 ` [PATCH v2 05/11] dt-bindings: interrupt-controller: Add SOPHGO's SG2042 PLIC Chen Wang
2023-09-20  6:39   ` Chen Wang
2023-09-20  7:45   ` Guo Ren
2023-09-20  7:45     ` Guo Ren
2023-09-20  8:57   ` Conor Dooley
2023-09-20  8:57     ` Conor Dooley
2023-09-20  6:39 ` [PATCH v2 06/11] dt-bindings: timer: Add Sophgo sg2042 clint Chen Wang
2023-09-20  6:39   ` Chen Wang
2023-09-20  8:12   ` Guo Ren
2023-09-20  8:12     ` Guo Ren
2023-09-20  8:50   ` Conor Dooley
2023-09-20  8:50     ` Conor Dooley
2023-09-20  9:08     ` Inochi Amaoto
2023-09-20  9:08       ` Inochi Amaoto
2023-09-20  9:53       ` Conor Dooley
2023-09-20  9:53         ` Conor Dooley
2023-09-20 11:24         ` Inochi Amaoto
2023-09-20 11:24           ` Inochi Amaoto
2023-09-20 13:03           ` Conor Dooley
2023-09-20 13:03             ` Conor Dooley
2023-09-21  0:43             ` Inochi Amaoto
2023-09-21  0:43               ` Inochi Amaoto
2023-09-21  8:05               ` Conor Dooley
2023-09-21  8:05                 ` Conor Dooley
2023-09-21  8:18                 ` Inochi Amaoto
2023-09-21  8:18                   ` Inochi Amaoto
2023-09-21  8:52                   ` Conor Dooley
2023-09-21  8:52                     ` Conor Dooley
2023-09-21  9:44                     ` Inochi Amaoto
2023-09-21  9:44                       ` Inochi Amaoto
2023-09-20 11:57   ` Krzysztof Kozlowski
2023-09-20 11:57     ` Krzysztof Kozlowski
2023-09-20 12:15     ` Inochi Amaoto
2023-09-20 12:15       ` Inochi Amaoto
2023-09-20 12:30       ` Krzysztof Kozlowski
2023-09-20 12:30         ` Krzysztof Kozlowski
2023-09-20 12:40         ` Inochi Amaoto
2023-09-20 12:40           ` Inochi Amaoto
2023-09-20 12:58           ` Conor Dooley
2023-09-20 12:58             ` Conor Dooley
2023-09-20 13:09             ` Krzysztof Kozlowski
2023-09-20 13:09               ` Krzysztof Kozlowski
2023-09-20 14:38             ` Anup Patel
2023-09-20 14:38               ` Anup Patel
2023-09-20 14:51               ` Conor Dooley
2023-09-20 14:51                 ` Conor Dooley
2023-09-20 22:20                 ` Inochi Amaoto
2023-09-20 22:20                   ` Inochi Amaoto
2023-09-22  5:16                 ` Inochi Amaoto
2023-09-22  5:16                   ` Inochi Amaoto
2023-09-22  7:43                   ` Conor Dooley
2023-09-22  7:43                     ` Conor Dooley
2023-09-22  8:18                     ` Inochi Amaoto
2023-09-22  8:18                       ` Inochi Amaoto
2023-09-20  6:39 ` [PATCH v2 07/11] dt-bindings: serial: snps-dw-apb-uart: Add Sophgo SG2042 uarts Chen Wang
2023-09-20  6:39   ` Chen Wang
2023-09-20  7:51   ` Guo Ren
2023-09-20  7:51     ` Guo Ren
2023-09-20  8:37   ` Conor Dooley
2023-09-20  8:37     ` Conor Dooley
2023-09-20  6:40 ` [PATCH v2 08/11] serial: 8250_dw: Add Sophgo SG2042 support Chen Wang
2023-09-20  6:40   ` Chen Wang
2023-09-20  7:53   ` Guo Ren
2023-09-20  7:53     ` Guo Ren
2023-09-20  8:05     ` Chen Wang
2023-09-20  8:05       ` Chen Wang
2023-09-20  8:08       ` Guo Ren
2023-09-20  8:08         ` Guo Ren
2023-09-22  9:41   ` Ben Dooks
2023-09-22  9:41     ` Ben Dooks
2023-09-22 10:40     ` Emil Renner Berthing
2023-09-22 10:40       ` Emil Renner Berthing
2023-09-22 11:39       ` Chen Wang
2023-09-22 11:39         ` Chen Wang
2023-09-26  7:38       ` Chen Wang
2023-09-26  7:38         ` Chen Wang
2023-09-20  6:40 ` [PATCH v2 09/11] riscv: dts: add initial SOPHGO SG2042 SoC device tree Chen Wang
2023-09-20  6:40   ` Chen Wang
2023-09-20  8:04   ` Guo Ren
2023-09-20  8:04     ` Guo Ren
2023-09-20  8:57   ` Conor Dooley
2023-09-20  8:57     ` Conor Dooley
2023-09-20  9:07     ` [PATCH v2 06/11] dt-bindings: timer: Add Sophgo sg2042 clint Inochi Amaoto
2023-09-20  9:07       ` Inochi Amaoto
2023-09-21  9:56     ` [PATCH v2 09/11] riscv: dts: add initial SOPHGO SG2042 SoC device tree Chen Wang
2023-09-21  9:56       ` Chen Wang
2023-09-21 10:15       ` Conor Dooley
2023-09-21 10:15         ` Conor Dooley
2023-09-21 10:27         ` Chen Wang
2023-09-21 10:27           ` Chen Wang
2023-09-21 12:06           ` Conor Dooley
2023-09-21 12:06             ` Conor Dooley
2023-09-20 11:32   ` Emil Renner Berthing
2023-09-20 11:32     ` Emil Renner Berthing
2023-09-20 12:09     ` 汪辰
2023-09-20 12:09       ` 汪辰
2023-09-20 12:32       ` Emil Renner Berthing
2023-09-20 12:32         ` Emil Renner Berthing
2023-09-20 12:37         ` 汪辰
2023-09-20 12:37           ` 汪辰
2023-09-20 15:19   ` Palmer Dabbelt
2023-09-20 15:19     ` Palmer Dabbelt
2023-09-20 15:31     ` Conor Dooley
2023-09-20 15:31       ` Conor Dooley
2023-09-20  6:40 ` Chen Wang [this message]
2023-09-20  6:40   ` [PATCH v2 10/11] riscv: dts: sophgo: add Milk-V Pioneer board " Chen Wang
2023-09-20  8:05   ` Guo Ren
2023-09-20  8:05     ` Guo Ren
2023-09-20  8:16   ` Conor Dooley
2023-09-20  8:16     ` Conor Dooley
2023-09-20 11:59   ` Krzysztof Kozlowski
2023-09-20 11:59     ` Krzysztof Kozlowski
2023-09-20  6:41 ` [PATCH v2 11/11] riscv: defconfig: enable SOPHGO SoC Chen Wang
2023-09-20  6:41   ` Chen Wang
2023-09-20  8:06   ` Guo Ren
2023-09-20  8:06     ` Guo Ren
2023-09-20  8:58   ` Conor Dooley
2023-09-20  8:58     ` Conor Dooley
2023-09-20 10:01 ` [PATCH v2 00/11] Add Milk-V Pioneer RISC-V board support Conor Dooley
2023-09-20 10:01   ` Conor Dooley
2023-09-22 10:24   ` Chen Wang
2023-09-22 10:24     ` Chen Wang
2023-09-22 10:50     ` Conor Dooley
2023-09-22 10:50       ` Conor Dooley
2023-09-22 11:28       ` Chen Wang
2023-09-22 11:28         ` Chen Wang
2023-09-20 15:22 ` Palmer Dabbelt
2023-09-20 15:22   ` Palmer Dabbelt
2023-09-26 10:29   ` Chen Wang
2023-09-26 10:29     ` Chen Wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e9ff83e4fac9a9ebd217ef10e5f8d3260342102b.1695189879.git.wangchen20@iscas.ac.cn \
    --to=unicornxw@gmail.com \
    --cc=aou@eecs.berkeley.edu \
    --cc=chao.wei@sophgo.com \
    --cc=conor@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=emil.renner.berthing@canonical.com \
    --cc=guoren@kernel.org \
    --cc=jszhang@kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=palmer@dabbelt.com \
    --cc=paul.walmsley@sifive.com \
    --cc=robh+dt@kernel.org \
    --cc=wangchen20@iscas.ac.cn \
    --cc=xiaoguang.xing@sophgo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.