]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - Documentation/devicetree/bindings/soc/rockchip/power_domain.txt
Merge remote-tracking branch 'tip/auto-latest'
[karo-tx-linux.git] / Documentation / devicetree / bindings / soc / rockchip / power_domain.txt
1 * Rockchip Power Domains
2
3 Rockchip processors include support for multiple power domains which can be
4 powered up/down by software based on different application scenes to save power.
5
6 Required properties for power domain controller:
7 - compatible: Should be one of the following.
8         "rockchip,rk3288-power-controller" - for RK3288 SoCs.
9 - #power-domain-cells: Number of cells in a power-domain specifier.
10         Should be 1 for multiple PM domains.
11 - #address-cells: Should be 1.
12 - #size-cells: Should be 0.
13
14 Required properties for power domain sub nodes:
15 - reg: index of the power domain, should use macros in:
16         "include/dt-bindings/power/rk3288-power.h" - for RK3288 type power domain.
17 - clocks (optional): phandles to clocks which need to be enabled while power domain
18         switches state.
19
20 Example:
21
22         power: power-controller {
23                 compatible = "rockchip,rk3288-power-controller";
24                 #power-domain-cells = <1>;
25                 #address-cells = <1>;
26                 #size-cells = <0>;
27
28                 pd_gpu {
29                         reg = <RK3288_PD_GPU>;
30                         clocks = <&cru ACLK_GPU>;
31                 };
32         };
33
34 Node of a device using power domains must have a power-domains property,
35 containing a phandle to the power device node and an index specifying which
36 power domain to use.
37 The index should use macros in:
38         "include/dt-bindings/power/rk3288-power.h" - for rk3288 type power domain.
39
40 Example of the node using power domain:
41
42         node {
43                 /* ... */
44                 power-domains = <&power RK3288_PD_GPU>;
45                 /* ... */
46         };