[PATCH v3 11/12] arm64: dts: rockchip: rk3588s-nanopi-r6: refactor to support M6 boards

Joachim Eastwood joachim.eastwood at gmail.com
Thu Jul 16 02:24:20 PDT 2026


Hi,

On Mon, 13 Jul 2026 at 22:41, <sashiko-bot at kernel.org> wrote:
>
> Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
> - [Medium] Unintentional restoration of `regulator-boot-on` for `vdd_npu_s0` during refactoring.
> - [Low] Dangling phandle reference `&vcc5v0_usb_otg0` in the common `.dtsi` file.
> --
>
> --- Patch [11]: [PATCH v3 11/12] arm64: dts: rockchip: rk3588s-nanopi-r6: refactor to support M6 boards ---
> commit 056adff75ec08989b96f09adc0efff6c3a5d662f
> Author: Joachim Eastwood <joachim.eastwood at gmail.com>
>
> arm64: dts: rockchip: rk3588s-nanopi-r6: refactor to support M6 boards
>
> FriendlyElec NanoPi6 series consists of four distinct boards; R6S, R6C,
> M6 and M6V2. Refactor FriendlyElec NanoPi R6 base dtsi in preparation
> for adding NanoPi M6 support.
>
> > diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-nanopi.dtsi b/arch/arm64/boot/dts/rockchip/rk3588s-nanopi.dtsi
> > new file mode 100644
> > index 0000000000000..a8e532ad8b7a8
> > --- /dev/null
> > +++ b/arch/arm64/boot/dts/rockchip/rk3588s-nanopi.dtsi
>
> [ ... ]
>
> > +&i2c2 {
> > +     status = "okay";
> > +
> > +     vdd_npu_s0: regulator at 42 {
> > +             compatible = "rockchip,rk8602";
> > +             reg = <0x42>;
> > +             fcs,suspend-voltage-selector = <1>;
> > +             regulator-name = "vdd_npu_s0";
> > +             regulator-min-microvolt = <550000>;
> > +             regulator-max-microvolt = <950000>;
> > +             regulator-ramp-delay = <2300>;
> > +             regulator-boot-on;
>
> [Severity: Medium]
> Is the addition of regulator-boot-on here intentional?

Seems like I screwed up the refactoring of the code, and Sashiko caught me.
I will fix it and send out a new patch set later.

> This appears to accidentally revert a prior fix that removed the boot-on
> property for vdd_npu_s0 to save power during early boot.
>
> > +             vin-supply = <&vcc5v0_sys>;
> > +
> > +             regulator-state-mem {
> > +                     regulator-off-in-suspend;
> > +             };
> > +     };
> > +};
>
> [ ... ]
>
> > +&u2phy0_otg {
> > +     phy-supply = <&vcc5v0_usb_otg0>;
>
> [Severity: Low]
> Does this create a dangling phandle reference in the common dtsi file?
>
> Since the vcc5v0_usb_otg0 regulator was left in the board-specific
> rk3588s-nanopi-r6.dtsi file, it looks like compiling a new board (like the M6)
> that includes this common dtsi will fail to build if it doesn't also define a
> regulator with this exact label.

I don't think this is really an issue. Both nanopi-r6.dtsi and nanopi-m6.dtsi
will have those regulators defined.

Unless someone tells me this is bad practice I will keep this as it is.


best regards,
Joachim Eastwood

> > +     status = "okay";
> > +};
>
> --
> Sashiko AI review · https://sashiko.dev/#/patchset/20260713-nanopi-m6-v3-0-227567ffc5dc@gmail.com?part=11



More information about the Linux-rockchip mailing list