arm64: dts: qcom: msm8998: Add rpmpd node
authorSibi Sankar <sibis@codeaurora.org>
Mon, 13 May 2019 10:20:15 +0000 (15:50 +0530)
committerAndy Gross <agross@kernel.org>
Thu, 30 May 2019 02:38:14 +0000 (21:38 -0500)
Add the rpmpd node on the msm8998 and define the available levels.

Reviewed-by: Jeffrey Hugo <jhugo@codeaurora.org>
Reviewed-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sibi Sankar <sibis@codeaurora.org>
[bjorn: dropped use of level defines, to allow merging in parallel]
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <agross@kernel.org>
arch/arm64/boot/dts/qcom/msm8998.dtsi

index 574be78a936e223f13bb6329b6699ad7a0623b53..3a05126e9b6a4f6473395ee594a820370bc37833 100644 (file)
@@ -4,6 +4,7 @@
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include <dt-bindings/clock/qcom,gcc-msm8998.h>
 #include <dt-bindings/clock/qcom,rpmcc.h>
+#include <dt-bindings/power/qcom-rpmpd.h>
 #include <dt-bindings/gpio/gpio.h>
 
 / {
                                compatible = "qcom,rpmcc-msm8998", "qcom,rpmcc";
                                #clock-cells = <1>;
                        };
+
+                       rpmpd: power-controller {
+                               compatible = "qcom,msm8998-rpmpd";
+                               #power-domain-cells = <1>;
+                               operating-points-v2 = <&rpmpd_opp_table>;
+
+                               rpmpd_opp_table: opp-table {
+                                       compatible = "operating-points-v2";
+
+                                       rpmpd_opp_ret: opp1 {
+                                               opp-level = <16>;
+                                       };
+
+                                       rpmpd_opp_ret_plus: opp2 {
+                                               opp-level = <32>;
+                                       };
+
+                                       rpmpd_opp_min_svs: opp3 {
+                                               opp-level = <48>;
+                                       };
+
+                                       rpmpd_opp_low_svs: opp4 {
+                                               opp-level = <64>;
+                                       };
+
+                                       rpmpd_opp_svs: opp5 {
+                                               opp-level = <128>;
+                                       };
+
+                                       rpmpd_opp_svs_plus: opp6 {
+                                               opp-level = <192>;
+                                       };
+
+                                       rpmpd_opp_nom: opp7 {
+                                               opp-level = <256>;
+                                       };
+
+                                       rpmpd_opp_nom_plus: opp8 {
+                                               opp-level = <320>;
+                                       };
+
+                                       rpmpd_opp_turbo: opp9 {
+                                               opp-level = <384>;
+                                       };
+
+                                       rpmpd_opp_turbo_plus: opp10 {
+                                               opp-level = <512>;
+                                       };
+                               };
+                       };
                };
        };