arm64: dts: qcom: sdm630: Hook up GPU cooling device
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Tue, 2 Jan 2024 13:34:16 +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-12-fda30c57e353@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sdm630.dtsi

index 940901474804b030de759635c1f24765be94170b..dc7be31192cabfcfbe633d06ce3f0c01d915cd9a 100644 (file)
@@ -13,6 +13,7 @@
 #include <dt-bindings/power/qcom-rpmpd.h>
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/thermal/thermal.h>
 #include <dt-bindings/soc/qcom,apr.h>
 
 / {
                        interconnect-names = "gfx-mem";
 
                        operating-points-v2 = <&gpu_sdm630_opp_table>;
+                       #cooling-cells = <2>;
 
                        status = "disabled";
 
 
                        thermal-sensors = <&tsens 8>;
 
+                       cooling-maps {
+                               map0 {
+                                       trip = <&gpu_alert0>;
+                                       cooling-device = <&adreno_gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                               };
+                       };
+
                        trips {
                                gpu_alert0: trip-point0 {
                                        temperature = <90000>;