]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: qcs8300: Add GPU cooling
authorGaurav Kohli <quic_gkohli@quicinc.com>
Wed, 3 Sep 2025 07:19:55 +0000 (12:49 +0530)
committerBjorn Andersson <andersson@kernel.org>
Tue, 13 Jan 2026 18:09:07 +0000 (12:09 -0600)
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 reaching 115°C.

Signed-off-by: Gaurav Kohli <quic_gkohli@quicinc.com>
Signed-off-by: Akhil P Oommen <akhilpo@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250903-a623-gpu-support-v5-4-5398585e2981@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/monaco.dtsi

index 83780cd3dc8ae3593f93794e3f95fc84ccab1f07..5d2df4305d1c1c450c7be53614da9d8c08123e66 100644 (file)
                        thermal-sensors = <&tsens0 5>;
 
                        trips {
+                               gpuss0_alert0: trip-point0 {
+                                       temperature = <115000>;
+                                       hysteresis = <5000>;
+                                       type = "passive";
+                               };
+
                                gpuss0-critical {
                                        temperature = <125000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                        };
+
+                       cooling-maps {
+                               map0 {
+                                       trip = <&gpuss0_alert0>;
+                                       cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                               };
+                       };
                };
 
                audio-thermal {
                        thermal-sensors = <&tsens1 5>;
 
                        trips {
+                               gpuss1_alert0: trip-point0 {
+                                       temperature = <115000>;
+                                       hysteresis = <5000>;
+                                       type = "passive";
+                               };
+
                                gpuss1-critical {
                                        temperature = <125000>;
                                        hysteresis = <1000>;
                                        type = "critical";
                                };
                        };
+
+                       cooling-maps {
+                               map0 {
+                                       trip = <&gpuss1_alert0>;
+                                       cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                               };
+                       };
                };
 
                video-thermal {