Skip to content

Commit 5b85cc1

Browse files
kotarakeKomal-Bajaj
authored andcommitted
arm64: dts: qcom: Add RPM power domain controller for shikra
Add the RPM SMD power domain controller node for Shikra with a complete OPP table covering all 8 voltage corners from MIN_SVS to TURBO_NO_CPR. Signed-off-by: Rakesh Kota <rakesh.kota@oss.qualcomm.com>
1 parent f991c1e commit 5b85cc1

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

arch/arm64/boot/dts/qcom/shikra.dtsi

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <dt-bindings/clock/qcom,rpmcc.h>
77
#include <dt-bindings/clock/qcom,shikra-gcc.h>
88
#include <dt-bindings/interrupt-controller/arm-gic.h>
9+
#include <dt-bindings/power/qcom-rpmpd.h>
910

1011
/ {
1112
interrupt-parent = <&intc>;
@@ -142,6 +143,48 @@
142143
clock-names = "xo";
143144
#clock-cells = <1>;
144145
};
146+
147+
rpmpd: power-controller {
148+
compatible = "qcom,shikra-rpmpd";
149+
#power-domain-cells = <1>;
150+
operating-points-v2 = <&rpmpd_opp_table>;
151+
152+
rpmpd_opp_table: opp-table {
153+
compatible = "operating-points-v2";
154+
155+
rpmpd_opp_min_svs: opp1 {
156+
opp-level = <RPM_SMD_LEVEL_MIN_SVS>;
157+
};
158+
159+
rpmpd_opp_low_svs: opp2 {
160+
opp-level = <RPM_SMD_LEVEL_LOW_SVS>;
161+
};
162+
163+
rpmpd_opp_svs: opp3 {
164+
opp-level = <RPM_SMD_LEVEL_SVS>;
165+
};
166+
167+
rpmpd_opp_svs_plus: opp4 {
168+
opp-level = <RPM_SMD_LEVEL_SVS_PLUS>;
169+
};
170+
171+
rpmpd_opp_nom: opp5 {
172+
opp-level = <RPM_SMD_LEVEL_NOM>;
173+
};
174+
175+
rpmpd_opp_nom_plus: opp6 {
176+
opp-level = <RPM_SMD_LEVEL_NOM_PLUS>;
177+
};
178+
179+
rpmpd_opp_turbo: opp7 {
180+
opp-level = <RPM_SMD_LEVEL_TURBO>;
181+
};
182+
183+
rpmpd_opp_turbo_plus: opp8 {
184+
opp-level = <RPM_SMD_LEVEL_TURBO_NO_CPR>;
185+
};
186+
};
187+
};
145188
};
146189
};
147190

0 commit comments

Comments
 (0)