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 - Bjorn Andersson <andersson@kernel.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.
28 - qcom,msm8974pro-pma8084-rpmpd
43 - qcom,sc8280xp-rpmhpd
61 - qcom,x1e80100-rpmhpd
65 - const: qcom,msm8917-rpmpd
67 '#power-domain-cells':
70 operating-points-v2: true
77 - '#power-domain-cells'
80 additionalProperties: false
85 // Example 1 (rpmh power domain controller and OPP table):
87 #include <dt-bindings/power/qcom-rpmpd.h>
89 rpmhpd: power-controller {
90 compatible = "qcom,sdm845-rpmhpd";
91 #power-domain-cells = <1>;
92 operating-points-v2 = <&rpmhpd_opp_table>;
94 rpmhpd_opp_table: opp-table {
95 compatible = "operating-points-v2";
97 rpmhpd_opp_ret: opp1 {
98 opp-level = <RPMH_REGULATOR_LEVEL_RETENTION>;
101 rpmhpd_opp_min_svs: opp2 {
102 opp-level = <RPMH_REGULATOR_LEVEL_MIN_SVS>;
105 rpmhpd_opp_low_svs: opp3 {
106 opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>;
109 rpmhpd_opp_svs: opp4 {
110 opp-level = <RPMH_REGULATOR_LEVEL_SVS>;
113 rpmhpd_opp_svs_l1: opp5 {
114 opp-level = <RPMH_REGULATOR_LEVEL_SVS_L1>;
117 rpmhpd_opp_nom: opp6 {
118 opp-level = <RPMH_REGULATOR_LEVEL_NOM>;
121 rpmhpd_opp_nom_l1: opp7 {
122 opp-level = <RPMH_REGULATOR_LEVEL_NOM_L1>;
125 rpmhpd_opp_nom_l2: opp8 {
126 opp-level = <RPMH_REGULATOR_LEVEL_NOM_L2>;
129 rpmhpd_opp_turbo: opp9 {
130 opp-level = <RPMH_REGULATOR_LEVEL_TURBO>;
133 rpmhpd_opp_turbo_l1: opp10 {
134 opp-level = <RPMH_REGULATOR_LEVEL_TURBO_L1>;
141 // Example 2 (rpm power domain controller and OPP table):
143 rpmpd: power-controller {
144 compatible = "qcom,msm8996-rpmpd";
145 #power-domain-cells = <1>;
146 operating-points-v2 = <&rpmpd_opp_table>;
148 rpmpd_opp_table: opp-table {
149 compatible = "operating-points-v2";
151 rpmpd_opp_low: opp1 {
155 rpmpd_opp_ret: opp2 {
159 rpmpd_opp_svs: opp3 {
163 rpmpd_opp_normal: opp4 {
167 rpmpd_opp_high: opp5 {
171 rpmpd_opp_turbo: opp6 {
179 // Example 3 (Client/Consumer device using OPP table):
181 leaky-device0@12350000 {
182 compatible = "foo,i-leak-current";
183 reg = <0x12350000 0x1000>;
184 power-domains = <&rpmhpd 0>;
185 operating-points-v2 = <&leaky_opp_table>;
188 leaky_opp_table: opp-table {
189 compatible = "operating-points-v2";
191 opp-hz = /bits/ 64 <144000>;
192 required-opps = <&rpmhpd_opp_low>;
196 opp-hz = /bits/ 64 <400000>;
197 required-opps = <&rpmhpd_opp_ret>;
201 opp-hz = /bits/ 64 <20000000>;
202 required-opps = <&rpmpd_opp_svs>;
206 opp-hz = /bits/ 64 <25000000>;
207 required-opps = <&rpmpd_opp_normal>;