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