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.
29 '#power-domain-cells':
32 operating-points-v2: true
39 - '#power-domain-cells'
42 additionalProperties: false
47 // Example 1 (rpmh power domain controller and OPP table):
49 #include <dt-bindings/power/qcom-rpmpd.h>
51 rpmhpd: power-controller {
52 compatible = "qcom,sdm845-rpmhpd";
53 #power-domain-cells = <1>;
54 operating-points-v2 = <&rpmhpd_opp_table>;
56 rpmhpd_opp_table: opp-table {
57 compatible = "operating-points-v2";
59 rpmhpd_opp_ret: opp1 {
60 opp-level = <RPMH_REGULATOR_LEVEL_RETENTION>;
63 rpmhpd_opp_min_svs: opp2 {
64 opp-level = <RPMH_REGULATOR_LEVEL_MIN_SVS>;
67 rpmhpd_opp_low_svs: opp3 {
68 opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>;
71 rpmhpd_opp_svs: opp4 {
72 opp-level = <RPMH_REGULATOR_LEVEL_SVS>;
75 rpmhpd_opp_svs_l1: opp5 {
76 opp-level = <RPMH_REGULATOR_LEVEL_SVS_L1>;
79 rpmhpd_opp_nom: opp6 {
80 opp-level = <RPMH_REGULATOR_LEVEL_NOM>;
83 rpmhpd_opp_nom_l1: opp7 {
84 opp-level = <RPMH_REGULATOR_LEVEL_NOM_L1>;
87 rpmhpd_opp_nom_l2: opp8 {
88 opp-level = <RPMH_REGULATOR_LEVEL_NOM_L2>;
91 rpmhpd_opp_turbo: opp9 {
92 opp-level = <RPMH_REGULATOR_LEVEL_TURBO>;
95 rpmhpd_opp_turbo_l1: opp10 {
96 opp-level = <RPMH_REGULATOR_LEVEL_TURBO_L1>;
103 // Example 2 (rpm power domain controller and OPP table):
105 rpmpd: power-controller {
106 compatible = "qcom,msm8996-rpmpd";
107 #power-domain-cells = <1>;
108 operating-points-v2 = <&rpmpd_opp_table>;
110 rpmpd_opp_table: opp-table {
111 compatible = "operating-points-v2";
113 rpmpd_opp_low: opp1 {
117 rpmpd_opp_ret: opp2 {
121 rpmpd_opp_svs: opp3 {
125 rpmpd_opp_normal: opp4 {
129 rpmpd_opp_high: opp5 {
133 rpmpd_opp_turbo: opp6 {
141 // Example 3 (Client/Consumer device using OPP table):
143 leaky-device0@12350000 {
144 compatible = "foo,i-leak-current";
145 reg = <0x12350000 0x1000>;
146 power-domains = <&rpmhpd 0>;
147 operating-points-v2 = <&leaky_opp_table>;
150 leaky_opp_table: opp-table {
151 compatible = "operating-points-v2";
153 opp-hz = /bits/ 64 <144000>;
154 required-opps = <&rpmhpd_opp_low>;
158 opp-hz = /bits/ 64 <400000>;
159 required-opps = <&rpmhpd_opp_ret>;
163 opp-hz = /bits/ 64 <20000000>;
164 required-opps = <&rpmpd_opp_svs>;
168 opp-hz = /bits/ 64 <25000000>;
169 required-opps = <&rpmpd_opp_normal>;