Devicetree
 help / color / mirror / Atom feed
* [PATCH 0/2] riscv: eswin: Add Milk-V Megrez board support
@ 2026-11-17 19:55 Han Gao via B4 Relay
  2026-11-17 19:55 ` [PATCH 1/2] dt-bindings: riscv: eswin: Add Milk-V Megrez Han Gao via B4 Relay
  2026-11-17 19:55 ` [PATCH 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 19:55 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.

---
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 1/2] dt-bindings: riscv: eswin: Add Milk-V Megrez
  2026-11-17 19:55 [PATCH 0/2] riscv: eswin: Add Milk-V Megrez board support Han Gao via B4 Relay
@ 2026-11-17 19:55 ` Han Gao via B4 Relay
  2026-11-18 18:06   ` Conor Dooley
  2026-11-17 19:55 ` [PATCH 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 19:55 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 related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] riscv: dts: eswin: Add Milk-V Megrez board
  2026-11-17 19:55 [PATCH 0/2] riscv: eswin: Add Milk-V Megrez board support Han Gao via B4 Relay
  2026-11-17 19:55 ` [PATCH 1/2] dt-bindings: riscv: eswin: Add Milk-V Megrez Han Gao via B4 Relay
@ 2026-11-17 19:55 ` Han Gao via B4 Relay
  2026-11-18 18:06   ` Conor Dooley
  1 sibling, 1 reply; 5+ messages in thread
From: Han Gao via B4 Relay @ 2026-11-17 19:55 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..2ca6d36c5edca271381b677ab14e9a459fdaafce
--- /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
+ */
+
+/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 related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] dt-bindings: riscv: eswin: Add Milk-V Megrez
  2026-11-17 19:55 ` [PATCH 1/2] dt-bindings: riscv: eswin: Add Milk-V Megrez Han Gao via B4 Relay
@ 2026-11-18 18:06   ` Conor Dooley
  0 siblings, 0 replies; 5+ messages in thread
From: Conor Dooley @ 2026-11-18 18:06 UTC (permalink / raw)
  To: gaohan
  Cc: Min Lin, 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

[-- Attachment #1: Type: text/plain, Size: 75 bytes --]

Acked-by: Conor Dooley <conor.dooley@microchip.com>
pw-bot: not-applicable

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] riscv: dts: eswin: Add Milk-V Megrez board
  2026-11-17 19:55 ` [PATCH 2/2] riscv: dts: eswin: Add Milk-V Megrez board Han Gao via B4 Relay
@ 2026-11-18 18:06   ` Conor Dooley
  0 siblings, 0 replies; 5+ messages in thread
From: Conor Dooley @ 2026-11-18 18:06 UTC (permalink / raw)
  To: gaohan
  Cc: Min Lin, 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

[-- Attachment #1: Type: text/plain, Size: 52 bytes --]

Acked-by: Conor Dooley <conor.dooley@microchip.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-18 18:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-17 19:55 [PATCH 0/2] riscv: eswin: Add Milk-V Megrez board support Han Gao via B4 Relay
2026-11-17 19:55 ` [PATCH 1/2] dt-bindings: riscv: eswin: Add Milk-V Megrez Han Gao via B4 Relay
2026-11-18 18:06   ` Conor Dooley
2026-11-17 19:55 ` [PATCH 2/2] riscv: dts: eswin: Add Milk-V Megrez board Han Gao via B4 Relay
2026-11-18 18:06   ` Conor Dooley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox