blob: fa93918df2e4b7728da0be9a90cc66b57663baa1 [file] [log] [blame]
Kiran Gundab8efaba2017-12-20 18:17:20 +05301/* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
Kiran Gundac1c1de72017-09-21 15:05:09 +05302 *
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/msm/power-on.h>
Maria Yu1c9f67f2018-01-25 16:13:46 +080014#include <dt-bindings/spmi/spmi.h>
15#include <dt-bindings/interrupt-controller/arm-gic.h>
Kiran Gundac1c1de72017-09-21 15:05:09 +053016
17&spmi_bus {
18 qcom,pmi8950@2 {
19 compatible ="qcom,spmi-pmic";
20 reg = <0x2 SPMI_USID>;
Anirudh Ghayald77f8f62018-03-04 20:05:25 +053021 #address-cells = <1>;
22 #size-cells = <1>;
Kiran Gundac1c1de72017-09-21 15:05:09 +053023
24 pmi8950_revid: qcom,revid@100 {
25 compatible = "qcom,qpnp-revid";
26 reg = <0x100 0x100>;
27 };
28
29 qcom,power-on@800 {
30 compatible = "qcom,qpnp-power-on";
31 reg = <0x800 0x100>;
32 qcom,secondary-pon-reset;
33 qcom,hard-reset-poweroff-type =
34 <PON_POWER_OFF_SHUTDOWN>;
35
36 pon_perph_reg: qcom,pon_perph_reg {
37 regulator-name = "pon_spare_reg";
38 qcom,pon-spare-reg-addr = <0x8c>;
39 qcom,pon-spare-reg-bit = <1>;
40 };
41 };
42
43 pmi8950_vadc: vadc@3100 {
44 compatible = "qcom,qpnp-vadc";
45 reg = <0x3100 0x100>;
46 #address-cells = <1>;
47 #size-cells = <0>;
Kiran Gundae0665762017-11-22 17:20:24 +053048 interrupts = <0x2 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
Kiran Gundac1c1de72017-09-21 15:05:09 +053049 interrupt-names = "eoc-int-en-set";
50 qcom,adc-bit-resolution = <15>;
51 qcom,adc-vdd-reference = <1800>;
52 qcom,vadc-poll-eoc;
Jishnu Prakash87f3b102018-02-15 13:48:57 +053053 #thermal-sensor-cells = <1>;
Kiran Gundac1c1de72017-09-21 15:05:09 +053054
55 chan@0 {
56 label = "usbin";
57 reg = <0>;
58 qcom,decimation = <0>;
59 qcom,pre-div-channel-scaling = <4>;
60 qcom,calibration-type = "absolute";
61 qcom,scale-function = <0>;
62 qcom,hw-settle-time = <0>;
63 qcom,fast-avg-setup = <0>;
64 };
65
66 chan@1 {
67 label = "dcin";
68 reg = <1>;
69 qcom,decimation = <0>;
70 qcom,pre-div-channel-scaling = <4>;
71 qcom,calibration-type = "absolute";
72 qcom,scale-function = <0>;
73 qcom,hw-settle-time = <0>;
74 qcom,fast-avg-setup = <0>;
75 };
76
77 chan@3 {
78 label = "vchg_sns";
79 reg = <3>;
80 qcom,decimation = <0>;
81 qcom,pre-div-channel-scaling = <1>;
82 qcom,calibration-type = "absolute";
83 qcom,scale-function = <0>;
84 qcom,hw-settle-time = <0>;
85 qcom,fast-avg-setup = <0>;
86 };
87
88 chan@9 {
89 label = "ref_625mv";
90 reg = <9>;
91 qcom,decimation = <0>;
92 qcom,pre-div-channel-scaling = <0>;
93 qcom,calibration-type = "absolute";
94 qcom,scale-function = <0>;
95 qcom,hw-settle-time = <0>;
96 qcom,fast-avg-setup = <0>;
97 };
98
99 chan@a {
100 label = "ref_1250v";
101 reg = <0xa>;
102 qcom,decimation = <0>;
103 qcom,pre-div-channel-scaling = <0>;
104 qcom,calibration-type = "absolute";
105 qcom,scale-function = <0>;
106 qcom,hw-settle-time = <0>;
107 qcom,fast-avg-setup = <0>;
108 };
109
110 chan@d {
111 label = "chg_temp";
112 reg = <0xd>;
113 qcom,decimation = <0>;
114 qcom,pre-div-channel-scaling = <0>;
115 qcom,calibration-type = "absolute";
116 qcom,scale-function = <16>;
117 qcom,hw-settle-time = <0>;
118 qcom,fast-avg-setup = <0>;
119 qcom,vadc-thermal-node;
120 };
121
122 chan@43 {
123 label = "usb_dp";
124 reg = <0x43>;
125 qcom,decimation = <0>;
126 qcom,pre-div-channel-scaling = <1>;
127 qcom,calibration-type = "absolute";
128 qcom,scale-function = <0>;
129 qcom,hw-settle-time = <0>;
130 qcom,fast-avg-setup = <0>;
131 };
132
133 chan@44 {
134 label = "usb_dm";
135 reg = <0x44>;
136 qcom,decimation = <0>;
137 qcom,pre-div-channel-scaling = <1>;
138 qcom,calibration-type = "absolute";
139 qcom,scale-function = <0>;
140 qcom,hw-settle-time = <0>;
141 qcom,fast-avg-setup = <0>;
142 };
143 };
144
145 pmi8950_gpios: gpios {
Kiran Gundab8efaba2017-12-20 18:17:20 +0530146 compatible = "qcom,spmi-gpio";
147 reg = <0xc000 0x200>;
148
149 interrupts = <0x2 0xc0 0 IRQ_TYPE_NONE>,
150 <0x2 0xc1 0 IRQ_TYPE_NONE>;
151 interrupt-names = "pmi8950_gpio1", "pmi8950_gpio2";
152
Kiran Gundac1c1de72017-09-21 15:05:09 +0530153 gpio-controller;
154 #gpio-cells = <2>;
Kiran Gundac1c1de72017-09-21 15:05:09 +0530155 };
156
157 pmi8950_mpps: mpps {
Kiran Gundab8efaba2017-12-20 18:17:20 +0530158 compatible = "qcom,spmi-mpp";
159 reg = <0xa000 0x400>;
160
161 interrupts = <0x2 0xa0 0 IRQ_TYPE_NONE>,
162 <0x2 0xa1 0 IRQ_TYPE_NONE>,
163 <0x2 0xa2 0 IRQ_TYPE_NONE>,
164 <0x2 0xa3 0 IRQ_TYPE_NONE>;
165 interrupt-names = "pmi8950_mpp1", "pmi8950_mpp2",
166 "pmi8950_mpp3", "pmi8950_mpp4";
167
Kiran Gundac1c1de72017-09-21 15:05:09 +0530168 gpio-controller;
169 #gpio-cells = <2>;
Kiran Gundac1c1de72017-09-21 15:05:09 +0530170 };
171
Tirupathi Reddy766b0f32018-01-30 11:19:22 +0530172 qpnp_smbcharger: qcom,qpnp-smbcharger {
Kiran Gundac1c1de72017-09-21 15:05:09 +0530173 compatible = "qcom,qpnp-smbcharger";
174 #address-cells = <1>;
175 #size-cells = <1>;
176
177 qcom,iterm-ma = <100>;
178 qcom,float-voltage-mv = <4200>;
179 qcom,resume-delta-mv = <200>;
180 qcom,chg-inhibit-fg;
181 qcom,rparasitic-uohm = <100000>;
182 qcom,bms-psy-name = "bms";
183 qcom,thermal-mitigation = <1500 700 600 0>;
184 qcom,parallel-usb-min-current-ma = <1400>;
185 qcom,parallel-usb-9v-min-current-ma = <900>;
186 qcom,parallel-allowed-lowering-ma = <500>;
187 qcom,pmic-revid = <&pmi8950_revid>;
188 qcom,force-aicl-rerun;
189 qcom,aicl-rerun-period-s = <180>;
190 qcom,autoadjust-vfloat;
Chandana Kishori Chiluveru34872ee2017-11-30 17:35:26 +0530191 dpdm-supply = <&qusb_phy>;
Kiran Gundac1c1de72017-09-21 15:05:09 +0530192
193 qcom,chgr@1000 {
194 reg = <0x1000 0x100>;
Kiran Gundae0665762017-11-22 17:20:24 +0530195 interrupts = <0x2 0x10 0x0 IRQ_TYPE_NONE>,
196 <0x2 0x10 0x1 IRQ_TYPE_NONE>,
197 <0x2 0x10 0x2 IRQ_TYPE_NONE>,
198 <0x2 0x10 0x3 IRQ_TYPE_NONE>,
199 <0x2 0x10 0x4 IRQ_TYPE_NONE>,
200 <0x2 0x10 0x5 IRQ_TYPE_NONE>,
201 <0x2 0x10 0x6 IRQ_TYPE_NONE>,
202 <0x2 0x10 0x7 IRQ_TYPE_NONE>;
Kiran Gundac1c1de72017-09-21 15:05:09 +0530203
204 interrupt-names = "chg-error",
205 "chg-inhibit",
206 "chg-prechg-sft",
207 "chg-complete-chg-sft",
208 "chg-p2f-thr",
209 "chg-rechg-thr",
210 "chg-taper-thr",
211 "chg-tcc-thr";
212 };
213
214 qcom,otg@1100 {
215 reg = <0x1100 0x100>;
Kiran Gundae0665762017-11-22 17:20:24 +0530216 interrupts = <0x2 0x11 0x0 IRQ_TYPE_NONE>,
217 <0x2 0x11 0x1 IRQ_TYPE_NONE>,
218 <0x2 0x11 0x3 IRQ_TYPE_NONE>;
Kiran Gundac1c1de72017-09-21 15:05:09 +0530219 interrupt-names = "otg-fail",
220 "otg-oc",
221 "usbid-change";
222 };
223
224 qcom,bat-if@1200 {
225 reg = <0x1200 0x100>;
Kiran Gundae0665762017-11-22 17:20:24 +0530226 interrupts = <0x2 0x12 0x0 IRQ_TYPE_NONE>,
227 <0x2 0x12 0x1 IRQ_TYPE_NONE>,
228 <0x2 0x12 0x2 IRQ_TYPE_NONE>,
229 <0x2 0x12 0x3 IRQ_TYPE_NONE>,
230 <0x2 0x12 0x4 IRQ_TYPE_NONE>,
231 <0x2 0x12 0x5 IRQ_TYPE_NONE>,
232 <0x2 0x12 0x6 IRQ_TYPE_NONE>,
233 <0x2 0x12 0x7 IRQ_TYPE_NONE>;
Kiran Gundac1c1de72017-09-21 15:05:09 +0530234
235 interrupt-names = "batt-hot",
236 "batt-warm",
237 "batt-cold",
238 "batt-cool",
239 "batt-ov",
240 "batt-low",
241 "batt-missing",
242 "batt-term-missing";
243 };
244
245 qcom,usb-chgpth@1300 {
246 reg = <0x1300 0x100>;
Kiran Gundae0665762017-11-22 17:20:24 +0530247 interrupts = <0x2 0x13 0x0 IRQ_TYPE_NONE>,
248 <0x2 0x13 0x1 IRQ_TYPE_NONE>,
249 <0x2 0x13 0x2 IRQ_TYPE_NONE>,
250 <0x2 0x13 0x5 IRQ_TYPE_NONE>;
Kiran Gundac1c1de72017-09-21 15:05:09 +0530251
252 interrupt-names = "usbin-uv",
253 "usbin-ov",
254 "usbin-src-det",
255 "aicl-done";
256 };
257
258 qcom,dc-chgpth@1400 {
259 reg = <0x1400 0x100>;
Kiran Gundae0665762017-11-22 17:20:24 +0530260 interrupts = <0x2 0x14 0x0 IRQ_TYPE_NONE>,
261 <0x2 0x14 0x1 IRQ_TYPE_NONE>;
Kiran Gundac1c1de72017-09-21 15:05:09 +0530262 interrupt-names = "dcin-uv",
263 "dcin-ov";
264 };
265
266 qcom,chgr-misc@1600 {
267 reg = <0x1600 0x100>;
Kiran Gundae0665762017-11-22 17:20:24 +0530268 interrupts = <0x2 0x16 0x0 IRQ_TYPE_NONE>,
269 <0x2 0x16 0x1 IRQ_TYPE_NONE>,
270 <0x2 0x16 0x2 IRQ_TYPE_NONE>,
271 <0x2 0x16 0x3 IRQ_TYPE_NONE>,
272 <0x2 0x16 0x4 IRQ_TYPE_NONE>,
273 <0x2 0x16 0x5 IRQ_TYPE_NONE>;
Kiran Gundac1c1de72017-09-21 15:05:09 +0530274
275 interrupt-names = "power-ok",
276 "temp-shutdown",
277 "wdog-timeout",
278 "flash-fail",
279 "otst2",
280 "otst3";
281 };
282
283 smbcharger_charger_otg: qcom,smbcharger-boost-otg {
284 regulator-name = "smbcharger_charger_otg";
285 };
286 };
287
Tirupathi Reddy766b0f32018-01-30 11:19:22 +0530288 qpnp_fg: qcom,fg {
Kiran Gundac1c1de72017-09-21 15:05:09 +0530289 compatible = "qcom,qpnp-fg";
290 #address-cells = <1>;
291 #size-cells = <1>;
292 qcom,resume-soc = <95>;
293 status = "okay";
294 qcom,bcl-lm-threshold-ma = <127>;
295 qcom,bcl-mh-threshold-ma = <405>;
296 qcom,fg-iterm-ma = <150>;
297 qcom,fg-chg-iterm-ma = <100>;
298 qcom,pmic-revid = <&pmi8950_revid>;
299 qcom,fg-cutoff-voltage-mv = <3500>;
300 qcom,cycle-counter-en;
301 qcom,capacity-learning-on;
302
303 qcom,fg-soc@4000 {
304 status = "okay";
305 reg = <0x4000 0x100>;
Kiran Gundae0665762017-11-22 17:20:24 +0530306 interrupts = <0x2 0x40 0x0 IRQ_TYPE_NONE>,
307 <0x2 0x40 0x1 IRQ_TYPE_NONE>,
308 <0x2 0x40 0x2 IRQ_TYPE_NONE>,
309 <0x2 0x40 0x3 IRQ_TYPE_NONE>,
310 <0x2 0x40 0x4 IRQ_TYPE_NONE>,
311 <0x2 0x40 0x5 IRQ_TYPE_NONE>,
312 <0x2 0x40 0x6 IRQ_TYPE_NONE>;
Kiran Gundac1c1de72017-09-21 15:05:09 +0530313
314 interrupt-names = "high-soc",
315 "low-soc",
316 "full-soc",
317 "empty-soc",
318 "delta-soc",
319 "first-est-done",
320 "update-soc";
321 };
322
323 qcom,fg-batt@4100 {
324 reg = <0x4100 0x100>;
Kiran Gundae0665762017-11-22 17:20:24 +0530325 interrupts = <0x2 0x41 0x0 IRQ_TYPE_NONE>,
326 <0x2 0x41 0x1 IRQ_TYPE_NONE>,
327 <0x2 0x41 0x2 IRQ_TYPE_NONE>,
328 <0x2 0x41 0x3 IRQ_TYPE_NONE>,
329 <0x2 0x41 0x4 IRQ_TYPE_NONE>,
330 <0x2 0x41 0x5 IRQ_TYPE_NONE>,
331 <0x2 0x41 0x6 IRQ_TYPE_NONE>,
332 <0x2 0x41 0x7 IRQ_TYPE_NONE>;
Kiran Gundac1c1de72017-09-21 15:05:09 +0530333
334 interrupt-names = "soft-cold",
335 "soft-hot",
336 "vbatt-low",
337 "batt-ided",
338 "batt-id-req",
339 "batt-unknown",
340 "batt-missing",
341 "batt-match";
342 };
343
344 qcom,revid-tp-rev@1f1 {
345 reg = <0x1f1 0x1>;
346 };
347
348 qcom,fg-memif@4400 {
349 status = "okay";
350 reg = <0x4400 0x100>;
Kiran Gundae0665762017-11-22 17:20:24 +0530351 interrupts = <0x2 0x44 0x0 IRQ_TYPE_NONE>,
352 <0x2 0x44 0x2 IRQ_TYPE_NONE>;
Kiran Gundac1c1de72017-09-21 15:05:09 +0530353
354 interrupt-names = "mem-avail",
355 "data-rcvry-sug";
356 };
357 };
358
359 bcl@4200 {
360 compatible = "qcom,msm-bcl";
361 reg = <0x4200 0xFF 0x88E 0x2>;
362 reg-names = "fg_user_adc", "pon_spare";
Kiran Gundae0665762017-11-22 17:20:24 +0530363 interrupts = <0x2 0x42 0x0 IRQ_TYPE_NONE>,
364 <0x2 0x42 0x1 IRQ_TYPE_NONE>;
Kiran Gundac1c1de72017-09-21 15:05:09 +0530365 interrupt-names = "bcl-high-ibat-int",
366 "bcl-low-vbat-int";
367 qcom,vbat-scaling-factor = <39000>;
368 qcom,vbat-gain-numerator = <1>;
369 qcom,vbat-gain-denominator = <128>;
370 qcom,vbat-polling-delay-ms = <100>;
371 qcom,ibat-scaling-factor = <39000>;
372 qcom,ibat-gain-numerator = <1>;
373 qcom,ibat-gain-denominator = <128>;
374 qcom,ibat-offset-numerator = <1200>;
375 qcom,ibat-offset-denominator = <1>;
376 qcom,ibat-polling-delay-ms = <100>;
377 qcom,inhibit-derating-ua = <550000>;
378 };
379
380 qcom,leds@a100 {
381 compatible = "qcom,leds-qpnp";
382 reg = <0xa100 0x100>;
383 label = "mpp";
384 };
385 };
386
387 qcom,pmi8950@3 {
388 compatible ="qcom,spmi-pmic";
389 reg = <0x3 SPMI_USID>;
390 #address-cells = <1>;
391 #size-cells = <1>;
392
393 pmi8950_pwm: pwm@b000 {
394 status = "disabled";
395 compatible = "qcom,qpnp-pwm";
396 reg = <0xb000 0x100>;
397 reg-names = "qpnp-lpg-channel-base";
398 qcom,channel-id = <0>;
399 qcom,supported-sizes = <6>, <9>;
400 #pwm-cells = <2>;
401 };
402
403 labibb: qpnp-labibb-regulator {
404 status = "disabled";
Kiran Gundac1c1de72017-09-21 15:05:09 +0530405 compatible = "qcom,qpnp-labibb-regulator";
406 #address-cells = <1>;
407 #size-cells = <1>;
408 qcom,pmic-revid = <&pmi8950_revid>;
Kiran Gundad7e1d7c2017-11-29 17:07:25 +0530409 qcom,qpnp-labibb-mode = "lcd";
Kiran Gundac1c1de72017-09-21 15:05:09 +0530410
411 ibb_regulator: qcom,ibb@dc00 {
412 reg = <0xdc00 0x100>;
413 reg-names = "ibb_reg";
414 regulator-name = "ibb_reg";
415
416 regulator-min-microvolt = <4600000>;
417 regulator-max-microvolt = <6000000>;
418
419 qcom,qpnp-ibb-min-voltage = <1400000>;
420 qcom,qpnp-ibb-step-size = <100000>;
421 qcom,qpnp-ibb-slew-rate = <2000000>;
422 qcom,qpnp-ibb-use-default-voltage;
423 qcom,qpnp-ibb-init-voltage = <5500000>;
424 qcom,qpnp-ibb-init-amoled-voltage = <4000000>;
425 qcom,qpnp-ibb-init-lcd-voltage = <5500000>;
426
427 qcom,qpnp-ibb-soft-start = <1000>;
428
429 qcom,qpnp-ibb-discharge-resistor = <32>;
430 qcom,qpnp-ibb-lab-pwrup-delay = <8000>;
431 qcom,qpnp-ibb-lab-pwrdn-delay = <8000>;
432 qcom,qpnp-ibb-en-discharge;
433
434 qcom,qpnp-ibb-full-pull-down;
435 qcom,qpnp-ibb-pull-down-enable;
436 qcom,qpnp-ibb-switching-clock-frequency =
437 <1480>;
438 qcom,qpnp-ibb-limit-maximum-current = <1550>;
439 qcom,qpnp-ibb-debounce-cycle = <16>;
440 qcom,qpnp-ibb-limit-max-current-enable;
441 qcom,qpnp-ibb-ps-enable;
442 };
443
444 lab_regulator: qcom,lab@de00 {
445 reg = <0xde00 0x100>;
446 reg-names = "lab";
447 regulator-name = "lab_reg";
448
449 regulator-min-microvolt = <4600000>;
450 regulator-max-microvolt = <6000000>;
451
452 qcom,qpnp-lab-min-voltage = <4600000>;
453 qcom,qpnp-lab-step-size = <100000>;
454 qcom,qpnp-lab-slew-rate = <5000>;
455 qcom,qpnp-lab-use-default-voltage;
456 qcom,qpnp-lab-init-voltage = <5500000>;
457 qcom,qpnp-lab-init-amoled-voltage = <4600000>;
458 qcom,qpnp-lab-init-lcd-voltage = <5500000>;
459
460 qcom,qpnp-lab-soft-start = <800>;
461
462 qcom,qpnp-lab-full-pull-down;
463 qcom,qpnp-lab-pull-down-enable;
464 qcom,qpnp-lab-switching-clock-frequency =
465 <1600>;
466 qcom,qpnp-lab-limit-maximum-current = <800>;
467 qcom,qpnp-lab-limit-max-current-enable;
468 qcom,qpnp-lab-ps-threshold = <40>;
469 qcom,qpnp-lab-ps-enable;
470 qcom,qpnp-lab-nfet-size = <100>;
471 qcom,qpnp-lab-pfet-size = <100>;
472 qcom,qpnp-lab-max-precharge-time = <500>;
473 };
474
475 };
476
477 wled: qcom,leds@d800 {
478 compatible = "qcom,qpnp-wled";
479 reg = <0xd800 0x100>,
480 <0xd900 0x100>,
481 <0xdc00 0x100>,
482 <0xde00 0x100>;
483 reg-names = "qpnp-wled-ctrl-base",
484 "qpnp-wled-sink-base",
485 "qpnp-wled-ibb-base",
486 "qpnp-wled-lab-base";
Kiran Gundae0665762017-11-22 17:20:24 +0530487 interrupts = <0x3 0xd8 0x2 IRQ_TYPE_EDGE_RISING>;
Kiran Gundac1c1de72017-09-21 15:05:09 +0530488 interrupt-names = "sc-irq";
489 status = "okay";
490 linux,name = "wled";
491 linux,default-trigger = "bkl-trigger";
492 qcom,fdbk-output = "auto";
493 qcom,vref-mv = <350>;
494 qcom,switch-freq-khz = <800>;
495 qcom,ovp-mv = <29500>;
496 qcom,ilim-ma = <980>;
497 qcom,boost-duty-ns = <26>;
498 qcom,mod-freq-khz = <9600>;
499 qcom,dim-mode = "hybrid";
500 qcom,dim-method = "linear";
501 qcom,hyb-thres = <625>;
502 qcom,sync-dly-us = <800>;
503 qcom,fs-curr-ua = <20000>;
504 qcom,led-strings-list = [00 01];
505 qcom,en-ext-pfet-sc-pro;
Kiran Gundae0665762017-11-22 17:20:24 +0530506 qcom,pmic-revid = <&pmi8950_revid>;
Kiran Gundac1c1de72017-09-21 15:05:09 +0530507 qcom,cons-sync-write-delay-us = <1000>;
508 };
509
510 flash_led: qcom,leds@d300 {
511 compatible = "qcom,qpnp-flash-led";
512 status = "okay";
513 reg = <0xd300 0x100>;
514 label = "flash";
515 qcom,headroom = <500>;
516 qcom,startup-dly = <128>;
517 qcom,clamp-curr = <200>;
518 qcom,pmic-charger-support;
519 qcom,self-check-enabled;
520 qcom,thermal-derate-enabled;
521 qcom,thermal-derate-threshold = <100>;
522 qcom,thermal-derate-rate = "5_PERCENT";
523 qcom,current-ramp-enabled;
524 qcom,ramp_up_step = "6P7_US";
525 qcom,ramp_dn_step = "6P7_US";
526 qcom,vph-pwr-droop-enabled;
527 qcom,vph-pwr-droop-threshold = <3000>;
528 qcom,vph-pwr-droop-debounce-time = <10>;
529 qcom,headroom-sense-ch0-enabled;
530 qcom,headroom-sense-ch1-enabled;
531 qcom,pmic-revid = <&pmi8950_revid>;
532
533 pmi8950_flash0: qcom,flash_0 {
534 label = "flash";
535 qcom,led-name = "led:flash_0";
536 qcom,default-led-trigger =
537 "flash0_trigger";
538 qcom,max-current = <1000>;
539 qcom,duration = <1280>;
540 qcom,id = <0>;
541 qcom,current = <625>;
542 };
543
544 pmi8950_flash1: qcom,flash_1 {
545 label = "flash";
546 qcom,led-name = "led:flash_1";
547 qcom,default-led-trigger =
548 "flash1_trigger";
549 qcom,max-current = <1000>;
550 qcom,duration = <1280>;
551 qcom,id = <1>;
552 qcom,current = <625>;
553 };
554
555 pmi8950_torch0: qcom,torch_0 {
556 label = "torch";
557 qcom,led-name = "led:torch_0";
558 qcom,default-led-trigger =
559 "torch0_trigger";
560 qcom,max-current = <200>;
561 qcom,id = <0>;
562 qcom,current = <120>;
563 };
564
565 pmi8950_torch1: qcom,torch_1 {
566 label = "torch";
567 qcom,led-name = "led:torch_1";
568 qcom,default-led-trigger =
569 "torch1_trigger";
570 qcom,max-current = <200>;
571 qcom,id = <1>;
572 qcom,current = <120>;
573 };
574
575 pmi8950_switch: qcom,switch {
576 label = "switch";
577 qcom,led-name = "led:switch";
578 qcom,default-led-trigger =
579 "switch_trigger";
580 qcom,max-current = <1000>;
581 qcom,duration = <1280>;
582 qcom,id = <2>;
583 qcom,current = <625>;
584 reg0 {
585 regulator-name = "pon_spare_reg";
586 };
587 };
588 };
589
Vamshi Krishna B Veb555432018-05-02 14:50:27 +0530590 pmi_haptic: qcom,haptics@c000 {
Kiran Gunda7f187fd2018-02-06 12:54:17 +0530591 compatible = "qcom,qpnp-haptics";
Kiran Gundac1c1de72017-09-21 15:05:09 +0530592 reg = <0xc000 0x100>;
Kiran Gundae0665762017-11-22 17:20:24 +0530593 interrupts = <0x3 0xc0 0x0 IRQ_TYPE_EDGE_BOTH>,
594 <0x3 0xc0 0x1 IRQ_TYPE_EDGE_BOTH>;
Kiran Gunda7f187fd2018-02-06 12:54:17 +0530595 interrupt-names = "hap-sc-irq", "hap-play-irq";
Kiran Gundac1c1de72017-09-21 15:05:09 +0530596 qcom,pmic-revid = <&pmi8950_revid>;
Vamshi Krishna B Veb555432018-05-02 14:50:27 +0530597 vcc_pon-supply = <&pon_perph_reg>;
598 qcom,int-pwm-freq-khz = <505>;
Kiran Gundac1c1de72017-09-21 15:05:09 +0530599 qcom,play-mode = "direct";
600 qcom,wave-play-rate-us = <5263>;
Kiran Gunda7f187fd2018-02-06 12:54:17 +0530601 qcom,actuator-type = <0>;
Kiran Gundac1c1de72017-09-21 15:05:09 +0530602 qcom,wave-shape = "square";
603 qcom,vmax-mv = <2000>;
604 qcom,ilim-ma = <800>;
605 qcom,sc-deb-cycles = <8>;
Kiran Gundac1c1de72017-09-21 15:05:09 +0530606 qcom,en-brake;
Kiran Gunda7f187fd2018-02-06 12:54:17 +0530607 qcom,brake-pattern = <0x3 0x3 0x0 0x0>;
608 qcom,wave-samples = <0x3e 0x3e 0x3e 0x3e 0x3e
609 0x3e 0x3e 0x3e>;
Kiran Gundac1c1de72017-09-21 15:05:09 +0530610 qcom,wave-rep-cnt = <1>;
611 qcom,wave-samp-rep-cnt = <1>;
612 };
613 };
614};
Jishnu Prakash87f3b102018-02-15 13:48:57 +0530615
616&thermal_zones {
617 chg-temp-adc {
618 polling-delay-passive = <0>;
619 polling-delay = <0>;
620 thermal-sensors = <&pmi8950_vadc 0xd>;
621 thermal-governor = "user_space";
622
623 trips {
624 active-config0 {
625 temperature = <65000>;
626 hysteresis = <1000>;
627 type = "passive";
628 };
629 };
630 };
631};
Vijay kumar Tumati26fe6282018-02-21 18:40:21 +0530632
633&soc {
634 led_flash0: qcom,camera-flash {
635 cell-index = <0>;
636 compatible = "qcom,camera-flash";
637 qcom,flash-type = <1>;
638 qcom,flash-source = <&pmi8950_flash0 &pmi8950_flash1>;
639 qcom,torch-source = <&pmi8950_torch0 &pmi8950_torch1>;
640 qcom,switch-source = <&pmi8950_switch>;
641 };
642};