From: Heiko Stuebner <heiko@sntech.de>
To: sashiko-reviews@lists.linux.dev,
Joachim Eastwood <joachim.eastwood@gmail.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org,
linux-rockchip@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
Diederik de Haas <diederik@cknow-tech.com>,
Jonas Karlman <jonas@kwiboo.se>
Subject: Re: [PATCH v3 11/12] arm64: dts: rockchip: rk3588s-nanopi-r6: refactor to support M6 boards
Date: Thu, 16 Jul 2026 20:31:38 +0200 [thread overview]
Message-ID: <3413772.oiGErgHkdL@phil> (raw)
In-Reply-To: <CAPSPb=v=ZDGJ41auxGgSOpKo69MycE=FtMyHf9sG9a3ju9PAaQ@mail.gmail.com>
Hi Joachim,
Am Donnerstag, 16. Juli 2026, 11:24:20 Mitteleuropäische Sommerzeit schrieb Joachim Eastwood:
> On Mon, 13 Jul 2026 at 22:41, <sashiko-bot@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@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@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.
I think this is ok. Like as you said, the regulator will be defined by
boards - just with a different gpio I guess.
And nobody expects to build the core dtsi and if another new board
materializes that does not have the otg port (and thus regulator), we'll
need to move more stuff anyway :-)
Heiko
next prev parent reply other threads:[~2026-07-16 18:31 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-13 20:30 [PATCH v3 00/12] arm64: dts: rockchip: Add NanoPi M6 board Joachim Eastwood via B4 Relay
2026-07-13 20:30 ` [PATCH v3 01/12] dt-bindings: arm: rockchip: add FriendlyElec NanoPi M6 Joachim Eastwood via B4 Relay
2026-07-13 20:30 ` [PATCH v3 02/12] arm64: dts: rockchip: rk3588s-nanopi-r6: fix missing sdmmc cd pinctrl Joachim Eastwood via B4 Relay
2026-07-13 20:30 ` [PATCH v3 03/12] arm64: dts: rockchip: rk3588s-nanopi-r6: fix missing pcie rst pinctrl Joachim Eastwood via B4 Relay
2026-07-14 13:02 ` Diederik de Haas
2026-07-16 9:02 ` Joachim Eastwood
2026-07-16 18:25 ` Heiko Stuebner
2026-07-13 20:30 ` [PATCH v3 04/12] arm64: dts: rockchip: rk3588s-nanopi-r6: remove pull up on rtc int pin Joachim Eastwood via B4 Relay
2026-07-13 20:30 ` [PATCH v3 05/12] arm64: dts: rockchip: rk3588s-nanopi-r6: pcie2x1l2: add clkreq Joachim Eastwood via B4 Relay
2026-07-13 20:30 ` [PATCH v3 06/12] arm64: dts: rockchip: rk3588s-nanopi-r6: remove always-on and boot-on from vdd_npu_s0 reg Joachim Eastwood via B4 Relay
2026-07-13 20:30 ` [PATCH v3 07/12] arm64: dts: rockchip: rk3588s-nanopi-r6: remove useless vcc_3v3_pcie20 Joachim Eastwood via B4 Relay
2026-07-13 20:30 ` [PATCH v3 08/12] arm64: dts: rockchip: rk3588s-nanopi-r6: add gmac1 add phy-supply Joachim Eastwood via B4 Relay
2026-07-13 20:30 ` [PATCH v3 09/12] arm64: dts: rockchip: rk3588s-nanopi-r6: remove bogus vcc5v0_usb regulator Joachim Eastwood via B4 Relay
2026-07-13 20:30 ` [PATCH v3 10/12] arm64: dts: rockchip: rk3588s-nanopi-r6: add comment to gmac phy-mode Joachim Eastwood via B4 Relay
2026-07-13 20:30 ` [PATCH v3 11/12] arm64: dts: rockchip: rk3588s-nanopi-r6: refactor to support M6 boards Joachim Eastwood via B4 Relay
[not found] ` <20260713204131.C58091F000E9@smtp.kernel.org>
2026-07-16 9:24 ` Joachim Eastwood
2026-07-16 18:31 ` Heiko Stuebner [this message]
2026-07-13 20:30 ` [PATCH v3 12/12] arm64: dts: rockchip: add support for NanoPi M6 board Joachim Eastwood via B4 Relay
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=3413772.oiGErgHkdL@phil \
--to=heiko@sntech.de \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=diederik@cknow-tech.com \
--cc=joachim.eastwood@gmail.com \
--cc=jonas@kwiboo.se \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-rockchip@lists.infradead.org \
--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