Commit ac68c7d3 authored by Konrad Dybcio's avatar Konrad Dybcio Committed by Bjorn Andersson

arm64: dts: qcom: sdm630: Hook up GPU cooling device

In order to allow for throttling the GPU, hook up the cooling device
to the respective thermal zones.
Signed-off-by: default avatarKonrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20240102-topic-gpu_cooling-v1-12-fda30c57e353@linaro.orgSigned-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent 6a464089
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include <dt-bindings/power/qcom-rpmpd.h> #include <dt-bindings/power/qcom-rpmpd.h>
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/thermal/thermal.h>
#include <dt-bindings/soc/qcom,apr.h> #include <dt-bindings/soc/qcom,apr.h>
/ { / {
...@@ -1100,6 +1101,7 @@ adreno_gpu: gpu@5000000 { ...@@ -1100,6 +1101,7 @@ adreno_gpu: gpu@5000000 {
interconnect-names = "gfx-mem"; interconnect-names = "gfx-mem";
operating-points-v2 = <&gpu_sdm630_opp_table>; operating-points-v2 = <&gpu_sdm630_opp_table>;
#cooling-cells = <2>;
status = "disabled"; status = "disabled";
...@@ -2560,6 +2562,13 @@ gpu-thermal { ...@@ -2560,6 +2562,13 @@ gpu-thermal {
thermal-sensors = <&tsens 8>; thermal-sensors = <&tsens 8>;
cooling-maps {
map0 {
trip = <&gpu_alert0>;
cooling-device = <&adreno_gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
};
};
trips { trips {
gpu_alert0: trip-point0 { gpu_alert0: trip-point0 {
temperature = <90000>; temperature = <90000>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment