From: Kevin Hilman <khilman@baylibre.com>
To: Ulf Hansson <ulf.hansson@linaro.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
"Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, arm-scmi@vger.kernel.org
Subject: [PATCH RFC v2 1/2] dt-bindings: power: add nexus map for power-domains
Date: Wed, 28 May 2025 14:58:51 -0700 [thread overview]
Message-ID: <20250528-pmdomain-hierarchy-onecell-v2-1-7885ae45e59c@baylibre.com> (raw)
In-Reply-To: <20250528-pmdomain-hierarchy-onecell-v2-0-7885ae45e59c@baylibre.com>
Add support for nexus map to be able to support hierarchical power
domains for providers with #power-domain-cells > 0.
Suggested-by: Rob Herring <robh@kernel.org>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
---
Documentation/devicetree/bindings/power/power-domain.yaml | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/Documentation/devicetree/bindings/power/power-domain.yaml b/Documentation/devicetree/bindings/power/power-domain.yaml
index 8fdb529d560b..9f099d326aee 100644
--- a/Documentation/devicetree/bindings/power/power-domain.yaml
+++ b/Documentation/devicetree/bindings/power/power-domain.yaml
@@ -68,6 +68,15 @@ properties:
by the given provider should be subdomains of the domain specified
by this binding.
+ power-domains-map:
+ $ref: /schemas/types.yaml#/definitions/uint32-array
+ description:
+ Nexus node mapping property that establishes parent-child relationships
+ for PM domains using the format defined in the Device Tree specification
+ section 2.5.1. Each map entry consists of child domain specifier,
+ parent phandle, and optional parent specifier arguments. This property
+ is only supported for onecell providers (#power-domain-cells = 1).
+
required:
- "#power-domain-cells"
@@ -133,3 +142,29 @@ examples:
min-residency-us = <7000>;
};
};
+
+ - |
+ // Example using power-domains-map for Nexus mapping
+ main_pd: power-controller@12370000 {
+ compatible = "foo,power-controller";
+ reg = <0x12370000 0x1000>;
+ #power-domain-cells = <0>;
+ };
+
+ wkup_pd: power-controller@12380000 {
+ compatible = "foo,power-controller";
+ reg = <0x12380000 0x1000>;
+ #power-domain-cells = <0>;
+ };
+
+ scmi_pds protocol@11 {
+ compatible = "arm,scmi-power-domain";
+ reg = <0x11>;
+ #power-domain-cells = <1>;
+ power-domains-map = <15 &main_pd>,
+ <19 &wkup_pd>;
+ };
+
+ // In this example using Nexus node mapping:
+ // - Child domain 15 (scmi_pds 15) becomes a subdomain of main_pd
+ // - Child domain 19 (scmi_pds 19) becomes a subdomain of wkup_pd
--
2.49.0
next prev parent reply other threads:[~2025-05-28 21:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-28 21:58 [PATCH RFC v2 0/2] pmdomains: core: add support for domain hierarchies in DT Kevin Hilman
2025-05-28 21:58 ` Kevin Hilman [this message]
2025-05-28 23:32 ` [PATCH RFC v2 1/2] dt-bindings: power: add nexus map for power-domains Rob Herring (Arm)
2025-05-30 9:31 ` Ulf Hansson
2025-05-28 21:58 ` [PATCH RFC v2 2/2] pmdomain: core: use DT map to support hierarchy Kevin Hilman
2025-05-30 13:57 ` Rob Herring
2025-06-06 22:24 ` Kevin Hilman
2025-06-13 22:43 ` Kevin Hilman
2025-06-02 10:04 ` Ulf Hansson
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=20250528-pmdomain-hierarchy-onecell-v2-1-7885ae45e59c@baylibre.com \
--to=khilman@baylibre.com \
--cc=arm-scmi@vger.kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rjw@rjwysocki.net \
--cc=robh@kernel.org \
--cc=ulf.hansson@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).