Devicetree
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add AiLian MR-DHV3 board (Allwinner V3s) with SPI NAND
@ 2026-12-05 15:40 Zunyi Hu
  2026-12-05 15:40 ` [PATCH v2 1/2] dt-bindings: arm: sunxi: Add AiLian MR-DHV3 board Zunyi Hu
  2026-12-05 15:40 ` [PATCH v2 2/2] arm: dts: sunxi: Add AiLian MR-DHV3 board with SPI NAND Zunyi Hu
  0 siblings, 2 replies; 5+ messages in thread
From: Zunyi Hu @ 2026-12-05 15:40 UTC (permalink / raw)
  To: Chen-Yu Tsai, Jernej Skrabec, Samuel Holland
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Maxime Ripard,
	devicetree, linux-arm-kernel, linux-sunxi, linux-kernel

Add DT support for the AiLian MR-DHV3 V1.0 (Allwinner V3s) board with onboard W25N01G SPI NAND

Changes in v2: 
- Include board hardware details in the commit messages
  (PCB silkscreen, SoC, SPI NAND, UART0) as requested by Chen-Yu.

Patch 1 adds the ailian vendor prefix and board compatible binding. 
Patch 2 adds the board device tree.

Tested on MR-DHV3 hardware.




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

* [PATCH v2 1/2] dt-bindings: arm: sunxi: Add AiLian MR-DHV3 board
  2026-12-05 15:40 [PATCH v2 0/2] Add AiLian MR-DHV3 board (Allwinner V3s) with SPI NAND Zunyi Hu
@ 2026-12-05 15:40 ` Zunyi Hu
  2026-12-05 15:50   ` sashiko-bot
  2026-12-05 15:40 ` [PATCH v2 2/2] arm: dts: sunxi: Add AiLian MR-DHV3 board with SPI NAND Zunyi Hu
  1 sibling, 1 reply; 5+ messages in thread
From: Zunyi Hu @ 2026-12-05 15:40 UTC (permalink / raw)
  To: Chen-Yu Tsai, Jernej Skrabec, Samuel Holland
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Maxime Ripard,
	devicetree, linux-arm-kernel, linux-sunxi, linux-kernel, Zunyi Hu

Add the ailian vendor prefix and document the MR-DHV3 V1.0 board
compatible string.

The MR-DHV3 V1.0 is a commercial Allwinner V3s OEM/B2B board used in
China. PCB silkscreen reads "MR-DHV3_V1.0".

Signed-off-by: Zunyi Hu <roberhu001@163.com>
---
 Documentation/devicetree/bindings/arm/sunxi.yaml       | 5 +++++
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentation/devicetree/bindings/arm/sunxi.yaml
index 28437c47ac01..f91c7f6159f0 100644
--- a/Documentation/devicetree/bindings/arm/sunxi.yaml
+++ b/Documentation/devicetree/bindings/arm/sunxi.yaml
@@ -579,6 +579,11 @@ properties:
           - const: allwinner,mk808c
           - const: allwinner,sun7i-a20
 
+      - description: MR-DHV3 V1.0
+        items:
+          - const: ailian,mr-dhv3
+          - const: allwinner,sun8i-v3s
+
       - description: MSI Primo81 Tablet
         items:
           - const: msi,primo81
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
index 5471a06f93f1..80315fd860b9 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
@@ -76,6 +76,8 @@ patternProperties:
     description: Aeroflex Gaisler AB
   "^aesop,.*":
     description: AESOP Embedded Forum
+  "^ailian,.*":
+    description: AiLian
   "^airoha,.*":
     description: Airoha
   "^al,.*":
-- 
2.17.1


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

* [PATCH v2 2/2] arm: dts: sunxi: Add AiLian MR-DHV3 board with SPI NAND
  2026-12-05 15:40 [PATCH v2 0/2] Add AiLian MR-DHV3 board (Allwinner V3s) with SPI NAND Zunyi Hu
  2026-12-05 15:40 ` [PATCH v2 1/2] dt-bindings: arm: sunxi: Add AiLian MR-DHV3 board Zunyi Hu
@ 2026-12-05 15:40 ` Zunyi Hu
  2026-12-05 15:54   ` sashiko-bot
  1 sibling, 1 reply; 5+ messages in thread
From: Zunyi Hu @ 2026-12-05 15:40 UTC (permalink / raw)
  To: Chen-Yu Tsai, Jernej Skrabec, Samuel Holland
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Maxime Ripard,
	devicetree, linux-arm-kernel, linux-sunxi, linux-kernel, Zunyi Hu

The MR-DHV3 V1.0 is a commercial Allwinner V3s OEM/B2B board used in
China. PCB silkscreen reads "MR-DHV3_V1.0".

Hardware details from the board:
- SoC (U1): Allwinner V3s (R4054BB 2741), 24 MHz (Y1), 32.768 kHz (X1)
- SPI NAND (U6): Winbond 25N01GVZEIG (W25N01GV, 1 Gbit) on SPI0
- Console (J12): RX0 / TX0 / GND (UART0)

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


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

* Re: [PATCH v2 1/2] dt-bindings: arm: sunxi: Add AiLian MR-DHV3 board
  2026-12-05 15:40 ` [PATCH v2 1/2] dt-bindings: arm: sunxi: Add AiLian MR-DHV3 board Zunyi Hu
@ 2026-12-05 15:50   ` sashiko-bot
  0 siblings, 0 replies; 5+ messages in thread
From: sashiko-bot @ 2026-12-05 15:50 UTC (permalink / raw)
  To: Zunyi Hu; +Cc: devicetree, linux-sunxi, robh, conor+dt

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] dt-bindings: vendor-prefixes change combined into arm: sunxi
  commit
- [Low] dt-bindings: vendor-prefixes: ailian entry lacks vendor
  identification
--

commit c26959d72a4d0227d9b52d443d2e99fe581a9d3c
Author: Zunyi Hu <roberhu001@163.com>

dt-bindings: arm: sunxi: Add AiLian MR-DHV3 board

This commit adds the ailian vendor prefix to vendor-prefixes.yaml and
documents the ailian,mr-dhv3 board compatible in the Allwinner sunxi
binding.

[ ... ]

> diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
> index 5471a06f93f10..80315fd860b9a 100644
> --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
> +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
> @@ -76,6 +76,8 @@ patternProperties:
>      description: Aeroflex Gaisler AB
>    "^aesop,.*":
>      description: AESOP Embedded Forum
> +  "^ailian,.*":
> +    description: AiLian

[Severity: Low]
Should the vendor-prefixes.yaml addition be split into a separate
"dt-bindings: vendor-prefixes:" patch preceding the sunxi board binding?

vendor-prefixes.yaml is a global registry maintained separately from the
Allwinner platform bindings, so combining both under a "dt-bindings: arm:
sunxi:" subject hides the vendor-prefix change and complicates independent
review and routing.

[Severity: Low]
Could this entry and the commit message identify the vendor behind AiLian
more completely?

The description gives only "AiLian" without a full company name, and the
commit message has no reference link or explanation tying AiLian to the
MR-DHV3 board.  Without verifiable vendor details, maintainers cannot
confirm that ailian is a legitimate manufacturer prefix.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261205154002.13537-1-roberhu001@163.com?part=1

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

* Re: [PATCH v2 2/2] arm: dts: sunxi: Add AiLian MR-DHV3 board with SPI NAND
  2026-12-05 15:40 ` [PATCH v2 2/2] arm: dts: sunxi: Add AiLian MR-DHV3 board with SPI NAND Zunyi Hu
@ 2026-12-05 15:54   ` sashiko-bot
  0 siblings, 0 replies; 5+ messages in thread
From: sashiko-bot @ 2026-12-05 15:54 UTC (permalink / raw)
  To: Zunyi Hu; +Cc: devicetree, linux-sunxi, robh, conor+dt

Thank you for your contribution! Sashiko AI review found 4 potential
issues to consider:
- [Medium] arm: dts: allwinner: V3s USB OTG mode enabled without ehci
  and ohci nodes
- [Low] arm: dts: allwinner: deprecated sunxi-common-regulators.dtsi
  included on V3s
- [Low] arm: dts: allwinner: redundant mmc1 disabled override and
  unsorted nodes
- [Low] arm: dts: allwinner: incomplete changelog, sunxi prefix, and
  filename
--

commit f5582d7a5b78dd112590a50d081683154e543e92
Author: Zunyi Hu <roberhu001@163.com>

> arm: dts: sunxi: Add AiLian MR-DHV3 board with SPI NAND
>
> The MR-DHV3 V1.0 is a commercial Allwinner V3s OEM/B2B board used in
> China. PCB silkscreen reads "MR-DHV3_V1.0".
>
> Hardware details from the board:
> - SoC (U1): Allwinner V3s (R4054BB 2741), 24 MHz (Y1), 32.768 kHz (X1)
> - SPI NAND (U6): Winbond 25N01GVZEIG (W25N01GV, 1 Gbit) on SPI0
> - Console (J12): RX0 / TX0 / GND (UART0)
>
> 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>

[Severity: Low]
The commit message omits the green heartbeat GPIO LED (led-run on PG3) that
this patch enables.

Also, the subject uses the deprecated "arm: dts: sunxi:" prefix rather than
"ARM: dts: allwinner:", and the DTS filename sun8i-v3s-mr-dhv3.dts omits
the vendor prefix (sun8i-v3s-ailian-mr-dhv3.dts), unlike the other V3s
boards in arch/arm/boot/dts/allwinner/Makefile.

> 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 0000000000000..94922f8f8308c
> --- /dev/null
> +++ b/arch/arm/boot/dts/allwinner/sun8i-v3s-mr-dhv3.dts
> @@ -0,0 +1,110 @@

[ ... ]

> +/dts-v1/;
> +#include "sun8i-v3s.dtsi"
> +#include "sunxi-common-regulators.dtsi"

[Severity: Low]
Should this board define a local regulator-3v3 node instead of including
sunxi-common-regulators.dtsi?

That include is only used for reg_vcc3v3 on mmc0, yet it instantiates
unused always-enabled regulators (vcc3v0, vcc5v0) with deprecated
non-generic names and pulls in disabled nodes referencing UART0 pins and
nonexistent Port H pins on V3s (compare sun8i-v3s-netcube-kumquat.dts).

[ ... ]

> +&mmc1 {
> +	status = "disabled";
> +};

[Severity: Low]
Is this &mmc1 override needed?  sun8i-v3s.dtsi already leaves mmc1 disabled
by default, so re-disabling it here has no effect; if the intent is to note
a pin conflict with led-run on PG3, a comment on led-run would be clearer.

Also, the top-level phandle overrides (&uart0, &mmc0, &spi0, &emac,
&usb_otg, &usbphy) are not ordered alphabetically as in the other V3s board
files.

[ ... ]

> +&usb_otg {
> +	dr_mode = "otg";
> +	status = "okay";
> +};
> +
> +&usbphy {
> +	usb0_id_det-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */
> +	status = "okay";
> +};

[Severity: Medium]
Can USB OTG host mode work here without enabling ehci and ohci?

On V3s, sun8i_v3s_cfg sets phy0_dual_route = true in
drivers/phy/allwinner/phy-sun4i-usb.c.  When PF6 goes low for host mode,
sun4i_usb_phy0_reroute() clears OTGCTL_ROUTE_MUSB and routes PHY0 away from
MUSB to the EHCI and OHCI controllers.

Both ehci and ohci default to disabled in sun8i-v3s.dtsi and are never
enabled here, so neither probes and host mode cannot function.  Either
enable ehci and ohci (with any VBUS supply if present) or set dr_mode to
"peripheral" if host mode is not wired on this board.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261205154002.13537-1-roberhu001@163.com?part=2

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

end of thread, other threads:[~2026-12-05 15:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05 15:40 [PATCH v2 0/2] Add AiLian MR-DHV3 board (Allwinner V3s) with SPI NAND Zunyi Hu
2026-12-05 15:40 ` [PATCH v2 1/2] dt-bindings: arm: sunxi: Add AiLian MR-DHV3 board Zunyi Hu
2026-12-05 15:50   ` sashiko-bot
2026-12-05 15:40 ` [PATCH v2 2/2] arm: dts: sunxi: Add AiLian MR-DHV3 board with SPI NAND Zunyi Hu
2026-12-05 15:54   ` sashiko-bot

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