Hi, On Thu, Nov 26, 2026 at 09:50:56AM +0800, Chaoyi Chen wrote: > On 11/26/2026 4:37 AM, Heiko Stuebner wrote: > > Am Mittwoch, 25. November 2026, 11:33:57 Mitteleuropäische Normalzeit schrieb Freimut Diener: > >> A Rockchip power domain can have a supply that is required when > >> powering on the domain but is not required to initialize the power > >> controller. > >> > >> Allow post-init-providers on power-domain child nodes to describe > >> such dependencies. > >> > >> Signed-off-by: Freimut Diener > > > > Interesting that this exists since 2024 and this will be the first > > user it seems. > > > > I've looked at the dtschema for it, and this looks really great for this. > > > > Reviewed-by: Heiko Stuebner > > > > That's exactly what we want. :) > > I guess it's because the kernel doesn't include this part of the > binding, and it's only included in the dt-schema repository, > so nobody noticed it? > > https://github.com/devicetree-org/dt-schema/blob/main/dtschema/schemas/post-init-providers.yaml > > Reviewed-by: Chaoyi Chen I don't think that this is what we want. It just tells the kernel how to break a cyclic dependency: Probe the power-controller before the regulator. But things are already handled in the same way, so the only result is that the boot warning goes away. But it does not solve the fundamental problem: What we would actually want is dependency tree information on sub-device level, as the cyclic dependency only happens due to clustering all power-domains together. But doing dependency tracking on sub-device level in the kernel would be a *really* big task (it was discussed at this years LPC in a talk from me and Angelo on exactly this problem). Fortunately, there is only a few affected power-domains on Rockchip specifically, so an alternative solution is moving those to a separete device. At this point there is no cyclic dependency and the warning is also fixed. But there is a huge difference: 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. If you just add the post-init-providers, you basically just got rid of a kernel warning by adding a DT property that possibly becomes ABI. Greetings, -- Sebastian > > > > >> --- > >> Documentation/devicetree/bindings/power/rockchip,power-controller.yaml | 3 +++ > >> 1 file changed, 3 insertions(+) > >> > >> diff --git a/Documentation/devicetree/bindings/power/rockchip,power-controller.yaml b/Documentation/devicetree/bindings/power/rockchip,power-controller.yaml > >> index b41db576f95de..d2b512dd95f63 100644 > >> --- a/Documentation/devicetree/bindings/power/rockchip,power-controller.yaml > >> +++ b/Documentation/devicetree/bindings/power/rockchip,power-controller.yaml > >> @@ -147,6 +147,9 @@ $defs: > >> A number of phandles to qos blocks which need to be saved and restored > >> while power domain switches state. > >> > >> + post-init-providers: > >> + $ref: /schemas/post-init-providers.yaml#/properties/post-init-providers > >> + > >> "#power-domain-cells": > >> enum: [0, 1] > >> description: > >> > >> > > > > -- > Best, > Chaoyi