blob: 7135a3d04986c40f1fa03a4913d7426e453c3deb [file] [log] [blame]
Luca Weiss9b022442023-04-14 14:47:36 +02001#include <dt-bindings/thermal/thermal.h>
2
3&apsscc {
4 qcom,cpu-isolation {
5 compatible = "qcom,cpu-isolate";
6 cpu0_isolate: cpu0-isolate {
7 qcom,cpu = <&CPU0>;
8 #cooling-cells = <2>;
9 };
10
11 cpu1_isolate: cpu1-isolate {
12 qcom,cpu = <&CPU1>;
13 #cooling-cells = <2>;
14 };
15
16 cpu2_isolate: cpu2-isolate {
17 qcom,cpu = <&CPU2>;
18 #cooling-cells = <2>;
19 };
20
21 cpu3_isolate: cpu3-isolate {
22 qcom,cpu = <&CPU3>;
23 #cooling-cells = <2>;
24 };
25 };
26};
27
28&soc {
29 qmi-tmd-devices {
30 compatible = "qcom,qmi-cooling-devices";
31
32 modem {
33 qcom,instance-id = <0x0>;
34
35 modem_pa: modem_pa {
36 qcom,qmi-dev-name = "pa";
37 #cooling-cells = <2>;
38 };
39
40 modem_proc: modem_proc {
41 qcom,qmi-dev-name = "modem";
42 #cooling-cells = <2>;
43 };
44
45 modem_current: modem_current {
46 qcom,qmi-dev-name = "modem_current";
47 #cooling-cells = <2>;
48 };
49
50 modem_vdd: modem_vdd {
51 qcom,qmi-dev-name = "cpuv_restriction_cold";
52 #cooling-cells = <2>;
53 };
54 };
55 };
56};
57
58&thermal_zones {
59 aoss0-usr {
60 polling-delay-passive = <0>;
61 polling-delay = <0>;
62 thermal-governor = "user_space";
63 thermal-sensors = <&tsens0 0>;
64 trips {
65 active-config0 {
66 temperature = <125000>;
67 hysteresis = <1000>;
68 type = "passive";
69 };
70 };
71 };
72
73 mdm-core-usr {
74 polling-delay-passive = <0>;
75 polling-delay = <0>;
76 thermal-governor = "user_space";
77 thermal-sensors = <&tsens0 1>;
78 trips {
79 active-config0 {
80 temperature = <125000>;
81 hysteresis = <1000>;
82 type = "passive";
83 };
84 };
85 };
86
87 q6-usr {
88 polling-delay-passive = <0>;
89 polling-delay = <0>;
90 thermal-governor = "user_space";
91 thermal-sensors = <&tsens0 2>;
92 trips {
93 active-config0 {
94 temperature = <125000>;
95 hysteresis = <1000>;
96 type = "passive";
97 };
98 };
99 };
100
101 camera-usr {
102 polling-delay-passive = <0>;
103 polling-delay = <0>;
104 thermal-governor = "user_space";
105 thermal-sensors = <&tsens0 3>;
106 trips {
107 active-config0 {
108 temperature = <125000>;
109 hysteresis = <1000>;
110 type = "passive";
111 };
112 };
113 };
114
115 cpuss-usr {
116 polling-delay-passive = <0>;
117 polling-delay = <0>;
118 thermal-sensors = <&tsens0 4>;
119 thermal-governor = "user_space";
120 trips {
121 active-config0 {
122 temperature = <125000>;
123 hysteresis = <1000>;
124 type = "passive";
125 };
126 };
127 };
128
129 apc1-cpu0-usr {
130 polling-delay-passive = <0>;
131 polling-delay = <0>;
132 thermal-sensors = <&tsens0 5>;
133 thermal-governor = "user_space";
134 trips {
135 active-config0 {
136 temperature = <125000>;
137 hysteresis = <1000>;
138 type = "passive";
139 };
140 };
141 };
142
143 apc1-cpu1-usr {
144 polling-delay-passive = <0>;
145 polling-delay = <0>;
146 thermal-sensors = <&tsens0 6>;
147 thermal-governor = "user_space";
148 trips {
149 active-config0 {
150 temperature = <125000>;
151 hysteresis = <1000>;
152 type = "passive";
153 };
154 };
155 };
156
157 apc1-cpu2-usr {
158 polling-delay-passive = <0>;
159 polling-delay = <0>;
160 thermal-sensors = <&tsens0 7>;
161 thermal-governor = "user_space";
162 trips {
163 active-config0 {
164 temperature = <125000>;
165 hysteresis = <1000>;
166 type = "passive";
167 };
168 };
169 };
170
171 apc1-cpu3-usr {
172 polling-delay-passive = <0>;
173 polling-delay = <0>;
174 thermal-sensors = <&tsens0 8>;
175 thermal-governor = "user_space";
176 trips {
177 active-config0 {
178 temperature = <125000>;
179 hysteresis = <1000>;
180 type = "passive";
181 };
182 };
183 };
184
185 gpu0-usr {
186 polling-delay-passive = <0>;
187 polling-delay = <0>;
188 thermal-sensors = <&tsens0 9>;
189 thermal-governor = "user_space";
190 trips {
191 active-config0 {
192 temperature = <125000>;
193 hysteresis = <1000>;
194 type = "passive";
195 };
196 };
197 };
198
199 penta-cpu-max-step {
200 polling-delay-passive = <50>;
201 polling-delay = <100>;
202 thermal-governor = "step_wise";
203 trips {
204 cpu_trip:cpu-trip {
205 temperature = <85000>;
206 hysteresis = <0>;
207 type = "passive";
208 };
209 };
210
211 cooling-maps {
212 cpu0_cdev {
213 trip = <&cpu_trip>;
214 cooling-device =
215 <&CPU0 THERMAL_NO_LIMIT
216 THERMAL_NO_LIMIT>;
217 };
218 };
219 };
220
221 gpu0-step {
222 polling-delay-passive = <250>;
223 polling-delay = <0>;
224 thermal-sensors = <&tsens0 9>;
225 thermal-governor = "step_wise";
226 trips {
227 gpu_step_trip: gpu-step-trip {
228 temperature = <95000>;
229 hysteresis = <0>;
230 type = "passive";
231 };
232 };
233
234 cooling-maps {
235 gpu_cdev0 {
236 trip = <&gpu_step_trip>;
237 cooling-device =
238 <&msm_gpu THERMAL_NO_LIMIT
239 THERMAL_NO_LIMIT>;
240 };
241 };
242 };
243
244 apc1-cpu0-step {
245 polling-delay-passive = <0>;
246 polling-delay = <0>;
247 thermal-sensors = <&tsens0 5>;
248 thermal-governor = "step_wise";
249 trips {
250 apc1_cpu0_trip: apc1-cpu0-trip {
251 temperature = <105000>;
252 hysteresis = <15000>;
253 type = "passive";
254 };
255 };
256
257 cooling-maps {
258 cpu0_cdev {
259 trip = <&apc1_cpu0_trip>;
260 cooling-device =
261 <&cpu0_isolate 1 1>;
262 };
263 };
264 };
265
266 apc1-cpu1-step {
267 polling-delay-passive = <0>;
268 polling-delay = <0>;
269 thermal-sensors = <&tsens0 6>;
270 thermal-governor = "step_wise";
271 trips {
272 apc1_cpu1_trip: apc1-cpu1--trip {
273 temperature = <105000>;
274 hysteresis = <15000>;
275 type = "passive";
276 };
277 };
278
279 cooling-maps {
280 cpu1_cdev {
281 trip = <&apc1_cpu1_trip>;
282 cooling-device =
283 <&cpu1_isolate 1 1>;
284 };
285 };
286 };
287
288 apc1-cpu2-step {
289 polling-delay-passive = <0>;
290 polling-delay = <0>;
291 thermal-sensors = <&tsens0 7>;
292 thermal-governor = "step_wise";
293 trips {
294 apc1_cpu2_trip: apc1-cpu2-trip {
295 temperature = <105000>;
296 hysteresis = <15000>;
297 type = "passive";
298 };
299 };
300
301 cooling-maps {
302 cpu2_cdev {
303 trip = <&apc1_cpu2_trip>;
304 cooling-device =
305 <&cpu2_isolate 1 1>;
306 };
307 };
308 };
309
310 apc1-cpu3-step {
311 polling-delay-passive = <0>;
312 polling-delay = <0>;
313 thermal-sensors = <&tsens0 8>;
314 thermal-governor = "step_wise";
315 trips {
316 apc1_cpu3_trip: apc1-cpu3-trip {
317 temperature = <105000>;
318 hysteresis = <15000>;
319 type = "passive";
320 };
321 };
322
323 cooling-maps {
324 cpu3_cdev {
325 trip = <&apc1_cpu3_trip>;
326 cooling-device =
327 <&cpu3_isolate 1 1>;
328 };
329 };
330 };
331
332 aoss0-lowf {
333 polling-delay-passive = <0>;
334 polling-delay = <0>;
335 thermal-governor = "low_limits_floor";
336 thermal-sensors = <&tsens0 0>;
337 tracks-low;
338 trips {
339 aoss_lowf: aoss-lowf {
340 temperature = <5000>;
341 hysteresis = <5000>;
342 type = "passive";
343 };
344 };
345
346 cooling-maps {
347 cpu0_cdev {
348 trip = <&aoss_lowf>;
349 cooling-device = <&CPU0 (THERMAL_MAX_LIMIT-2)
350 (THERMAL_MAX_LIMIT-2)>;
351 };
352
353 cx_vdd_cdev {
354 trip = <&aoss_lowf>;
355 cooling-device = <&pm8937_cx_cdev 0 0>;
356 };
357
358 modem_vdd_cdev {
359 trip = <&aoss_lowf>;
360 cooling-device = <&modem_vdd 0 0>;
361 };
362 };
363 };
364};