Re: [PATCH 1/2] dt-bindings: power: rockchip: Allow post-init-providers for domains
From: Sebastian Reichel
Date: Thu Nov 26 2026 - 06:21:23 EST
Hi,
On Thu, Nov 26, 2026 at 11:59:23AM +0100, Freimut Diener wrote:
> Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx> writes:
>
> > [...] an alternative solution is moving [affected power domains] to a
> > separete device.
> > [...]
> > Now the kernel has dependency informations, which are also used for
> > suspend/resume. So the kernel knows it should resume the power
> > domains required for SPI/I2C (bus used by regulator) first, then the
> > regulator driver and then the power domains needing regulators.
>
> Since the power domains are managed by a single hardware power
> controller, would you envision splitting them into separate devices
> internally in the Rockchip power-domain driver while retaining the
> existing DT representation, or would this also require changing the DT
> bindings?
It should be possible to create the subdevices in the driver using
the current DT; there is a node for each power domain already. The
decision to create a sub-device can be made based on the regulator
property.
The part making it interesting is that all power domains are
accessed via phandles to the main node instead of referencing the
specific domain node. We cannot change that, as it would be a
massive ABI break. So this requires some extra work in the pmdomain
core code to allow partial registration of "early" power domains
with some stubs for the late domains. The late (regulator using)
domains can then probe later, once the regulator becomes available.
At this point they need to register their pmdomain subtree. This
setup also allows moving the regulator acquistion to probe like any
other device.
Greetings,
-- Sebastian
Attachment:
signature.asc
Description: PGP signature