* [PATCH v2 0/2] riscv: eswin: Add Milk-V Megrez board support
@ 2026-11-17 20:00 Han Gao via B4 Relay
2026-11-17 20:00 ` [PATCH v2 1/2] dt-bindings: riscv: eswin: Add Milk-V Megrez Han Gao via B4 Relay
2026-11-17 20:00 ` [PATCH v2 2/2] riscv: dts: eswin: Add Milk-V Megrez board Han Gao via B4 Relay
0 siblings, 2 replies; 5+ messages in thread
From: Han Gao via B4 Relay @ 2026-11-17 20:00 UTC (permalink / raw)
To: Min Lin, Pinkesh Vaghela, Pritesh Patel, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Paul Walmsley, Palmer Dabbelt,
Albert Ou, Alexandre Ghiti
Cc: Han Gao, devicetree, linux-riscv, linux-kernel, Han Gao
The Milk-V Megrez is a Mini-ITX board based on the ESWIN EIC7700X SoC.
This series documents the board compatible and adds a minimal device
tree that enables UART0 on the USB-C debug port as the serial console.
Changes in v2:
- Add missing email to the copyright line.
- Link to v1: https://lore.kernel.org/r/20261118-eic7700-megrez-v1-0-af8334b88336@iscas.ac.cn
---
Han Gao (2):
dt-bindings: riscv: eswin: Add Milk-V Megrez
riscv: dts: eswin: Add Milk-V Megrez board
Documentation/devicetree/bindings/riscv/eswin.yaml | 1 +
arch/riscv/boot/dts/eswin/Makefile | 1 +
arch/riscv/boot/dts/eswin/eic7700-milkv-megrez.dts | 25 ++++++++++++++++++++++
3 files changed, 27 insertions(+)
---
base-commit: aebb7274476403040d582c61478df8f4a7bf9cd3
change-id: 20261118-eic7700-megrez-16057cfc65df
Best regards,
--
Han Gao <gaohan@iscas.ac.cn>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 1/2] dt-bindings: riscv: eswin: Add Milk-V Megrez
2026-11-17 20:00 [PATCH v2 0/2] riscv: eswin: Add Milk-V Megrez board support Han Gao via B4 Relay
@ 2026-11-17 20:00 ` Han Gao via B4 Relay
2026-11-19 1:51 ` Min Lin
2026-11-17 20:00 ` [PATCH v2 2/2] riscv: dts: eswin: Add Milk-V Megrez board Han Gao via B4 Relay
1 sibling, 1 reply; 5+ messages in thread
From: Han Gao via B4 Relay @ 2026-11-17 20:00 UTC (permalink / raw)
To: Min Lin, Pinkesh Vaghela, Pritesh Patel, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Paul Walmsley, Palmer Dabbelt,
Albert Ou, Alexandre Ghiti
Cc: Han Gao, devicetree, linux-riscv, linux-kernel, Han Gao
From: Han Gao <gaohan@iscas.ac.cn>
Add the compatible for the Milk-V Megrez, a Mini-ITX board based on the
ESWIN EIC7700X SoC.
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
---
Documentation/devicetree/bindings/riscv/eswin.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/riscv/eswin.yaml b/Documentation/devicetree/bindings/riscv/eswin.yaml
index c603c45eef2252e760818e830e9dccdf0fdae6cf..f730f5ff91797d4c2f0610f9024a74611ffeae63 100644
--- a/Documentation/devicetree/bindings/riscv/eswin.yaml
+++ b/Documentation/devicetree/bindings/riscv/eswin.yaml
@@ -21,6 +21,7 @@ properties:
oneOf:
- items:
- enum:
+ - milkv,megrez
- sifive,hifive-premier-p550
- const: eswin,eic7700
--
2.47.3
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 2/2] riscv: dts: eswin: Add Milk-V Megrez board
2026-11-17 20:00 [PATCH v2 0/2] riscv: eswin: Add Milk-V Megrez board support Han Gao via B4 Relay
2026-11-17 20:00 ` [PATCH v2 1/2] dt-bindings: riscv: eswin: Add Milk-V Megrez Han Gao via B4 Relay
@ 2026-11-17 20:00 ` Han Gao via B4 Relay
2026-11-19 1:52 ` Min Lin
1 sibling, 1 reply; 5+ messages in thread
From: Han Gao via B4 Relay @ 2026-11-17 20:00 UTC (permalink / raw)
To: Min Lin, Pinkesh Vaghela, Pritesh Patel, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Paul Walmsley, Palmer Dabbelt,
Albert Ou, Alexandre Ghiti
Cc: Han Gao, devicetree, linux-riscv, linux-kernel, Han Gao
From: Han Gao <gaohan@iscas.ac.cn>
The Milk-V Megrez is a Mini-ITX board based on the ESWIN EIC7700X SoC.
Add a minimal device tree that enables UART0, which is connected to the
USB-C debug port through a CH340 USB-to-UART bridge, and use it as the
serial console.
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
---
arch/riscv/boot/dts/eswin/Makefile | 1 +
arch/riscv/boot/dts/eswin/eic7700-milkv-megrez.dts | 25 ++++++++++++++++++++++
2 files changed, 26 insertions(+)
diff --git a/arch/riscv/boot/dts/eswin/Makefile b/arch/riscv/boot/dts/eswin/Makefile
index 224101ae471e8d89996f7cbfc616425f704af37e..5daade822e15eda43eee111cbf89bc386bb06f32 100644
--- a/arch/riscv/boot/dts/eswin/Makefile
+++ b/arch/riscv/boot/dts/eswin/Makefile
@@ -1,2 +1,3 @@
# SPDX-License-Identifier: GPL-2.0
dtb-$(CONFIG_ARCH_ESWIN) += eic7700-hifive-premier-p550.dtb
+dtb-$(CONFIG_ARCH_ESWIN) += eic7700-milkv-megrez.dtb
diff --git a/arch/riscv/boot/dts/eswin/eic7700-milkv-megrez.dts b/arch/riscv/boot/dts/eswin/eic7700-milkv-megrez.dts
new file mode 100644
index 0000000000000000000000000000000000000000..a57cb61171087b20a39eb962f9c45d9c8ded3925
--- /dev/null
+++ b/arch/riscv/boot/dts/eswin/eic7700-milkv-megrez.dts
@@ -0,0 +1,25 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Copyright (c) 2026 Han Gao <gaohan@iscas.ac.cn>
+ */
+
+/dts-v1/;
+
+#include "eic7700.dtsi"
+
+/ {
+ compatible = "milkv,megrez", "eswin,eic7700";
+ model = "Milk-V Megrez";
+
+ aliases {
+ serial0 = &uart0;
+ };
+
+ chosen {
+ stdout-path = "serial0:115200n8";
+ };
+};
+
+&uart0 {
+ status = "okay";
+};
--
2.47.3
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/2] dt-bindings: riscv: eswin: Add Milk-V Megrez
2026-11-17 20:00 ` [PATCH v2 1/2] dt-bindings: riscv: eswin: Add Milk-V Megrez Han Gao via B4 Relay
@ 2026-11-19 1:51 ` Min Lin
0 siblings, 0 replies; 5+ messages in thread
From: Min Lin @ 2026-11-19 1:51 UTC (permalink / raw)
To: gaohan
Cc: Pinkesh Vaghela, Pritesh Patel, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Paul Walmsley, Palmer Dabbelt, Albert Ou,
Alexandre Ghiti, Han Gao, devicetree, linux-riscv, linux-kernel
> -----Original Messages-----
> From: "Han Gao via B4 Relay" <devnull+gaohan.iscas.ac.cn@kernel.org>
> Send time:Wednesday, 18/11/2026 04:00:05
> To: "Min Lin" <linmin@eswincomputing.com>, "Pinkesh Vaghela" <pinkesh.vaghela@einfochips.com>, "Pritesh Patel" <pritesh.patel@einfochips.com>, "Rob Herring" <robh@kernel.org>, "Krzysztof Kozlowski" <krzk+dt@kernel.org>, "Conor Dooley" <conor+dt@kernel.org>, "Paul Walmsley" <pjw@kernel.org>, "Palmer Dabbelt" <palmer@dabbelt.com>, "Albert Ou" <aou@eecs.berkeley.edu>, "Alexandre Ghiti" <alex@ghiti.fr>
> Cc: "Han Gao" <rabenda.cn@gmail.com>, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, "Han Gao" <gaohan@iscas.ac.cn>
> Subject: [PATCH v2 1/2] dt-bindings: riscv: eswin: Add Milk-V Megrez
>
> From: Han Gao <gaohan@iscas.ac.cn>
>
> Add the compatible for the Milk-V Megrez, a Mini-ITX board based on the
> ESWIN EIC7700X SoC.
>
> Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
> ---
> Documentation/devicetree/bindings/riscv/eswin.yaml | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/riscv/eswin.yaml b/Documentation/devicetree/bindings/riscv/eswin.yaml
> index c603c45eef2252e760818e830e9dccdf0fdae6cf..f730f5ff91797d4c2f0610f9024a74611ffeae63 100644
> --- a/Documentation/devicetree/bindings/riscv/eswin.yaml
> +++ b/Documentation/devicetree/bindings/riscv/eswin.yaml
> @@ -21,6 +21,7 @@ properties:
> oneOf:
> - items:
> - enum:
> + - milkv,megrez
> - sifive,hifive-premier-p550
> - const: eswin,eic7700
>
>
> --
> 2.47.3
>
Acked-by: Min Lin <linmin@eswincomputing.com>
Best regards,
Min Lin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 2/2] riscv: dts: eswin: Add Milk-V Megrez board
2026-11-17 20:00 ` [PATCH v2 2/2] riscv: dts: eswin: Add Milk-V Megrez board Han Gao via B4 Relay
@ 2026-11-19 1:52 ` Min Lin
0 siblings, 0 replies; 5+ messages in thread
From: Min Lin @ 2026-11-19 1:52 UTC (permalink / raw)
To: gaohan
Cc: Pinkesh Vaghela, Pritesh Patel, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Paul Walmsley, Palmer Dabbelt, Albert Ou,
Alexandre Ghiti, Han Gao, devicetree, linux-riscv, linux-kernel
> -----Original Messages-----
> From: "Han Gao via B4 Relay" <devnull+gaohan.iscas.ac.cn@kernel.org>
> Send time:Wednesday, 18/11/2026 04:00:06
> To: "Min Lin" <linmin@eswincomputing.com>, "Pinkesh Vaghela" <pinkesh.vaghela@einfochips.com>, "Pritesh Patel" <pritesh.patel@einfochips.com>, "Rob Herring" <robh@kernel.org>, "Krzysztof Kozlowski" <krzk+dt@kernel.org>, "Conor Dooley" <conor+dt@kernel.org>, "Paul Walmsley" <pjw@kernel.org>, "Palmer Dabbelt" <palmer@dabbelt.com>, "Albert Ou" <aou@eecs.berkeley.edu>, "Alexandre Ghiti" <alex@ghiti.fr>
> Cc: "Han Gao" <rabenda.cn@gmail.com>, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, "Han Gao" <gaohan@iscas.ac.cn>
> Subject: [PATCH v2 2/2] riscv: dts: eswin: Add Milk-V Megrez board
>
> From: Han Gao <gaohan@iscas.ac.cn>
>
> The Milk-V Megrez is a Mini-ITX board based on the ESWIN EIC7700X SoC.
>
> Add a minimal device tree that enables UART0, which is connected to the
> USB-C debug port through a CH340 USB-to-UART bridge, and use it as the
> serial console.
>
> Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
> ---
> arch/riscv/boot/dts/eswin/Makefile | 1 +
> arch/riscv/boot/dts/eswin/eic7700-milkv-megrez.dts | 25 ++++++++++++++++++++++
> 2 files changed, 26 insertions(+)
>
> diff --git a/arch/riscv/boot/dts/eswin/Makefile b/arch/riscv/boot/dts/eswin/Makefile
> index 224101ae471e8d89996f7cbfc616425f704af37e..5daade822e15eda43eee111cbf89bc386bb06f32 100644
> --- a/arch/riscv/boot/dts/eswin/Makefile
> +++ b/arch/riscv/boot/dts/eswin/Makefile
> @@ -1,2 +1,3 @@
> # SPDX-License-Identifier: GPL-2.0
> dtb-$(CONFIG_ARCH_ESWIN) += eic7700-hifive-premier-p550.dtb
> +dtb-$(CONFIG_ARCH_ESWIN) += eic7700-milkv-megrez.dtb
> diff --git a/arch/riscv/boot/dts/eswin/eic7700-milkv-megrez.dts b/arch/riscv/boot/dts/eswin/eic7700-milkv-megrez.dts
> new file mode 100644
> index 0000000000000000000000000000000000000000..a57cb61171087b20a39eb962f9c45d9c8ded3925
> --- /dev/null
> +++ b/arch/riscv/boot/dts/eswin/eic7700-milkv-megrez.dts
> @@ -0,0 +1,25 @@
> +// SPDX-License-Identifier: (GPL-2.0 OR MIT)
> +/*
> + * Copyright (c) 2026 Han Gao <gaohan@iscas.ac.cn>
> + */
> +
> +/dts-v1/;
> +
> +#include "eic7700.dtsi"
> +
> +/ {
> + compatible = "milkv,megrez", "eswin,eic7700";
> + model = "Milk-V Megrez";
> +
> + aliases {
> + serial0 = &uart0;
> + };
> +
> + chosen {
> + stdout-path = "serial0:115200n8";
> + };
> +};
> +
> +&uart0 {
> + status = "okay";
> +};
>
> --
> 2.47.3
>
Acked-by: Min Lin <linmin@eswincomputing.com>
Best regards,
Min Lin
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-11-19 1:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-17 20:00 [PATCH v2 0/2] riscv: eswin: Add Milk-V Megrez board support Han Gao via B4 Relay
2026-11-17 20:00 ` [PATCH v2 1/2] dt-bindings: riscv: eswin: Add Milk-V Megrez Han Gao via B4 Relay
2026-11-19 1:51 ` Min Lin
2026-11-17 20:00 ` [PATCH v2 2/2] riscv: dts: eswin: Add Milk-V Megrez board Han Gao via B4 Relay
2026-11-19 1:52 ` Min Lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®