[PATCH v2 2/2] riscv: dts: eswin: Add Milk-V Megrez board
Min Lin
linmin at eswincomputing.com
Wed Nov 18 17:52:37 PST 2026
> -----Original Messages-----
> From: "Han Gao via B4 Relay" <devnull+gaohan.iscas.ac.cn at kernel.org>
> Send time:Wednesday, 18/11/2026 04:00:06
> To: "Min Lin" <linmin at eswincomputing.com>, "Pinkesh Vaghela" <pinkesh.vaghela at einfochips.com>, "Pritesh Patel" <pritesh.patel at einfochips.com>, "Rob Herring" <robh at kernel.org>, "Krzysztof Kozlowski" <krzk+dt at kernel.org>, "Conor Dooley" <conor+dt at kernel.org>, "Paul Walmsley" <pjw at kernel.org>, "Palmer Dabbelt" <palmer at dabbelt.com>, "Albert Ou" <aou at eecs.berkeley.edu>, "Alexandre Ghiti" <alex at ghiti.fr>
> Cc: "Han Gao" <rabenda.cn at gmail.com>, devicetree at vger.kernel.org, linux-riscv at lists.infradead.org, linux-kernel at vger.kernel.org, "Han Gao" <gaohan at iscas.ac.cn>
> Subject: [PATCH v2 2/2] riscv: dts: eswin: Add Milk-V Megrez board
>
> From: Han Gao <gaohan at 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 at 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 at 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 at eswincomputing.com>
Best regards,
Min Lin
More information about the linux-riscv
mailing list