blob: 539685a0bad189182b1e3c965380eee09337d181 [file] [log] [blame]
David Collinsbbed9aa2017-03-10 11:53:10 -08001/* 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,pmi8998@2 {
18 compatible = "qcom,spmi-pmic";
19 reg = <0x2 SPMI_USID>;
20 #address-cells = <2>;
21 #size-cells = <0>;
22
23 pmi8998_revid: qcom,revid@100 {
24 compatible = "qcom,qpnp-revid";
25 reg = <0x100 0x100>;
26 qcom,fab-id-valid;
27 };
28
29 qcom,power-on@800 {
30 compatible = "qcom,qpnp-power-on";
31 reg = <0x800 0x100>;
32 };
33
34 qcom,temp-alarm@2400 {
35 compatible = "qcom,qpnp-temp-alarm";
36 reg = <0x2400 0x100>;
37 interrupts = <0x2 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
38 label = "pmi8998_tz";
39 };
40
Fenglin Wu5a50fc82017-03-22 12:27:31 +080041 pmi8998_gpios: pinctrl@c000 {
42 compatible = "qcom,spmi-gpio";
43 reg = <0xc000 0xe00>;
44 interrupts = <0x2 0xc0 0 IRQ_TYPE_NONE>,
45 <0x2 0xc1 0 IRQ_TYPE_NONE>,
46 <0x2 0xc2 0 IRQ_TYPE_NONE>,
47 <0x2 0xc4 0 IRQ_TYPE_NONE>,
48 <0x2 0xc5 0 IRQ_TYPE_NONE>,
49 <0x2 0xc7 0 IRQ_TYPE_NONE>,
50 <0x2 0xc8 0 IRQ_TYPE_NONE>,
51 <0x2 0xc9 0 IRQ_TYPE_NONE>,
52 <0x2 0xca 0 IRQ_TYPE_NONE>,
53 <0x2 0xcb 0 IRQ_TYPE_NONE>,
54 <0x2 0xcd 0 IRQ_TYPE_NONE>;
55 interrupt-names = "pmi8998_gpio1", "pmi8998_gpio2",
56 "pmi8998_gpio3", "pmi8998_gpio5",
57 "pmi8998_gpio6", "pmi8998_gpio8",
58 "pmi8998_gpio9", "pmi8998_gpio10",
59 "pmi8998_gpio11", "pmi8998_gpio12",
60 "pmi8998_gpio14";
David Collinsbbed9aa2017-03-10 11:53:10 -080061 gpio-controller;
62 #gpio-cells = <2>;
Fenglin Wu5a50fc82017-03-22 12:27:31 +080063 qcom,gpios-disallowed = <4 7 13>;
David Collinsbbed9aa2017-03-10 11:53:10 -080064 };
65
Harry Yang67111662017-04-05 15:14:52 -070066 qcom,qpnp-qnovo@1500 {
67 compatible = "qcom,qpnp-qnovo";
68 reg = <0x1500 0x100>;
69 interrupts = <0x2 0x15 0x0 IRQ_TYPE_NONE>;
70 interrupt-names = "ptrain-done";
71 qcom,pmic-revid = <&pmi8998_revid>;
72 };
73
74 pmi8998_charger: qcom,qpnp-smb2 {
75 compatible = "qcom,qpnp-smb2";
76 #address-cells = <1>;
77 #size-cells = <1>;
78
79 qcom,pmic-revid = <&pmi8998_revid>;
80
81 io-channels = <&pmi8998_rradc 8>,
82 <&pmi8998_rradc 10>,
83 <&pmi8998_rradc 3>,
84 <&pmi8998_rradc 4>;
85 io-channel-names = "charger_temp",
86 "charger_temp_max",
87 "usbin_i",
88 "usbin_v";
89
90 qcom,boost-threshold-ua = <100000>;
91 qcom,wipower-max-uw = <5000000>;
92
93 qcom,thermal-mitigation
94 = <3000000 1500000 1000000 500000>;
95
96 qcom,chgr@1000 {
97 reg = <0x1000 0x100>;
98 interrupts =
99 <0x2 0x10 0x0 IRQ_TYPE_EDGE_RISING>,
100 <0x2 0x10 0x1 IRQ_TYPE_EDGE_RISING>,
101 <0x2 0x10 0x2 IRQ_TYPE_EDGE_RISING>,
102 <0x2 0x10 0x3 IRQ_TYPE_EDGE_RISING>,
103 <0x2 0x10 0x4 IRQ_TYPE_EDGE_RISING>;
104
105 interrupt-names = "chg-error",
106 "chg-state-change",
107 "step-chg-state-change",
108 "step-chg-soc-update-fail",
109 "step-chg-soc-update-request";
110 };
111
112 qcom,otg@1100 {
113 reg = <0x1100 0x100>;
114 interrupts = <0x2 0x11 0x0 IRQ_TYPE_EDGE_BOTH>,
115 <0x2 0x11 0x1 IRQ_TYPE_EDGE_BOTH>,
116 <0x2 0x11 0x2 IRQ_TYPE_EDGE_BOTH>,
117 <0x2 0x11 0x3 IRQ_TYPE_EDGE_BOTH>;
118
119 interrupt-names = "otg-fail",
120 "otg-overcurrent",
121 "otg-oc-dis-sw-sts",
122 "testmode-change-detect";
123 };
124
125 qcom,bat-if@1200 {
126 reg = <0x1200 0x100>;
127 interrupts =
128 <0x2 0x12 0x0 IRQ_TYPE_EDGE_RISING>,
129 <0x2 0x12 0x1 IRQ_TYPE_EDGE_BOTH>,
130 <0x2 0x12 0x2 IRQ_TYPE_EDGE_BOTH>,
131 <0x2 0x12 0x3 IRQ_TYPE_EDGE_BOTH>,
132 <0x2 0x12 0x4 IRQ_TYPE_EDGE_BOTH>,
133 <0x2 0x12 0x5 IRQ_TYPE_EDGE_BOTH>;
134
135 interrupt-names = "bat-temp",
136 "bat-ocp",
137 "bat-ov",
138 "bat-low",
139 "bat-therm-or-id-missing",
140 "bat-terminal-missing";
141 };
142
143 qcom,usb-chgpth@1300 {
144 reg = <0x1300 0x100>;
145 interrupts =
146 <0x2 0x13 0x0 IRQ_TYPE_EDGE_BOTH>,
147 <0x2 0x13 0x1 IRQ_TYPE_EDGE_BOTH>,
148 <0x2 0x13 0x2 IRQ_TYPE_EDGE_BOTH>,
149 <0x2 0x13 0x3 IRQ_TYPE_EDGE_BOTH>,
150 <0x2 0x13 0x4 IRQ_TYPE_EDGE_BOTH>,
151 <0x2 0x13 0x5 IRQ_TYPE_EDGE_RISING>,
152 <0x2 0x13 0x6 IRQ_TYPE_EDGE_RISING>,
153 <0x2 0x13 0x7 IRQ_TYPE_EDGE_RISING>;
154
155 interrupt-names = "usbin-collapse",
156 "usbin-lt-3p6v",
157 "usbin-uv",
158 "usbin-ov",
159 "usbin-plugin",
160 "usbin-src-change",
161 "usbin-icl-change",
162 "type-c-change";
163 };
164
165 qcom,dc-chgpth@1400 {
166 reg = <0x1400 0x100>;
167 interrupts =
168 <0x2 0x14 0x0 IRQ_TYPE_EDGE_BOTH>,
169 <0x2 0x14 0x1 IRQ_TYPE_EDGE_BOTH>,
170 <0x2 0x14 0x2 IRQ_TYPE_EDGE_BOTH>,
171 <0x2 0x14 0x3 IRQ_TYPE_EDGE_BOTH>,
172 <0x2 0x14 0x4 IRQ_TYPE_EDGE_BOTH>,
173 <0x2 0x14 0x5 IRQ_TYPE_EDGE_BOTH>,
174 <0x2 0x14 0x6 IRQ_TYPE_EDGE_RISING>;
175
176 interrupt-names = "dcin-collapse",
177 "dcin-lt-3p6v",
178 "dcin-uv",
179 "dcin-ov",
180 "dcin-plugin",
181 "div2-en-dg",
182 "dcin-icl-change";
183 };
184
185 qcom,chgr-misc@1600 {
186 reg = <0x1600 0x100>;
187 interrupts =
188 <0x2 0x16 0x0 IRQ_TYPE_EDGE_RISING>,
189 <0x2 0x16 0x1 IRQ_TYPE_EDGE_RISING>,
190 <0x2 0x16 0x2 IRQ_TYPE_EDGE_BOTH>,
191 <0x2 0x16 0x3 IRQ_TYPE_EDGE_BOTH>,
192 <0x2 0x16 0x4 IRQ_TYPE_EDGE_BOTH>,
193 <0x2 0x16 0x5 IRQ_TYPE_EDGE_BOTH>,
194 <0x2 0x16 0x6 IRQ_TYPE_EDGE_FALLING>,
195 <0x2 0x16 0x7 IRQ_TYPE_EDGE_BOTH>;
196
197 interrupt-names = "wdog-snarl",
198 "wdog-bark",
199 "aicl-fail",
200 "aicl-done",
201 "high-duty-cycle",
202 "input-current-limiting",
203 "temperature-change",
204 "switcher-power-ok";
205 };
206 };
207
Jack Phamaf5edc82017-03-30 17:26:02 -0700208 pmi8998_pdphy: qcom,usb-pdphy@1700 {
209 compatible = "qcom,qpnp-pdphy";
210 reg = <0x1700 0x100>;
211 vdd-pdphy-supply = <&pm8998_l24>;
212 vbus-supply = <&smb2_vbus>;
213 vconn-supply = <&smb2_vconn>;
214 interrupts = <0x2 0x17 0x0 IRQ_TYPE_EDGE_RISING>,
215 <0x2 0x17 0x1 IRQ_TYPE_EDGE_RISING>,
216 <0x2 0x17 0x2 IRQ_TYPE_EDGE_RISING>,
217 <0x2 0x17 0x3 IRQ_TYPE_EDGE_RISING>,
218 <0x2 0x17 0x4 IRQ_TYPE_EDGE_RISING>,
219 <0x2 0x17 0x5 IRQ_TYPE_EDGE_RISING>,
220 <0x2 0x17 0x6 IRQ_TYPE_EDGE_RISING>;
221
222 interrupt-names = "sig-tx",
223 "sig-rx",
224 "msg-tx",
225 "msg-rx",
226 "msg-tx-failed",
227 "msg-tx-discarded",
228 "msg-rx-discarded";
229
230 qcom,default-sink-caps = <5000 3000>, /* 5V @ 3A */
231 <9000 3000>, /* 9V @ 3A */
232 <12000 2250>; /* 12V @ 2.25A */
233 };
234
David Collinsbbed9aa2017-03-10 11:53:10 -0800235 pmi8998_rradc: rradc@4500 {
236 compatible = "qcom,rradc";
237 reg = <0x4500 0x100>;
238 #address-cells = <1>;
239 #size-cells = <0>;
240 #io-channel-cells = <1>;
241 qcom,pmic-revid = <&pmi8998_revid>;
242 };
Harry Yang67111662017-04-05 15:14:52 -0700243
244 pmi8998_fg: qpnp,fg {
245 compatible = "qcom,fg-gen3";
246 #address-cells = <1>;
247 #size-cells = <1>;
248 qcom,pmic-revid = <&pmi8998_revid>;
249 io-channels = <&pmi8998_rradc 0>;
250 io-channel-names = "rradc_batt_id";
251 qcom,rradc-base = <0x4500>;
252 qcom,fg-esr-timer-awake = <96>;
253 qcom,fg-esr-timer-asleep = <256>;
254 qcom,cycle-counter-en;
255 status = "okay";
256
257 qcom,fg-batt-soc@4000 {
258 status = "okay";
259 reg = <0x4000 0x100>;
260 interrupts = <0x2 0x40 0x0 IRQ_TYPE_EDGE_BOTH>,
261 <0x2 0x40 0x1 IRQ_TYPE_EDGE_BOTH>,
262 <0x2 0x40 0x2
263 IRQ_TYPE_EDGE_RISING>,
264 <0x2 0x40 0x3
265 IRQ_TYPE_EDGE_RISING>,
266 <0x2 0x40 0x4 IRQ_TYPE_EDGE_BOTH>,
267 <0x2 0x40 0x5
268 IRQ_TYPE_EDGE_RISING>,
269 <0x2 0x40 0x6 IRQ_TYPE_EDGE_BOTH>,
270 <0x2 0x40 0x7 IRQ_TYPE_EDGE_BOTH>;
271 interrupt-names = "soc-update",
272 "soc-ready",
273 "bsoc-delta",
274 "msoc-delta",
275 "msoc-low",
276 "msoc-empty",
277 "msoc-high",
278 "msoc-full";
279 };
280
281 qcom,fg-batt-info@4100 {
282 status = "okay";
283 reg = <0x4100 0x100>;
284 interrupts = <0x2 0x41 0x0 IRQ_TYPE_EDGE_BOTH>,
285 <0x2 0x41 0x1 IRQ_TYPE_EDGE_BOTH>,
286 <0x2 0x41 0x2 IRQ_TYPE_EDGE_BOTH>,
287 <0x2 0x41 0x3 IRQ_TYPE_EDGE_BOTH>,
288 <0x2 0x41 0x6 IRQ_TYPE_EDGE_BOTH>;
289 interrupt-names = "vbatt-pred-delta",
290 "vbatt-low",
291 "esr-delta",
292 "batt-missing",
293 "batt-temp-delta";
294 };
295
296 qcom,fg-memif@4400 {
297 status = "okay";
298 reg = <0x4400 0x100>;
299 interrupts = <0x2 0x44 0x0 IRQ_TYPE_EDGE_BOTH>,
300 <0x2 0x44 0x1 IRQ_TYPE_EDGE_BOTH>,
301 <0x2 0x44 0x2 IRQ_TYPE_EDGE_BOTH>;
302 interrupt-names = "ima-rdy",
303 "mem-xcp",
304 "dma-grant";
305 };
306 };
David Collinsbbed9aa2017-03-10 11:53:10 -0800307 };
308
309 qcom,pmi8998@3 {
310 compatible ="qcom,spmi-pmic";
311 reg = <0x3 SPMI_USID>;
312 #address-cells = <2>;
313 #size-cells = <0>;
314
315 pmi8998_pwm_1: pwm@b100 {
316 compatible = "qcom,qpnp-pwm";
317 reg = <0xb100 0x100>,
318 <0xb042 0x7e>;
319 reg-names = "qpnp-lpg-channel-base",
320 "qpnp-lpg-lut-base";
321 qcom,lpg-lut-size = <0x7e>;
322 qcom,channel-id = <1>;
323 qcom,supported-sizes = <6>, <9>;
324 qcom,ramp-index = <0>;
325 #pwm-cells = <2>;
326 status = "disabled";
327 };
328
329 pmi8998_pwm_2: pwm@b200 {
330 compatible = "qcom,qpnp-pwm";
331 reg = <0xb200 0x100>,
332 <0xb042 0x7e>;
333 reg-names = "qpnp-lpg-channel-base",
334 "qpnp-lpg-lut-base";
335 qcom,lpg-lut-size = <0x7e>;
336 qcom,channel-id = <2>;
337 qcom,supported-sizes = <6>, <9>;
338 qcom,ramp-index = <1>;
339 #pwm-cells = <2>;
340 status = "disabled";
341 };
342
343 pmi8998_pwm_3: pwm@b300 {
344 compatible = "qcom,qpnp-pwm";
345 reg = <0xb300 0x100>,
346 <0xb042 0x7e>;
347 reg-names = "qpnp-lpg-channel-base",
348 "qpnp-lpg-lut-base";
349 qcom,lpg-lut-size = <0x7e>;
350 qcom,channel-id = <3>;
351 qcom,supported-sizes = <6>, <9>;
352 qcom,ramp-index = <2>;
353 #pwm-cells = <2>;
354 };
355
356 pmi8998_pwm_4: pwm@b400 {
357 compatible = "qcom,qpnp-pwm";
358 reg = <0xb400 0x100>,
359 <0xb042 0x7e>;
360 reg-names = "qpnp-lpg-channel-base",
361 "qpnp-lpg-lut-base";
362 qcom,lpg-lut-size = <0x7e>;
363 qcom,channel-id = <4>;
364 qcom,supported-sizes = <6>, <9>;
365 qcom,ramp-index = <3>;
366 #pwm-cells = <2>;
367 };
368
369 pmi8998_pwm_5: pwm@b500 {
370 compatible = "qcom,qpnp-pwm";
371 reg = <0xb500 0x100>,
372 <0xb042 0x7e>;
373 reg-names = "qpnp-lpg-channel-base",
374 "qpnp-lpg-lut-base";
375 qcom,lpg-lut-size = <0x7e>;
376 qcom,channel-id = <5>;
377 qcom,supported-sizes = <6>, <9>;
378 qcom,ramp-index = <4>;
379 #pwm-cells = <2>;
380 };
381
382 pmi8998_pwm_6: pwm@b600 {
383 compatible = "qcom,qpnp-pwm";
384 reg = <0xb600 0x100>,
385 <0xb042 0x7e>;
386 reg-names = "qpnp-lpg-channel-base",
387 "qpnp-lpg-lut-base";
388 qcom,lpg-lut-size = <0x7e>;
389 qcom,channel-id = <6>;
390 qcom,supported-sizes = <6>, <9>;
391 qcom,ramp-index = <5>;
392 #pwm-cells = <2>;
393 status = "disabled";
394 };
395
396 qcom,leds@d000 {
397 compatible = "qcom,leds-qpnp";
398 reg = <0xd000 0x100>;
399 label = "rgb";
400 status = "okay";
401
402 red_led: qcom,rgb_0 {
403 label = "rgb";
404 qcom,id = <3>;
405 qcom,mode = "pwm";
406 pwms = <&pmi8998_pwm_5 0 0>;
407 qcom,pwm-us = <1000>;
408 qcom,max-current = <12>;
409 qcom,default-state = "off";
410 linux,name = "red";
411 linux,default-trigger = "battery-charging";
412 };
413
414 green_led: qcom,rgb_1 {
415 label = "rgb";
416 qcom,id = <4>;
417 qcom,mode = "pwm";
418 pwms = <&pmi8998_pwm_4 0 0>;
419 qcom,pwm-us = <1000>;
420 qcom,max-current = <12>;
421 qcom,default-state = "off";
422 linux,name = "green";
423 linux,default-trigger = "battery-full";
424 };
425
426 blue_led: qcom,rgb_2 {
427 label = "rgb";
428 qcom,id = <5>;
429 qcom,mode = "pwm";
430 pwms = <&pmi8998_pwm_3 0 0>;
431 qcom,pwm-us = <1000>;
432 qcom,max-current = <12>;
433 qcom,default-state = "off";
434 linux,name = "blue";
435 linux,default-trigger = "boot-indication";
436 };
437 };
438
439 labibb: qpnp-labibb-regulator {
440 compatible = "qcom,qpnp-labibb-regulator";
441 #address-cells = <1>;
442 #size-cells = <1>;
443 qcom,pmic-revid = <&pmi8998_revid>;
444 status = "disabled";
445
446 ibb_regulator: qcom,ibb@dc00 {
447 reg = <0xdc00 0x100>;
448 reg-names = "ibb_reg";
449 regulator-name = "ibb_reg";
450
451 regulator-min-microvolt = <4600000>;
452 regulator-max-microvolt = <6000000>;
453
454 qcom,qpnp-ibb-min-voltage = <1400000>;
455 qcom,qpnp-ibb-step-size = <100000>;
456 qcom,qpnp-ibb-slew-rate = <2000000>;
457 qcom,qpnp-ibb-use-default-voltage;
458 qcom,qpnp-ibb-init-voltage = <5500000>;
459 qcom,qpnp-ibb-init-amoled-voltage = <4000000>;
460 qcom,qpnp-ibb-init-lcd-voltage = <5500000>;
461
462 qcom,qpnp-ibb-soft-start = <1000>;
463
464 qcom,qpnp-ibb-lab-pwrup-delay = <8000>;
465 qcom,qpnp-ibb-lab-pwrdn-delay = <8000>;
466 qcom,qpnp-ibb-en-discharge;
467
468 qcom,qpnp-ibb-full-pull-down;
469 qcom,qpnp-ibb-pull-down-enable;
470 qcom,qpnp-ibb-switching-clock-frequency =
471 <1480>;
472 qcom,qpnp-ibb-limit-maximum-current = <1550>;
473 qcom,qpnp-ibb-debounce-cycle = <16>;
474 qcom,qpnp-ibb-limit-max-current-enable;
475 qcom,qpnp-ibb-ps-enable;
476 };
477
478 lab_regulator: qcom,lab@de00 {
479 reg = <0xde00 0x100>;
480 reg-names = "lab";
481 regulator-name = "lab_reg";
482
483 regulator-min-microvolt = <4600000>;
484 regulator-max-microvolt = <6000000>;
485
486 interrupts = <0x3 0xde 0x0
487 IRQ_TYPE_EDGE_RISING>;
488 interrupt-names = "lab-vreg-ok";
489 qcom,qpnp-lab-min-voltage = <4600000>;
490 qcom,qpnp-lab-step-size = <100000>;
491 qcom,qpnp-lab-slew-rate = <5000>;
492 qcom,qpnp-lab-use-default-voltage;
493 qcom,qpnp-lab-init-voltage = <5500000>;
494 qcom,qpnp-lab-init-amoled-voltage = <4600000>;
495 qcom,qpnp-lab-init-lcd-voltage = <5500000>;
496
497 qcom,qpnp-lab-soft-start = <800>;
498
499 qcom,qpnp-lab-full-pull-down;
500 qcom,qpnp-lab-pull-down-enable;
501 qcom,qpnp-lab-switching-clock-frequency =
502 <1600>;
503 qcom,qpnp-lab-limit-maximum-current = <1600>;
504 qcom,qpnp-lab-limit-max-current-enable;
505 qcom,qpnp-lab-ps-threshold = <20>;
506 qcom,qpnp-lab-ps-enable;
507 qcom,qpnp-lab-nfet-size = <100>;
508 qcom,qpnp-lab-pfet-size = <100>;
509 qcom,qpnp-lab-max-precharge-time = <500>;
510 };
511 };
512
513 pmi8998_wled: qcom,leds@d800 {
514 compatible = "qcom,qpnp-wled";
515 reg = <0xd800 0x100>,
516 <0xd900 0x100>;
517 reg-names = "qpnp-wled-ctrl-base",
518 "qpnp-wled-sink-base";
519 interrupts = <0x3 0xd8 0x1 IRQ_TYPE_EDGE_RISING>,
520 <0x3 0xd8 0x2 IRQ_TYPE_EDGE_RISING>;
521 interrupt-names = "ovp-irq", "sc-irq";
522 linux,name = "wled";
523 linux,default-trigger = "bkl-trigger";
524 qcom,fdbk-output = "auto";
525 qcom,vref-uv = <127500>;
526 qcom,switch-freq-khz = <800>;
527 qcom,ovp-mv = <29600>;
528 qcom,ilim-ma = <970>;
529 qcom,boost-duty-ns = <26>;
530 qcom,mod-freq-khz = <9600>;
531 qcom,dim-mode = "hybrid";
532 qcom,hyb-thres = <625>;
533 qcom,sync-dly-us = <800>;
534 qcom,fs-curr-ua = <25000>;
535 qcom,cons-sync-write-delay-us = <1000>;
536 qcom,led-strings-list = [00 01 02 03];
537 qcom,en-ext-pfet-sc-pro;
538 qcom,pmic-revid = <&pmi8998_revid>;
539 qcom,loop-auto-gm-en;
Subbaraman Narayanamurthy1f92fc12017-03-30 15:41:45 -0700540 status = "disabled";
David Collinsbbed9aa2017-03-10 11:53:10 -0800541 };
542
543 flash_led: qcom,leds@d300 {
544 compatible = "qcom,qpnp-flash-led-v2";
545 status = "okay";
546 reg = <0xd300 0x100>;
547 label = "flash";
548 interrupts = <0x3 0xd3 0x0 IRQ_TYPE_EDGE_RISING>,
549 <0x3 0xd3 0x3 IRQ_TYPE_EDGE_RISING>,
550 <0x3 0xd3 0x4 IRQ_TYPE_EDGE_RISING>;
551 interrupt-names = "led-fault-irq",
552 "all-ramp-down-done-irq",
553 "all-ramp-up-done-irq";
554 qcom,hdrm-auto-mode;
555 qcom,short-circuit-det;
556 qcom,open-circuit-det;
557 qcom,vph-droop-det;
558 qcom,thermal-derate-en;
559 qcom,thermal-derate-current = <200 500 1000>;
560 qcom,isc-delay = <192>;
561 qcom,pmic-revid = <&pmi8998_revid>;
562
563 pmi8998_flash0: qcom,flash_0 {
564 label = "flash";
565 qcom,led-name = "led:flash_0";
566 qcom,max-current = <1500>;
567 qcom,default-led-trigger = "flash0_trigger";
568 qcom,id = <0>;
569 qcom,current-ma = <1000>;
570 qcom,duration-ms = <1280>;
571 qcom,ires-ua = <12500>;
572 qcom,hdrm-voltage-mv = <325>;
573 qcom,hdrm-vol-hi-lo-win-mv = <100>;
574 };
575
576 pmi8998_flash1: qcom,flash_1 {
577 label = "flash";
578 qcom,led-name = "led:flash_1";
579 qcom,max-current = <1500>;
580 qcom,default-led-trigger = "flash1_trigger";
581 qcom,id = <1>;
582 qcom,current-ma = <1000>;
583 qcom,duration-ms = <1280>;
584 qcom,ires-ua = <12500>;
585 qcom,hdrm-voltage-mv = <325>;
586 qcom,hdrm-vol-hi-lo-win-mv = <100>;
587 };
588
589 pmi8998_flash2: qcom,flash_2 {
590 label = "flash";
591 qcom,led-name = "led:flash_2";
592 qcom,max-current = <750>;
593 qcom,default-led-trigger = "flash2_trigger";
594 qcom,id = <2>;
595 qcom,current-ma = <500>;
596 qcom,duration-ms = <1280>;
597 qcom,ires-ua = <12500>;
598 qcom,hdrm-voltage-mv = <325>;
599 qcom,hdrm-vol-hi-lo-win-mv = <100>;
600 };
601
602 pmi8998_torch0: qcom,torch_0 {
603 label = "torch";
604 qcom,led-name = "led:torch_0";
605 qcom,max-current = <500>;
606 qcom,default-led-trigger = "torch0_trigger";
607 qcom,id = <0>;
608 qcom,current-ma = <300>;
609 qcom,ires-ua = <12500>;
610 qcom,hdrm-voltage-mv = <325>;
611 qcom,hdrm-vol-hi-lo-win-mv = <100>;
612 };
613
614 pmi8998_torch1: qcom,torch_1 {
615 label = "torch";
616 qcom,led-name = "led:torch_1";
617 qcom,max-current = <500>;
618 qcom,default-led-trigger = "torch1_trigger";
619 qcom,id = <1>;
620 qcom,current-ma = <300>;
621 qcom,ires-ua = <12500>;
622 qcom,hdrm-voltage-mv = <325>;
623 qcom,hdrm-vol-hi-lo-win-mv = <100>;
624 };
625
626 pmi8998_torch2: qcom,torch_2 {
627 label = "torch";
628 qcom,led-name = "led:torch_2";
629 qcom,max-current = <500>;
630 qcom,default-led-trigger = "torch2_trigger";
631 qcom,id = <2>;
632 qcom,current-ma = <300>;
633 qcom,ires-ua = <12500>;
634 qcom,hdrm-voltage-mv = <325>;
635 qcom,hdrm-vol-hi-lo-win-mv = <100>;
636 };
637
638 pmi8998_switch0: qcom,led_switch_0 {
639 label = "switch";
640 qcom,led-name = "led:switch_0";
641 qcom,led-mask = <3>;
642 qcom,default-led-trigger = "switch0_trigger";
643 };
644
645 pmi8998_switch1: qcom,led_switch_1 {
646 label = "switch";
647 qcom,led-name = "led:switch_1";
648 qcom,led-mask = <4>;
649 qcom,default-led-trigger = "switch1_trigger";
650 };
651 };
652 };
653};