blob: 66cd0329b33a6fd171b39468ed8cff18e38e3775 [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
David Collinsbbed9aa2017-03-10 11:53:10 -0800208 pmi8998_rradc: rradc@4500 {
209 compatible = "qcom,rradc";
210 reg = <0x4500 0x100>;
211 #address-cells = <1>;
212 #size-cells = <0>;
213 #io-channel-cells = <1>;
214 qcom,pmic-revid = <&pmi8998_revid>;
215 };
Harry Yang67111662017-04-05 15:14:52 -0700216
217 pmi8998_fg: qpnp,fg {
218 compatible = "qcom,fg-gen3";
219 #address-cells = <1>;
220 #size-cells = <1>;
221 qcom,pmic-revid = <&pmi8998_revid>;
222 io-channels = <&pmi8998_rradc 0>;
223 io-channel-names = "rradc_batt_id";
224 qcom,rradc-base = <0x4500>;
225 qcom,fg-esr-timer-awake = <96>;
226 qcom,fg-esr-timer-asleep = <256>;
227 qcom,cycle-counter-en;
228 status = "okay";
229
230 qcom,fg-batt-soc@4000 {
231 status = "okay";
232 reg = <0x4000 0x100>;
233 interrupts = <0x2 0x40 0x0 IRQ_TYPE_EDGE_BOTH>,
234 <0x2 0x40 0x1 IRQ_TYPE_EDGE_BOTH>,
235 <0x2 0x40 0x2
236 IRQ_TYPE_EDGE_RISING>,
237 <0x2 0x40 0x3
238 IRQ_TYPE_EDGE_RISING>,
239 <0x2 0x40 0x4 IRQ_TYPE_EDGE_BOTH>,
240 <0x2 0x40 0x5
241 IRQ_TYPE_EDGE_RISING>,
242 <0x2 0x40 0x6 IRQ_TYPE_EDGE_BOTH>,
243 <0x2 0x40 0x7 IRQ_TYPE_EDGE_BOTH>;
244 interrupt-names = "soc-update",
245 "soc-ready",
246 "bsoc-delta",
247 "msoc-delta",
248 "msoc-low",
249 "msoc-empty",
250 "msoc-high",
251 "msoc-full";
252 };
253
254 qcom,fg-batt-info@4100 {
255 status = "okay";
256 reg = <0x4100 0x100>;
257 interrupts = <0x2 0x41 0x0 IRQ_TYPE_EDGE_BOTH>,
258 <0x2 0x41 0x1 IRQ_TYPE_EDGE_BOTH>,
259 <0x2 0x41 0x2 IRQ_TYPE_EDGE_BOTH>,
260 <0x2 0x41 0x3 IRQ_TYPE_EDGE_BOTH>,
261 <0x2 0x41 0x6 IRQ_TYPE_EDGE_BOTH>;
262 interrupt-names = "vbatt-pred-delta",
263 "vbatt-low",
264 "esr-delta",
265 "batt-missing",
266 "batt-temp-delta";
267 };
268
269 qcom,fg-memif@4400 {
270 status = "okay";
271 reg = <0x4400 0x100>;
272 interrupts = <0x2 0x44 0x0 IRQ_TYPE_EDGE_BOTH>,
273 <0x2 0x44 0x1 IRQ_TYPE_EDGE_BOTH>,
274 <0x2 0x44 0x2 IRQ_TYPE_EDGE_BOTH>;
275 interrupt-names = "ima-rdy",
276 "mem-xcp",
277 "dma-grant";
278 };
279 };
David Collinsbbed9aa2017-03-10 11:53:10 -0800280 };
281
282 qcom,pmi8998@3 {
283 compatible ="qcom,spmi-pmic";
284 reg = <0x3 SPMI_USID>;
285 #address-cells = <2>;
286 #size-cells = <0>;
287
288 pmi8998_pwm_1: pwm@b100 {
289 compatible = "qcom,qpnp-pwm";
290 reg = <0xb100 0x100>,
291 <0xb042 0x7e>;
292 reg-names = "qpnp-lpg-channel-base",
293 "qpnp-lpg-lut-base";
294 qcom,lpg-lut-size = <0x7e>;
295 qcom,channel-id = <1>;
296 qcom,supported-sizes = <6>, <9>;
297 qcom,ramp-index = <0>;
298 #pwm-cells = <2>;
299 status = "disabled";
300 };
301
302 pmi8998_pwm_2: pwm@b200 {
303 compatible = "qcom,qpnp-pwm";
304 reg = <0xb200 0x100>,
305 <0xb042 0x7e>;
306 reg-names = "qpnp-lpg-channel-base",
307 "qpnp-lpg-lut-base";
308 qcom,lpg-lut-size = <0x7e>;
309 qcom,channel-id = <2>;
310 qcom,supported-sizes = <6>, <9>;
311 qcom,ramp-index = <1>;
312 #pwm-cells = <2>;
313 status = "disabled";
314 };
315
316 pmi8998_pwm_3: pwm@b300 {
317 compatible = "qcom,qpnp-pwm";
318 reg = <0xb300 0x100>,
319 <0xb042 0x7e>;
320 reg-names = "qpnp-lpg-channel-base",
321 "qpnp-lpg-lut-base";
322 qcom,lpg-lut-size = <0x7e>;
323 qcom,channel-id = <3>;
324 qcom,supported-sizes = <6>, <9>;
325 qcom,ramp-index = <2>;
326 #pwm-cells = <2>;
327 };
328
329 pmi8998_pwm_4: pwm@b400 {
330 compatible = "qcom,qpnp-pwm";
331 reg = <0xb400 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 = <4>;
337 qcom,supported-sizes = <6>, <9>;
338 qcom,ramp-index = <3>;
339 #pwm-cells = <2>;
340 };
341
342 pmi8998_pwm_5: pwm@b500 {
343 compatible = "qcom,qpnp-pwm";
344 reg = <0xb500 0x100>,
345 <0xb042 0x7e>;
346 reg-names = "qpnp-lpg-channel-base",
347 "qpnp-lpg-lut-base";
348 qcom,lpg-lut-size = <0x7e>;
349 qcom,channel-id = <5>;
350 qcom,supported-sizes = <6>, <9>;
351 qcom,ramp-index = <4>;
352 #pwm-cells = <2>;
353 };
354
355 pmi8998_pwm_6: pwm@b600 {
356 compatible = "qcom,qpnp-pwm";
357 reg = <0xb600 0x100>,
358 <0xb042 0x7e>;
359 reg-names = "qpnp-lpg-channel-base",
360 "qpnp-lpg-lut-base";
361 qcom,lpg-lut-size = <0x7e>;
362 qcom,channel-id = <6>;
363 qcom,supported-sizes = <6>, <9>;
364 qcom,ramp-index = <5>;
365 #pwm-cells = <2>;
366 status = "disabled";
367 };
368
369 qcom,leds@d000 {
370 compatible = "qcom,leds-qpnp";
371 reg = <0xd000 0x100>;
372 label = "rgb";
373 status = "okay";
374
375 red_led: qcom,rgb_0 {
376 label = "rgb";
377 qcom,id = <3>;
378 qcom,mode = "pwm";
379 pwms = <&pmi8998_pwm_5 0 0>;
380 qcom,pwm-us = <1000>;
381 qcom,max-current = <12>;
382 qcom,default-state = "off";
383 linux,name = "red";
384 linux,default-trigger = "battery-charging";
385 };
386
387 green_led: qcom,rgb_1 {
388 label = "rgb";
389 qcom,id = <4>;
390 qcom,mode = "pwm";
391 pwms = <&pmi8998_pwm_4 0 0>;
392 qcom,pwm-us = <1000>;
393 qcom,max-current = <12>;
394 qcom,default-state = "off";
395 linux,name = "green";
396 linux,default-trigger = "battery-full";
397 };
398
399 blue_led: qcom,rgb_2 {
400 label = "rgb";
401 qcom,id = <5>;
402 qcom,mode = "pwm";
403 pwms = <&pmi8998_pwm_3 0 0>;
404 qcom,pwm-us = <1000>;
405 qcom,max-current = <12>;
406 qcom,default-state = "off";
407 linux,name = "blue";
408 linux,default-trigger = "boot-indication";
409 };
410 };
411
412 labibb: qpnp-labibb-regulator {
413 compatible = "qcom,qpnp-labibb-regulator";
414 #address-cells = <1>;
415 #size-cells = <1>;
416 qcom,pmic-revid = <&pmi8998_revid>;
417 status = "disabled";
418
419 ibb_regulator: qcom,ibb@dc00 {
420 reg = <0xdc00 0x100>;
421 reg-names = "ibb_reg";
422 regulator-name = "ibb_reg";
423
424 regulator-min-microvolt = <4600000>;
425 regulator-max-microvolt = <6000000>;
426
427 qcom,qpnp-ibb-min-voltage = <1400000>;
428 qcom,qpnp-ibb-step-size = <100000>;
429 qcom,qpnp-ibb-slew-rate = <2000000>;
430 qcom,qpnp-ibb-use-default-voltage;
431 qcom,qpnp-ibb-init-voltage = <5500000>;
432 qcom,qpnp-ibb-init-amoled-voltage = <4000000>;
433 qcom,qpnp-ibb-init-lcd-voltage = <5500000>;
434
435 qcom,qpnp-ibb-soft-start = <1000>;
436
437 qcom,qpnp-ibb-lab-pwrup-delay = <8000>;
438 qcom,qpnp-ibb-lab-pwrdn-delay = <8000>;
439 qcom,qpnp-ibb-en-discharge;
440
441 qcom,qpnp-ibb-full-pull-down;
442 qcom,qpnp-ibb-pull-down-enable;
443 qcom,qpnp-ibb-switching-clock-frequency =
444 <1480>;
445 qcom,qpnp-ibb-limit-maximum-current = <1550>;
446 qcom,qpnp-ibb-debounce-cycle = <16>;
447 qcom,qpnp-ibb-limit-max-current-enable;
448 qcom,qpnp-ibb-ps-enable;
449 };
450
451 lab_regulator: qcom,lab@de00 {
452 reg = <0xde00 0x100>;
453 reg-names = "lab";
454 regulator-name = "lab_reg";
455
456 regulator-min-microvolt = <4600000>;
457 regulator-max-microvolt = <6000000>;
458
459 interrupts = <0x3 0xde 0x0
460 IRQ_TYPE_EDGE_RISING>;
461 interrupt-names = "lab-vreg-ok";
462 qcom,qpnp-lab-min-voltage = <4600000>;
463 qcom,qpnp-lab-step-size = <100000>;
464 qcom,qpnp-lab-slew-rate = <5000>;
465 qcom,qpnp-lab-use-default-voltage;
466 qcom,qpnp-lab-init-voltage = <5500000>;
467 qcom,qpnp-lab-init-amoled-voltage = <4600000>;
468 qcom,qpnp-lab-init-lcd-voltage = <5500000>;
469
470 qcom,qpnp-lab-soft-start = <800>;
471
472 qcom,qpnp-lab-full-pull-down;
473 qcom,qpnp-lab-pull-down-enable;
474 qcom,qpnp-lab-switching-clock-frequency =
475 <1600>;
476 qcom,qpnp-lab-limit-maximum-current = <1600>;
477 qcom,qpnp-lab-limit-max-current-enable;
478 qcom,qpnp-lab-ps-threshold = <20>;
479 qcom,qpnp-lab-ps-enable;
480 qcom,qpnp-lab-nfet-size = <100>;
481 qcom,qpnp-lab-pfet-size = <100>;
482 qcom,qpnp-lab-max-precharge-time = <500>;
483 };
484 };
485
486 pmi8998_wled: qcom,leds@d800 {
487 compatible = "qcom,qpnp-wled";
488 reg = <0xd800 0x100>,
489 <0xd900 0x100>;
490 reg-names = "qpnp-wled-ctrl-base",
491 "qpnp-wled-sink-base";
492 interrupts = <0x3 0xd8 0x1 IRQ_TYPE_EDGE_RISING>,
493 <0x3 0xd8 0x2 IRQ_TYPE_EDGE_RISING>;
494 interrupt-names = "ovp-irq", "sc-irq";
495 linux,name = "wled";
496 linux,default-trigger = "bkl-trigger";
497 qcom,fdbk-output = "auto";
498 qcom,vref-uv = <127500>;
499 qcom,switch-freq-khz = <800>;
500 qcom,ovp-mv = <29600>;
501 qcom,ilim-ma = <970>;
502 qcom,boost-duty-ns = <26>;
503 qcom,mod-freq-khz = <9600>;
504 qcom,dim-mode = "hybrid";
505 qcom,hyb-thres = <625>;
506 qcom,sync-dly-us = <800>;
507 qcom,fs-curr-ua = <25000>;
508 qcom,cons-sync-write-delay-us = <1000>;
509 qcom,led-strings-list = [00 01 02 03];
510 qcom,en-ext-pfet-sc-pro;
511 qcom,pmic-revid = <&pmi8998_revid>;
512 qcom,loop-auto-gm-en;
Subbaraman Narayanamurthy1f92fc12017-03-30 15:41:45 -0700513 status = "disabled";
David Collinsbbed9aa2017-03-10 11:53:10 -0800514 };
515
516 flash_led: qcom,leds@d300 {
517 compatible = "qcom,qpnp-flash-led-v2";
518 status = "okay";
519 reg = <0xd300 0x100>;
520 label = "flash";
521 interrupts = <0x3 0xd3 0x0 IRQ_TYPE_EDGE_RISING>,
522 <0x3 0xd3 0x3 IRQ_TYPE_EDGE_RISING>,
523 <0x3 0xd3 0x4 IRQ_TYPE_EDGE_RISING>;
524 interrupt-names = "led-fault-irq",
525 "all-ramp-down-done-irq",
526 "all-ramp-up-done-irq";
527 qcom,hdrm-auto-mode;
528 qcom,short-circuit-det;
529 qcom,open-circuit-det;
530 qcom,vph-droop-det;
531 qcom,thermal-derate-en;
532 qcom,thermal-derate-current = <200 500 1000>;
533 qcom,isc-delay = <192>;
534 qcom,pmic-revid = <&pmi8998_revid>;
535
536 pmi8998_flash0: qcom,flash_0 {
537 label = "flash";
538 qcom,led-name = "led:flash_0";
539 qcom,max-current = <1500>;
540 qcom,default-led-trigger = "flash0_trigger";
541 qcom,id = <0>;
542 qcom,current-ma = <1000>;
543 qcom,duration-ms = <1280>;
544 qcom,ires-ua = <12500>;
545 qcom,hdrm-voltage-mv = <325>;
546 qcom,hdrm-vol-hi-lo-win-mv = <100>;
547 };
548
549 pmi8998_flash1: qcom,flash_1 {
550 label = "flash";
551 qcom,led-name = "led:flash_1";
552 qcom,max-current = <1500>;
553 qcom,default-led-trigger = "flash1_trigger";
554 qcom,id = <1>;
555 qcom,current-ma = <1000>;
556 qcom,duration-ms = <1280>;
557 qcom,ires-ua = <12500>;
558 qcom,hdrm-voltage-mv = <325>;
559 qcom,hdrm-vol-hi-lo-win-mv = <100>;
560 };
561
562 pmi8998_flash2: qcom,flash_2 {
563 label = "flash";
564 qcom,led-name = "led:flash_2";
565 qcom,max-current = <750>;
566 qcom,default-led-trigger = "flash2_trigger";
567 qcom,id = <2>;
568 qcom,current-ma = <500>;
569 qcom,duration-ms = <1280>;
570 qcom,ires-ua = <12500>;
571 qcom,hdrm-voltage-mv = <325>;
572 qcom,hdrm-vol-hi-lo-win-mv = <100>;
573 };
574
575 pmi8998_torch0: qcom,torch_0 {
576 label = "torch";
577 qcom,led-name = "led:torch_0";
578 qcom,max-current = <500>;
579 qcom,default-led-trigger = "torch0_trigger";
580 qcom,id = <0>;
581 qcom,current-ma = <300>;
582 qcom,ires-ua = <12500>;
583 qcom,hdrm-voltage-mv = <325>;
584 qcom,hdrm-vol-hi-lo-win-mv = <100>;
585 };
586
587 pmi8998_torch1: qcom,torch_1 {
588 label = "torch";
589 qcom,led-name = "led:torch_1";
590 qcom,max-current = <500>;
591 qcom,default-led-trigger = "torch1_trigger";
592 qcom,id = <1>;
593 qcom,current-ma = <300>;
594 qcom,ires-ua = <12500>;
595 qcom,hdrm-voltage-mv = <325>;
596 qcom,hdrm-vol-hi-lo-win-mv = <100>;
597 };
598
599 pmi8998_torch2: qcom,torch_2 {
600 label = "torch";
601 qcom,led-name = "led:torch_2";
602 qcom,max-current = <500>;
603 qcom,default-led-trigger = "torch2_trigger";
604 qcom,id = <2>;
605 qcom,current-ma = <300>;
606 qcom,ires-ua = <12500>;
607 qcom,hdrm-voltage-mv = <325>;
608 qcom,hdrm-vol-hi-lo-win-mv = <100>;
609 };
610
611 pmi8998_switch0: qcom,led_switch_0 {
612 label = "switch";
613 qcom,led-name = "led:switch_0";
614 qcom,led-mask = <3>;
615 qcom,default-led-trigger = "switch0_trigger";
616 };
617
618 pmi8998_switch1: qcom,led_switch_1 {
619 label = "switch";
620 qcom,led-name = "led:switch_1";
621 qcom,led-mask = <4>;
622 qcom,default-led-trigger = "switch1_trigger";
623 };
624 };
625 };
626};