ARM Sunxi Platform Development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Zunyi Hu" <roberhu001@163.com>
Cc: devicetree@vger.kernel.org, linux-sunxi@lists.linux.dev,
	robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v3 2/2] arm: dts: sunxi: Add AiLian MR-DHV3 board with SPI NAND
Date: Sun, 06 Dec 2026 03:02:24 +0000	[thread overview]
Message-ID: <sashiko-outbox-252100@kernel.org> (raw)
In-Reply-To: <20261206024927.8895-1-roberhu001@163.com>

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 &reg_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

      reply	other threads:[~2026-12-06  3:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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=sashiko-outbox-252100@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-sunxi@lists.linux.dev \
    --cc=roberhu001@163.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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