1 From 145bbf2b88990ef3ff00ee541bb7662008683c16 Mon Sep 17 00:00:00 2001
2 From: Robert Marko <robimarko@gmail.com>
3 Date: Wed, 7 Jun 2023 20:26:26 +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>
13 arch/arm64/boot/dts/qcom/ipq8074.dtsi | 96 +++++++++++++++++++++++++++
14 1 file changed, 96 insertions(+)
16 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi
17 +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
18 @@ -1293,6 +1293,14 @@
19 polling-delay = <1000>;
21 thermal-sensors = <&tsens 4>;
25 + temperature = <110000>;
26 + hysteresis = <1000>;
33 @@ -1300,6 +1308,14 @@
34 polling-delay = <1000>;
36 thermal-sensors = <&tsens 5>;
40 + temperature = <110000>;
41 + hysteresis = <1000>;
48 @@ -1307,6 +1323,14 @@
49 polling-delay = <1000>;
51 thermal-sensors = <&tsens 6>;
55 + temperature = <110000>;
56 + hysteresis = <1000>;
63 @@ -1314,6 +1338,14 @@
64 polling-delay = <1000>;
66 thermal-sensors = <&tsens 7>;
70 + temperature = <110000>;
71 + hysteresis = <1000>;
78 @@ -1321,6 +1353,14 @@
79 polling-delay = <1000>;
81 thermal-sensors = <&tsens 8>;
85 + temperature = <110000>;
86 + hysteresis = <1000>;
92 cpu0_thermal: cpu0-thermal {
93 @@ -1328,6 +1368,14 @@
94 polling-delay = <1000>;
96 thermal-sensors = <&tsens 9>;
100 + temperature = <110000>;
101 + hysteresis = <1000>;
107 cpu1_thermal: cpu1-thermal {
108 @@ -1335,6 +1383,14 @@
109 polling-delay = <1000>;
111 thermal-sensors = <&tsens 10>;
115 + temperature = <110000>;
116 + hysteresis = <1000>;
122 cpu2_thermal: cpu2-thermal {
123 @@ -1342,6 +1398,14 @@
124 polling-delay = <1000>;
126 thermal-sensors = <&tsens 11>;
130 + temperature = <110000>;
131 + hysteresis = <1000>;
137 cpu3_thermal: cpu3-thermal {
138 @@ -1349,6 +1413,14 @@
139 polling-delay = <1000>;
141 thermal-sensors = <&tsens 12>;
145 + temperature = <110000>;
146 + hysteresis = <1000>;
152 cluster_thermal: cluster-thermal {
153 @@ -1356,6 +1428,14 @@
154 polling-delay = <1000>;
156 thermal-sensors = <&tsens 13>;
160 + temperature = <110000>;
161 + hysteresis = <1000>;
168 @@ -1363,6 +1443,14 @@
169 polling-delay = <1000>;
171 thermal-sensors = <&tsens 14>;
175 + temperature = <110000>;
176 + hysteresis = <1000>;
183 @@ -1370,6 +1458,14 @@
184 polling-delay = <1000>;
186 thermal-sensors = <&tsens 15>;
190 + temperature = <110000>;
191 + hysteresis = <1000>;