[PATCH 2/2] arm: dts: sunxi: Add AiLian MR-DHV3 board with SPI NAND

From: Zunyi Hu

Date: Sun Nov 29 2026 - 12:24:14 EST


The AiLian MR-DHV3 V1.0 is an Allwinner V3s network phone with an
onboard Winbond W25N01G 1Gbit SPI NAND on SPI0 (PC0-PC3, standard
4-wire SPI).

Enable UART0, MMC0, EMAC, USB OTG, and describe fixed MTD partitions
for boot0, U-Boot, kernel and rootfs.

Signed-off-by: Zunyi Hu <roberhu001@xxxxxxx>
---
arch/arm/boot/dts/allwinner/Makefile | 1 +
.../boot/dts/allwinner/sun8i-v3s-mr-dhv3.dts | 110 ++++++++++++++++++
2 files changed, 111 insertions(+)
create mode 100644 arch/arm/boot/dts/allwinner/sun8i-v3s-mr-dhv3.dts

diff --git a/arch/arm/boot/dts/allwinner/Makefile b/arch/arm/boot/dts/allwinner/Makefile
index 75b2b6a2f7a6..35582b0d8277 100644
--- a/arch/arm/boot/dts/allwinner/Makefile
+++ b/arch/arm/boot/dts/allwinner/Makefile
@@ -273,6 +273,7 @@ dtb-$(CONFIG_MACH_SUN8I) += \
sun8i-v3s-anbernic-rg-nano.dtb \
sun8i-v3s-licheepi-zero.dtb \
sun8i-v3s-licheepi-zero-dock.dtb \
+ sun8i-v3s-mr-dhv3.dtb \
sun8i-v3s-netcube-kumquat.dtb \
sun8i-v40-bananapi-m2-berry.dtb
sun8i-h2-plus-orangepi-zero-interface-board-dtbs += \
diff --git a/arch/arm/boot/dts/allwinner/sun8i-v3s-mr-dhv3.dts b/arch/arm/boot/dts/allwinner/sun8i-v3s-mr-dhv3.dts
new file mode 100644
index 000000000000..94922f8f8308
--- /dev/null
+++ b/arch/arm/boot/dts/allwinner/sun8i-v3s-mr-dhv3.dts
@@ -0,0 +1,110 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (C) 2026 Zunyi Hu <roberhu001@xxxxxxx>
+ *
+ * Device Tree for MR-DHV3 V1.0 (Allwinner V3s network phone).
+ * Onboard SPI NAND is Winbond W25N01G on SPI0 (PC0-PC3).
+ */
+
+/dts-v1/;
+#include "sun8i-v3s.dtsi"
+#include "sunxi-common-regulators.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
+
+/ {
+ model = "AiLian MR-DHV3 V1.0";
+ compatible = "ailian,mr-dhv3", "allwinner,sun8i-v3s";
+
+ aliases {
+ serial0 = &uart0;
+ ethernet0 = &emac;
+ };
+
+ chosen {
+ stdout-path = "serial0:115200n8";
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ led-run {
+ gpios = <&pio 6 3 GPIO_ACTIVE_HIGH>; /* PG3 */
+ linux,default-trigger = "heartbeat";
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_HEARTBEAT;
+ };
+ };
+};
+
+&uart0 {
+ pinctrl-0 = <&uart0_pb_pins>;
+ pinctrl-names = "default";
+ status = "okay";
+};
+
+&mmc0 {
+ broken-cd;
+ bus-width = <4>;
+ vmmc-supply = <&reg_vcc3v3>;
+ status = "okay";
+};
+
+&mmc1 {
+ status = "disabled";
+};
+
+/*
+ * W25N01G 1 Gbit SPI NAND on SPI0 (PC0-PC3). Standard 4-wire SPI only;
+ * the V3s SPI0 pinmux does not expose IO2/IO3 for quad mode.
+ */
+&spi0 {
+ status = "okay";
+
+ flash@0 {
+ compatible = "spi-nand";
+ reg = <0>;
+ spi-max-frequency = <48000000>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "boot0";
+ reg = <0x0 0x200000>;
+ };
+
+ partition@200000 {
+ label = "uboot";
+ reg = <0x200000 0x200000>;
+ };
+
+ partition@400000 {
+ label = "kernel";
+ reg = <0x400000 0x800000>;
+ };
+
+ partition@c00000 {
+ label = "rootfs";
+ reg = <0xc00000 0x7400000>;
+ };
+ };
+ };
+};
+
+&emac {
+ status = "okay";
+};
+
+&usb_otg {
+ dr_mode = "otg";
+ status = "okay";
+};
+
+&usbphy {
+ usb0_id_det-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */
+ status = "okay";
+};
--
2.17.1