Linux-Rockchip Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Sebastian Reichel <sebastian.reichel@collabora.com>
To: Freimut Diener <f.diener@pengutronix.de>
Cc: Chaoyi Chen <chaoyi.chen@rock-chips.com>,
	 Heiko Stuebner <heiko@sntech.de>, Rob Herring <robh@kernel.org>,
	 Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	 Midgy Balon <midgy971@gmail.com>,
	Diederik de Haas <diederik@cknow-tech.com>,
	 Elaine Zhang <zhangqing@rock-chips.com>,
	Pengutronix Kernel Team <kernel@pengutronix.de>,
	 devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	 linux-rockchip@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: power: rockchip: Allow post-init-providers for domains
Date: Thu, 26 Nov 2026 12:20:26 +0100	[thread overview]
Message-ID: <awgSoZMgo-GaUOXx@venus> (raw)
In-Reply-To: <8733snj1tg.fsf@theta.mail-host-address-is-not-set>


[-- Attachment #1.1: Type: text/plain, Size: 1690 bytes --]

Hi,

On Thu, Nov 26, 2026 at 11:59:23AM +0100, Freimut Diener wrote:
> Sebastian Reichel <sebastian.reichel@collabora.com> 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 #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

  reply	other threads:[~2026-11-26 11:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 10:33 [PATCH 0/2] Describe ROCK 5 GPU and NPU regulators as post-init providers Freimut Diener
2026-11-25 10:33 ` [PATCH 1/2] dt-bindings: power: rockchip: Allow post-init-providers for domains Freimut Diener
2026-11-25 20:37   ` Heiko Stuebner
2026-11-26  1:50     ` Chaoyi Chen
2026-11-26  3:04       ` Sebastian Reichel
2026-11-26 10:59         ` Freimut Diener
2026-11-26 11:20           ` Sebastian Reichel [this message]
2026-11-25 10:33 ` [PATCH 2/2] arm64: dts: rockchip: Mark ROCK 5 domain supplies as post-init Freimut Diener

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=awgSoZMgo-GaUOXx@venus \
    --to=sebastian.reichel@collabora.com \
    --cc=chaoyi.chen@rock-chips.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=diederik@cknow-tech.com \
    --cc=f.diener@pengutronix.de \
    --cc=heiko@sntech.de \
    --cc=kernel@pengutronix.de \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=midgy971@gmail.com \
    --cc=robh@kernel.org \
    --cc=zhangqing@rock-chips.com \
    /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