Skip to content

Commit

Permalink
arm64: dts: qcom: sdm630: Hook up GPU cooling device
Browse files Browse the repository at this point in the history
In order to allow for throttling the GPU, hook up the cooling device
to the respective thermal zones.

Signed-off-by: Konrad Dybcio <[email protected]>
Reviewed-by: Dmitry Baryshkov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bjorn Andersson <[email protected]>
  • Loading branch information
konradybcio authored and minlexx committed Apr 25, 2024
1 parent e0c3b64 commit 918ec8a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions arch/arm64/boot/dts/qcom/sdm630.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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>

/ {
Expand Down Expand Up @@ -1110,6 +1111,7 @@
interconnect-names = "gfx-mem";

operating-points-v2 = <&gpu_sdm630_opp_table>;
#cooling-cells = <2>;

status = "disabled";

Expand Down Expand Up @@ -2612,6 +2614,13 @@

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>;
Expand Down

0 comments on commit 918ec8a

Please sign in to comment.