arm64: dts: qcom: sm8450: Hook up GPU cooling device
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Tue, 2 Jan 2024 13:34:14 +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. Also, update the trip point label
to be more telling, while at it.

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-10-fda30c57e353@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sm8450.dtsi

index ec5c02171af678d234fbd4092551a535af27898e..f37bacc65ef8e24cb9518a0e3c47efdf56df222a 100644 (file)
                        operating-points-v2 = <&gpu_opp_table>;
 
                        qcom,gmu = <&gmu>;
+                       #cooling-cells = <2>;
 
                        status = "disabled";
 
                        polling-delay = <0>;
                        thermal-sensors = <&tsens0 14>;
 
+                       cooling-maps {
+                               map0 {
+                                       trip = <&gpu_top_alert0>;
+                                       cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                               };
+                       };
+
                        trips {
                                thermal-engine-config {
                                        temperature = <125000>;
                                        type = "passive";
                                };
 
-                               gpu0_tj_cfg: tj-cfg {
+                               gpu_top_alert0: trip-point0 {
                                        temperature = <95000>;
                                        hysteresis = <5000>;
                                        type = "passive";
                        polling-delay = <0>;
                        thermal-sensors = <&tsens0 15>;
 
+                       cooling-maps {
+                               map0 {
+                                       trip = <&gpu_bottom_alert0>;
+                                       cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                               };
+                       };
+
                        trips {
                                thermal-engine-config {
                                        temperature = <125000>;
                                        type = "passive";
                                };
 
-                               gpu1_tj_cfg: tj-cfg {
+                               gpu_bottom_alert0: trip-point0 {
                                        temperature = <95000>;
                                        hysteresis = <5000>;
                                        type = "passive";