Skip to content

Commit 70bb510

Browse files
ilina-linarorafaeljw
authored andcommitted
dt/bindings / PM/Domains: Update binding for PM domain idle states
Update DT bindings to describe idle states of PM domains. This patch is based on the original patch by Marc Titinger. Signed-off-by: Marc Titinger <[email protected]> Signed-off-by: Ulf Hansson <[email protected]> Signed-off-by: Lina Iyer <[email protected]> Acked-by: Rob Herring <[email protected]> Reviewed-by: Kevin Hilman <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 0c9b694 commit 70bb510

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

Documentation/devicetree/bindings/power/power_domain.txt

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
3241
Example:
3342

3443
power: power-controller@12340000 {
@@ -59,6 +68,38 @@ The nodes above define two power controllers: 'parent' and 'child'.
5968
Domains created by the 'child' power controller are subdomains of '0' power
6069
domain 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

64105
Required properties:
@@ -76,3 +117,5 @@ Example:
76117
The node above defines a typical PM domain consumer device, which is located
77118
inside a PM domain with index 0 of a power controller represented by a node
78119
with the label "power".
120+
121+
[1]. Documentation/devicetree/bindings/arm/idle-states.txt

0 commit comments

Comments
 (0)