1 From 56d3067cb694ba60d654e7f5ef231b6fabc4697f Mon Sep 17 00:00:00 2001
2 From: Robert Marko <robimarko@gmail.com>
3 Date: Wed, 7 Jun 2023 20:44:48 +0200
4 Subject: [PATCH] arm64: dts: qcom: ipq8074: add critical thermal trips
6 According to bindings, thermal zones must have associated trips as well.
7 Since we currently dont have CPUFreq support and thus no passive cooling
8 lets start by defining critical trips to protect the devices against
11 Signed-off-by: Robert Marko <robimarko@gmail.com>
12 Signed-off-by: Bjorn Andersson <andersson@kernel.org>
13 Link: https://lore.kernel.org/r/20230607184448.2512179-1-robimarko@gmail.com
15 arch/arm64/boot/dts/qcom/ipq8074.dtsi | 96 +++++++++++++++++++++++++++
16 1 file changed, 96 insertions(+)
18 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi
19 +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
21 polling-delay = <1000>;
23 thermal-sensors = <&tsens 4>;
27 + temperature = <110000>;
28 + hysteresis = <1000>;
36 polling-delay = <1000>;
38 thermal-sensors = <&tsens 5>;
42 + temperature = <110000>;
43 + hysteresis = <1000>;
51 polling-delay = <1000>;
53 thermal-sensors = <&tsens 6>;
57 + temperature = <110000>;
58 + hysteresis = <1000>;
66 polling-delay = <1000>;
68 thermal-sensors = <&tsens 7>;
72 + temperature = <110000>;
73 + hysteresis = <1000>;
81 polling-delay = <1000>;
83 thermal-sensors = <&tsens 8>;
87 + temperature = <110000>;
88 + hysteresis = <1000>;
94 cpu0_thermal: cpu0-thermal {
96 polling-delay = <1000>;
98 thermal-sensors = <&tsens 9>;
102 + temperature = <110000>;
103 + hysteresis = <1000>;
109 cpu1_thermal: cpu1-thermal {
111 polling-delay = <1000>;
113 thermal-sensors = <&tsens 10>;
117 + temperature = <110000>;
118 + hysteresis = <1000>;
124 cpu2_thermal: cpu2-thermal {
125 @@ -945,6 +1001,14 @@
126 polling-delay = <1000>;
128 thermal-sensors = <&tsens 11>;
132 + temperature = <110000>;
133 + hysteresis = <1000>;
139 cpu3_thermal: cpu3-thermal {
140 @@ -952,6 +1016,14 @@
141 polling-delay = <1000>;
143 thermal-sensors = <&tsens 12>;
147 + temperature = <110000>;
148 + hysteresis = <1000>;
154 cluster_thermal: cluster-thermal {
155 @@ -959,6 +1031,14 @@
156 polling-delay = <1000>;
158 thermal-sensors = <&tsens 13>;
162 + temperature = <110000>;
163 + hysteresis = <1000>;
170 @@ -966,6 +1046,14 @@
171 polling-delay = <1000>;
173 thermal-sensors = <&tsens 14>;
177 + temperature = <110000>;
178 + hysteresis = <1000>;
185 @@ -973,6 +1061,14 @@
186 polling-delay = <1000>;
188 thermal-sensors = <&tsens 15>;
192 + temperature = <110000>;
193 + hysteresis = <1000>;