Re: [PATCH v2 2/2] riscv: dts: eswin: Add Milk-V Megrez board

From: Min Lin

Date: Wed Nov 18 2026 - 20:53:12 EST


> -----Original Messages-----
> From: "Han Gao via B4 Relay" <devnull+gaohan.iscas.ac.cn@xxxxxxxxxx>
> Send time:Wednesday, 18/11/2026 04:00:06
> To: "Min Lin" <linmin@xxxxxxxxxxxxxxxxxx>, "Pinkesh Vaghela" <pinkesh.vaghela@xxxxxxxxxxxxxx>, "Pritesh Patel" <pritesh.patel@xxxxxxxxxxxxxx>, "Rob Herring" <robh@xxxxxxxxxx>, "Krzysztof Kozlowski" <krzk+dt@xxxxxxxxxx>, "Conor Dooley" <conor+dt@xxxxxxxxxx>, "Paul Walmsley" <pjw@xxxxxxxxxx>, "Palmer Dabbelt" <palmer@xxxxxxxxxxx>, "Albert Ou" <aou@xxxxxxxxxxxxxxxxx>, "Alexandre Ghiti" <alex@xxxxxxxx>
> Cc: "Han Gao" <rabenda.cn@xxxxxxxxx>, devicetree@xxxxxxxxxxxxxxx, linux-riscv@xxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, "Han Gao" <gaohan@xxxxxxxxxxx>
> Subject: [PATCH v2 2/2] riscv: dts: eswin: Add Milk-V Megrez board
>
> From: Han Gao <gaohan@xxxxxxxxxxx>
>
> 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@xxxxxxxxxxx>
> ---
> 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@xxxxxxxxxxx>
> + */
> +
> +/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@xxxxxxxxxxxxxxxxxx>


Best regards,
Min Lin