blob: ee2476e5eed12e23e58a88cc28819ffbcb1de3ca [file] [log] [blame]
Maria Yuf16c1602017-12-22 13:05:17 +08001/*
2 * Copyright (c) 2018, The Linux Foundation. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
14#include "msm8953.dtsi"
15#include "sdm632-cpu.dtsi"
Tirupathi Reddya5db57f2018-02-16 10:13:53 +053016#include "sdm632-regulator.dtsi"
Maria Yuf16c1602017-12-22 13:05:17 +080017
18/ {
19 model = "Qualcomm Technologies, Inc. SDM632";
20 compatible = "qcom,sdm632";
21 qcom,msm-id = <349 0x0>;
Maria Yu9b0870c2018-01-25 15:36:28 +080022 qcom,msm-name = "SDM632";
Lingutla Chandrasekhar5fb437c2018-02-27 18:04:53 +053023
24 chosen {
Teng Fei Fan32bd4972018-04-04 16:15:35 +080025 bootargs = "kpti=0";
Lingutla Chandrasekhar5fb437c2018-02-27 18:04:53 +053026 };
Maria Yuf16c1602017-12-22 13:05:17 +080027};
28
Amit Nischal3b725e62018-02-15 11:26:27 +053029&clock_gcc_mdss {
30 compatible = "qcom,gcc-mdss-sdm632";
31};
32
Amit Nischal5f681952018-01-30 13:07:02 +053033&clock_gcc {
34 compatible = "qcom,gcc-sdm632";
35};
36
37&clock_debug {
38 compatible = "qcom,cc-debug-sdm632";
39};
40
Odelu Kukatla3de06402018-05-22 17:31:53 +053041&soc {
42 devfreq_spdm_cpu {
43 status = "disabled";
44 };
45
46 devfreq_spdm_gov {
47 status = "disabled";
48 };
49};
50
Amit Nischal5f681952018-01-30 13:07:02 +053051&clock_gcc_gfx {
52 compatible = "qcom,gcc-gfx-sdm632";
Taniya Das1dd64082018-03-23 16:51:36 +053053 qcom,gfxfreq-corner =
54 < 0 0 >,
55 < 133330000 1 >, /* Min SVS */
56 < 216000000 2 >, /* Low SVS */
57 < 320000000 3 >, /* SVS */
58 < 400000000 4 >, /* SVS Plus */
59 < 510000000 5 >, /* NOM */
60 < 560000000 6 >, /* Nom Plus */
61 < 650000000 7 >, /* Turbo */
62 < 700000000 7 >, /* Turbo */
63 < 725000000 7 >; /* Turbo */
Amit Nischal5f681952018-01-30 13:07:02 +053064};
Rama Krishna Phani A42ed9c72018-03-05 11:33:37 +053065
66&thermal_zones {
Manaf Meethalavalappu Pallikunhi316da2c2018-03-07 01:33:59 +053067 /delete-node/ camera-usr;
68 /delete-node/ apc1-l2-usr;
69 /delete-node/ apc0-cpu0-usr;
70 /delete-node/ apc0-cpu1-usr;
71 /delete-node/ apc0-cpu2-usr;
72 /delete-node/ apc0-cpu3-usr;
73 /delete-node/ apc0-l2-usr;
74 /delete-node/ gpu0-usr;
75 /delete-node/ gpu1-usr;
76 /delete-node/ gpu1-step;
77 /delete-node/ deca-cpu-max-step;
Manaf Meethalavalappu Pallikunhiba19d5b2018-03-22 17:41:50 +053078 /delete-node/ apc1-cpu0-step;
79 /delete-node/ apc1-cpu1-step;
80 /delete-node/ apc1-cpu2-step;
81 /delete-node/ apc1-cpu3-step;
Manaf Meethalavalappu Pallikunhi316da2c2018-03-07 01:33:59 +053082 /delete-node/ apc0-cpu0-step;
83 /delete-node/ apc0-cpu1-step;
84 /delete-node/ apc0-cpu2-step;
85 /delete-node/ apc0-cpu3-step;
86 /delete-node/ camera-lowf;
87 /delete-node/ apc1-l2-lowf;
Manaf Meethalavalappu Pallikunhiba19d5b2018-03-22 17:41:50 +053088 /delete-node/ apc1-cpu0-lowf;
89 /delete-node/ apc1-cpu1-lowf;
90 /delete-node/ apc1-cpu2-lowf;
91 /delete-node/ apc1-cpu3-lowf;
Manaf Meethalavalappu Pallikunhi316da2c2018-03-07 01:33:59 +053092 /delete-node/ apc0-cpu0-lowf;
93 /delete-node/ apc0-cpu1-lowf;
94 /delete-node/ apc0-cpu2-lowf;
95 /delete-node/ apc0-cpu3-lowf;
96 /delete-node/ apc0-l2-lowf;
97 /delete-node/ gpu0-lowf;
98 /delete-node/ gpu1-lowf;
Jishnu Prakash097184b2018-03-22 14:28:57 +053099 /delete-node/ apc1-cpu0-usr;
100 /delete-node/ apc1-cpu1-usr;
101 /delete-node/ apc1-cpu2-usr;
102 /delete-node/ apc1-cpu3-usr;
Rama Krishna Phani A42ed9c72018-03-05 11:33:37 +0530103
Manaf Meethalavalappu Pallikunhi316da2c2018-03-07 01:33:59 +0530104 case-therm-step {
Rama Krishna Phani A42ed9c72018-03-05 11:33:37 +0530105 status = "disabled";
106 };
107
Manaf Meethalavalappu Pallikunhie5b6ec02018-04-05 17:30:26 +0530108 quiet-therm-step {
109 status = "disabled";
110 };
111
Rama Krishna Phani A42ed9c72018-03-05 11:33:37 +0530112 video-usr {
113 polling-delay-passive = <0>;
114 polling-delay = <0>;
115 thermal-governor = "user_space";
116 thermal-sensors = <&tsens0 3>;
117 trips {
118 active-config0 {
119 temperature = <125000>;
120 hysteresis = <1000>;
121 type = "passive";
122 };
123 };
124 };
125
Jishnu Prakash097184b2018-03-22 14:28:57 +0530126 apc1-mhm-usr {
127 polling-delay-passive = <0>;
128 polling-delay = <0>;
129 thermal-sensors = <&tsens0 4>;
130 thermal-governor = "user_space";
131 trips {
132 active-config0 {
133 temperature = <125000>;
134 hysteresis = <1000>;
135 type = "passive";
136 };
137 };
138 };
139
140 apc1-cpu0-usr {
141 polling-delay-passive = <0>;
142 polling-delay = <0>;
143 thermal-sensors = <&tsens0 5>;
144 thermal-governor = "user_space";
145 trips {
146 active-config0 {
147 temperature = <125000>;
148 hysteresis = <1000>;
149 type = "passive";
150 };
151 };
152 };
153
154 apc1-cpu1-usr {
155 polling-delay-passive = <0>;
156 polling-delay = <0>;
157 thermal-sensors = <&tsens0 6>;
158 thermal-governor = "user_space";
159 trips {
160 active-config0 {
161 temperature = <125000>;
162 hysteresis = <1000>;
163 type = "passive";
164 };
165 };
166 };
167
168 apc1-cpu2-usr {
169 polling-delay-passive = <0>;
170 polling-delay = <0>;
171 thermal-sensors = <&tsens0 7>;
172 thermal-governor = "user_space";
173 trips {
174 active-config0 {
175 temperature = <125000>;
176 hysteresis = <1000>;
177 type = "passive";
178 };
179 };
180 };
181
182 apc1-cpu3-usr {
Rama Krishna Phani A42ed9c72018-03-05 11:33:37 +0530183 polling-delay-passive = <0>;
184 polling-delay = <0>;
185 thermal-sensors = <&tsens0 8>;
186 thermal-governor = "user_space";
187 trips {
188 active-config0 {
189 temperature = <125000>;
190 hysteresis = <1000>;
191 type = "passive";
192 };
193 };
194 };
195
Jishnu Prakash097184b2018-03-22 14:28:57 +0530196 apc1-l2-usr {
Rama Krishna Phani A42ed9c72018-03-05 11:33:37 +0530197 polling-delay-passive = <0>;
198 polling-delay = <0>;
199 thermal-sensors = <&tsens0 9>;
200 thermal-governor = "user_space";
201 trips {
202 active-config0 {
203 temperature = <125000>;
204 hysteresis = <1000>;
205 type = "passive";
206 };
207 };
208 };
209
Jishnu Prakash097184b2018-03-22 14:28:57 +0530210 cpuss0-usr {
Rama Krishna Phani A42ed9c72018-03-05 11:33:37 +0530211 polling-delay-passive = <0>;
212 polling-delay = <0>;
213 thermal-sensors = <&tsens0 13>;
214 thermal-governor = "user_space";
215 trips {
216 active-config0 {
217 temperature = <125000>;
218 hysteresis = <1000>;
219 type = "passive";
220 };
221 };
222 };
223
224 camera-usr {
225 polling-delay-passive = <0>;
226 polling-delay = <0>;
227 thermal-sensors = <&tsens0 14>;
228 thermal-governor = "user_space";
229 trips {
230 active-config0 {
231 temperature = <125000>;
232 hysteresis = <1000>;
233 type = "passive";
234 };
235 };
236 };
237
238 gpu0-usr {
239 polling-delay-passive = <0>;
240 polling-delay = <0>;
241 thermal-sensors = <&tsens0 15>;
242 thermal-governor = "user_space";
243 trips {
244 active-config0 {
245 temperature = <125000>;
246 hysteresis = <1000>;
247 type = "passive";
248 };
249 };
250 };
Manaf Meethalavalappu Pallikunhi316da2c2018-03-07 01:33:59 +0530251
252 gpu0-step {
253 polling-delay-passive = <250>;
254 polling-delay = <0>;
255 thermal-sensors = <&tsens0 15>;
256 thermal-governor = "step_wise";
257
258 trips {
259 sdm632_gpu_trip0: gpu-trip0 {
260 temperature = <95000>;
261 hysteresis = <0>;
262 type = "passive";
263 };
264 };
265 cooling-maps {
266 gpu_cdev0 {
267 trip = <&sdm632_gpu_trip0>;
268 cooling-device =
269 <&msm_gpu THERMAL_NO_LIMIT
270 THERMAL_NO_LIMIT>;
271 };
272 };
273 };
274
275 hepta-cpu-max-step {
276 polling-delay-passive = <50>;
277 polling-delay = <100>;
278 thermal-governor = "step_wise";
279
280 trips {
281 sdm632_cpu_trip:cpu-trip {
282 temperature = <95000>;
283 hysteresis = <0>;
284 type = "passive";
285 };
286 };
287
288 cooling-maps {
289 cpu0_cdev {
290 trip = <&sdm632_cpu_trip>;
291 cooling-device =
292 <&CPU0 THERMAL_NO_LIMIT
293 (THERMAL_MAX_LIMIT-1)>;
294 };
295 cpu1_cdev {
296 trip = <&sdm632_cpu_trip>;
297 cooling-device =
298 <&CPU1 THERMAL_NO_LIMIT
299 (THERMAL_MAX_LIMIT-1)>;
300 };
301 cpu2_cdev {
302 trip = <&sdm632_cpu_trip>;
303 cooling-device =
304 <&CPU2 THERMAL_NO_LIMIT
305 (THERMAL_MAX_LIMIT-1)>;
306 };
307 cpu3_cdev {
308 trip = <&sdm632_cpu_trip>;
309 cooling-device =
310 <&CPU3 THERMAL_NO_LIMIT
311 (THERMAL_MAX_LIMIT-1)>;
312 };
313 cpu4_cdev {
314 trip = <&sdm632_cpu_trip>;
315 cooling-device =
316 <&CPU4 THERMAL_NO_LIMIT
317 (THERMAL_MAX_LIMIT-1)>;
318 };
319 cpu5_cdev {
320 trip = <&sdm632_cpu_trip>;
321 cooling-device =
322 <&CPU5 THERMAL_NO_LIMIT
323 (THERMAL_MAX_LIMIT-1)>;
324 };
325 cpu6_cdev {
326 trip = <&sdm632_cpu_trip>;
327 cooling-device =
328 <&CPU6 THERMAL_NO_LIMIT
329 (THERMAL_MAX_LIMIT-1)>;
330 };
331 cpu7_cdev {
332 trip = <&sdm632_cpu_trip>;
333 cooling-device =
334 <&CPU7 THERMAL_NO_LIMIT
335 (THERMAL_MAX_LIMIT-1)>;
336 };
337 };
338 };
339
Manaf Meethalavalappu Pallikunhiba19d5b2018-03-22 17:41:50 +0530340 apc1-cpu0-step {
341 polling-delay-passive = <0>;
342 polling-delay = <0>;
343 thermal-sensors = <&tsens0 5>;
344 thermal-governor = "step_wise";
345 trips {
346 apc1_cpu0_trip: apc1-cpu0-trip {
347 temperature = <105000>;
348 hysteresis = <15000>;
349 type = "passive";
350 };
351 };
352 cooling-maps {
353 cpu4_cdev {
354 trip = <&apc1_cpu0_trip>;
355 cooling-device =
356 <&CPU4 THERMAL_MAX_LIMIT
357 THERMAL_MAX_LIMIT>;
358 };
359 };
360 };
361
362 apc1-cpu1-step {
363 polling-delay-passive = <0>;
364 polling-delay = <0>;
365 thermal-sensors = <&tsens0 6>;
366 thermal-governor = "step_wise";
367 trips {
368 apc1_cpu1_trip: apc1-cpu1-trip {
369 temperature = <105000>;
370 hysteresis = <15000>;
371 type = "passive";
372 };
373 };
374 cooling-maps {
375 cpu5_cdev {
376 trip = <&apc1_cpu1_trip>;
377 cooling-device =
378 <&CPU5 THERMAL_MAX_LIMIT
379 THERMAL_MAX_LIMIT>;
380 };
381 };
382 };
383
384 apc1-cpu2-step {
385 polling-delay-passive = <0>;
386 polling-delay = <0>;
387 thermal-sensors = <&tsens0 7>;
388 thermal-governor = "step_wise";
389 trips {
390 apc1_cpu2_trip: apc1-cpu2-trip {
391 temperature = <105000>;
392 hysteresis = <15000>;
393 type = "passive";
394 };
395 };
396 cooling-maps {
397 cpu6_cdev {
398 trip = <&apc1_cpu2_trip>;
399 cooling-device =
400 <&CPU6 THERMAL_MAX_LIMIT
401 THERMAL_MAX_LIMIT>;
402 };
403 };
404 };
405
406 apc1-cpu3-step {
407 polling-delay-passive = <0>;
408 polling-delay = <0>;
409 thermal-sensors = <&tsens0 8>;
410 thermal-governor = "step_wise";
411 trips {
412 apc1_cpu3_trip: apc1-cpu3-trip {
413 temperature = <105000>;
414 hysteresis = <15000>;
415 type = "passive";
416 };
417 };
418 cooling-maps {
419 cpu7_cdev {
420 trip = <&apc1_cpu3_trip>;
421 cooling-device =
422 <&CPU7 THERMAL_MAX_LIMIT
423 THERMAL_MAX_LIMIT>;
424 };
425 };
426 };
427
428 cpuss0-step {
Manaf Meethalavalappu Pallikunhi316da2c2018-03-07 01:33:59 +0530429 polling-delay-passive = <0>;
430 polling-delay = <0>;
431 thermal-sensors = <&tsens0 13>;
432 thermal-governor = "step_wise";
433
434 trips {
Manaf Meethalavalappu Pallikunhiba19d5b2018-03-22 17:41:50 +0530435 cpuss0_trip: cpuss0-trip {
Manaf Meethalavalappu Pallikunhi316da2c2018-03-07 01:33:59 +0530436 temperature = <105000>;
437 hysteresis = <15000>;
438 type = "passive";
439 };
440 };
441 cooling-maps {
442 cpu0_cdev {
Manaf Meethalavalappu Pallikunhiba19d5b2018-03-22 17:41:50 +0530443 trip = <&cpuss0_trip>;
Manaf Meethalavalappu Pallikunhi316da2c2018-03-07 01:33:59 +0530444 cooling-device =
445 <&CPU0 THERMAL_MAX_LIMIT
446 THERMAL_MAX_LIMIT>;
447 };
448 cpu1_cdev {
Manaf Meethalavalappu Pallikunhiba19d5b2018-03-22 17:41:50 +0530449 trip = <&cpuss0_trip>;
Manaf Meethalavalappu Pallikunhi316da2c2018-03-07 01:33:59 +0530450 cooling-device =
451 <&CPU1 THERMAL_MAX_LIMIT
452 THERMAL_MAX_LIMIT>;
453 };
454 cpu2_cdev {
Manaf Meethalavalappu Pallikunhiba19d5b2018-03-22 17:41:50 +0530455 trip = <&cpuss0_trip>;
Manaf Meethalavalappu Pallikunhi316da2c2018-03-07 01:33:59 +0530456 cooling-device =
457 <&CPU2 THERMAL_MAX_LIMIT
458 THERMAL_MAX_LIMIT>;
459 };
460 cpu3_cdev {
Manaf Meethalavalappu Pallikunhiba19d5b2018-03-22 17:41:50 +0530461 trip = <&cpuss0_trip>;
Manaf Meethalavalappu Pallikunhi316da2c2018-03-07 01:33:59 +0530462 cooling-device =
463 <&CPU3 THERMAL_MAX_LIMIT
464 THERMAL_MAX_LIMIT>;
465 };
466 };
467 };
468
469 video-lowf {
470 polling-delay-passive = <0>;
471 polling-delay = <0>;
472 thermal-governor = "low_limits_floor";
473 thermal-sensors = <&tsens0 3>;
474 tracks-low;
475
476 trips {
477 video_trip: video-trip {
478 temperature = <5000>;
479 hysteresis = <5000>;
480 type = "passive";
481 };
482 };
483 cooling-maps {
484 cpu0_vdd_cdev {
485 trip = <&video_trip>;
486 cooling-device = <&CPU0 (THERMAL_MAX_LIMIT - 4)
487 (THERMAL_MAX_LIMIT - 4)>;
488 };
489 gpu_vdd_cdev {
490 trip = <&video_trip>;
491 cooling-device = <&msm_gpu 2 2>;
492 };
493 cx_vdd_cdev {
494 trip = <&video_trip>;
495 cooling-device = <&cx_cdev 0 0>;
496 };
497 modem_vdd_cdev {
498 trip = <&video_trip>;
499 cooling-device = <&modem_vdd 0 0>;
500 };
501 };
502 };
503
Manaf Meethalavalappu Pallikunhiba19d5b2018-03-22 17:41:50 +0530504 apc1-mhm-low {
Manaf Meethalavalappu Pallikunhi316da2c2018-03-07 01:33:59 +0530505 polling-delay-passive = <0>;
506 polling-delay = <0>;
507 thermal-governor = "low_limits_floor";
Manaf Meethalavalappu Pallikunhiba19d5b2018-03-22 17:41:50 +0530508 thermal-sensors = <&tsens0 4>;
Manaf Meethalavalappu Pallikunhi316da2c2018-03-07 01:33:59 +0530509 tracks-low;
510
511 trips {
512 sdm632_cpuss1_trip: cpuss1-trip {
513 temperature = <5000>;
514 hysteresis = <5000>;
515 type = "passive";
516 };
517 };
518 cooling-maps {
519 cpu0_vdd_cdev {
520 trip = <&sdm632_cpuss1_trip>;
521 cooling-device = <&CPU0 (THERMAL_MAX_LIMIT - 4)
522 (THERMAL_MAX_LIMIT - 4)>;
523 };
524 gpu_vdd_cdev {
525 trip = <&sdm632_cpuss1_trip>;
526 cooling-device = <&msm_gpu 2 2>;
527 };
528 cx_vdd_cdev {
529 trip = <&sdm632_cpuss1_trip>;
530 cooling-device = <&cx_cdev 0 0>;
531 };
532 modem_vdd_cdev {
533 trip = <&sdm632_cpuss1_trip>;
534 cooling-device = <&modem_vdd 0 0>;
535 };
536 };
537 };
538
Manaf Meethalavalappu Pallikunhiba19d5b2018-03-22 17:41:50 +0530539 apc1-cpu0-lowf {
540 polling-delay-passive = <0>;
541 polling-delay = <0>;
542 thermal-governor = "low_limits_floor";
543 thermal-sensors = <&tsens0 5>;
544 tracks-low;
545 trips {
546 cpu4_trip: apc1-cpu0-trip {
547 temperature = <5000>;
548 hysteresis = <5000>;
549 type = "passive";
550 };
551 };
552 cooling-maps {
553 cpu0_vdd_cdev {
554 trip = <&cpu4_trip>;
555 cooling-device = <&CPU0 (THERMAL_MAX_LIMIT - 4)
556 (THERMAL_MAX_LIMIT - 4)>;
557 };
558 gpu_vdd_cdev {
559 trip = <&cpu4_trip>;
560 cooling-device = <&msm_gpu 2 2>;
561 };
562 cx_vdd_cdev {
563 trip = <&cpu4_trip>;
564 cooling-device = <&cx_cdev 0 0>;
565 };
566 modem_vdd_cdev {
567 trip = <&cpu4_trip>;
568 cooling-device = <&modem_vdd 0 0>;
569 };
570 };
571 };
572
573 apc1-cpu1-lowf {
574 polling-delay-passive = <0>;
575 polling-delay = <0>;
576 thermal-governor = "low_limits_floor";
577 thermal-sensors = <&tsens0 6>;
578 tracks-low;
579 trips {
580 cpu5_trip: apc1-cpu0-trip {
581 temperature = <5000>;
582 hysteresis = <5000>;
583 type = "passive";
584 };
585 };
586 cooling-maps {
587 cpu0_vdd_cdev {
588 trip = <&cpu5_trip>;
589 cooling-device = <&CPU0 (THERMAL_MAX_LIMIT - 4)
590 (THERMAL_MAX_LIMIT - 4)>;
591 };
592 gpu_vdd_cdev {
593 trip = <&cpu5_trip>;
594 cooling-device = <&msm_gpu 2 2>;
595 };
596 cx_vdd_cdev {
597 trip = <&cpu5_trip>;
598 cooling-device = <&cx_cdev 0 0>;
599 };
600 modem_vdd_cdev {
601 trip = <&cpu5_trip>;
602 cooling-device = <&modem_vdd 0 0>;
603 };
604 };
605 };
606
607 apc1-cpu2-lowf {
608 polling-delay-passive = <0>;
609 polling-delay = <0>;
610 thermal-governor = "low_limits_floor";
611 thermal-sensors = <&tsens0 7>;
612 tracks-low;
613 trips {
614 cpu6_trip: apc1-cpu2-trip {
615 temperature = <5000>;
616 hysteresis = <5000>;
617 type = "passive";
618 };
619 };
620 cooling-maps {
621 cpu0_vdd_cdev {
622 trip = <&cpu6_trip>;
623 cooling-device = <&CPU0 (THERMAL_MAX_LIMIT - 4)
624 (THERMAL_MAX_LIMIT - 4)>;
625 };
626 gpu_vdd_cdev {
627 trip = <&cpu6_trip>;
628 cooling-device = <&msm_gpu 2 2>;
629 };
630 cx_vdd_cdev {
631 trip = <&cpu6_trip>;
632 cooling-device = <&cx_cdev 0 0>;
633 };
634 modem_vdd_cdev {
635 trip = <&cpu6_trip>;
636 cooling-device = <&modem_vdd 0 0>;
637 };
638 };
639 };
640
641 apc1-cpu3-lowf {
642 polling-delay-passive = <0>;
643 polling-delay = <0>;
644 thermal-governor = "low_limits_floor";
645 thermal-sensors = <&tsens0 8>;
646 tracks-low;
647 trips {
648 cpu7_trip: apc1-cpu3-trip {
649 temperature = <5000>;
650 hysteresis = <5000>;
651 type = "passive";
652 };
653 };
654 cooling-maps {
655 cpu0_vdd_cdev {
656 trip = <&cpu7_trip>;
657 cooling-device = <&CPU0 (THERMAL_MAX_LIMIT - 4)
658 (THERMAL_MAX_LIMIT - 4)>;
659 };
660 gpu_vdd_cdev {
661 trip = <&cpu7_trip>;
662 cooling-device = <&msm_gpu 2 2>;
663 };
664 cx_vdd_cdev {
665 trip = <&cpu7_trip>;
666 cooling-device = <&cx_cdev 0 0>;
667 };
668 modem_vdd_cdev {
669 trip = <&cpu7_trip>;
670 cooling-device = <&modem_vdd 0 0>;
671 };
672 };
673 };
674
675 apc1-l2-low {
676 polling-delay-passive = <0>;
677 polling-delay = <0>;
678 thermal-governor = "low_limits_floor";
679 thermal-sensors = <&tsens0 9>;
680 tracks-low;
681
682 trips {
683 sdm632_cpuss0_trip: cpuss0-trip {
684 temperature = <5000>;
685 hysteresis = <5000>;
686 type = "passive";
687 };
688 };
689 cooling-maps {
690 cpu0_vdd_cdev {
691 trip = <&sdm632_cpuss0_trip>;
692 cooling-device = <&CPU0 (THERMAL_MAX_LIMIT - 4)
693 (THERMAL_MAX_LIMIT - 4)>;
694 };
695 gpu_vdd_cdev {
696 trip = <&sdm632_cpuss0_trip>;
697 cooling-device = <&msm_gpu 2 2>;
698 };
699 cx_vdd_cdev {
700 trip = <&sdm632_cpuss0_trip>;
701 cooling-device = <&cx_cdev 0 0>;
702 };
703 modem_vdd_cdev {
704 trip = <&sdm632_cpuss0_trip>;
705 cooling-device = <&modem_vdd 0 0>;
706 };
707 };
708 };
709
710 cpuss0-lowf {
Manaf Meethalavalappu Pallikunhi316da2c2018-03-07 01:33:59 +0530711 polling-delay-passive = <0>;
712 polling-delay = <0>;
713 thermal-governor = "low_limits_floor";
714 thermal-sensors = <&tsens0 13>;
715 tracks-low;
716
717 trips {
718 sdm632_cpuss3_trip: cpuss3-trip {
719 temperature = <5000>;
720 hysteresis = <5000>;
721 type = "passive";
722 };
723 };
724 cooling-maps {
725 cpu0_vdd_cdev {
726 trip = <&sdm632_cpuss3_trip>;
727 cooling-device = <&CPU0 (THERMAL_MAX_LIMIT - 4)
728 (THERMAL_MAX_LIMIT - 4)>;
729 };
730 gpu_vdd_cdev {
731 trip = <&sdm632_cpuss3_trip>;
732 cooling-device = <&msm_gpu 2 2>;
733 };
734 cx_vdd_cdev {
735 trip = <&sdm632_cpuss3_trip>;
736 cooling-device = <&cx_cdev 0 0>;
737 };
738 modem_vdd_cdev {
739 trip = <&sdm632_cpuss3_trip>;
740 cooling-device = <&modem_vdd 0 0>;
741 };
742 };
743 };
744
745 camera-lowf {
746 polling-delay-passive = <0>;
747 polling-delay = <0>;
748 thermal-governor = "low_limits_floor";
749 thermal-sensors = <&tsens0 14>;
750 tracks-low;
751
752 trips {
753 sdm632_camera_trip: camera-trip {
754 temperature = <5000>;
755 hysteresis = <5000>;
756 type = "passive";
757 };
758 };
759 cooling-maps {
760 cpu0_vdd_cdev {
761 trip = <&sdm632_camera_trip>;
762 cooling-device = <&CPU0 (THERMAL_MAX_LIMIT - 4)
763 (THERMAL_MAX_LIMIT - 4)>;
764 };
765 gpu_vdd_cdev {
766 trip = <&sdm632_camera_trip>;
767 cooling-device = <&msm_gpu 2 2>;
768 };
769 cx_vdd_cdev {
770 trip = <&sdm632_camera_trip>;
771 cooling-device = <&cx_cdev 0 0>;
772 };
773 modem_vdd_cdev {
774 trip = <&sdm632_camera_trip>;
775 cooling-device = <&modem_vdd 0 0>;
776 };
777 };
778 };
779
780 gpu0-lowf {
781 polling-delay-passive = <0>;
782 polling-delay = <0>;
783 thermal-governor = "low_limits_floor";
784 thermal-sensors = <&tsens0 15>;
785 tracks-low;
786
787 trips {
788 sdm632_gpu0_trip: gpu0-trip {
789 temperature = <5000>;
790 hysteresis = <5000>;
791 type = "passive";
792 };
793 };
794 cooling-maps {
795 cpu0_vdd_cdev {
796 trip = <&sdm632_gpu0_trip>;
797 cooling-device = <&CPU0 (THERMAL_MAX_LIMIT - 4)
798 (THERMAL_MAX_LIMIT - 4)>;
799 };
800 gpu_vdd_cdev {
801 trip = <&sdm632_gpu0_trip>;
802 cooling-device = <&msm_gpu 2 2>;
803 };
804 cx_vdd_cdev {
805 trip = <&sdm632_gpu0_trip>;
806 cooling-device = <&cx_cdev 0 0>;
807 };
808 modem_vdd_cdev {
809 trip = <&sdm632_gpu0_trip>;
810 cooling-device = <&modem_vdd 0 0>;
811 };
812 };
813 };
Rama Krishna Phani A42ed9c72018-03-05 11:33:37 +0530814};
Amit Nischal16307db2018-02-05 15:45:26 +0530815
816&clock_cpu {
817 /delete-property/ vdd-cl-supply;
Amit Nischal16307db2018-02-05 15:45:26 +0530818 compatible = "qcom,cpu-clock-sdm632";
819 reg = <0xb114000 0x68>,
820 <0xb014000 0x68>,
Amit Nischal16307db2018-02-05 15:45:26 +0530821 <0xb011050 0x8>,
822 <0xb111050 0x8>,
823 <0xb1d1050 0x8>,
Amit Nischal0260cbc2018-03-18 15:38:59 +0530824 <0xb011050 0x8>,
825 <0xb111050 0x8>,
826 <0x00a4124 0x8>;
Amit Nischal16307db2018-02-05 15:45:26 +0530827 reg-names = "rcgwr-c0-base", "rcgwr-c1-base",
Amit Nischal0260cbc2018-03-18 15:38:59 +0530828 "apcs-c1-rcg-base", "apcs-c0-rcg-base",
829 "apcs-cci-rcg-base", "c1-mux",
830 "c0-mux", "efuse";
Amit Nischal16307db2018-02-05 15:45:26 +0530831 qcom,num-clusters = <2>;
Amit Nischal0260cbc2018-03-18 15:38:59 +0530832 vdd-c0-supply = <&apc0_pwrcl_vreg>;
833 vdd-c1-supply = <&apc1_perfcl_vreg>;
834 vdd-cci-supply = <&apc0_pwrcl_vreg>;
Amit Nischal16307db2018-02-05 15:45:26 +0530835 clocks = <&clock_gcc clk_xo_a_clk_src>;
836 clock-names = "xo_a";
837 qcom,speed0-bin-v0-c0 =
838 < 0 0>,
839 < 614400000 1>,
840 < 883200000 2>,
Amit Nischal0260cbc2018-03-18 15:38:59 +0530841 < 1036800000 3>,
Amit Nischal16307db2018-02-05 15:45:26 +0530842 < 1363200000 4>,
Amit Nischal0260cbc2018-03-18 15:38:59 +0530843 < 1536000000 5>,
Amit Nischal16307db2018-02-05 15:45:26 +0530844 < 1670400000 6>,
Taniya Das70e4da12018-04-03 23:30:52 +0530845 < 1804800000 7>;
Amit Nischal16307db2018-02-05 15:45:26 +0530846 qcom,speed0-bin-v0-c1 =
847 < 0 0>,
Tirupathi Reddy037708a2018-04-18 14:53:24 +0530848 < 633600000 1>,
849 < 902400000 2>,
850 < 1094400000 3>,
851 < 1401600000 4>,
852 < 1555200000 5>,
853 < 1804800000 6>;
Amit Nischal16307db2018-02-05 15:45:26 +0530854 qcom,speed0-bin-v0-cci =
855 < 0 0>,
856 < 307200000 1>,
857 < 403200000 2>,
858 < 499200000 3>,
859 < 691200000 4>,
860 < 768000000 5>,
861 < 787200000 6>;
Taniya Das70e4da12018-04-03 23:30:52 +0530862
863 qcom,speed6-bin-v0-c0 =
864 < 0 0>,
865 < 614400000 1>,
866 < 883200000 2>,
867 < 1036800000 3>,
868 < 1363200000 4>,
869 < 1536000000 5>,
870 < 1670400000 6>,
871 < 1804800000 7>;
872 qcom,speed6-bin-v0-c1 =
873 < 0 0>,
Tirupathi Reddy037708a2018-04-18 14:53:24 +0530874 < 633600000 1>,
875 < 902400000 2>,
876 < 1094400000 3>,
877 < 1401600000 4>,
878 < 1555200000 5>,
879 < 1804800000 6>;
Taniya Das70e4da12018-04-03 23:30:52 +0530880 qcom,speed6-bin-v0-cci =
881 < 0 0>,
882 < 307200000 1>,
883 < 403200000 2>,
884 < 499200000 3>,
885 < 691200000 4>,
886 < 768000000 5>,
887 < 787200000 6>;
888
889 qcom,speed2-bin-v0-c0 =
890 < 0 0>,
891 < 614400000 1>,
892 < 883200000 2>,
893 < 1036800000 3>,
894 < 1363200000 4>,
895 < 1536000000 5>,
896 < 1670400000 6>,
897 < 1804800000 7>;
898 qcom,speed2-bin-v0-c1 =
899 < 0 0>,
Tirupathi Reddy037708a2018-04-18 14:53:24 +0530900 < 633600000 1>,
901 < 902400000 2>,
902 < 1094400000 3>,
903 < 1401600000 4>,
904 < 1555200000 5>,
905 < 1804800000 6>,
906 < 2016000000 7>;
Taniya Das70e4da12018-04-03 23:30:52 +0530907 qcom,speed2-bin-v0-cci =
908 < 0 0>,
909 < 307200000 1>,
910 < 403200000 2>,
911 < 499200000 3>,
912 < 691200000 4>,
913 < 768000000 5>,
914 < 787200000 6>;
915
Amit Nischal16307db2018-02-05 15:45:26 +0530916 #clock-cells = <1>;
917};
918
Maria Yuaccc4bd2018-03-14 20:01:30 +0530919&soc {
Maria Yue31f44b2018-03-18 13:32:10 +0530920 /delete-node/ qcom,msm-cpufreq;
Maria Yuaccc4bd2018-03-14 20:01:30 +0530921 msm_cpufreq: qcom,msm-cpufreq {
922 compatible = "qcom,msm-cpufreq";
923 clock-names =
924 "l2_clk",
925 "cpu0_clk",
926 "cpu4_clk";
927 clocks =
Amit Nischal0260cbc2018-03-18 15:38:59 +0530928 <&clock_cpu clk_cci_clk >,
929 <&clock_cpu clk_pwr_clk >,
930 <&clock_cpu clk_perf_clk >;
Maria Yuaccc4bd2018-03-14 20:01:30 +0530931
932 qcom,governor-per-policy;
933
934 qcom,cpufreq-table-0 =
935 < 614400 >,
936 < 883200 >,
937 < 1036800 >,
938 < 1363200 >,
939 < 1536000 >,
940 < 1670400 >,
Taniya Das70e4da12018-04-03 23:30:52 +0530941 < 1804800 >;
Maria Yuaccc4bd2018-03-14 20:01:30 +0530942
943 qcom,cpufreq-table-4 =
Tirupathi Reddy037708a2018-04-18 14:53:24 +0530944 < 633600 >,
945 < 902400 >,
Maria Yu11887302018-03-19 20:31:46 +0530946 < 1094400 >,
Maria Yuaccc4bd2018-03-14 20:01:30 +0530947 < 1401600 >,
948 < 1555200 >,
Taniya Das70e4da12018-04-03 23:30:52 +0530949 < 1804800 >,
Maria Yuaccc4bd2018-03-14 20:01:30 +0530950 < 1996200 >,
Taniya Das70e4da12018-04-03 23:30:52 +0530951 < 2016000 >;
Maria Yuaccc4bd2018-03-14 20:01:30 +0530952 };
953
954 cci_cache: qcom,cci {
955 compatible = "devfreq-simple-dev";
956 clock-names = "devfreq_clk";
Amit Nischal0260cbc2018-03-18 15:38:59 +0530957 clocks = <&clock_cpu clk_cci_clk >;
Maria Yuaccc4bd2018-03-14 20:01:30 +0530958 governor = "cpufreq";
959 freq-tbl-khz =
960 < 307200 >,
961 < 403200 >,
962 < 499200 >,
Maria Yu11887302018-03-19 20:31:46 +0530963 < 691200 >,
Maria Yuaccc4bd2018-03-14 20:01:30 +0530964 < 768000 >,
965 < 787200 >;
966 };
967
968 /delete-node/ devfreq-cpufreq;
969 devfreq-cpufreq {
970 mincpubw-cpufreq {
971 target-dev = <&mincpubw>;
972 cpu-to-dev-map-0 =
973 < 614400 1611>,
974 < 1363200 3221>,
Taniya Das70e4da12018-04-03 23:30:52 +0530975 < 1804800 5859>;
Maria Yuaccc4bd2018-03-14 20:01:30 +0530976 cpu-to-dev-map-4 =
Maria Yu11887302018-03-19 20:31:46 +0530977 < 1094400 1611>,
Maria Yu83e0fef2018-03-17 15:07:49 +0800978 < 1401600 3221>,
Taniya Das70e4da12018-04-03 23:30:52 +0530979 < 1804800 5859>,
980 < 2016000 7104>;
Maria Yuaccc4bd2018-03-14 20:01:30 +0530981 };
982
983 cci-cpufreq {
984 target-dev = <&cci_cache>;
985 cpu-to-dev-map-0 =
986 < 614400 307200>, /* SVS */
987 < 883200 403200>,
988 < 1036800 499200>,
Maria Yu11887302018-03-19 20:31:46 +0530989 < 1363200 691200>, /* NOM */
Maria Yuaccc4bd2018-03-14 20:01:30 +0530990 < 1536000 768000>, /* NOM+ */
991 < 1670400 787200>; /* TURBO */
992 cpu-to-dev-map-4 =
Tirupathi Reddy037708a2018-04-18 14:53:24 +0530993 < 633600 307200>, /* SVS */
994 < 902400 403200>,
Maria Yu11887302018-03-19 20:31:46 +0530995 < 1094400 499200>, /* SVS */
996 < 1401600 691200>, /* NOM */
Maria Yuaccc4bd2018-03-14 20:01:30 +0530997 < 1555200 768000>, /* NOM+ */
Taniya Das70e4da12018-04-03 23:30:52 +0530998 < 1804800 787200>; /* TURBO */
Maria Yuaccc4bd2018-03-14 20:01:30 +0530999 };
1000 };
1001};
Jishnu Prakash6df50382018-04-11 20:59:41 +05301002
1003&pm8953_vadc {
1004 pinctrl-0 = <&pa_therm1_default>;
1005 /delete-node/ chan@13;
1006};
1007
1008&pm8953_mpps {
1009 /delete-node/ case_therm;
1010};
1011
1012&thermal_zones {
1013 /delete-node/ case-therm-adc;
1014 /delete-node/ case-therm-step;
1015};
1016
Mao Jinlong7d0a8032018-04-26 14:39:52 +08001017#include "sdm632-coresight.dtsi"
Sunil Khatri058e5b52018-03-12 19:07:23 +05301018
1019/* GPU Overrides*/
1020&msm_gpu {
1021
1022 qcom,ca-target-pwrlevel = <4>;
1023 qcom,initial-pwrlevel = <5>;
1024 /delete-node/qcom,gpu-pwrlevels;
1025
1026 /* Power levels */
1027 qcom,gpu-pwrlevels {
1028 #address-cells = <1>;
1029 #size-cells = <0>;
1030
1031 compatible = "qcom,gpu-pwrlevels";
1032 /* TURBO LD0 */
1033 qcom,gpu-pwrlevel@0 {
1034 reg = <0>;
1035 qcom,gpu-freq = <725000000>;
1036 qcom,bus-freq = <10>;
1037 qcom,bus-min = <10>;
1038 qcom,bus-max = <10>;
1039 };
1040
1041 /* TURBO */
1042 qcom,gpu-pwrlevel@1 {
1043 reg = <1>;
1044 qcom,gpu-freq = <650000000>;
1045 qcom,bus-freq = <10>;
1046 qcom,bus-min = <10>;
1047 qcom,bus-max = <10>;
1048 };
1049
1050 /* NOM+ */
1051 qcom,gpu-pwrlevel@2 {
1052 reg = <2>;
1053 qcom,gpu-freq = <560000000>;
1054 qcom,bus-freq = <10>;
1055 qcom,bus-min = <8>;
1056 qcom,bus-max = <10>;
1057 };
1058
1059 /* NOM */
1060 qcom,gpu-pwrlevel@3 {
1061 reg = <3>;
1062 qcom,gpu-freq = <510000000>;
1063 qcom,bus-freq = <9>;
1064 qcom,bus-min = <6>;
1065 qcom,bus-max = <10>;
1066 };
1067
1068 /* SVS+ */
1069 qcom,gpu-pwrlevel@4 {
1070 reg = <4>;
1071 qcom,gpu-freq = <400000000>;
1072 qcom,bus-freq = <7>;
1073 qcom,bus-min = <5>;
1074 qcom,bus-max = <8>;
1075 };
1076
1077 /* SVS */
1078 qcom,gpu-pwrlevel@5 {
1079 reg = <5>;
1080 qcom,gpu-freq = <320000000>;
1081 qcom,bus-freq = <4>;
1082 qcom,bus-min = <2>;
1083 qcom,bus-max = <6>;
1084 };
1085
1086 /* Low SVS */
1087 qcom,gpu-pwrlevel@6 {
1088 reg = <6>;
1089 qcom,gpu-freq = <216000000>;
Deepak Kumar5eca0c92018-05-24 19:24:04 +05301090 qcom,bus-freq = <3>;
1091 qcom,bus-min = <2>;
Sunil Khatri058e5b52018-03-12 19:07:23 +05301092 qcom,bus-max = <4>;
1093 };
1094
1095 qcom,gpu-pwrlevel@7 {
1096 reg = <7>;
1097 qcom,gpu-freq = <133300000>;
Deepak Kumar5eca0c92018-05-24 19:24:04 +05301098 qcom,bus-freq = <3>;
Sunil Khatri058e5b52018-03-12 19:07:23 +05301099 qcom,bus-min = <1>;
1100 qcom,bus-max = <4>;
1101 };
1102 /* XO */
1103 qcom,gpu-pwrlevel@8 {
1104 reg = <8>;
1105 qcom,gpu-freq = <19200000>;
1106 qcom,bus-freq = <0>;
1107 qcom,bus-min = <0>;
1108 qcom,bus-max = <0>;
1109 };
1110 };
1111};