Devicetree
 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 v2 2/2] arm: dts: sunxi: Add AiLian MR-DHV3 board with SPI NAND
Date: Sat, 05 Dec 2026 15:54:37 +0000	[thread overview]
Message-ID: <sashiko-outbox-251719@kernel.org> (raw)
In-Reply-To: <20261205154002.13537-3-roberhu001@163.com>

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

      reply	other threads:[~2026-12-05 15:54 UTC|newest]

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