arm64: dts: qcom: sc8180x: Hook up GPU cooling device
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Tue, 2 Jan 2024 13:34:07 +0000 (14:34 +0100)
committerBjorn Andersson <andersson@kernel.org>
Sat, 27 Jan 2024 23:06:38 +0000 (17:06 -0600)
In order to allow for throttling the GPU, hook up the cooling device
to the respective thermal zones.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20240102-topic-gpu_cooling-v1-3-fda30c57e353@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sc8180x.dtsi

index 013723be4bb75da4c67db0dfdef2a4bde8eac5a3..c64625619a6520cf5adddf9d5daccc142ab19fce 100644 (file)
                        interconnect-names = "gfx-mem";
 
                        qcom,gmu = <&gmu>;
+                       #cooling-cells = <2>;
+
                        status = "disabled";
 
                        gpu_opp_table: opp-table {
 
                        thermal-sensors = <&tsens0 15>;
 
+                       cooling-maps {
+                               map0 {
+                                       trip = <&gpu_top_alert0>;
+                                       cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                               };
+                       };
+
                        trips {
-                               trip-point0 {
+                               gpu_top_alert0: trip-point0 {
                                        temperature = <90000>;
                                        hysteresis = <2000>;
                                        type = "hot";
 
                        thermal-sensors = <&tsens1 11>;
 
+                       cooling-maps {
+                               map0 {
+                                       trip = <&gpu_bottom_alert0>;
+                                       cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                               };
+                       };
+
                        trips {
-                               trip-point0 {
+                               gpu_bottom_alert0: trip-point0 {
                                        temperature = <90000>;
                                        hysteresis = <2000>;
                                        type = "hot";