Commit 36fd56ab authored by Konrad Dybcio's avatar Konrad Dybcio Committed by Bjorn Andersson

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

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: 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-10-fda30c57e353@linaro.orgSigned-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent 43c925e4
...@@ -2038,6 +2038,7 @@ gpu: gpu@3d00000 { ...@@ -2038,6 +2038,7 @@ gpu: gpu@3d00000 {
operating-points-v2 = <&gpu_opp_table>; operating-points-v2 = <&gpu_opp_table>;
qcom,gmu = <&gmu>; qcom,gmu = <&gmu>;
#cooling-cells = <2>;
status = "disabled"; status = "disabled";
...@@ -4892,6 +4893,13 @@ gpu-top-thermal { ...@@ -4892,6 +4893,13 @@ gpu-top-thermal {
polling-delay = <0>; polling-delay = <0>;
thermal-sensors = <&tsens0 14>; thermal-sensors = <&tsens0 14>;
cooling-maps {
map0 {
trip = <&gpu_top_alert0>;
cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
};
};
trips { trips {
thermal-engine-config { thermal-engine-config {
temperature = <125000>; temperature = <125000>;
...@@ -4911,7 +4919,7 @@ reset-mon-cfg { ...@@ -4911,7 +4919,7 @@ reset-mon-cfg {
type = "passive"; type = "passive";
}; };
gpu0_tj_cfg: tj-cfg { gpu_top_alert0: trip-point0 {
temperature = <95000>; temperature = <95000>;
hysteresis = <5000>; hysteresis = <5000>;
type = "passive"; type = "passive";
...@@ -4924,6 +4932,13 @@ gpu-bottom-thermal { ...@@ -4924,6 +4932,13 @@ gpu-bottom-thermal {
polling-delay = <0>; polling-delay = <0>;
thermal-sensors = <&tsens0 15>; thermal-sensors = <&tsens0 15>;
cooling-maps {
map0 {
trip = <&gpu_bottom_alert0>;
cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
};
};
trips { trips {
thermal-engine-config { thermal-engine-config {
temperature = <125000>; temperature = <125000>;
...@@ -4943,7 +4958,7 @@ reset-mon-cfg { ...@@ -4943,7 +4958,7 @@ reset-mon-cfg {
type = "passive"; type = "passive";
}; };
gpu1_tj_cfg: tj-cfg { gpu_bottom_alert0: trip-point0 {
temperature = <95000>; temperature = <95000>;
hysteresis = <5000>; hysteresis = <5000>;
type = "passive"; type = "passive";
......
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