arm64: dts: qcom: msm8996pro: expand Adreno OPP table
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sun, 24 Jul 2022 14:04:21 +0000 (17:04 +0300)
committerBjorn Andersson <andersson@kernel.org>
Mon, 17 Oct 2022 18:55:27 +0000 (13:55 -0500)
There are minor differeces between msm8996 and msm8996pro in terms of
GPU frequencies support. For example msm8996pro supports 652.8 MHz
frequency for the Adreno. Reclect these differences in msm8996pro.dtsi.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220724140421.1933004-8-dmitry.baryshkov@linaro.org
arch/arm64/boot/dts/qcom/msm8996pro.dtsi

index 63e1b4ec7a360e2ea18c6182192baca336514d86..a679a9c0cf99d0a991e4f5a575132eee2eb76cac 100644 (file)
                };
        };
 };
+
+&gpu_opp_table {
+       /*
+        * Unlike CPU opp tables, the GPU driver does not shift speed bins.
+        *
+        * 652.8 Mhz is available on speed bin 0 only.
+        * 624 Mhz and 560 Mhz are available on speed bins 0 and 1.
+        * All the rest are available on all bins of the hardware (like on
+        * plain 8996).
+        */
+
+       opp-652800000 {
+               opp-hz = /bits/ 64 <652800000>;
+               opp-supported-hw = <0x01>;
+       };
+       opp-624000000 {
+               opp-hz = /bits/ 64 <624000000>;
+               opp-supported-hw = <0x03>;
+       };
+       opp-560000000 {
+               opp-hz = /bits/ 64 <560000000>;
+               opp-supported-hw = <0x03>;
+       };
+       /* The rest is inherited from msm8996 */
+};