arm64: dts: qcom: sc7180: Add OPP tables and power-domains for venus
authorRajendra Nayak <rnayak@codeaurora.org>
Tue, 1 Sep 2020 14:20:26 +0000 (19:50 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 10 Sep 2020 22:03:16 +0000 (22:03 +0000)
Add the OPP tables in order to be able to vote on the performance state
of a power-domain

Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Link: https://lore.kernel.org/r/1598970026-7199-6-git-send-email-rnayak@codeaurora.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/sc7180.dtsi

index 90debb4..0a80a5c 100644 (file)
                        reg = <0 0x0aa00000 0 0xff000>;
                        interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
                        power-domains = <&videocc VENUS_GDSC>,
-                                       <&videocc VCODEC0_GDSC>;
-                       power-domain-names = "venus", "vcodec0";
+                                       <&videocc VCODEC0_GDSC>,
+                                       <&rpmhpd SC7180_CX>;
+                       power-domain-names = "venus", "vcodec0", "cx";
+                       operating-points-v2 = <&venus_opp_table>;
                        clocks = <&videocc VIDEO_CC_VENUS_CTL_CORE_CLK>,
                                 <&videocc VIDEO_CC_VENUS_AHB_CLK>,
                                 <&videocc VIDEO_CC_VENUS_CTL_AXI_CLK>,
                        video-encoder {
                                compatible = "venus-encoder";
                        };
+
+                       venus_opp_table: venus-opp-table {
+                               compatible = "operating-points-v2";
+
+                               opp-150000000 {
+                                       opp-hz = /bits/ 64 <150000000>;
+                                       required-opps = <&rpmhpd_opp_low_svs>;
+                               };
+
+                               opp-270000000 {
+                                       opp-hz = /bits/ 64 <270000000>;
+                                       required-opps = <&rpmhpd_opp_svs>;
+                               };
+
+                               opp-340000000 {
+                                       opp-hz = /bits/ 64 <340000000>;
+                                       required-opps = <&rpmhpd_opp_svs_l1>;
+                               };
+
+                               opp-434000000 {
+                                       opp-hz = /bits/ 64 <434000000>;
+                                       required-opps = <&rpmhpd_opp_nom>;
+                               };
+
+                               opp-500000097 {
+                                       opp-hz = /bits/ 64 <500000097>;
+                                       required-opps = <&rpmhpd_opp_turbo>;
+                               };
+                       };
                };
 
                videocc: clock-controller@ab00000 {