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.
41 - qcom,sc8280xp-rpmhpd
42 - qcom,sc8380xp-rpmhpd
63 - const: qcom,msm8917-rpmpd
65 '#power-domain-cells':
68 operating-points-v2: true
75 - '#power-domain-cells'
78 additionalProperties: false
83 // Example 1 (rpmh power domain controller and OPP table):
85 #include <dt-bindings/power/qcom-rpmpd.h>
87 rpmhpd: power-controller {
88 compatible = "qcom,sdm845-rpmhpd";
89 #power-domain-cells = <1>;
90 operating-points-v2 = <&rpmhpd_opp_table>;
92 rpmhpd_opp_table: opp-table {
93 compatible = "operating-points-v2";
95 rpmhpd_opp_ret: opp1 {
96 opp-level = <RPMH_REGULATOR_LEVEL_RETENTION>;
99 rpmhpd_opp_min_svs: opp2 {
100 opp-level = <RPMH_REGULATOR_LEVEL_MIN_SVS>;
103 rpmhpd_opp_low_svs: opp3 {
104 opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>;
107 rpmhpd_opp_svs: opp4 {
108 opp-level = <RPMH_REGULATOR_LEVEL_SVS>;
111 rpmhpd_opp_svs_l1: opp5 {
112 opp-level = <RPMH_REGULATOR_LEVEL_SVS_L1>;
115 rpmhpd_opp_nom: opp6 {
116 opp-level = <RPMH_REGULATOR_LEVEL_NOM>;
119 rpmhpd_opp_nom_l1: opp7 {
120 opp-level = <RPMH_REGULATOR_LEVEL_NOM_L1>;
123 rpmhpd_opp_nom_l2: opp8 {
124 opp-level = <RPMH_REGULATOR_LEVEL_NOM_L2>;
127 rpmhpd_opp_turbo: opp9 {
128 opp-level = <RPMH_REGULATOR_LEVEL_TURBO>;
131 rpmhpd_opp_turbo_l1: opp10 {
132 opp-level = <RPMH_REGULATOR_LEVEL_TURBO_L1>;
139 // Example 2 (rpm power domain controller and OPP table):
141 rpmpd: power-controller {
142 compatible = "qcom,msm8996-rpmpd";
143 #power-domain-cells = <1>;
144 operating-points-v2 = <&rpmpd_opp_table>;
146 rpmpd_opp_table: opp-table {
147 compatible = "operating-points-v2";
149 rpmpd_opp_low: opp1 {
153 rpmpd_opp_ret: opp2 {
157 rpmpd_opp_svs: opp3 {
161 rpmpd_opp_normal: opp4 {
165 rpmpd_opp_high: opp5 {
169 rpmpd_opp_turbo: opp6 {
177 // Example 3 (Client/Consumer device using OPP table):
179 leaky-device0@12350000 {
180 compatible = "foo,i-leak-current";
181 reg = <0x12350000 0x1000>;
182 power-domains = <&rpmhpd 0>;
183 operating-points-v2 = <&leaky_opp_table>;
186 leaky_opp_table: opp-table {
187 compatible = "operating-points-v2";
189 opp-hz = /bits/ 64 <144000>;
190 required-opps = <&rpmhpd_opp_low>;
194 opp-hz = /bits/ 64 <400000>;
195 required-opps = <&rpmhpd_opp_ret>;
199 opp-hz = /bits/ 64 <20000000>;
200 required-opps = <&rpmpd_opp_svs>;
204 opp-hz = /bits/ 64 <25000000>;
205 required-opps = <&rpmpd_opp_normal>;