@@ -29,6 +29,15 @@ Optional properties:
2929 specified by this binding. More details about power domain specifier are
3030 available in the next section.
3131
32+ - domain-idle-states : A phandle of an idle-state that shall be soaked into a
33+ generic domain power state. The idle state definitions are
34+ compatible with arm,idle-state specified in [1].
35+ The domain-idle-state property reflects the idle state of this PM domain and
36+ not the idle states of the devices or sub-domains in the PM domain. Devices
37+ and sub-domains have their own idle-states independent of the parent
38+ domain's idle states. In the absence of this property, the domain would be
39+ considered as capable of being powered-on or powered-off.
40+
3241Example:
3342
3443 power: power-controller@12340000 {
@@ -59,6 +68,38 @@ The nodes above define two power controllers: 'parent' and 'child'.
5968Domains created by the 'child' power controller are subdomains of '0' power
6069domain provided by the 'parent' power controller.
6170
71+ Example 3:
72+ parent: power-controller@12340000 {
73+ compatible = "foo,power-controller";
74+ reg = <0x12340000 0x1000>;
75+ #power-domain-cells = <0>;
76+ domain-idle-states = <&DOMAIN_RET>, <&DOMAIN_PWR_DN>;
77+ };
78+
79+ child: power-controller@12341000 {
80+ compatible = "foo,power-controller";
81+ reg = <0x12341000 0x1000>;
82+ power-domains = <&parent 0>;
83+ #power-domain-cells = <0>;
84+ domain-idle-states = <&DOMAIN_PWR_DN>;
85+ };
86+
87+ DOMAIN_RET: state@0 {
88+ compatible = "arm,idle-state";
89+ reg = <0x0>;
90+ entry-latency-us = <1000>;
91+ exit-latency-us = <2000>;
92+ min-residency-us = <10000>;
93+ };
94+
95+ DOMAIN_PWR_DN: state@1 {
96+ compatible = "arm,idle-state";
97+ reg = <0x1>;
98+ entry-latency-us = <5000>;
99+ exit-latency-us = <8000>;
100+ min-residency-us = <7000>;
101+ };
102+
62103==PM domain consumers==
63104
64105Required properties:
@@ -76,3 +117,5 @@ Example:
76117The node above defines a typical PM domain consumer device, which is located
77118inside a PM domain with index 0 of a power controller represented by a node
78119with the label "power".
120+
121+ [1]. Documentation/devicetree/bindings/arm/idle-states.txt
0 commit comments