ipq807x: rename target to qualcommax
[openwrt/staging/nbd.git] / target / linux / qualcommax / patches-6.1 / 0134-arm64-dts-qcom-ipq8074-add-critical-thermal-trips.patch
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
5
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
9 severe overheating.
10
11 Signed-off-by: Robert Marko <robimarko@gmail.com>
12 ---
13 arch/arm64/boot/dts/qcom/ipq8074.dtsi | 96 +++++++++++++++++++++++++++
14 1 file changed, 96 insertions(+)
15
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>;
20
21 thermal-sensors = <&tsens 4>;
22 +
23 + trips {
24 + nss-top-crit {
25 + temperature = <110000>;
26 + hysteresis = <1000>;
27 + type = "critical";
28 + };
29 + };
30 };
31
32 nss0-thermal {
33 @@ -1300,6 +1308,14 @@
34 polling-delay = <1000>;
35
36 thermal-sensors = <&tsens 5>;
37 +
38 + trips {
39 + nss-0-crit {
40 + temperature = <110000>;
41 + hysteresis = <1000>;
42 + type = "critical";
43 + };
44 + };
45 };
46
47 nss1-thermal {
48 @@ -1307,6 +1323,14 @@
49 polling-delay = <1000>;
50
51 thermal-sensors = <&tsens 6>;
52 +
53 + trips {
54 + nss-1-crit {
55 + temperature = <110000>;
56 + hysteresis = <1000>;
57 + type = "critical";
58 + };
59 + };
60 };
61
62 wcss-phya0-thermal {
63 @@ -1314,6 +1338,14 @@
64 polling-delay = <1000>;
65
66 thermal-sensors = <&tsens 7>;
67 +
68 + trips {
69 + wcss-phya0-crit {
70 + temperature = <110000>;
71 + hysteresis = <1000>;
72 + type = "critical";
73 + };
74 + };
75 };
76
77 wcss-phya1-thermal {
78 @@ -1321,6 +1353,14 @@
79 polling-delay = <1000>;
80
81 thermal-sensors = <&tsens 8>;
82 +
83 + trips {
84 + wcss-phya1-crit {
85 + temperature = <110000>;
86 + hysteresis = <1000>;
87 + type = "critical";
88 + };
89 + };
90 };
91
92 cpu0_thermal: cpu0-thermal {
93 @@ -1328,6 +1368,14 @@
94 polling-delay = <1000>;
95
96 thermal-sensors = <&tsens 9>;
97 +
98 + trips {
99 + cpu0-crit {
100 + temperature = <110000>;
101 + hysteresis = <1000>;
102 + type = "critical";
103 + };
104 + };
105 };
106
107 cpu1_thermal: cpu1-thermal {
108 @@ -1335,6 +1383,14 @@
109 polling-delay = <1000>;
110
111 thermal-sensors = <&tsens 10>;
112 +
113 + trips {
114 + cpu1-crit {
115 + temperature = <110000>;
116 + hysteresis = <1000>;
117 + type = "critical";
118 + };
119 + };
120 };
121
122 cpu2_thermal: cpu2-thermal {
123 @@ -1342,6 +1398,14 @@
124 polling-delay = <1000>;
125
126 thermal-sensors = <&tsens 11>;
127 +
128 + trips {
129 + cpu2-crit {
130 + temperature = <110000>;
131 + hysteresis = <1000>;
132 + type = "critical";
133 + };
134 + };
135 };
136
137 cpu3_thermal: cpu3-thermal {
138 @@ -1349,6 +1413,14 @@
139 polling-delay = <1000>;
140
141 thermal-sensors = <&tsens 12>;
142 +
143 + trips {
144 + cpu3-crit {
145 + temperature = <110000>;
146 + hysteresis = <1000>;
147 + type = "critical";
148 + };
149 + };
150 };
151
152 cluster_thermal: cluster-thermal {
153 @@ -1356,6 +1428,14 @@
154 polling-delay = <1000>;
155
156 thermal-sensors = <&tsens 13>;
157 +
158 + trips {
159 + cluster-crit {
160 + temperature = <110000>;
161 + hysteresis = <1000>;
162 + type = "critical";
163 + };
164 + };
165 };
166
167 wcss-phyb0-thermal {
168 @@ -1363,6 +1443,14 @@
169 polling-delay = <1000>;
170
171 thermal-sensors = <&tsens 14>;
172 +
173 + trips {
174 + wcss-phyb0-crit {
175 + temperature = <110000>;
176 + hysteresis = <1000>;
177 + type = "critical";
178 + };
179 + };
180 };
181
182 wcss-phyb1-thermal {
183 @@ -1370,6 +1458,14 @@
184 polling-delay = <1000>;
185
186 thermal-sensors = <&tsens 15>;
187 +
188 + trips {
189 + wcss-phyb1-crit {
190 + temperature = <110000>;
191 + hysteresis = <1000>;
192 + type = "critical";
193 + };
194 + };
195 };
196 };
197 };