blob: 2148cc94f840d03492370d9fdbb20782e024a6b3 [file] [log] [blame]
Ram Chandrasekarc6b9e8c2017-10-11 15:52:31 -06001/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#include <dt-bindings/thermal/thermal.h>
14
15&soc {
16 qmi-tmd-devices {
17 compatible = "qcom,qmi_cooling_devices";
18
19 modem {
20 qcom,instance-id = <0x0>;
21
22 modem_pa: modem_pa {
23 qcom,qmi-dev-name = "pa";
24 #cooling-cells = <2>;
25 };
26
27 modem_proc: modem_proc {
28 qcom,qmi-dev-name = "modem";
29 #cooling-cells = <2>;
30 };
31
32 modem_current: modem_current {
33 qcom,qmi-dev-name = "modem_current";
34 #cooling-cells = <2>;
35 };
36
37 modem_skin: modem_skin {
38 qcom,qmi-dev-name = "modem_skin";
39 #cooling-cells = <2>;
40 };
41
42 modem_vdd: modem_vdd {
43 qcom,qmi-dev-name = "cpuv_restriction_cold";
44 #cooling-cells = <2>;
45 };
46 };
47
48 adsp {
49 qcom,instance-id = <0x1>;
50
51 adsp_vdd: adsp_vdd {
52 qcom,qmi-dev-name = "cpuv_restriction_cold";
53 #cooling-cells = <2>;
54 };
55 };
56 };
57};
58
59&thermal_zones {
60 aoss-usr {
61 polling-delay-passive = <0>;
62 polling-delay = <0>;
63 thermal-governor = "user_space";
64 thermal-sensors = <&tsens0 0>;
65 trips {
66 active-config0 {
67 temperature = <125000>;
68 hysteresis = <1000>;
69 type = "passive";
70 };
71 };
72 };
73
74 mdm-q6-usr {
75 polling-delay-passive = <0>;
76 polling-delay = <0>;
77 thermal-governor = "user_space";
78 thermal-sensors = <&tsens0 1>;
79 trips {
80 active-config0 {
81 temperature = <125000>;
82 hysteresis = <1000>;
83 type = "passive";
84 };
85 };
86 };
87
88 ddrss-usr {
89 polling-delay-passive = <0>;
90 polling-delay = <0>;
91 thermal-governor = "user_space";
92 thermal-sensors = <&tsens0 2>;
93 trips {
94 active-config0 {
95 temperature = <125000>;
96 hysteresis = <1000>;
97 type = "passive";
98 };
99 };
100 };
101
102 cpu-usr {
103 polling-delay-passive = <0>;
104 polling-delay = <0>;
105 thermal-governor = "user_space";
106 thermal-sensors = <&tsens0 3>;
107 trips {
108 active-config0 {
109 temperature = <125000>;
110 hysteresis = <1000>;
111 type = "passive";
112 };
113 };
114 };
115
116 mdm-core-usr {
117 polling-delay-passive = <0>;
118 polling-delay = <0>;
119 thermal-governor = "user_space";
120 thermal-sensors = <&tsens0 4>;
121 trips {
122 active-config0 {
123 temperature = <125000>;
124 hysteresis = <1000>;
125 type = "passive";
126 };
127 };
128 };
129
130 mdm-vpe-usr {
131 polling-delay-passive = <0>;
132 polling-delay = <0>;
133 thermal-governor = "user_space";
134 thermal-sensors = <&tsens0 5>;
135 trips {
136 active-config0 {
137 temperature = <125000>;
138 hysteresis = <1000>;
139 type = "passive";
140 };
141 };
142 };
143
144 aoss-lowf {
145 polling-delay-passive = <0>;
146 polling-delay = <0>;
147 thermal-governor = "low_limits_floor";
148 thermal-sensors = <&tsens0 0>;
149 tracks-low;
150 trips {
151 aoss_trip: aoss-trip {
152 temperature = <5000>;
153 hysteresis = <5000>;
154 type = "passive";
155 };
156 };
157 cooling-maps {
158 modem_vdd_cdev {
159 trip = <&aoss_trip>;
160 cooling-device = <&modem_vdd 0 0>;
161 };
162 adsp_vdd_cdev {
163 trip = <&aoss_trip>;
164 cooling-device = <&adsp_vdd 0 0>;
165 };
Ram Chandrasekare03e5ef2017-12-05 14:48:34 -0700166 cx_vdd_cdev {
167 trip = <&aoss_trip>;
168 cooling-device = <&cx_cdev 0 0>;
169 };
170 mx_vdd_cdev {
171 trip = <&aoss_trip>;
172 cooling-device = <&mx_cdev 0 0>;
173 };
Ram Chandrasekarc6b9e8c2017-10-11 15:52:31 -0600174 };
175 };
176
177 mdm-q6-lowf {
178 polling-delay-passive = <0>;
179 polling-delay = <0>;
180 thermal-governor = "low_limits_floor";
181 thermal-sensors = <&tsens0 1>;
182 tracks-low;
183 trips {
184 mdm_q6_trip: mdm-q6-trip {
185 temperature = <5000>;
186 hysteresis = <5000>;
187 type = "passive";
188 };
189 };
190 cooling-maps {
191 modem_vdd_cdev {
192 trip = <&mdm_q6_trip>;
193 cooling-device = <&modem_vdd 0 0>;
194 };
195 adsp_vdd_cdev {
196 trip = <&mdm_q6_trip>;
197 cooling-device = <&adsp_vdd 0 0>;
198 };
Ram Chandrasekare03e5ef2017-12-05 14:48:34 -0700199 cx_vdd_cdev {
200 trip = <&mdm_q6_trip>;
201 cooling-device = <&cx_cdev 0 0>;
202 };
203 mx_vdd_cdev {
204 trip = <&mdm_q6_trip>;
205 cooling-device = <&mx_cdev 0 0>;
206 };
Ram Chandrasekarc6b9e8c2017-10-11 15:52:31 -0600207 };
208 };
209
210 ddrss-lowf {
211 polling-delay-passive = <0>;
212 polling-delay = <0>;
213 thermal-governor = "low_limits_floor";
214 thermal-sensors = <&tsens0 2>;
215 tracks-low;
216 trips {
217 ddrss_trip: ddrss-trip {
218 temperature = <5000>;
219 hysteresis = <5000>;
220 type = "passive";
221 };
222 };
223 cooling-maps {
224 modem_vdd_cdev {
225 trip = <&ddrss_trip>;
226 cooling-device = <&modem_vdd 0 0>;
227 };
228 adsp_vdd_cdev {
229 trip = <&ddrss_trip>;
230 cooling-device = <&adsp_vdd 0 0>;
231 };
Ram Chandrasekare03e5ef2017-12-05 14:48:34 -0700232 cx_vdd_cdev {
233 trip = <&ddrss_trip>;
234 cooling-device = <&cx_cdev 0 0>;
235 };
236 mx_vdd_cdev {
237 trip = <&ddrss_trip>;
238 cooling-device = <&mx_cdev 0 0>;
239 };
Ram Chandrasekarc6b9e8c2017-10-11 15:52:31 -0600240 };
241 };
242
243 cpu-lowf {
244 polling-delay-passive = <0>;
245 polling-delay = <0>;
246 thermal-governor = "low_limits_floor";
247 thermal-sensors = <&tsens0 3>;
248 tracks-low;
249 trips {
250 cpu_trip: cpu-trip {
251 temperature = <5000>;
252 hysteresis = <5000>;
253 type = "passive";
254 };
255 };
256 cooling-maps {
257 modem_vdd_cdev {
258 trip = <&cpu_trip>;
259 cooling-device = <&modem_vdd 0 0>;
260 };
261 adsp_vdd_cdev {
262 trip = <&cpu_trip>;
263 cooling-device = <&adsp_vdd 0 0>;
264 };
Ram Chandrasekare03e5ef2017-12-05 14:48:34 -0700265 cx_vdd_cdev {
266 trip = <&cpu_trip>;
267 cooling-device = <&cx_cdev 0 0>;
268 };
269 mx_vdd_cdev {
270 trip = <&cpu_trip>;
271 cooling-device = <&mx_cdev 0 0>;
272 };
Ram Chandrasekarc6b9e8c2017-10-11 15:52:31 -0600273 };
274 };
275
276 mdm-core-lowf {
277 polling-delay-passive = <0>;
278 polling-delay = <0>;
279 thermal-governor = "low_limits_floor";
280 thermal-sensors = <&tsens0 4>;
281 tracks-low;
282 trips {
283 mdm_trip: mdm-trip {
284 temperature = <5000>;
285 hysteresis = <5000>;
286 type = "passive";
287 };
288 };
289 cooling-maps {
290 modem_vdd_cdev {
291 trip = <&mdm_trip>;
292 cooling-device = <&modem_vdd 0 0>;
293 };
294 adsp_vdd_cdev {
295 trip = <&mdm_trip>;
296 cooling-device = <&adsp_vdd 0 0>;
297 };
Ram Chandrasekare03e5ef2017-12-05 14:48:34 -0700298 cx_vdd_cdev {
299 trip = <&mdm_trip>;
300 cooling-device = <&cx_cdev 0 0>;
301 };
302 mx_vdd_cdev {
303 trip = <&mdm_trip>;
304 cooling-device = <&mx_cdev 0 0>;
305 };
Ram Chandrasekarc6b9e8c2017-10-11 15:52:31 -0600306 };
307 };
308
309 mdm-vpe-lowf {
310 polling-delay-passive = <0>;
311 polling-delay = <0>;
312 thermal-governor = "low_limits_floor";
313 thermal-sensors = <&tsens0 5>;
314 tracks-low;
315 trips {
316 mdm_vpe_trip: mdm-vpe-trip {
Ram Chandrasekare03e5ef2017-12-05 14:48:34 -0700317 temperature = <5000>;
318 hysteresis = <5000>;
Ram Chandrasekarc6b9e8c2017-10-11 15:52:31 -0600319 type = "passive";
320 };
321 };
322 cooling-maps {
323 modem_vdd_cdev {
324 trip = <&mdm_vpe_trip>;
325 cooling-device = <&modem_vdd 0 0>;
326 };
327 adsp_vdd_cdev {
328 trip = <&mdm_vpe_trip>;
329 cooling-device = <&adsp_vdd 0 0>;
330 };
Ram Chandrasekare03e5ef2017-12-05 14:48:34 -0700331 cx_vdd_cdev {
332 trip = <&mdm_vpe_trip>;
333 cooling-device = <&cx_cdev 0 0>;
334 };
335 mx_vdd_cdev {
336 trip = <&mdm_vpe_trip>;
337 cooling-device = <&mx_cdev 0 0>;
338 };
Ram Chandrasekarc6b9e8c2017-10-11 15:52:31 -0600339 };
340 };
341};