blob: 5f23b911e8e3509b9ec25397b501f58771ea8391 [file] [log] [blame]
Tirupathi Reddy8f14a6a2017-06-09 11:13:21 +05301/* Copyright (c) 2016-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/spmi/spmi.h>
14#include <dt-bindings/interrupt-controller/irq.h>
15
16&spmi_bus {
17 qcom,pm660@0 {
18 compatible ="qcom,spmi-pmic";
19 reg = <0x0 SPMI_USID>;
20 #address-cells = <2>;
21 #size-cells = <0>;
22
23 pm660_revid: qcom,revid@100 {
24 compatible = "qcom,qpnp-revid";
25 reg = <0x100 0x100>;
26 qcom,fab-id-valid;
27 };
28
29 pm660_misc: qcom,misc@900 {
30 compatible = "qcom,qpnp-misc";
31 reg = <0x900 0x100>;
32 };
33
34 qcom,power-on@800 {
35 compatible = "qcom,qpnp-power-on";
36 reg = <0x800 0x100>;
37 interrupts = <0x0 0x8 0x0 IRQ_TYPE_NONE>,
38 <0x0 0x8 0x1 IRQ_TYPE_NONE>,
39 <0x0 0x8 0x4 IRQ_TYPE_NONE>,
40 <0x0 0x8 0x5 IRQ_TYPE_NONE>;
41 interrupt-names = "kpdpwr", "resin",
42 "resin-bark", "kpdpwr-resin-bark";
43 qcom,pon-dbc-delay = <15625>;
44 qcom,kpdpwr-sw-debounce;
45 qcom,system-reset;
46 qcom,store-hard-reset-reason;
47
48 qcom,pon_1 {
49 qcom,pon-type = <0>;
50 qcom,pull-up = <1>;
51 linux,code = <116>;
52 };
53
54 qcom,pon_2 {
55 qcom,pon-type = <1>;
56 qcom,pull-up = <1>;
57 linux,code = <114>;
58 };
59 };
60
61 qcom,temp-alarm@2400 {
62 compatible = "qcom,qpnp-temp-alarm";
63 reg = <0x2400 0x100>;
64 interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
65 label = "pm660_tz";
66 qcom,channel-num = <6>;
67 qcom,temp_alarm-vadc = <&pm660_vadc>;
68 };
69
70 pm660_gpios: gpios {
71 compatible = "qcom,qpnp-pin";
72 gpio-controller;
73 #gpio-cells = <2>;
74 #address-cells = <1>;
75 #size-cells = <1>;
76 label = "pm660-gpio";
77
78 gpio@c000 {
79 reg = <0xc000 0x100>;
80 qcom,pin-num = <1>;
81 status = "disabled";
82 };
83
84 gpio@c100 {
85 reg = <0xc100 0x100>;
86 qcom,pin-num = <2>;
87 status = "disabled";
88 };
89
90 gpio@c200 {
91 reg = <0xc200 0x100>;
92 qcom,pin-num = <3>;
93 status = "disabled";
94 };
95
96 gpio@c300 {
97 reg = <0xc300 0x100>;
98 qcom,pin-num = <4>;
99 status = "disabled";
100 };
101
102 gpio@c400 {
103 reg = <0xc400 0x100>;
104 qcom,pin-num = <5>;
105 status = "disabled";
106 };
107
108 gpio@c500 {
109 reg = <0xc500 0x100>;
110 qcom,pin-num = <6>;
111 status = "disabled";
112 };
113
114 gpio@c600 {
115 reg = <0xc600 0x100>;
116 qcom,pin-num = <7>;
117 status = "disabled";
118 };
119
120 gpio@c700 {
121 reg = <0xc700 0x100>;
122 qcom,pin-num = <8>;
123 status = "disabled";
124 };
125
126 gpio@c800 {
127 reg = <0xc800 0x100>;
128 qcom,pin-num = <9>;
129 status = "disabled";
130 };
131
132 gpio@c900 {
133 reg = <0xc900 0x100>;
134 qcom,pin-num = <10>;
135 status = "disabled";
136 };
137
138 gpio@ca00 {
139 reg = <0xca00 0x100>;
140 qcom,pin-num = <11>;
141 status = "disabled";
142 };
143
144 gpio@cb00 {
145 reg = <0xcb00 0x100>;
146 qcom,pin-num = <12>;
147 status = "disabled";
148 };
149
150 gpio@cc00 {
151 reg = <0xcc00 0x100>;
152 qcom,pin-num = <13>;
153 status = "disabled";
154 };
155 };
156
157 pm660_coincell: qcom,coincell@2800 {
158 compatible = "qcom,qpnp-coincell";
159 reg = <0x2800 0x100>;
160 };
161
162 pm660_rtc: qcom,pm660_rtc {
163 compatible = "qcom,qpnp-rtc";
164 #address-cells = <1>;
165 #size-cells = <1>;
166 qcom,qpnp-rtc-write = <0>;
167 qcom,qpnp-rtc-alarm-pwrup = <0>;
168
169 qcom,pm660_rtc_rw@6000 {
170 reg = <0x6000 0x100>;
171 };
172 qcom,pm660_rtc_alarm@6100 {
173 reg = <0x6100 0x100>;
174 interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
175 };
176 };
177
178 pm660_vadc: vadc@3100 {
179 compatible = "qcom,qpnp-vadc-hc";
180 reg = <0x3100 0x100>;
181 #address-cells = <1>;
182 #size-cells = <0>;
183 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
184 interrupt-names = "eoc-int-en-set";
185 qcom,adc-bit-resolution = <15>;
186 qcom,adc-vdd-reference = <1875>;
187
188 chan@6 {
189 label = "die_temp";
190 reg = <6>;
191 qcom,decimation = <2>;
192 qcom,pre-div-channel-scaling = <0>;
193 qcom,calibration-type = "absolute";
194 qcom,scale-function = <3>;
195 qcom,hw-settle-time = <0>;
196 qcom,fast-avg-setup = <0>;
197 qcom,cal-val = <0>;
198 };
199
200 chan@0 {
201 label = "ref_gnd";
202 reg = <0>;
203 qcom,decimation = <2>;
204 qcom,pre-div-channel-scaling = <0>;
205 qcom,calibration-type = "absolute";
206 qcom,scale-function = <0>;
207 qcom,hw-settle-time = <0>;
208 qcom,fast-avg-setup = <0>;
209 qcom,cal-val = <0>;
210 };
211
212 chan@1 {
213 label = "ref_1250v";
214 reg = <1>;
215 qcom,decimation = <2>;
216 qcom,pre-div-channel-scaling = <0>;
217 qcom,calibration-type = "absolute";
218 qcom,scale-function = <0>;
219 qcom,hw-settle-time = <0>;
220 qcom,fast-avg-setup = <0>;
221 qcom,cal-val = <0>;
222 };
223
224 chan@83 {
225 label = "vph_pwr";
226 reg = <0x83>;
227 qcom,decimation = <2>;
228 qcom,pre-div-channel-scaling = <1>;
229 qcom,calibration-type = "absolute";
230 qcom,scale-function = <0>;
231 qcom,hw-settle-time = <0>;
232 qcom,fast-avg-setup = <0>;
233 };
234
235 chan@85 {
236 label = "vcoin";
237 reg = <0x85>;
238 qcom,decimation = <2>;
239 qcom,pre-div-channel-scaling = <1>;
240 qcom,calibration-type = "absolute";
241 qcom,scale-function = <0>;
242 qcom,hw-settle-time = <0>;
243 qcom,fast-avg-setup = <0>;
244 };
245
246 chan@4c {
247 label = "xo_therm";
248 reg = <0x4c>;
249 qcom,decimation = <2>;
250 qcom,pre-div-channel-scaling = <0>;
251 qcom,calibration-type = "ratiometric";
252 qcom,scale-function = <4>;
253 qcom,hw-settle-time = <2>;
254 qcom,fast-avg-setup = <0>;
255 };
256
257 chan@4d {
258 label = "msm_therm";
259 reg = <0x4d>;
260 qcom,decimation = <2>;
261 qcom,pre-div-channel-scaling = <0>;
262 qcom,calibration-type = "ratiometric";
263 qcom,scale-function = <2>;
264 qcom,hw-settle-time = <2>;
265 qcom,fast-avg-setup = <0>;
266 };
267
268 chan@51 {
269 label = "quiet_therm";
270 reg = <0x51>;
271 qcom,decimation = <2>;
272 qcom,pre-div-channel-scaling = <0>;
273 qcom,calibration-type = "ratiometric";
274 qcom,scale-function = <2>;
275 qcom,hw-settle-time = <2>;
276 qcom,fast-avg-setup = <0>;
277 };
278
279 chan@4e {
280 label = "emmc_therm";
281 reg = <0x4e>;
282 qcom,decimation = <2>;
283 qcom,pre-div-channel-scaling = <0>;
284 qcom,calibration-type = "ratiometric";
285 qcom,scale-function = <2>;
286 qcom,hw-settle-time = <2>;
287 qcom,fast-avg-setup = <0>;
288 qcom,vadc-thermal-node;
289 };
290
291 chan@4f {
292 label = "pa_therm0";
293 reg = <0x4f>;
294 qcom,decimation = <2>;
295 qcom,pre-div-channel-scaling = <0>;
296 qcom,calibration-type = "ratiometric";
297 qcom,scale-function = <2>;
298 qcom,hw-settle-time = <2>;
299 qcom,fast-avg-setup = <0>;
300 qcom,vadc-thermal-node;
301 };
302
303 chan@1d {
304 label = "drax_temp";
305 reg = <0x1d>;
306 qcom,decimation = <2>;
307 qcom,pre-div-channel-scaling = <0>;
308 qcom,calibration-type = "absolute";
309 qcom,scale-function = <3>;
310 qcom,hw-settle-time = <0>;
311 qcom,fast-avg-setup = <0>;
312 qcom,cal-val = <0>;
313 };
314 };
315
316 pm660_charger: qcom,qpnp-smb2 {
317 compatible = "qcom,qpnp-smb2";
318 #address-cells = <1>;
319 #size-cells = <1>;
320
321 qcom,pmic-revid = <&pm660_revid>;
322
323 io-channels = <&pm660_rradc 8>,
324 <&pm660_rradc 10>,
325 <&pm660_rradc 3>,
326 <&pm660_rradc 4>;
327 io-channel-names = "charger_temp",
328 "charger_temp_max",
329 "usbin_i",
330 "usbin_v";
331
332 qcom,wipower-max-uw = <5000000>;
Tirupathi Reddy242bd802017-06-09 11:31:05 +0530333
334 /* Enable after the qusb_phy0 device node is added */
335 /* dpdm-supply = <&qusb_phy0>; */
Tirupathi Reddy8f14a6a2017-06-09 11:13:21 +0530336
337 qcom,thermal-mitigation
338 = <3000000 2500000 2000000 1500000
339 1000000 500000>;
340
341 qcom,chgr@1000 {
342 reg = <0x1000 0x100>;
343 interrupts =
344 <0x0 0x10 0x0 IRQ_TYPE_EDGE_RISING>,
345 <0x0 0x10 0x1 IRQ_TYPE_EDGE_RISING>,
346 <0x0 0x10 0x2 IRQ_TYPE_EDGE_RISING>,
347 <0x0 0x10 0x3 IRQ_TYPE_EDGE_RISING>,
348 <0x0 0x10 0x4 IRQ_TYPE_EDGE_RISING>;
349
350 interrupt-names = "chg-error",
351 "chg-state-change",
352 "step-chg-state-change",
353 "step-chg-soc-update-fail",
354 "step-chg-soc-update-request";
355 };
356
357 qcom,otg@1100 {
358 reg = <0x1100 0x100>;
359 interrupts = <0x0 0x11 0x0 IRQ_TYPE_EDGE_BOTH>,
360 <0x0 0x11 0x1 IRQ_TYPE_EDGE_BOTH>,
361 <0x0 0x11 0x2 IRQ_TYPE_EDGE_BOTH>,
362 <0x0 0x11 0x3 IRQ_TYPE_EDGE_BOTH>;
363
364 interrupt-names = "otg-fail",
365 "otg-overcurrent",
366 "otg-oc-dis-sw-sts",
367 "testmode-change-detect";
368 };
369
370 qcom,bat-if@1200 {
371 reg = <0x1200 0x100>;
372 interrupts =
373 <0x0 0x12 0x0 IRQ_TYPE_EDGE_RISING>,
374 <0x0 0x12 0x1 IRQ_TYPE_EDGE_BOTH>,
375 <0x0 0x12 0x2 IRQ_TYPE_EDGE_BOTH>,
376 <0x0 0x12 0x3 IRQ_TYPE_EDGE_BOTH>,
377 <0x0 0x12 0x4 IRQ_TYPE_EDGE_BOTH>,
378 <0x0 0x12 0x5 IRQ_TYPE_EDGE_BOTH>;
379
380 interrupt-names = "bat-temp",
381 "bat-ocp",
382 "bat-ov",
383 "bat-low",
384 "bat-therm-or-id-missing",
385 "bat-terminal-missing";
386 };
387
388 qcom,usb-chgpth@1300 {
389 reg = <0x1300 0x100>;
390 interrupts =
391 <0x0 0x13 0x0 IRQ_TYPE_EDGE_BOTH>,
392 <0x0 0x13 0x1 IRQ_TYPE_EDGE_BOTH>,
393 <0x0 0x13 0x2 IRQ_TYPE_EDGE_BOTH>,
394 <0x0 0x13 0x3 IRQ_TYPE_EDGE_BOTH>,
395 <0x0 0x13 0x4 IRQ_TYPE_EDGE_BOTH>,
396 <0x0 0x13 0x5 IRQ_TYPE_EDGE_RISING>,
397 <0x0 0x13 0x6 IRQ_TYPE_EDGE_RISING>,
398 <0x0 0x13 0x7 IRQ_TYPE_EDGE_RISING>;
399
400 interrupt-names = "usbin-collapse",
401 "usbin-lt-3p6v",
402 "usbin-uv",
403 "usbin-ov",
404 "usbin-plugin",
405 "usbin-src-change",
406 "usbin-icl-change",
407 "type-c-change";
408 };
409
410 qcom,dc-chgpth@1400 {
411 reg = <0x1400 0x100>;
412 interrupts =
413 <0x0 0x14 0x0 IRQ_TYPE_EDGE_BOTH>,
414 <0x0 0x14 0x1 IRQ_TYPE_EDGE_BOTH>,
415 <0x0 0x14 0x2 IRQ_TYPE_EDGE_BOTH>,
416 <0x0 0x14 0x3 IRQ_TYPE_EDGE_BOTH>,
417 <0x0 0x14 0x4 IRQ_TYPE_EDGE_BOTH>,
418 <0x0 0x14 0x5 IRQ_TYPE_EDGE_BOTH>,
419 <0x0 0x14 0x6 IRQ_TYPE_EDGE_RISING>;
420
421 interrupt-names = "dcin-collapse",
422 "dcin-lt-3p6v",
423 "dcin-uv",
424 "dcin-ov",
425 "dcin-plugin",
426 "div2-en-dg",
427 "dcin-icl-change";
428 };
429
430 qcom,chgr-misc@1600 {
431 reg = <0x1600 0x100>;
432 interrupts =
433 <0x0 0x16 0x0 IRQ_TYPE_EDGE_RISING>,
434 <0x0 0x16 0x1 IRQ_TYPE_EDGE_RISING>,
435 <0x0 0x16 0x2 IRQ_TYPE_EDGE_BOTH>,
436 <0x0 0x16 0x3 IRQ_TYPE_EDGE_BOTH>,
437 <0x0 0x16 0x4 IRQ_TYPE_EDGE_BOTH>,
438 <0x0 0x16 0x5 IRQ_TYPE_EDGE_BOTH>,
439 <0x0 0x16 0x6 IRQ_TYPE_EDGE_FALLING>,
440 <0x0 0x16 0x7 IRQ_TYPE_EDGE_BOTH>;
441
442 interrupt-names = "wdog-snarl",
443 "wdog-bark",
444 "aicl-fail",
445 "aicl-done",
446 "high-duty-cycle",
447 "input-current-limiting",
448 "temperature-change",
449 "switcher-power-ok";
450 };
451 };
452
453 pm660_pdphy: qcom,usb-pdphy@1700 {
454 compatible = "qcom,qpnp-pdphy";
455 reg = <0x1700 0x100>;
456 vdd-pdphy-supply = <&pm660l_l7>;
457 vbus-supply = <&smb2_vbus>;
458 vconn-supply = <&smb2_vconn>;
459 interrupts = <0x0 0x17 0x0 IRQ_TYPE_EDGE_RISING>,
460 <0x0 0x17 0x1 IRQ_TYPE_EDGE_RISING>,
461 <0x0 0x17 0x2 IRQ_TYPE_EDGE_RISING>,
462 <0x0 0x17 0x3 IRQ_TYPE_EDGE_RISING>,
463 <0x0 0x17 0x4 IRQ_TYPE_EDGE_RISING>,
464 <0x0 0x17 0x5 IRQ_TYPE_EDGE_RISING>,
465 <0x0 0x17 0x6 IRQ_TYPE_EDGE_RISING>;
466
467 interrupt-names = "sig-tx",
468 "sig-rx",
469 "msg-tx",
470 "msg-rx",
471 "msg-tx-failed",
472 "msg-tx-discarded",
473 "msg-rx-discarded";
474
475 qcom,default-sink-caps = <5000 3000>, /* 5V @ 3A */
476 <9000 3000>; /* 9V @ 3A */
477 };
478
479 pm660_adc_tm: vadc@3400 {
480 compatible = "qcom,qpnp-adc-tm-hc";
481 reg = <0x3400 0x100>;
482 #address-cells = <1>;
483 #size-cells = <0>;
484 interrupts = <0x0 0x34 0x0 IRQ_TYPE_EDGE_RISING>;
485 interrupt-names = "eoc-int-en-set";
486 qcom,adc-bit-resolution = <15>;
487 qcom,adc-vdd-reference = <1875>;
488 qcom,adc_tm-vadc = <&pm660_vadc>;
489 qcom,decimation = <0>;
490 qcom,fast-avg-setup = <0>;
Lakshmi Sunkara5afac232017-06-27 18:06:25 +0530491 #thermal-sensor-cells = <1>;
Tirupathi Reddy8f14a6a2017-06-09 11:13:21 +0530492
493 chan@83 {
494 label = "vph_pwr";
495 reg = <0x83>;
496 qcom,pre-div-channel-scaling = <1>;
497 qcom,calibration-type = "absolute";
498 qcom,scale-function = <0>;
499 qcom,hw-settle-time = <0>;
500 qcom,btm-channel-number = <0x60>;
501 };
502
503 chan@4d {
504 label = "msm_therm";
505 reg = <0x4d>;
506 qcom,pre-div-channel-scaling = <0>;
507 qcom,calibration-type = "ratiometric";
508 qcom,scale-function = <2>;
509 qcom,hw-settle-time = <2>;
510 qcom,btm-channel-number = <0x68>;
511 qcom,thermal-node;
512 };
513
514 chan@51 {
515 label = "quiet_therm";
516 reg = <0x51>;
517 qcom,pre-div-channel-scaling = <0>;
518 qcom,calibration-type = "ratiometric";
519 qcom,scale-function = <2>;
520 qcom,hw-settle-time = <2>;
521 qcom,btm-channel-number = <0x70>;
522 qcom,thermal-node;
523 };
524
525 chan@4c {
526 label = "xo_therm";
527 reg = <0x4c>;
528 qcom,pre-div-channel-scaling = <0>;
529 qcom,calibration-type = "ratiometric";
530 qcom,scale-function = <4>;
531 qcom,hw-settle-time = <2>;
532 qcom,btm-channel-number = <0x78>;
533 qcom,thermal-node;
534 };
Lakshmi Sunkara5afac232017-06-27 18:06:25 +0530535
536 chan@4e {
537 label = "emmc_therm";
538 reg = <0x4e>;
539 qcom,pre-div-channel-scaling = <0>;
540 qcom,calibration-type = "ratiometric";
541 qcom,scale-function = <2>;
542 qcom,hw-settle-time = <2>;
543 qcom,btm-channel-number = <0x80>;
544 qcom,vadc-thermal-node;
545 };
546
547 chan@4f {
548 label = "pa_therm0";
549 reg = <0x4f>;
550 qcom,pre-div-channel-scaling = <0>;
551 qcom,calibration-type = "ratiometric";
552 qcom,scale-function = <2>;
553 qcom,hw-settle-time = <2>;
554 qcom,btm-channel-number = <0x88>;
555 qcom,vadc-thermal-node;
556 };
Tirupathi Reddy8f14a6a2017-06-09 11:13:21 +0530557 };
558
559 pm660_rradc: rradc@4500 {
560 compatible = "qcom,rradc";
561 reg = <0x4500 0x100>;
562 #address-cells = <1>;
563 #size-cells = <0>;
564 #io-channel-cells = <1>;
565 qcom,pmic-revid = <&pm660_revid>;
566 };
567
568 pm660_fg: qpnp,fg {
569 compatible = "qcom,fg-gen3";
570 #address-cells = <1>;
571 #size-cells = <1>;
572 qcom,pmic-revid = <&pm660_revid>;
573 io-channels = <&pm660_rradc 0>,
574 <&pm660_rradc 7>;
575 io-channel-names = "rradc_batt_id",
576 "rradc_die_temp";
577 qcom,rradc-base = <0x4500>;
578 qcom,fg-esr-timer-awake = <96 96>;
579 qcom,fg-esr-timer-asleep = <256 256>;
580 qcom,fg-esr-timer-charging = <0 96>;
581 qcom,cycle-counter-en;
582 status = "okay";
583
584 qcom,fg-batt-soc@4000 {
585 status = "okay";
586 reg = <0x4000 0x100>;
587 interrupts = <0x0 0x40 0x0 IRQ_TYPE_EDGE_BOTH>,
588 <0x0 0x40 0x1 IRQ_TYPE_EDGE_BOTH>,
589 <0x0 0x40 0x2
590 IRQ_TYPE_EDGE_RISING>,
591 <0x0 0x40 0x3
592 IRQ_TYPE_EDGE_RISING>,
593 <0x0 0x40 0x4 IRQ_TYPE_EDGE_BOTH>,
594 <0x0 0x40 0x5
595 IRQ_TYPE_EDGE_RISING>,
596 <0x0 0x40 0x6 IRQ_TYPE_EDGE_BOTH>,
597 <0x0 0x40 0x7 IRQ_TYPE_EDGE_BOTH>;
598 interrupt-names = "soc-update",
599 "soc-ready",
600 "bsoc-delta",
601 "msoc-delta",
602 "msoc-low",
603 "msoc-empty",
604 "msoc-high",
605 "msoc-full";
606 };
607
608 qcom,fg-batt-info@4100 {
609 status = "okay";
610 reg = <0x4100 0x100>;
611 interrupts = <0x0 0x41 0x0 IRQ_TYPE_EDGE_BOTH>,
612 <0x0 0x41 0x1 IRQ_TYPE_EDGE_BOTH>,
613 <0x0 0x41 0x2 IRQ_TYPE_EDGE_BOTH>,
614 <0x0 0x41 0x3 IRQ_TYPE_EDGE_BOTH>,
615 <0x0 0x41 0x6 IRQ_TYPE_EDGE_BOTH>;
616 interrupt-names = "vbatt-pred-delta",
617 "vbatt-low",
618 "esr-delta",
619 "batt-missing",
620 "batt-temp-delta";
621 };
622
623 qcom,fg-memif@4400 {
624 status = "okay";
625 reg = <0x4400 0x100>;
626 interrupts = <0x0 0x44 0x0 IRQ_TYPE_EDGE_BOTH>,
627 <0x0 0x44 0x1 IRQ_TYPE_EDGE_BOTH>,
628 <0x0 0x44 0x2 IRQ_TYPE_EDGE_BOTH>;
629 interrupt-names = "ima-rdy",
630 "mem-xcp",
631 "dma-grant";
632 };
633 };
634
635 bcl@4200 {
636 compatible = "qcom,msm-bcl-lmh";
637 reg = <0x4200 0xff>,
638 <0x4300 0xff>;
639 reg-names = "fg_user_adc",
640 "fg_lmh";
641 interrupts = <0x0 0x42 0x0 IRQ_TYPE_NONE>,
642 <0x0 0x42 0x2 IRQ_TYPE_NONE>;
643 interrupt-names = "bcl-high-ibat-int",
644 "bcl-low-vbat-int";
645 qcom,vbat-polling-delay-ms = <100>;
646 qcom,ibat-polling-delay-ms = <100>;
647 };
648 };
649
650 qcom,pm660@1 {
651 compatible ="qcom,spmi-pmic";
652 reg = <0x1 SPMI_USID>;
653 #address-cells = <2>;
654 #size-cells = <0>;
Ankit Sharma842bd8f2017-08-16 14:51:48 +0530655
656 pm660_haptics: qcom,haptics@c000 {
657 compatible = "qcom,qpnp-haptics";
658 reg = <0xc000 0x100>;
659 interrupts = <0x1 0xc0 0x0 IRQ_TYPE_EDGE_BOTH>,
660 <0x1 0xc0 0x1 IRQ_TYPE_EDGE_BOTH>;
661 interrupt-names = "hap-sc-irq", "hap-play-irq";
662 qcom,pmic-revid = <&pm660_revid>;
663 qcom,pmic-misc = <&pm660_misc>;
664 qcom,misc-clk-trim-error-reg = <0xf3>;
665 qcom,actuator-type = <0>;
666 qcom,play-mode = "direct";
667 qcom,vmax-mv = <3200>;
668 qcom,ilim-ma = <800>;
669 qcom,sc-dbc-cycles = <8>;
670 qcom,wave-play-rate-us = <6667>;
671 qcom,en-brake;
672 qcom,lra-high-z = "opt0";
673 qcom,lra-auto-res-mode = "qwd";
674 qcom,lra-res-cal-period = <4>;
675 };
Tirupathi Reddy8f14a6a2017-06-09 11:13:21 +0530676 };
677};
Lakshmi Sunkara5afac232017-06-27 18:06:25 +0530678
679&thermal_zones {
680 xo-therm-adc {
681 polling-delay-passive = <0>;
682 polling-delay = <0>;
683 thermal-sensors = <&pm660_adc_tm 0x4c>;
684 thermal-governor = "user_space";
685
686 trips {
687 active-config0 {
688 temperature = <65000>;
689 hysteresis = <1000>;
690 type = "passive";
691 };
692 };
693 };
694
695 msm-therm-adc {
696 polling-delay-passive = <0>;
697 polling-delay = <0>;
698 thermal-sensors = <&pm660_adc_tm 0x4d>;
699 thermal-governor = "user_space";
700
701 trips {
702 active-config0 {
703 temperature = <65000>;
704 hysteresis = <1000>;
705 type = "passive";
706 };
707 };
708 };
709
710 emmc-therm-adc {
711 polling-delay-passive = <0>;
712 polling-delay = <0>;
713 thermal-sensors = <&pm660_adc_tm 0x4e>;
714 thermal-governor = "user_space";
715
716 trips {
717 active-config0 {
718 temperature = <65000>;
719 hysteresis = <1000>;
720 type = "passive";
721 };
722 };
723 };
724
725 pa-therm0-adc {
726 polling-delay-passive = <0>;
727 polling-delay = <0>;
728 thermal-sensors = <&pm660_adc_tm 0x4f>;
729 thermal-governor = "user_space";
730
731 trips {
732 active-config0 {
733 temperature = <65000>;
734 hysteresis = <1000>;
735 type = "passive";
736 };
737 };
738 };
739
740 quiet-therm-adc {
741 polling-delay-passive = <0>;
742 polling-delay = <0>;
743 thermal-sensors = <&pm660_adc_tm 0x51>;
744 thermal-governor = "user_space";
745
746 trips {
747 active-config0 {
748 temperature = <65000>;
749 hysteresis = <1000>;
750 type = "passive";
751 };
752 };
753 };
754};