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
49 '#power-domain-cells':
52 operating-points-v2: true
59 - '#power-domain-cells'
62 additionalProperties: false
67 // Example 1 (rpmh power domain controller and OPP table):
69 #include <dt-bindings/power/qcom-rpmpd.h>
71 rpmhpd: power-controller {
72 compatible = "qcom,sdm845-rpmhpd";
73 #power-domain-cells = <1>;
74 operating-points-v2 = <&rpmhpd_opp_table>;
76 rpmhpd_opp_table: opp-table {
77 compatible = "operating-points-v2";
79 rpmhpd_opp_ret: opp1 {
80 opp-level = <RPMH_REGULATOR_LEVEL_RETENTION>;
83 rpmhpd_opp_min_svs: opp2 {
84 opp-level = <RPMH_REGULATOR_LEVEL_MIN_SVS>;
87 rpmhpd_opp_low_svs: opp3 {
88 opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>;
91 rpmhpd_opp_svs: opp4 {
92 opp-level = <RPMH_REGULATOR_LEVEL_SVS>;
95 rpmhpd_opp_svs_l1: opp5 {
96 opp-level = <RPMH_REGULATOR_LEVEL_SVS_L1>;
99 rpmhpd_opp_nom: opp6 {
100 opp-level = <RPMH_REGULATOR_LEVEL_NOM>;
103 rpmhpd_opp_nom_l1: opp7 {
104 opp-level = <RPMH_REGULATOR_LEVEL_NOM_L1>;
107 rpmhpd_opp_nom_l2: opp8 {
108 opp-level = <RPMH_REGULATOR_LEVEL_NOM_L2>;
111 rpmhpd_opp_turbo: opp9 {
112 opp-level = <RPMH_REGULATOR_LEVEL_TURBO>;
115 rpmhpd_opp_turbo_l1: opp10 {
116 opp-level = <RPMH_REGULATOR_LEVEL_TURBO_L1>;
123 // Example 2 (rpm power domain controller and OPP table):
125 rpmpd: power-controller {
126 compatible = "qcom,msm8996-rpmpd";
127 #power-domain-cells = <1>;
128 operating-points-v2 = <&rpmpd_opp_table>;
130 rpmpd_opp_table: opp-table {
131 compatible = "operating-points-v2";
133 rpmpd_opp_low: opp1 {
137 rpmpd_opp_ret: opp2 {
141 rpmpd_opp_svs: opp3 {
145 rpmpd_opp_normal: opp4 {
149 rpmpd_opp_high: opp5 {
153 rpmpd_opp_turbo: opp6 {
161 // Example 3 (Client/Consumer device using OPP table):
163 leaky-device0@12350000 {
164 compatible = "foo,i-leak-current";
165 reg = <0x12350000 0x1000>;
166 power-domains = <&rpmhpd 0>;
167 operating-points-v2 = <&leaky_opp_table>;
170 leaky_opp_table: opp-table {
171 compatible = "operating-points-v2";
173 opp-hz = /bits/ 64 <144000>;
174 required-opps = <&rpmhpd_opp_low>;
178 opp-hz = /bits/ 64 <400000>;
179 required-opps = <&rpmhpd_opp_ret>;
183 opp-hz = /bits/ 64 <20000000>;
184 required-opps = <&rpmpd_opp_svs>;
188 opp-hz = /bits/ 64 <25000000>;
189 required-opps = <&rpmpd_opp_normal>;