* [PATCH v3 0/2] Add AiLian MR-DHV3 board (Allwinner V3s) with SPI NAND @ 2026-12-06 2:41 Zunyi Hu 2026-12-06 2:47 ` [PATCH v3 1/2] dt-bindings: arm: sunxi: Add AiLian MR-DHV3 board Zunyi Hu 2026-12-06 2:49 ` [PATCH v3 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-06 2:41 UTC (permalink / raw) To: Chen-Yu Tsai, Jernej Skrabec, Samuel Holland Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree, linux-arm-kernel, linux-sunxi, linux-kernel, Zunyi Hu Add DT support for the AiLian MR-DHV3 V1.0 (Allwinner V3s) board with onboard W25N01G SPI NAND. Changes in v3: - USB is host-only for onboard CM108B audio (mic + line-out); set dr_mode=host, enable ehci/ohci, drop unused ID detect GPIO - Replace deprecated sunxi-common-regulators.dtsi with a board-local fixed vcc3v3 regulator - Drop redundant mmc1 disabled override; sort nodes by address/label 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 v3 1/2] dt-bindings: arm: sunxi: Add AiLian MR-DHV3 board 2026-12-06 2:41 [PATCH v3 0/2] Add AiLian MR-DHV3 board (Allwinner V3s) with SPI NAND Zunyi Hu @ 2026-12-06 2:47 ` Zunyi Hu 2026-12-06 2:56 ` sashiko-bot 2026-12-06 2:49 ` [PATCH v3 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-06 2:47 UTC (permalink / raw) To: Chen-Yu Tsai, Jernej Skrabec, Samuel Holland Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, 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
* Re: [PATCH v3 1/2] dt-bindings: arm: sunxi: Add AiLian MR-DHV3 board 2026-12-06 2:47 ` [PATCH v3 1/2] dt-bindings: arm: sunxi: Add AiLian MR-DHV3 board Zunyi Hu @ 2026-12-06 2:56 ` sashiko-bot 0 siblings, 0 replies; 5+ messages in thread From: sashiko-bot @ 2026-12-06 2:56 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: ailian entry lacks vendor identification - [Low] dt-bindings: vendor-prefixes change combined into arm: sunxi commit -- commit c03ea9aa60ed8d98cb361c8abdac1948279a24de Author: Zunyi Hu <roberhu001@163.com> dt-bindings: arm: sunxi: Add AiLian MR-DHV3 board This commit adds the ailian vendor prefix and documents the compatible string for the MR-DHV3 V1.0 Allwinner V3s board. > diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentation/devicetree/bindings/arm/sunxi.yaml > index 28437c47ac01b..f91c7f6159f03 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 5471a06f93f10..80315fd860b9a 100644 > --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml > +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml [Severity: Low] Should the vendor-prefixes.yaml addition be split into a separate "dt-bindings: vendor-prefixes:" commit preceding the sunxi binding? The global vendor prefix registry and the Allwinner board bindings are maintained separately, and combining both under an arm: sunxi: subject omits the vendor-prefixes change from the commit scope. > @@ -76,6 +76,8 @@ patternProperties: > description: Aeroflex Gaisler AB > "^aesop,.*": > description: AESOP Embedded Forum > + "^ailian,.*": > + description: AiLian > "^airoha,.*": > description: Airoha > "^al,.*": [Severity: Low] Could this entry and the commit message provide more identification for AiLian? The description only gives the short name "AiLian" without a full company or organization name, and the commit message does not include a reference link or explain how AiLian relates to the "MR-DHV3_V1.0" board. Because vendor prefixes are permanent global ABI, identifying the hardware manufacturer helps maintainers verify that the prefix belongs to a real, non-colliding vendor. -- Sashiko AI review · https://sashiko.dev/#/patchset/20261206024158.31959-1-roberhu001@163.com?part=1 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v3 2/2] arm: dts: sunxi: Add AiLian MR-DHV3 board with SPI NAND 2026-12-06 2:41 [PATCH v3 0/2] Add AiLian MR-DHV3 board (Allwinner V3s) with SPI NAND Zunyi Hu 2026-12-06 2:47 ` [PATCH v3 1/2] dt-bindings: arm: sunxi: Add AiLian MR-DHV3 board Zunyi Hu @ 2026-12-06 2:49 ` Zunyi Hu 2026-12-06 3:02 ` sashiko-bot 1 sibling, 1 reply; 5+ messages in thread From: Zunyi Hu @ 2026-12-06 2:49 UTC (permalink / raw) To: Chen-Yu Tsai, Jernej Skrabec, Samuel Holland Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, 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) - USB audio (U11): C-Media CM108B hardwired to USB-DP/DN (mic + line-out) Enable UART0, MMC0, EMAC, USB host (ehci/ohci), and describe fixed MTD partitions for boot0, U-Boot, kernel and rootfs. Signed-off-by: Zunyi Hu <roberhu001@163.com> --- Changes in v3: - USB host for onboard CM108B; enable ehci/ohci; drop ID GPIO - Board-local fixed vcc3v3 instead of sunxi-common-regulators.dtsi - Drop redundant mmc1 disabled override; sort nodes arch/arm/boot/dts/allwinner/Makefile | 1 + .../boot/dts/allwinner/sun8i-v3s-mr-dhv3.dts | 124 ++++++++++++++++++ 2 files changed, 125 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..0b8c57f8cf94 --- /dev/null +++ b/arch/arm/boot/dts/allwinner/sun8i-v3s-mr-dhv3.dts @@ -0,0 +1,124 @@ +// 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). + * USB-DP/DN go to a fixed C-Media CM108B USB audio codec (mic + line-out). + */ + +/dts-v1/; +#include "sun8i-v3s.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; + }; + }; + + reg_vcc3v3: regulator-3v3 { + compatible = "regulator-fixed"; + regulator-name = "vcc3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; +}; + +&emac { + status = "okay"; +}; + +&ehci { + status = "okay"; +}; + +&mmc0 { + broken-cd; + bus-width = <4>; + vmmc-supply = <®_vcc3v3>; + status = "okay"; +}; + +&ohci { + status = "okay"; +}; + +/* + * 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>; + }; + }; + }; +}; + +&uart0 { + pinctrl-0 = <&uart0_pb_pins>; + pinctrl-names = "default"; + status = "okay"; +}; + +/* + * Host-only: USB-DP/DN are hardwired to onboard CM108B (U11), not an OTG + * connector. Enable ehci/ohci so the USB audio device can enumerate. + */ +&usb_otg { + dr_mode = "host"; + status = "okay"; +}; + +&usbphy { + status = "okay"; +}; -- 2.17.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v3 2/2] arm: dts: sunxi: Add AiLian MR-DHV3 board with SPI NAND 2026-12-06 2:49 ` [PATCH v3 2/2] arm: dts: sunxi: Add AiLian MR-DHV3 board with SPI NAND Zunyi Hu @ 2026-12-06 3:02 ` sashiko-bot 0 siblings, 0 replies; 5+ messages in thread From: sashiko-bot @ 2026-12-06 3:02 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: - [Low] ARM: dts: allwinner: hardcoded fixed-partitions in spi0 flash node - [Low] ARM: dts: allwinner: unsorted phandle overrides placing emac before ehci - [Low] ARM: dts: allwinner: incomplete changelog, sunxi prefix, and filename - [Low] dts: sunxi: missing pio bank vcc-p*-supply properties on MR-DHV3 -- commit c72f501f202897e5229d40cc82044368901878bc 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) > - USB audio (U11): C-Media CM108B hardwired to USB-DP/DN (mic + line-out) > > Enable UART0, MMC0, EMAC, USB host (ehci/ohci), 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 the DTS enables. Current commits under arch/arm/boot/dts/allwinner/ also use the "ARM: dts: allwinner:" subject prefix rather than "arm: dts: sunxi:". In addition, sun8i-v3s-mr-dhv3.dts and its Makefile entry omit the "ailian" vendor prefix used by sibling V3s boards (such as sun8i-v3s-anbernic-rg-nano.dtb). Fixing the filename before merge avoids breaking bootloader or userspace references later. > 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..0b8c57f8cf94e > --- /dev/null > +++ b/arch/arm/boot/dts/allwinner/sun8i-v3s-mr-dhv3.dts > @@ -0,0 +1,124 @@ [ ... ] > + reg_vcc3v3: regulator-3v3 { > + compatible = "regulator-fixed"; > + regulator-name = "vcc3v3"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + }; > +}; [Severity: Low] Should this DTS also add a &pio node wiring vcc-pb-supply, vcc-pc-supply, vcc-pf-supply, and vcc-pg-supply to ®_vcc3v3? uart0, spi0, mmc0, and led-run request pins on banks PB, PC, PF, and PG, and sunxi_pmx_request() calls non-optional regulator_get() for each vcc-p<bank>. Without those supplies, _regulator_get_common() falls back to the dummy regulator and logs four warnings on every boot. > + > +&emac { > + status = "okay"; > +}; > + > +&ehci { > + status = "okay"; > +}; [Severity: Low] &emac is listed before &ehci, while the rest of the top-level phandle overrides are sorted alphabetically. Should &ehci move ahead of &emac? [ ... ] > +&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>; > + }; > + }; > + }; > +}; [Severity: Low] Should this fixed-partitions layout be dropped from the board DTS? Hardcoding an 8 MiB kernel partition constrains larger multiplatform kernels or custom UBI/FIT layouts, and leaving boot0 writable risks overwriting early boot firmware. Unless an immutable factory bootloader requires these exact offsets (which should be noted in the commit message, with firmware partitions marked read-only), the layout can be supplied by the bootloader via mtdparts or FDT fixup. -- Sashiko AI review · https://sashiko.dev/#/patchset/20261206024158.31959-1-roberhu001@163.com?part=2 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-12-06 3:02 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-12-06 2:41 [PATCH v3 0/2] Add AiLian MR-DHV3 board (Allwinner V3s) with SPI NAND Zunyi Hu 2026-12-06 2:47 ` [PATCH v3 1/2] dt-bindings: arm: sunxi: Add AiLian MR-DHV3 board Zunyi Hu 2026-12-06 2:56 ` sashiko-bot 2026-12-06 2:49 ` [PATCH v3 2/2] arm: dts: sunxi: Add AiLian MR-DHV3 board with SPI NAND Zunyi Hu 2026-12-06 3:02 ` sashiko-bot
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox