]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: qcom: talos: Add GPU cooling
authorGaurav Kohli <gaurav.kohli@oss.qualcomm.com>
Wed, 11 Mar 2026 23:09:55 +0000 (04:39 +0530)
committerBjorn Andersson <andersson@kernel.org>
Thu, 2 Apr 2026 21:01:43 +0000 (16:01 -0500)
Unlike the CPU, the GPU does not throttle its speed automatically when it
reaches high temperatures.

Set up GPU cooling by throttling the GPU speed when it reaches 105°C.

Signed-off-by: Gaurav Kohli <gaurav.kohli@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Akhil P Oommen <akhilpo@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260312-qcs615-spin-2-v8-3-fca38edcd6e6@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/talos.dtsi

index 0f437fcb661cc64a58f2024df10825db8c5873ee..0c47ef99aadef07b2e0f45296a3edb727dfaa32f 100644 (file)
@@ -19,6 +19,7 @@
 #include <dt-bindings/power/qcom-rpmpd.h>
 #include <dt-bindings/power/qcom,rpmhpd.h>
 #include <dt-bindings/soc/qcom,rpmh-rsc.h>
+#include <dt-bindings/thermal/thermal.h>
 
 / {
        interrupt-parent = <&intc>;
                        thermal-sensors = <&tsens0 9>;
 
                        trips {
+                               gpu_alert0: trip-point0 {
+                                       temperature = <105000>;
+                                       hysteresis = <5000>;
+                                       type = "passive";
+                               };
+
                                gpu-critical {
                                        temperature = <115000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                        };
+
+                       cooling-maps {
+                               map0 {
+                                       trip = <&gpu_alert0>;
+                                       cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                               };
+                       };
                };
 
                q6-hvx-thermal {