Commit b39f266c authored by Manaf Meethalavalappu Pallikunhi's avatar Manaf Meethalavalappu Pallikunhi Committed by Bjorn Andersson

arm64: dts: qcom: sc7280: Add gpu thermal zone cooling support

Add cooling-cells property and the cooling maps for the gpu thermal
zones to support GPU thermal cooling.
Signed-off-by: default avatarManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
Signed-off-by: default avatarAkhil P Oommen <akhilpo@codeaurora.org>
Reviewed-by: default avatarStephen Boyd <swboyd@chromium.org>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/1628691835-36958-2-git-send-email-akhilpo@codeaurora.org
parent 96c47197
...@@ -686,7 +686,7 @@ lpass_ag_noc: interconnect@3c40000 { ...@@ -686,7 +686,7 @@ lpass_ag_noc: interconnect@3c40000 {
qcom,bcm-voters = <&apps_bcm_voter>; qcom,bcm-voters = <&apps_bcm_voter>;
}; };
gpu@3d00000 { gpu: gpu@3d00000 {
compatible = "qcom,adreno-635.0", "qcom,adreno"; compatible = "qcom,adreno-635.0", "qcom,adreno";
#stream-id-cells = <16>; #stream-id-cells = <16>;
reg = <0 0x03d00000 0 0x40000>, reg = <0 0x03d00000 0 0x40000>,
...@@ -701,6 +701,7 @@ gpu@3d00000 { ...@@ -701,6 +701,7 @@ gpu@3d00000 {
qcom,gmu = <&gmu>; qcom,gmu = <&gmu>;
interconnects = <&gem_noc MASTER_GFX3D 0 &mc_virt SLAVE_EBI1 0>; interconnects = <&gem_noc MASTER_GFX3D 0 &mc_virt SLAVE_EBI1 0>;
interconnect-names = "gfx-mem"; interconnect-names = "gfx-mem";
#cooling-cells = <2>;
gpu_opp_table: opp-table { gpu_opp_table: opp-table {
compatible = "operating-points-v2"; compatible = "operating-points-v2";
...@@ -2617,16 +2618,16 @@ cpuss1_crit: cluster0-crit { ...@@ -2617,16 +2618,16 @@ cpuss1_crit: cluster0-crit {
}; };
gpuss0-thermal { gpuss0-thermal {
polling-delay-passive = <0>; polling-delay-passive = <100>;
polling-delay = <0>; polling-delay = <0>;
thermal-sensors = <&tsens1 1>; thermal-sensors = <&tsens1 1>;
trips { trips {
gpuss0_alert0: trip-point0 { gpuss0_alert0: trip-point0 {
temperature = <90000>; temperature = <95000>;
hysteresis = <2000>; hysteresis = <2000>;
type = "hot"; type = "passive";
}; };
gpuss0_crit: gpuss0-crit { gpuss0_crit: gpuss0-crit {
...@@ -2635,19 +2636,26 @@ gpuss0_crit: gpuss0-crit { ...@@ -2635,19 +2636,26 @@ gpuss0_crit: gpuss0-crit {
type = "critical"; type = "critical";
}; };
}; };
cooling-maps {
map0 {
trip = <&gpuss0_alert0>;
cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
};
};
}; };
gpuss1-thermal { gpuss1-thermal {
polling-delay-passive = <0>; polling-delay-passive = <100>;
polling-delay = <0>; polling-delay = <0>;
thermal-sensors = <&tsens1 2>; thermal-sensors = <&tsens1 2>;
trips { trips {
gpuss1_alert0: trip-point0 { gpuss1_alert0: trip-point0 {
temperature = <90000>; temperature = <95000>;
hysteresis = <2000>; hysteresis = <2000>;
type = "hot"; type = "passive";
}; };
gpuss1_crit: gpuss1-crit { gpuss1_crit: gpuss1-crit {
...@@ -2656,6 +2664,13 @@ gpuss1_crit: gpuss1-crit { ...@@ -2656,6 +2664,13 @@ gpuss1_crit: gpuss1-crit {
type = "critical"; type = "critical";
}; };
}; };
cooling-maps {
map0 {
trip = <&gpuss1_alert0>;
cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
};
};
}; };
nspss0-thermal { nspss0-thermal {
......
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