1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/power/qcom,rpmpd.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm RPM/RPMh Power domains
10 - Rajendra Nayak <rnayak@codeaurora.org>
13 For RPM/RPMh Power domains, we communicate a performance state to RPM/RPMh
14 which then translates it into a corresponding voltage on a rail.
27 '#power-domain-cells':
30 operating-points-v2: true
37 - '#power-domain-cells'
40 additionalProperties: false
45 // Example 1 (rpmh power domain controller and OPP table):
47 #include <dt-bindings/power/qcom-rpmpd.h>
49 rpmhpd: power-controller {
50 compatible = "qcom,sdm845-rpmhpd";
51 #power-domain-cells = <1>;
52 operating-points-v2 = <&rpmhpd_opp_table>;
54 rpmhpd_opp_table: opp-table {
55 compatible = "operating-points-v2";
57 rpmhpd_opp_ret: opp1 {
58 opp-level = <RPMH_REGULATOR_LEVEL_RETENTION>;
61 rpmhpd_opp_min_svs: opp2 {
62 opp-level = <RPMH_REGULATOR_LEVEL_MIN_SVS>;
65 rpmhpd_opp_low_svs: opp3 {
66 opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>;
69 rpmhpd_opp_svs: opp4 {
70 opp-level = <RPMH_REGULATOR_LEVEL_SVS>;
73 rpmhpd_opp_svs_l1: opp5 {
74 opp-level = <RPMH_REGULATOR_LEVEL_SVS_L1>;
77 rpmhpd_opp_nom: opp6 {
78 opp-level = <RPMH_REGULATOR_LEVEL_NOM>;
81 rpmhpd_opp_nom_l1: opp7 {
82 opp-level = <RPMH_REGULATOR_LEVEL_NOM_L1>;
85 rpmhpd_opp_nom_l2: opp8 {
86 opp-level = <RPMH_REGULATOR_LEVEL_NOM_L2>;
89 rpmhpd_opp_turbo: opp9 {
90 opp-level = <RPMH_REGULATOR_LEVEL_TURBO>;
93 rpmhpd_opp_turbo_l1: opp10 {
94 opp-level = <RPMH_REGULATOR_LEVEL_TURBO_L1>;
101 // Example 2 (rpm power domain controller and OPP table):
103 rpmpd: power-controller {
104 compatible = "qcom,msm8996-rpmpd";
105 #power-domain-cells = <1>;
106 operating-points-v2 = <&rpmpd_opp_table>;
108 rpmpd_opp_table: opp-table {
109 compatible = "operating-points-v2";
111 rpmpd_opp_low: opp1 {
115 rpmpd_opp_ret: opp2 {
119 rpmpd_opp_svs: opp3 {
123 rpmpd_opp_normal: opp4 {
127 rpmpd_opp_high: opp5 {
131 rpmpd_opp_turbo: opp6 {
139 // Example 3 (Client/Consumer device using OPP table):
141 leaky-device0@12350000 {
142 compatible = "foo,i-leak-current";
143 reg = <0x12350000 0x1000>;
144 power-domains = <&rpmhpd 0>;
145 operating-points-v2 = <&leaky_opp_table>;
148 leaky_opp_table: opp-table {
149 compatible = "operating-points-v2";
151 opp-hz = /bits/ 64 <144000>;
152 required-opps = <&rpmhpd_opp_low>;
156 opp-hz = /bits/ 64 <400000>;
157 required-opps = <&rpmhpd_opp_ret>;
161 opp-hz = /bits/ 64 <20000000>;
162 required-opps = <&rpmpd_opp_svs>;
166 opp-hz = /bits/ 64 <25000000>;
167 required-opps = <&rpmpd_opp_normal>;