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.
35 - qcom,sc8280xp-rpmhpd
47 '#power-domain-cells':
50 operating-points-v2: true
57 - '#power-domain-cells'
60 additionalProperties: false
65 // Example 1 (rpmh power domain controller and OPP table):
67 #include <dt-bindings/power/qcom-rpmpd.h>
69 rpmhpd: power-controller {
70 compatible = "qcom,sdm845-rpmhpd";
71 #power-domain-cells = <1>;
72 operating-points-v2 = <&rpmhpd_opp_table>;
74 rpmhpd_opp_table: opp-table {
75 compatible = "operating-points-v2";
77 rpmhpd_opp_ret: opp1 {
78 opp-level = <RPMH_REGULATOR_LEVEL_RETENTION>;
81 rpmhpd_opp_min_svs: opp2 {
82 opp-level = <RPMH_REGULATOR_LEVEL_MIN_SVS>;
85 rpmhpd_opp_low_svs: opp3 {
86 opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>;
89 rpmhpd_opp_svs: opp4 {
90 opp-level = <RPMH_REGULATOR_LEVEL_SVS>;
93 rpmhpd_opp_svs_l1: opp5 {
94 opp-level = <RPMH_REGULATOR_LEVEL_SVS_L1>;
97 rpmhpd_opp_nom: opp6 {
98 opp-level = <RPMH_REGULATOR_LEVEL_NOM>;
101 rpmhpd_opp_nom_l1: opp7 {
102 opp-level = <RPMH_REGULATOR_LEVEL_NOM_L1>;
105 rpmhpd_opp_nom_l2: opp8 {
106 opp-level = <RPMH_REGULATOR_LEVEL_NOM_L2>;
109 rpmhpd_opp_turbo: opp9 {
110 opp-level = <RPMH_REGULATOR_LEVEL_TURBO>;
113 rpmhpd_opp_turbo_l1: opp10 {
114 opp-level = <RPMH_REGULATOR_LEVEL_TURBO_L1>;
121 // Example 2 (rpm power domain controller and OPP table):
123 rpmpd: power-controller {
124 compatible = "qcom,msm8996-rpmpd";
125 #power-domain-cells = <1>;
126 operating-points-v2 = <&rpmpd_opp_table>;
128 rpmpd_opp_table: opp-table {
129 compatible = "operating-points-v2";
131 rpmpd_opp_low: opp1 {
135 rpmpd_opp_ret: opp2 {
139 rpmpd_opp_svs: opp3 {
143 rpmpd_opp_normal: opp4 {
147 rpmpd_opp_high: opp5 {
151 rpmpd_opp_turbo: opp6 {
159 // Example 3 (Client/Consumer device using OPP table):
161 leaky-device0@12350000 {
162 compatible = "foo,i-leak-current";
163 reg = <0x12350000 0x1000>;
164 power-domains = <&rpmhpd 0>;
165 operating-points-v2 = <&leaky_opp_table>;
168 leaky_opp_table: opp-table {
169 compatible = "operating-points-v2";
171 opp-hz = /bits/ 64 <144000>;
172 required-opps = <&rpmhpd_opp_low>;
176 opp-hz = /bits/ 64 <400000>;
177 required-opps = <&rpmhpd_opp_ret>;
181 opp-hz = /bits/ 64 <20000000>;
182 required-opps = <&rpmpd_opp_svs>;
186 opp-hz = /bits/ 64 <25000000>;
187 required-opps = <&rpmpd_opp_normal>;