From: Rob Herring <robh@kernel.org>
To: Alexey Charkov <alchark@flipper.net>
Cc: Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Heiko Stuebner <heiko@sntech.de>,
Sebastian Reichel <sre@kernel.org>,
Shawn Lin <shawn.lin@rock-chips.com>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
linux-pm@vger.kernel.org
Subject: Re: [PATCH v3 2/5] dt-bindings: power: reset: syscon-reboot-mode: allow supplies
Date: Thu, 8 Oct 2026 08:23:38 -0500 [thread overview]
Message-ID: <20261008132338.GA183998-robh@kernel.org> (raw)
In-Reply-To: <CAKTNdwFo03jFGMeJQpxXp1yOX+cG+6BZOYf1eGGZTdZWAFdz5A@mail.gmail.com>
On Thu, Oct 08, 2026 at 01:58:55AM +0400, Alexey Charkov wrote:
> On Thu, Oct 8, 2026 at 1:24 AM Rob Herring <robh@kernel.org> wrote:
> >
> > On Tue, Oct 06, 2026 at 08:02:40PM +0400, Alexey Charkov wrote:
> > > Whatever program that acts on a reboot mode runs before a full OS, so it
> > > may lack the capability to enable the regulators it depends on, and a
> > > reset that preserves the mode register generally leaves the regulators as
> > > the previously running system left them.
> > >
> > > Allow a reboot mode node to name such supplies, so that they can be
> > > turned on while the mode is being requested.
> > >
> > > Signed-off-by: Alexey Charkov <alchark@flipper.net>
> > > ---
> > > .../devicetree/bindings/power/reset/syscon-reboot-mode.yaml | 8 ++++++++
> > > 1 file changed, 8 insertions(+)
> > >
> > > diff --git a/Documentation/devicetree/bindings/power/reset/syscon-reboot-mode.yaml b/Documentation/devicetree/bindings/power/reset/syscon-reboot-mode.yaml
> > > index 79ffc78b23ea..5ed70c87269e 100644
> > > --- a/Documentation/devicetree/bindings/power/reset/syscon-reboot-mode.yaml
> > > +++ b/Documentation/devicetree/bindings/power/reset/syscon-reboot-mode.yaml
> > > @@ -36,6 +36,14 @@ patternProperties:
> > > "^mode-.*$":
> > > maxItems: 1
> > >
> > > + "^[a-z0-9]+(-[a-z0-9]+)*-supply$":
> > > + description:
> > > + Supply that has to be powered for whatever program acts on the mode.
> > > + That could be a boot ROM with no access to regulators, and a warm reset
> > > + leaves them as the previously running system left them and not necessarily
> > > + what their expected out-of-reboot state is. Any supply described here is
> > > + enabled when a mode is requested, and stays enabled.
> >
> > Sorry, but no. If we allow this, then what next? clocks? power-domains?
> > GPIO lines? The list is endless. Maybe if a not generic binding is used,
> > but still pretty much pure configuration.
>
> These are the resources which are required to handle the reboot mode
> request, they are not exactly configuration. There is a limited and
> hardware defined number of IP blocks which need to be powered for the
> reboot mode request to complete successfully. In my case (Rockchip
> RK3576), these are the IPs that need to be made aware of the trained
> DDR memory parameters: if they are unpowered _at warm reboot_ then the
> boot process stalls immediately with an exception (cold reboot is
> handled by the power-on default state of the PMIC).
If you need certain h/w blocks, then you should list them and then you
can get whatever resources they have. That's assuming we were to go down
this path, not an endorsement for doing this.
> I see that this may be abused to hack around what should be a
> bootloader's job, so it would be great to find a way to explicitly
> limit the scope of these - though I couldn't think of one yet. Any
> suggestions would be much appreciated.
Maybe the boot phase stuff could work here?
Rob
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
WARNING: multiple messages have this Message-ID (diff)
From: Rob Herring <robh@kernel.org>
To: Alexey Charkov <alchark@flipper.net>
Cc: Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Heiko Stuebner <heiko@sntech.de>,
Sebastian Reichel <sre@kernel.org>,
Shawn Lin <shawn.lin@rock-chips.com>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
linux-pm@vger.kernel.org
Subject: Re: [PATCH v3 2/5] dt-bindings: power: reset: syscon-reboot-mode: allow supplies
Date: Thu, 8 Oct 2026 08:23:38 -0500 [thread overview]
Message-ID: <20261008132338.GA183998-robh@kernel.org> (raw)
In-Reply-To: <CAKTNdwFo03jFGMeJQpxXp1yOX+cG+6BZOYf1eGGZTdZWAFdz5A@mail.gmail.com>
On Thu, Oct 08, 2026 at 01:58:55AM +0400, Alexey Charkov wrote:
> On Thu, Oct 8, 2026 at 1:24 AM Rob Herring <robh@kernel.org> wrote:
> >
> > On Tue, Oct 06, 2026 at 08:02:40PM +0400, Alexey Charkov wrote:
> > > Whatever program that acts on a reboot mode runs before a full OS, so it
> > > may lack the capability to enable the regulators it depends on, and a
> > > reset that preserves the mode register generally leaves the regulators as
> > > the previously running system left them.
> > >
> > > Allow a reboot mode node to name such supplies, so that they can be
> > > turned on while the mode is being requested.
> > >
> > > Signed-off-by: Alexey Charkov <alchark@flipper.net>
> > > ---
> > > .../devicetree/bindings/power/reset/syscon-reboot-mode.yaml | 8 ++++++++
> > > 1 file changed, 8 insertions(+)
> > >
> > > diff --git a/Documentation/devicetree/bindings/power/reset/syscon-reboot-mode.yaml b/Documentation/devicetree/bindings/power/reset/syscon-reboot-mode.yaml
> > > index 79ffc78b23ea..5ed70c87269e 100644
> > > --- a/Documentation/devicetree/bindings/power/reset/syscon-reboot-mode.yaml
> > > +++ b/Documentation/devicetree/bindings/power/reset/syscon-reboot-mode.yaml
> > > @@ -36,6 +36,14 @@ patternProperties:
> > > "^mode-.*$":
> > > maxItems: 1
> > >
> > > + "^[a-z0-9]+(-[a-z0-9]+)*-supply$":
> > > + description:
> > > + Supply that has to be powered for whatever program acts on the mode.
> > > + That could be a boot ROM with no access to regulators, and a warm reset
> > > + leaves them as the previously running system left them and not necessarily
> > > + what their expected out-of-reboot state is. Any supply described here is
> > > + enabled when a mode is requested, and stays enabled.
> >
> > Sorry, but no. If we allow this, then what next? clocks? power-domains?
> > GPIO lines? The list is endless. Maybe if a not generic binding is used,
> > but still pretty much pure configuration.
>
> These are the resources which are required to handle the reboot mode
> request, they are not exactly configuration. There is a limited and
> hardware defined number of IP blocks which need to be powered for the
> reboot mode request to complete successfully. In my case (Rockchip
> RK3576), these are the IPs that need to be made aware of the trained
> DDR memory parameters: if they are unpowered _at warm reboot_ then the
> boot process stalls immediately with an exception (cold reboot is
> handled by the power-on default state of the PMIC).
If you need certain h/w blocks, then you should list them and then you
can get whatever resources they have. That's assuming we were to go down
this path, not an endorsement for doing this.
> I see that this may be abused to hack around what should be a
> bootloader's job, so it would be great to find a way to explicitly
> limit the scope of these - though I couldn't think of one yet. Any
> suggestions would be much appreciated.
Maybe the boot phase stuff could work here?
Rob
next prev parent reply other threads:[~2026-10-08 13:23 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-06 16:02 [PATCH v3 0/5] power: reset: syscon-reboot-mode: Add support for Rockchip RK3576 reboot modes Alexey Charkov
2026-10-06 16:02 ` Alexey Charkov
2026-10-06 16:02 ` [PATCH v3 1/5] dt-bindings: soc: rockchip: add boot ROM download boot mode Alexey Charkov
2026-10-06 16:02 ` Alexey Charkov
2026-10-07 21:17 ` Rob Herring (Arm)
2026-10-07 21:17 ` Rob Herring (Arm)
2026-10-06 16:02 ` [PATCH v3 2/5] dt-bindings: power: reset: syscon-reboot-mode: allow supplies Alexey Charkov
2026-10-06 16:02 ` Alexey Charkov
2026-10-07 21:24 ` Rob Herring
2026-10-07 21:24 ` Rob Herring
2026-10-07 21:58 ` Alexey Charkov
2026-10-07 21:58 ` Alexey Charkov
2026-10-08 13:23 ` Rob Herring [this message]
2026-10-08 13:23 ` Rob Herring
2026-10-06 16:02 ` [PATCH v3 3/5] power: reset: syscon-reboot-mode: enable supplies for the next stage Alexey Charkov
2026-10-06 16:02 ` Alexey Charkov
2026-10-06 16:02 ` [PATCH v3 4/5] arm64: dts: rockchip: add reboot-mode node to RK3576 Alexey Charkov
2026-10-06 16:02 ` Alexey Charkov
2026-10-06 16:02 ` [PATCH v3 5/5] arm64: dts: rockchip: name the reboot mode supplies on RK3576 EVB1 Alexey Charkov
2026-10-06 16:02 ` Alexey Charkov
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=20261008132338.GA183998-robh@kernel.org \
--to=robh@kernel.org \
--cc=alchark@flipper.net \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=heiko@sntech.de \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=shawn.lin@rock-chips.com \
--cc=sre@kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.