blob: 1f25e5608f4ce966dea90b07a90756102d94c4a7 [file] [log] [blame]
zhaochen12063042019-07-15 11:22:04 +08001/*
Manaf Meethalavalappu Pallikunhi250c0922020-04-29 17:45:36 +05302 * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
zhaochen12063042019-07-15 11:22:04 +08003 *
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 "sdm429-spyro-qrd-mdss-panels.dtsi"
15#include "sdm429-spyro-qrd-evt-camera.dtsi"
16#include "sdm429-spyro-qrd-evt-audio.dtsi"
Jing Xue212856e2019-08-13 15:28:03 +080017#include <dt-bindings/thermal/thermal.h>
zhaochen12063042019-07-15 11:22:04 +080018
xiaolinee175792019-08-13 19:21:02 +080019&tlmm {
20 sd_eldo_active {
21 sd_eldo_active: sd_eldo_active {
22 mux {
23 pins = "gpio91";
24 function = "gpio";
25 };
26
27 config {
28 pins = "gpio91";
29 drive-strength = <2>;
30 bias-pull-up;
31 };
32 };
33 };
34
35 sd_eldo_suspend {
36 sd_eldo_suspend: sd_eldo_suspend {
37 mux {
38 pins = "gpio91";
39 function = "gpio";
40 };
41
42 config {
43 pins = "gpio91";
44 drive-strength = <2>;
45 bias-disable;
46 };
47 };
48 };
49};
50
zhaochen12063042019-07-15 11:22:04 +080051&gpio_key_active {
52 mux {
xiaolinee175792019-08-13 19:21:02 +080053 pins = "gpio127", "gpio128", "gpio35", "gpio126";
zhaochen12063042019-07-15 11:22:04 +080054 function = "gpio";
55 };
56
57 config {
xiaolinee175792019-08-13 19:21:02 +080058 pins = "gpio127", "gpio128", "gpio35", "gpio126";
zhaochen12063042019-07-15 11:22:04 +080059 drive-strength = <2>;
60 bias-pull-up;
61 };
62};
63
64&gpio_key_suspend {
65 mux {
xiaolinee175792019-08-13 19:21:02 +080066 pins = "gpio127", "gpio128", "gpio35", "gpio126";
zhaochen12063042019-07-15 11:22:04 +080067 function = "gpio";
68 };
69
70 config {
xiaolinee175792019-08-13 19:21:02 +080071 pins = "gpio127", "gpio128", "gpio35", "gpio126";
zhaochen12063042019-07-15 11:22:04 +080072 drive-strength = <2>;
73 bias-pull-up;
74 };
75};
76
77&soc {
zhaochene14cf942019-08-07 18:17:57 +080078 /delete-node/ qcom,spm@b1d2000;
79 qcom,spm@b1d2000 {
80 compatible = "qcom,spm-v2";
81 #address-cells = <1>;
82 #size-cells = <1>;
83 reg = <0xb1d2000 0x1000>;
84 qcom,name = "system-cci";
85 qcom,saw2-ver-reg = <0xfd0>;
86 qcom,saw2-cfg = <0x14>;
87 qcom,saw2-spm-dly= <0x3C102800>;
88 qcom,saw2-spm-ctl = <0xe>;
89 qcom,cpu-vctl-list = <&CPU0 &CPU1 &CPU2 &CPU3>;
90 qcom,vctl-timeout-us = <500>;
91 qcom,vctl-port = <0x0>;
92 qcom,vctl-port-ub = <0x1>;
93 qcom,pfm-port = <0x2>;
94 };
95
zhaochen12063042019-07-15 11:22:04 +080096 gpio_keys: gpio_keys {
97 compatible = "gpio-keys";
98 label = "gpio-keys";
99 pinctrl-names = "default";
100 pinctrl-0 = <&gpio_key_active>;
101 pinctrl-1 = <&gpio_key_suspend>;
102
103 vol_up: vol_up {
104 label = "volume_up";
105 gpios = <&tlmm 35 0x1>;
106 linux,input-type = <1>;
107 linux,code = <115>;
108 debounce-interval = <15>;
109 linux,can-disable;
110 gpio-key,wakeup;
111 };
112
113 function_1: function_1 {
114 label = "function_1";
115 gpios = <&tlmm 127 0x1>;
116 linux,input-type = <1>;
117 linux,code = <116>;
118 debounce-interval = <15>;
119 linux,can-disable;
120 gpio-key,wakeup;
121 };
122
123 function_2: function_2 {
124 label = "function_2";
125 gpios = <&tlmm 126 0x1>;
126 linux,input-type = <1>;
127 linux,code = <117>;
128 debounce-interval = <15>;
129 linux,can-disable;
130 gpio-key,wakeup;
131 };
132 };
133};
134
135&blsp1_uart2 {
136 status = "ok";
137 pinctrl-names = "default";
138 pinctrl-0 = <&uart_console_active>;
139};
140
141&sdhc_1 {
142 /* device core power supply */
143 vdd-supply = <&L19A>;
144 qcom,vdd-voltage-level = <2900000 3200000>;
145 qcom,vdd-current-level = <200 570000>;
146
147 /* device communication power supply */
148 vdd-io-supply = <&L13A>;
149 qcom,vdd-io-always-on;
150 qcom,vdd-io-lpm-sup;
151 qcom,vdd-io-voltage-level = <1800000 1800000>;
152 qcom,vdd-io-current-level = <0 60000>;
153
154 pinctrl-names = "active", "sleep";
155 pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on &sdc1_rclk_on>;
156 pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off &sdc1_rclk_off>;
157
158 qcom,clk-rates = <400000 20000000 25000000 50000000 100000000 192000000
159 384000000>;
160 qcom,nonremovable;
161 qcom,bus-speed-mode = "HS400_1p8v", "HS200_1p8v", "DDR_1p8v";
162
163 status = "ok";
164};
165
166&sdhc_2 {
167 /* device core power supply for sd card*/
168 vdd-supply = <&vreg_sd_vdd>;
169 qcom,vdd-voltage-level = <2950000 2950000>;
170 qcom,vdd-current-level = <15000 800000>;
171
172 /* device communication power supply for msm_io*/
173 vdd-io-supply = <&vreg_sd_pad>;
174 qcom,vdd-io-voltage-level = <1800000 2950000>;
175 qcom,vdd-io-current-level = <200 22000>;
176
177 pinctrl-names = "active", "sleep";
xiaolinee175792019-08-13 19:21:02 +0800178 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on
179 &sd_eldo_active>;
180 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off
181 &sd_eldo_suspend>;
zhaochen12063042019-07-15 11:22:04 +0800182
183 cd-gpios = <&tlmm 67 0x0>;
184
185 qcom,clk-rates = <400000 20000000 25000000 50000000 100000000
186 200000000>;
187
188 qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50", "SDR104";
189
190 status = "ok";
191};
192
jiangjia52057dd2019-08-01 14:46:24 +0800193&soc {
194 qcom,ion {
195 qcom,ion-heap@8 { /* CP_MM HEAP */
196 reg = <8>;
197 memory-region = <&secure_mem>;
198 qcom,ion-heap-type = "SECURE_DMA";
199 };
200 };
201};
202
203&secure_mem {
204 alignment = <0 0x400000>;
Jiten Pateld63593a2019-08-29 19:14:19 +0530205 size = <0 0x800000>;
jiangjia52057dd2019-08-01 14:46:24 +0800206 status = "okay";
207};
208
zhaochen12063042019-07-15 11:22:04 +0800209&modem_mem {
210 reg = <0x0 0x86800000 0x0 0x5000000>;
211};
212
213&adsp_fw_mem {
jiangjia995e9432019-08-06 14:58:08 +0800214 reg = <0x0 0x8b800000 0x0 0x1500000>;
zhaochen12063042019-07-15 11:22:04 +0800215};
216
217&wcnss_fw_mem {
jiangjia995e9432019-08-06 14:58:08 +0800218 reg = <0x0 0x8cd00000 0x0 0x700000>;
zhaochen12063042019-07-15 11:22:04 +0800219};
220
221&i2c_4 {
222 status = "ok";
223
224 tsc@24 {
225 compatible = "cy,cyttsp5_i2c_adapter";
226 reg = <0x24>;
227
228 interrupt-parent = <&tlmm>;
229 interrupts = <65 0x2008>;
230 cy,adapter_id = "cyttsp5_i2c_adapter";
231 vcc_i2c-supply = <&L13A>;
232 vdd-supply = <&L15A>;
233 pinctrl-names = "pmx_ts_active", "pmx_ts_suspend",
234 "pmx_ts_release";
235 pinctrl-0 = <&ts_int_active &ts_reset_active>;
236 pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
237 pinctrl-2 = <&ts_release>;
238
239 cy,core {
240 cy,name = "cyttsp5_core";
241 cy,irq_gpio = <65>;
242 cy,rst_gpio = <64>;
243 cy,hid_desc_register = <1>;
244 cy,flags = <4>;
245 cy,easy_wakeup_gesture = <1>;
246 cy,btn_keys = <172 139 158 217 114 115 212 116>;
247 cy,btn_keys-tag = <0>;
248
249 cy,mt {
250 cy,name = "cyttsp5_mt";
251
252 cy,inp_dev_name = "cyttsp5_mt";
253 cy,flags = <0x28>;
254 cy,abs =
255 <0x35 0 320 0 0
256 0x36 0 360 0 0
257 0x3a 0 255 0 0
258 0xffff 0 255 0 0
259 0x39 0 15 0 0
260 0x30 0 255 0 0
261 0x31 0 255 0 0
262 0x34 0xffffff81 127 0 0
263 0x37 0 1 0 0
264 0x3b 0 255 0 0>;
265
266 cy,vkeys_x = <320>;
267 cy,vkeys_y = <360>;
268
269 cy,virtual_keys =
270 <158 1360 90 160 180
271 139 1360 270 160 180
272 172 1360 450 160 180
273 217 1360 630 160 180>;
274 };
275
276 cy,btn {
277 cy,name = "cyttsp5_btn";
278
279 cy,inp_dev_name = "cyttsp5_btn";
280 };
281
282 cy,proximity {
283 cy,name = "cyttsp5_proximity";
284
285 cy,inp_dev_name = "cyttsp5_proximity";
286 cy,abs = <0x19 0 1 0 0>;
287 };
288 };
289 };
290
291};
292
Tapas Deyd89faed2019-07-18 13:39:13 +0530293&pm660_gpios {
294 nfc_clk {
295 nfc_clk_default: nfc_clk_default {
296 pins = "gpio4";
297 function = "normal";
298 input-enable;
299 power-source = <1>;
300 };
301 };
302};
303
304&i2c_5 { /* BLSP2 QUP1 (NFC) */
305 #address-cells = <1>;
306 #size-cells = <0>;
307
308 status = "ok";
309 nq@28 {
310 compatible = "qcom,nq-nci";
311 reg = <0x28>;
312 qcom,nq-irq = <&tlmm 17 0x00>;
313 qcom,nq-ven = <&tlmm 16 0x00>;
314 qcom,nq-firm = <&tlmm 130 0x00>;
315 qcom,nq-clkreq = <&pm660_gpios 4 0x00>;
316 qcom,nq-esepwr = <&tlmm 93 0x00>;
317 interrupt-parent = <&tlmm>;
318 qcom,clk-src = "BBCLK2";
319 interrupts = <17 0>;
320 interrupt-names = "nfc_irq";
321 pinctrl-names = "nfc_active", "nfc_suspend";
322 pinctrl-0 = <&nfc_int_active &nfc_disable_active
323 &nfc_clk_default>;
324 pinctrl-1 = <&nfc_int_suspend &nfc_disable_suspend>;
325 clocks = <&clock_gcc clk_bb_clk2_pin>;
326 clock-names = "ref_clk";
327 };
328};
329
zhaochen12063042019-07-15 11:22:04 +0800330&tlmm {
331 pmx_ts_int_active {
332 ts_int_active: ts_int_active {
333 mux {
334 pins = "gpio65";
335 function = "gpio";
336 };
337
338 config {
339 pins = "gpio65";
340 drive-strength = <8>;
341 bias-pull-up;
342 };
343 };
344 };
345
346 pmx_ts_int_suspend {
347 ts_int_suspend: ts_int_suspend {
348 mux {
349 pins = "gpio65";
350 function = "gpio";
351 };
352
353 config {
354 pins = "gpio65";
355 drive-strength = <2>;
356 bias-pull-down;
357 };
358 };
359 };
360
361 pmx_ts_reset_active {
362 ts_reset_active: ts_reset_active {
363 mux {
364 pins = "gpio64";
365 function = "gpio";
366 };
367
368 config {
369 pins = "gpio64";
370 drive-strength = <8>;
371 bias-pull-up;
372 };
373 };
374 };
375
376 pmx_ts_reset_suspend {
377 ts_reset_suspend: ts_reset_suspend {
378 mux {
379 pins = "gpio64";
380 function = "gpio";
381 };
382
383 config {
384 pins = "gpio64";
385 drive-strength = <2>;
386 bias-pull-down;
387 };
388 };
389 };
390
391 pmx_ts_release {
392 ts_release: ts_release {
393 mux {
394 pins = "gpio65", "gpio64";
395 function = "gpio";
396 };
397
398 config {
399 pins = "gpio65", "gpio64";
400 drive-strength = <2>;
401 bias-pull-down;
402 };
403 };
404 };
405
406};
Jing Xue212856e2019-08-13 15:28:03 +0800407
408&pm660_vadc {
409 chan@50 {
410 label = "pmic_therm";
411 reg = <0x50>;
412 qcom,decimation = <2>;
413 qcom,pre-div-channel-scaling = <0>;
414 qcom,calibration-type = "ratiometric";
415 qcom,scale-function = <2>;
416 qcom,hw-settle-time = <2>;
417 qcom,fast-avg-setup = <0>;
418 };
419};
420
421&pm660_adc_tm {
422 chan@50 {
423 label = "pmic_therm";
424 reg = <0x50>;
425 qcom,pre-div-channel-scaling = <0>;
426 qcom,calibration-type = "ratiometric";
427 qcom,scale-function = <2>;
428 qcom,hw-settle-time = <2>;
429 qcom,btm-channel-number = <0x48>;
430 qcom,thermal-node;
431 };
432};
433
434&thermal_zones {
435
436 emmc-therm-adc {
437 status = "disabled";
438 };
439
440 aoss0-lowf {
441 status = "disabled";
442 };
443
444 mdm-core-lowf {
445 status = "disabled";
446 };
447
448 lpass-lowf {
449 status = "disabled";
450 };
451
452 camera-lowf {
453 status = "disabled";
454 };
455
456 cpuss1-lowf {
457 status = "disabled";
458 };
459
460 apc1-cpu0-lowf {
461 status = "disabled";
462 };
463
464 apc1-cpu1-lowf {
465 status = "disabled";
466 };
467
468 apc1-cpu2-lowf {
469 status = "disabled";
470 };
471
472 apc1-cpu3-lowf {
473 status = "disabled";
474 };
475
476 cpuss0-lowf {
477 status = "disabled";
478 };
479
480 gpu-lowf {
481 status = "disabled";
482 };
483
484 aoss0-lowfr {
485 polling-delay-passive = <0>;
486 polling-delay = <0>;
487 thermal-governor = "low_limits_floor";
488 thermal-sensors = <&tsens0 0>;
Manaf Meethalavalappu Pallikunhi250c0922020-04-29 17:45:36 +0530489 wake-capable-sensor;
Jing Xue212856e2019-08-13 15:28:03 +0800490 tracks-low;
491
492 trips {
493 aoss0_trip: aoss-trip {
494 temperature = <5000>;
495 hysteresis = <5000>;
496 type = "passive";
497 };
498 };
499
500 cooling-maps {
501 cpu0_vdd_cdev {
502 trip = <&aoss0_trip>;
503 cooling-device = <&CPU0 (THERMAL_MAX_LIMIT-2)
504 (THERMAL_MAX_LIMIT-2)>;
505 };
506
507 cx_vdd_cdev {
508 trip = <&aoss0_trip>;
509 cooling-device = <&pm660_cx_cdev 0 0>;
510 };
511
512 modem_vdd_cdev {
513 trip = <&aoss0_trip>;
514 cooling-device = <&modem_vdd 0 0>;
515 };
516 };
517 };
518
519 mdm-core-lowfr {
520 polling-delay-passive = <0>;
521 polling-delay = <0>;
522 thermal-governor = "low_limits_floor";
523 thermal-sensors = <&tsens0 1>;
Manaf Meethalavalappu Pallikunhi250c0922020-04-29 17:45:36 +0530524 wake-capable-sensor;
Jing Xue212856e2019-08-13 15:28:03 +0800525 tracks-low;
526
527 trips {
528 mdm_core_trip: mdm-core-trip {
529 temperature = <5000>;
530 hysteresis = <5000>;
531 type = "passive";
532 };
533 };
534
535 cooling-maps {
536 cpu0_vdd_cdev {
537 trip = <&mdm_core_trip>;
538 cooling-device = <&CPU0 (THERMAL_MAX_LIMIT-2)
539 (THERMAL_MAX_LIMIT-2)>;
540 };
541
542 cx_vdd_cdev {
543 trip = <&mdm_core_trip>;
544 cooling-device = <&pm660_cx_cdev 0 0>;
545 };
546
547 modem_vdd_cdev {
548 trip = <&mdm_core_trip>;
549 cooling-device = <&modem_vdd 0 0>;
550 };
551 };
552 };
553
554 lpass-lowfr {
555 polling-delay-passive = <0>;
556 polling-delay = <0>;
557 thermal-governor = "low_limits_floor";
558 thermal-sensors = <&tsens0 2>;
Manaf Meethalavalappu Pallikunhi250c0922020-04-29 17:45:36 +0530559 wake-capable-sensor;
Jing Xue212856e2019-08-13 15:28:03 +0800560 tracks-low;
561
562 trips {
563 qdsp_trip: qdsp-trip {
564 temperature = <5000>;
565 hysteresis = <5000>;
566 type = "passive";
567 };
568 };
569
570 cooling-maps {
571 cpu0_vdd_cdev {
572 trip = <&qdsp_trip>;
573 cooling-device = <&CPU0 (THERMAL_MAX_LIMIT-2)
574 (THERMAL_MAX_LIMIT-2)>;
575 };
576
577 cx_vdd_cdev {
578 trip = <&qdsp_trip>;
579 cooling-device = <&pm660_cx_cdev 0 0>;
580 };
581
582 modem_vdd_cdev {
583 trip = <&qdsp_trip>;
584 cooling-device = <&modem_vdd 0 0>;
585 };
586 };
587 };
588
589 camera-lowfr {
590 polling-delay-passive = <0>;
591 polling-delay = <0>;
592 thermal-governor = "low_limits_floor";
593 thermal-sensors = <&tsens0 3>;
Manaf Meethalavalappu Pallikunhi250c0922020-04-29 17:45:36 +0530594 wake-capable-sensor;
Jing Xue212856e2019-08-13 15:28:03 +0800595 tracks-low;
596
597 trips {
598 camera_trip: camera-trip {
599 temperature = <5000>;
600 hysteresis = <5000>;
601 type = "passive";
602 };
603 };
604
605 cooling-maps {
606 cpu0_vdd_cdev {
607 trip = <&camera_trip>;
608 cooling-device = <&CPU0 (THERMAL_MAX_LIMIT-2)
609 (THERMAL_MAX_LIMIT-2)>;
610 };
611
612 cx_vdd_cdev {
613 trip = <&camera_trip>;
614 cooling-device = <&pm660_cx_cdev 0 0>;
615 };
616
617 modem_vdd_cdev {
618 trip = <&camera_trip>;
619 cooling-device = <&modem_vdd 0 0>;
620 };
621 };
622 };
623
624 cpuss1-lowfr {
625 polling-delay-passive = <0>;
626 polling-delay = <0>;
627 thermal-governor = "low_limits_floor";
628 thermal-sensors = <&tsens0 4>;
Manaf Meethalavalappu Pallikunhi250c0922020-04-29 17:45:36 +0530629 wake-capable-sensor;
Jing Xue212856e2019-08-13 15:28:03 +0800630 tracks-low;
631
632 trips {
633 cpuss1_trip: cpuss1-trip {
634 temperature = <5000>;
635 hysteresis = <5000>;
636 type = "passive";
637 };
638 };
639
640 cooling-maps {
641 cpu0_vdd_cdev {
642 trip = <&cpuss1_trip>;
643 cooling-device = <&CPU0 (THERMAL_MAX_LIMIT-2)
644 (THERMAL_MAX_LIMIT-2)>;
645 };
646
647 cx_vdd_cdev {
648 trip = <&cpuss1_trip>;
649 cooling-device = <&pm660_cx_cdev 0 0>;
650 };
651
652 modem_vdd_cdev {
653 trip = <&cpuss1_trip>;
654 cooling-device = <&modem_vdd 0 0>;
655 };
656 };
657 };
658
659 apc1-cpu0-lowfr {
660 polling-delay-passive = <0>;
661 polling-delay = <0>;
662 thermal-governor = "low_limits_floor";
663 thermal-sensors = <&tsens0 5>;
Manaf Meethalavalappu Pallikunhi250c0922020-04-29 17:45:36 +0530664 wake-capable-sensor;
Jing Xue212856e2019-08-13 15:28:03 +0800665 tracks-low;
666
667 trips {
668 cpu0_trip: apc1-cpu0-trip {
669 temperature = <5000>;
670 hysteresis = <5000>;
671 type = "passive";
672 };
673 };
674
675 cooling-maps {
676 cpu0_vdd_cdev {
677 trip = <&cpu0_trip>;
678 cooling-device = <&CPU0 (THERMAL_MAX_LIMIT-2)
679 (THERMAL_MAX_LIMIT-2)>;
680 };
681
682 cx_vdd_cdev {
683 trip = <&cpu0_trip>;
684 cooling-device = <&pm660_cx_cdev 0 0>;
685 };
686
687 modem_vdd_cdev {
688 trip = <&cpu0_trip>;
689 cooling-device = <&modem_vdd 0 0>;
690 };
691 };
692 };
693
694 apc1-cpu1-lowfr {
695 polling-delay-passive = <0>;
696 polling-delay = <0>;
697 thermal-governor = "low_limits_floor";
698 thermal-sensors = <&tsens0 6>;
Manaf Meethalavalappu Pallikunhi250c0922020-04-29 17:45:36 +0530699 wake-capable-sensor;
Jing Xue212856e2019-08-13 15:28:03 +0800700 tracks-low;
701
702 trips {
703 cpu1_trip: apc1-cpu1-trip {
704 temperature = <5000>;
705 hysteresis = <5000>;
706 type = "passive";
707 };
708 };
709
710 cooling-maps {
711 cpu0_vdd_cdev {
712 trip = <&cpu1_trip>;
713 cooling-device = <&CPU0 (THERMAL_MAX_LIMIT-2)
714 (THERMAL_MAX_LIMIT-2)>;
715 };
716
717 cx_vdd_cdev {
718 trip = <&cpu1_trip>;
719 cooling-device = <&pm660_cx_cdev 0 0>;
720 };
721
722 modem_vdd_cdev {
723 trip = <&cpu1_trip>;
724 cooling-device = <&modem_vdd 0 0>;
725 };
726 };
727 };
728
729 apc1-cpu2-lowfr {
730 polling-delay-passive = <0>;
731 polling-delay = <0>;
732 thermal-governor = "low_limits_floor";
733 thermal-sensors = <&tsens0 7>;
Manaf Meethalavalappu Pallikunhi250c0922020-04-29 17:45:36 +0530734 wake-capable-sensor;
Jing Xue212856e2019-08-13 15:28:03 +0800735 tracks-low;
736
737 trips {
738 cpu2_trip: apc1-cpu2-trip {
739 temperature = <5000>;
740 hysteresis = <5000>;
741 type = "passive";
742 };
743 };
744
745 cooling-maps {
746 cpu0_vdd_cdev {
747 trip = <&cpu2_trip>;
748 cooling-device = <&CPU0 (THERMAL_MAX_LIMIT-2)
749 (THERMAL_MAX_LIMIT-2)>;
750 };
751
752 cx_vdd_cdev {
753 trip = <&cpu2_trip>;
754 cooling-device = <&pm660_cx_cdev 0 0>;
755 };
756
757 modem_vdd_cdev {
758 trip = <&cpu2_trip>;
759 cooling-device = <&modem_vdd 0 0>;
760 };
761 };
762 };
763
764 apc1-cpu3-lowfr {
765 polling-delay-passive = <0>;
766 polling-delay = <0>;
767 thermal-governor = "low_limits_floor";
768 thermal-sensors = <&tsens0 8>;
Manaf Meethalavalappu Pallikunhi250c0922020-04-29 17:45:36 +0530769 wake-capable-sensor;
Jing Xue212856e2019-08-13 15:28:03 +0800770 tracks-low;
771
772 trips {
773 cpu3_trip: apc1-cpu3-trip {
774 temperature = <5000>;
775 hysteresis = <5000>;
776 type = "passive";
777 };
778 };
779
780 cooling-maps {
781 cpu0_vdd_cdev {
782 trip = <&cpu3_trip>;
783 cooling-device = <&CPU0 (THERMAL_MAX_LIMIT-2)
784 (THERMAL_MAX_LIMIT-2)>;
785 };
786
787 cx_vdd_cdev {
788 trip = <&cpu3_trip>;
789 cooling-device = <&pm660_cx_cdev 0 0>;
790 };
791
792 modem_vdd_cdev {
793 trip = <&cpu3_trip>;
794 cooling-device = <&modem_vdd 0 0>;
795 };
796 };
797 };
798
799 cpuss0-lowfr {
800 polling-delay-passive = <0>;
801 polling-delay = <0>;
802 thermal-governor = "low_limits_floor";
803 thermal-sensors = <&tsens0 9>;
Manaf Meethalavalappu Pallikunhi250c0922020-04-29 17:45:36 +0530804 wake-capable-sensor;
Jing Xue212856e2019-08-13 15:28:03 +0800805 tracks-low;
806
807 trips {
808 cpuss0_lowf_trip: cpuss0-lowf-trip {
809 temperature = <5000>;
810 hysteresis = <5000>;
811 type = "passive";
812 };
813 };
814
815 cooling-maps {
816 cpu0_vdd_cdev {
817 trip = <&cpuss0_lowf_trip>;
818 cooling-device = <&CPU0 (THERMAL_MAX_LIMIT-2)
819 (THERMAL_MAX_LIMIT-2)>;
820 };
821
822 cx_vdd_cdev {
823 trip = <&cpuss0_lowf_trip>;
824 cooling-device = <&pm660_cx_cdev 0 0>;
825 };
826
827 modem_vdd_cdev {
828 trip = <&cpuss0_lowf_trip>;
829 cooling-device = <&modem_vdd 0 0>;
830 };
831 };
832 };
833
834 gpu-lowfr {
835 polling-delay-passive = <0>;
836 polling-delay = <0>;
837 thermal-governor = "low_limits_floor";
838 thermal-sensors = <&tsens0 10>;
Manaf Meethalavalappu Pallikunhi250c0922020-04-29 17:45:36 +0530839 wake-capable-sensor;
Jing Xue212856e2019-08-13 15:28:03 +0800840 tracks-low;
841
842 trips {
843 gpu_lowf_trip: gpu-lowf-trip {
844 temperature = <5000>;
845 hysteresis = <5000>;
846 type = "passive";
847 };
848 };
849
850 cooling-maps {
851 cpu0_vdd_cdev {
852 trip = <&gpu_lowf_trip>;
853 cooling-device = <&CPU0 (THERMAL_MAX_LIMIT-2)
854 (THERMAL_MAX_LIMIT-2)>;
855 };
856
857 cx_vdd_cdev {
858 trip = <&gpu_lowf_trip>;
859 cooling-device = <&pm660_cx_cdev 0 0>;
860 };
861
862 modem_vdd_cdev {
863 trip = <&gpu_lowf_trip>;
864 cooling-device = <&modem_vdd 0 0>;
865 };
866 };
867 };
868
869 camera-therm-adc {
870 polling-delay-passive = <0>;
871 polling-delay = <0>;
872 thermal-sensors = <&pm660_adc_tm 0x4e>;
873 wake-capable-sensor;
874 thermal-governor = "user_space";
875
876 trips {
877 active-config0 {
878 temperature = <65000>;
879 hysteresis = <1000>;
880 type = "passive";
881 };
882 };
883 };
884
885 pmic-therm-adc {
886 polling-delay-passive = <0>;
887 polling-delay = <0>;
888 thermal-sensors = <&pm660_adc_tm 0x50>;
889 wake-capable-sensor;
890 thermal-governor = "user_space";
891
892 trips {
893 active-config0 {
894 temperature = <65000>;
895 hysteresis = <1000>;
896 type = "passive";
897 };
898 };
899 };
900
901 quiet-therm-step {
902 polling-delay-passive = <1000>;
903 polling-delay = <0>;
904 thermal-sensors = <&pm660_adc_tm 0x51>;
905 thermal-governor = "step_wise";
Manaf Meethalavalappu Pallikunhi250c0922020-04-29 17:45:36 +0530906 wake-capable-sensor;
Jing Xue212856e2019-08-13 15:28:03 +0800907
908 trips {
909 quiet_batt_439_trip1: quiet-batt-trip1 {
910 temperature = <38000>;
911 hysteresis = <2000>;
912 type = "passive";
913 };
914
915 quiet_batt_439_trip2: quiet-batt-trip2 {
916 temperature = <40000>;
917 hysteresis = <2000>;
918 type = "passive";
919 };
920
921 quiet_batt_439_trip3: quiet-batt-trip3 {
922 temperature = <42000>;
923 hysteresis = <2000>;
924 type = "passive";
925 };
926
927 quiet_batt_439_trip4: quiet-batt-trip4 {
928 temperature = <44000>;
929 hysteresis = <2000>;
930 type = "passive";
931 };
932
933 quiet_modem_439_trip1: quiet-modem-trip0 {
934 temperature = <44000>;
935 hysteresis = <4000>;
936 type = "passive";
937 };
938
939 quiet_modem_439_trip2: quiet-modem-trip1 {
940 temperature = <46000>;
941 hysteresis = <4000>;
942 type = "passive";
943 };
944
945 quiet_batt_439_trip5: quiet-batt-trip5 {
946 temperature = <46000>;
947 hysteresis = <2000>;
948 type = "passive";
949 };
950
Jing Xue81b31242019-11-26 17:05:43 +0800951 quiet_modem_439_trip3: quiet-modem-trp3 {
Jing Xue212856e2019-08-13 15:28:03 +0800952 temperature = <48000>;
953 hysteresis = <2000>;
954 type = "passive";
955 };
956
957 quiet_cpus_439_trip: quiet-cpus-trip {
958 temperature = <48000>;
959 hysteresis = <0>;
960 type = "passive";
961 };
962
963 quiet_gpu_439_trip: quiet-gpu-trip {
964 temperature = <50000>;
965 hysteresis = <0>;
966 type = "passive";
967 };
968
Jing Xue81b31242019-11-26 17:05:43 +0800969 quiet_batt_439_trip6: quiet-batt-trip6 {
970 temperature = <55000>;
Jing Xue212856e2019-08-13 15:28:03 +0800971 hysteresis = <2000>;
972 type = "passive";
973 };
974
975 quiet_modem_439_trip4: quiet-modem-trip3 {
976 temperature = <55000>;
977 hysteresis = <5000>;
978 type = "passive";
979 };
980 };
981
982 cooling-maps {
983 skin_cpu0 {
984 trip = <&quiet_cpus_439_trip>;
985 /* throttle from fmax to 1497600KHz */
986 cooling-device = <&CPU0 THERMAL_NO_LIMIT
987 (THERMAL_MAX_LIMIT-3)>;
988 };
989
990 skin_cpu1 {
991 trip = <&quiet_cpus_439_trip>;
992 cooling-device = <&CPU1 THERMAL_NO_LIMIT
993 (THERMAL_MAX_LIMIT-3)>;
994 };
995
996 skin_cpu2 {
997 trip = <&quiet_cpus_439_trip>;
998 cooling-device = <&CPU2 THERMAL_NO_LIMIT
999 (THERMAL_MAX_LIMIT-3)>;
1000 };
1001
1002 skin_cpu3 {
1003 trip = <&quiet_cpus_439_trip>;
1004 cooling-device = <&CPU3 THERMAL_NO_LIMIT
1005 (THERMAL_MAX_LIMIT-3)>;
1006 };
1007
1008 skin_gpu {
1009 trip = <&quiet_gpu_439_trip>;
1010 /* throttle from fmax to 510000000Hz */
1011 cooling-device = <&msm_gpu THERMAL_NO_LIMIT
1012 (THERMAL_MAX_LIMIT-2)>;
1013 };
1014
1015 modem_proc_lvl1 {
1016 trip = <&quiet_modem_439_trip1>;
1017 cooling-device = <&modem_proc 1 1>;
1018 };
1019
1020 modem_proc_lvl2 {
1021 trip = <&quiet_modem_439_trip4>;
1022 cooling-device = <&modem_proc 3 3>;
1023 };
1024
1025 modem_lvl1 {
1026 trip = <&quiet_modem_439_trip2>;
1027 cooling-device = <&modem_pa 1 1>;
1028 };
1029
1030 modem_lvl2 {
Jing Xue81b31242019-11-26 17:05:43 +08001031 trip = <&quiet_modem_439_trip3>;
Jing Xue212856e2019-08-13 15:28:03 +08001032 cooling-device = <&modem_pa 2 2>;
1033 };
1034
1035 modem_lvl3 {
1036 trip = <&quiet_modem_439_trip4>;
1037 cooling-device = <&modem_pa 3 3>;
1038 };
1039
1040 battery_lvl1 {
1041 trip = <&quiet_batt_439_trip1>;
1042 cooling-device = <&pm660_charger 1 1>;
1043 };
1044
1045 battery_lvl2 {
1046 trip = <&quiet_batt_439_trip2>;
1047 cooling-device = <&pm660_charger 2 2>;
1048 };
1049
1050 battery_lvl3 {
1051 trip = <&quiet_batt_439_trip3>;
1052 cooling-device = <&pm660_charger 3 3>;
1053 };
1054
1055 battery_lvl4 {
1056 trip = <&quiet_batt_439_trip4>;
1057 cooling-device = <&pm660_charger 4 4>;
1058 };
1059
1060 battery_lvl5 {
1061 trip = <&quiet_batt_439_trip5>;
1062 cooling-device = <&pm660_charger 5 5>;
1063 };
1064
1065 battery_lvl6 {
Jing Xue81b31242019-11-26 17:05:43 +08001066 trip = <&quiet_batt_439_trip6>;
Jing Xue212856e2019-08-13 15:28:03 +08001067 cooling-device = <&pm660_charger 6 6>;
1068 };
1069
Jing Xue212856e2019-08-13 15:28:03 +08001070 };
1071 };
1072};