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.
36 - qcom,sc8280xp-rpmhpd
48 '#power-domain-cells':
51 operating-points-v2: true
58 - '#power-domain-cells'
61 additionalProperties: false
66 // Example 1 (rpmh power domain controller and OPP table):
68 #include <dt-bindings/power/qcom-rpmpd.h>
70 rpmhpd: power-controller {
71 compatible = "qcom,sdm845-rpmhpd";
72 #power-domain-cells = <1>;
73 operating-points-v2 = <&rpmhpd_opp_table>;
75 rpmhpd_opp_table: opp-table {
76 compatible = "operating-points-v2";
78 rpmhpd_opp_ret: opp1 {
79 opp-level = <RPMH_REGULATOR_LEVEL_RETENTION>;
82 rpmhpd_opp_min_svs: opp2 {
83 opp-level = <RPMH_REGULATOR_LEVEL_MIN_SVS>;
86 rpmhpd_opp_low_svs: opp3 {
87 opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>;
90 rpmhpd_opp_svs: opp4 {
91 opp-level = <RPMH_REGULATOR_LEVEL_SVS>;
94 rpmhpd_opp_svs_l1: opp5 {
95 opp-level = <RPMH_REGULATOR_LEVEL_SVS_L1>;
98 rpmhpd_opp_nom: opp6 {
99 opp-level = <RPMH_REGULATOR_LEVEL_NOM>;
102 rpmhpd_opp_nom_l1: opp7 {
103 opp-level = <RPMH_REGULATOR_LEVEL_NOM_L1>;
106 rpmhpd_opp_nom_l2: opp8 {
107 opp-level = <RPMH_REGULATOR_LEVEL_NOM_L2>;
110 rpmhpd_opp_turbo: opp9 {
111 opp-level = <RPMH_REGULATOR_LEVEL_TURBO>;
114 rpmhpd_opp_turbo_l1: opp10 {
115 opp-level = <RPMH_REGULATOR_LEVEL_TURBO_L1>;
122 // Example 2 (rpm power domain controller and OPP table):
124 rpmpd: power-controller {
125 compatible = "qcom,msm8996-rpmpd";
126 #power-domain-cells = <1>;
127 operating-points-v2 = <&rpmpd_opp_table>;
129 rpmpd_opp_table: opp-table {
130 compatible = "operating-points-v2";
132 rpmpd_opp_low: opp1 {
136 rpmpd_opp_ret: opp2 {
140 rpmpd_opp_svs: opp3 {
144 rpmpd_opp_normal: opp4 {
148 rpmpd_opp_high: opp5 {
152 rpmpd_opp_turbo: opp6 {
160 // Example 3 (Client/Consumer device using OPP table):
162 leaky-device0@12350000 {
163 compatible = "foo,i-leak-current";
164 reg = <0x12350000 0x1000>;
165 power-domains = <&rpmhpd 0>;
166 operating-points-v2 = <&leaky_opp_table>;
169 leaky_opp_table: opp-table {
170 compatible = "operating-points-v2";
172 opp-hz = /bits/ 64 <144000>;
173 required-opps = <&rpmhpd_opp_low>;
177 opp-hz = /bits/ 64 <400000>;
178 required-opps = <&rpmhpd_opp_ret>;
182 opp-hz = /bits/ 64 <20000000>;
183 required-opps = <&rpmpd_opp_svs>;
187 opp-hz = /bits/ 64 <25000000>;
188 required-opps = <&rpmpd_opp_normal>;