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.
31 '#power-domain-cells':
34 operating-points-v2: true
41 - '#power-domain-cells'
44 additionalProperties: false
49 // Example 1 (rpmh power domain controller and OPP table):
51 #include <dt-bindings/power/qcom-rpmpd.h>
53 rpmhpd: power-controller {
54 compatible = "qcom,sdm845-rpmhpd";
55 #power-domain-cells = <1>;
56 operating-points-v2 = <&rpmhpd_opp_table>;
58 rpmhpd_opp_table: opp-table {
59 compatible = "operating-points-v2";
61 rpmhpd_opp_ret: opp1 {
62 opp-level = <RPMH_REGULATOR_LEVEL_RETENTION>;
65 rpmhpd_opp_min_svs: opp2 {
66 opp-level = <RPMH_REGULATOR_LEVEL_MIN_SVS>;
69 rpmhpd_opp_low_svs: opp3 {
70 opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>;
73 rpmhpd_opp_svs: opp4 {
74 opp-level = <RPMH_REGULATOR_LEVEL_SVS>;
77 rpmhpd_opp_svs_l1: opp5 {
78 opp-level = <RPMH_REGULATOR_LEVEL_SVS_L1>;
81 rpmhpd_opp_nom: opp6 {
82 opp-level = <RPMH_REGULATOR_LEVEL_NOM>;
85 rpmhpd_opp_nom_l1: opp7 {
86 opp-level = <RPMH_REGULATOR_LEVEL_NOM_L1>;
89 rpmhpd_opp_nom_l2: opp8 {
90 opp-level = <RPMH_REGULATOR_LEVEL_NOM_L2>;
93 rpmhpd_opp_turbo: opp9 {
94 opp-level = <RPMH_REGULATOR_LEVEL_TURBO>;
97 rpmhpd_opp_turbo_l1: opp10 {
98 opp-level = <RPMH_REGULATOR_LEVEL_TURBO_L1>;
105 // Example 2 (rpm power domain controller and OPP table):
107 rpmpd: power-controller {
108 compatible = "qcom,msm8996-rpmpd";
109 #power-domain-cells = <1>;
110 operating-points-v2 = <&rpmpd_opp_table>;
112 rpmpd_opp_table: opp-table {
113 compatible = "operating-points-v2";
115 rpmpd_opp_low: opp1 {
119 rpmpd_opp_ret: opp2 {
123 rpmpd_opp_svs: opp3 {
127 rpmpd_opp_normal: opp4 {
131 rpmpd_opp_high: opp5 {
135 rpmpd_opp_turbo: opp6 {
143 // Example 3 (Client/Consumer device using OPP table):
145 leaky-device0@12350000 {
146 compatible = "foo,i-leak-current";
147 reg = <0x12350000 0x1000>;
148 power-domains = <&rpmhpd 0>;
149 operating-points-v2 = <&leaky_opp_table>;
152 leaky_opp_table: opp-table {
153 compatible = "operating-points-v2";
155 opp-hz = /bits/ 64 <144000>;
156 required-opps = <&rpmhpd_opp_low>;
160 opp-hz = /bits/ 64 <400000>;
161 required-opps = <&rpmhpd_opp_ret>;
165 opp-hz = /bits/ 64 <20000000>;
166 required-opps = <&rpmpd_opp_svs>;
170 opp-hz = /bits/ 64 <25000000>;
171 required-opps = <&rpmpd_opp_normal>;