mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Zunyi Hu <roberhu001@163.com>
To: Chen-Yu Tsai <wens@kernel.org>,
	Jernej Skrabec <jernej.skrabec@gmail.com>,
	Samuel Holland <samuel@sholland.org>
Cc: Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Maxime Ripard <mripard@kernel.org>,
	devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org,
	Zunyi Hu <roberhu001@163.com>
Subject: [PATCH 2/2] arm: dts: sunxi: Add AiLian MR-DHV3 board with SPI NAND
Date: Mon, 30 Nov 2026 01:20:27 +0800	[thread overview]
Message-ID: <20261129172027.2410-3-roberhu001@163.com> (raw)
In-Reply-To: <20261129172027.2410-2-roberhu001@163.com>

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@163.com>
---
 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@163.com>
+ *
+ * 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


  reply	other threads:[~2026-11-29 17:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29 17:20 [PATCH 1/2] dt-bindings: arm: sunxi: Add AiLian MR-DHV3 board Zunyi Hu
2026-11-29 17:20 ` Zunyi Hu [this message]
2026-11-30 18:38 ` Jernej Škrabec

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261129172027.2410-3-roberhu001@163.com \
    --to=roberhu001@163.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jernej.skrabec@gmail.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sunxi@lists.linux.dev \
    --cc=mripard@kernel.org \
    --cc=robh@kernel.org \
    --cc=samuel@sholland.org \
    --cc=wens@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®