PM / Domains: dt: Add a power-domain-names property
authorUlf Hansson <ulf.hansson@linaro.org>
Fri, 29 Jun 2018 11:04:30 +0000 (13:04 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 9 Jul 2018 10:11:02 +0000 (12:11 +0200)
Let's add a power-domain-names property, to allow consumer drivers to match
the power-domains specifiers via a list of power domain names. This follows
the same concept as for other similar DT bindings.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Rajendra Nayak <rnayak@codeaurora.org>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Documentation/devicetree/bindings/power/power_domain.txt

index 9b387f861aed166bda522f6e3d4ebb8856a49218..4d6bc882946879764aba7ff5a3d7575ec0a789a9 100644 (file)
@@ -114,18 +114,26 @@ Required properties:
  - power-domains : A list of PM domain specifiers, as defined by bindings of
                the power controller that is the PM domain provider.
 
+Optional properties:
+ - power-domain-names : A list of power domain name strings sorted in the same
+               order as the power-domains property. Consumers drivers will use
+               power-domain-names to match power domains with power-domains
+               specifiers.
+
 Example:
 
        leaky-device@12350000 {
                compatible = "foo,i-leak-current";
                reg = <0x12350000 0x1000>;
                power-domains = <&power 0>;
+               power-domain-names = "io";
        };
 
        leaky-device@12351000 {
                compatible = "foo,i-leak-current";
                reg = <0x12351000 0x1000>;
                power-domains = <&power 0>, <&power 1> ;
+               power-domain-names = "io", "clk";
        };
 
 The first example above defines a typical PM domain consumer device, which is