blob: 289c112e2fe084ee2f0c915ca069df4c0c351e58 [file] [log] [blame]
Umang Agrawal16b11602017-12-21 15:32:55 +05301/* Copyright (c) 2017-2018, 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/interrupt-controller/irq.h>
14#include <dt-bindings/spmi/spmi.h>
15#include <dt-bindings/msm/power-on.h>
16
17&spmi_bus {
18 qcom,pmi632@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>;
Umang Agrawal16b11602017-12-21 15:32:55 +053023
24 pmi632_revid: qcom,revid@100 {
25 compatible = "qcom,qpnp-revid";
26 reg = <0x100 0x100>;
27 };
28
29 pmi632_pon: qcom,power-on@800 {
30 compatible = "qcom,qpnp-power-on";
31 reg = <0x800 0x100>;
32 qcom,secondary-pon-reset;
33 };
34
Jishnu Prakash292e28c2018-01-18 11:28:34 +053035 pmi632_vadc: vadc@3100 {
36 compatible = "qcom,qpnp-vadc-hc";
37 reg = <0x3100 0x100>;
38 #address-cells = <1>;
39 #size-cells = <0>;
Jishnu Prakash3238aad2018-03-08 10:37:18 +053040 interrupts = <0x2 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
Jishnu Prakash292e28c2018-01-18 11:28:34 +053041 interrupt-names = "eoc-int-en-set";
42 qcom,adc-vdd-reference = <1875>;
43 qcom,adc-full-scale-code = <0x70e4>;
44
45 chan@0 {
46 label = "ref_gnd";
47 reg = <0>;
48 qcom,decimation = <2>;
49 qcom,pre-div-channel-scaling = <0>;
50 qcom,calibration-type = "absolute";
51 qcom,scale-function = <0>;
52 qcom,hw-settle-time = <0>;
53 qcom,fast-avg-setup = <0>;
54 qcom,cal-val = <0>;
55 };
56
57 chan@1 {
58 label = "ref_1250v";
59 reg = <1>;
60 qcom,decimation = <2>;
61 qcom,pre-div-channel-scaling = <0>;
62 qcom,calibration-type = "absolute";
63 qcom,scale-function = <0>;
64 qcom,hw-settle-time = <0>;
65 qcom,fast-avg-setup = <0>;
66 qcom,cal-val = <0>;
67 };
68
69 chan@83 {
70 label = "vph_pwr";
71 reg = <0x83>;
72 qcom,decimation = <2>;
73 qcom,pre-div-channel-scaling = <1>;
74 qcom,calibration-type = "absolute";
75 qcom,scale-function = <0>;
76 qcom,hw-settle-time = <0>;
77 qcom,fast-avg-setup = <0>;
78 qcom,cal-val = <0>;
79 };
80
81 chan@84 {
82 label = "vbat_sns";
83 reg = <0x84>;
84 qcom,decimation = <2>;
85 qcom,pre-div-channel-scaling = <1>;
86 qcom,calibration-type = "absolute";
87 qcom,scale-function = <0>;
88 qcom,hw-settle-time = <0>;
89 qcom,fast-avg-setup = <0>;
90 qcom,cal-val = <0>;
91 };
92
93 chan@6 {
94 label = "die_temp";
95 reg = <6>;
96 qcom,decimation = <2>;
97 qcom,pre-div-channel-scaling = <0>;
98 qcom,calibration-type = "absolute";
99 qcom,scale-function = <19>;
100 qcom,hw-settle-time = <0>;
101 qcom,fast-avg-setup = <0>;
102 qcom,cal-val = <0>;
103 };
104
105 chan@7 {
106 label = "usb_in_i";
107 reg = <7>;
108 qcom,decimation = <2>;
109 qcom,pre-div-channel-scaling = <0>;
110 qcom,calibration-type = "absolute";
111 qcom,scale-function = <21>;
112 qcom,hw-settle-time = <0>;
113 qcom,fast-avg-setup = <0>;
114 qcom,cal-val = <0>;
115 };
116
117 chan@8 {
118 label = "usb_in_v";
119 reg = <8>;
120 qcom,decimation = <2>;
121 qcom,pre-div-channel-scaling = <8>;
122 qcom,calibration-type = "absolute";
123 qcom,scale-function = <0>;
124 qcom,hw-settle-time = <0>;
125 qcom,fast-avg-setup = <0>;
126 qcom,cal-val = <0>;
127 };
128
129 chan@9 {
130 label = "chg_temp";
131 reg = <9>;
132 qcom,decimation = <2>;
133 qcom,pre-div-channel-scaling = <0>;
134 qcom,calibration-type = "absolute";
135 qcom,scale-function = <18>;
136 qcom,hw-settle-time = <0>;
137 qcom,fast-avg-setup = <0>;
138 qcom,cal-val = <0>;
139 };
140
141 chan@4a {
142 label = "bat_therm";
143 reg = <0x4a>;
144 qcom,decimation = <2>;
145 qcom,pre-div-channel-scaling = <0>;
146 qcom,calibration-type = "ratiometric";
147 qcom,scale-function = <17>;
148 qcom,hw-settle-time = <0>;
149 qcom,fast-avg-setup = <0>;
150 qcom,cal-val = <0>;
151 };
152
153 chan@4b {
154 label = "bat_id";
155 reg = <0x4b>;
156 qcom,decimation = <2>;
157 qcom,pre-div-channel-scaling = <0>;
158 qcom,calibration-type = "ratiometric";
159 qcom,scale-function = <0>;
160 qcom,hw-settle-time = <0>;
161 qcom,fast-avg-setup = <0>;
162 qcom,cal-val = <0>;
163 };
164
165 chan@4c {
166 label = "xo_therm";
167 reg = <0x4c>;
168 qcom,decimation = <2>;
169 qcom,pre-div-channel-scaling = <0>;
170 qcom,calibration-type = "ratiometric";
171 qcom,scale-function = <4>;
172 qcom,hw-settle-time = <8>;
173 qcom,fast-avg-setup = <0>;
174 };
175
176
177 chan@1e {
178 label = "mid_chg";
179 reg = <0x1e>;
180 qcom,decimation = <2>;
181 qcom,pre-div-channel-scaling = <3>;
182 qcom,calibration-type = "absolute";
183 qcom,scale-function = <0>;
184 qcom,hw-settle-time = <0>;
185 qcom,fast-avg-setup = <0>;
186 qcom,cal-val = <0>;
187 };
188
189 };
190
Umang Agrawal16b11602017-12-21 15:32:55 +0530191 pmi632_tz: qcom,temp-alarm@2400 {
192 compatible = "qcom,qpnp-temp-alarm";
193 reg = <0x2400 0x100>;
194 interrupts = <0x2 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
195 label = "pmi632_tz";
196 #thermal-sensor-cells = <0>;
197 };
198
199 pmi632_gpios: pinctrl@c000 {
200 compatible = "qcom,spmi-gpio";
201 reg = <0xc000 0x800>;
202 interrupts = <0x2 0xc1 0 IRQ_TYPE_NONE>,
203 <0x2 0xc2 0 IRQ_TYPE_NONE>,
204 <0x2 0xc3 0 IRQ_TYPE_NONE>,
205 <0x2 0xc4 0 IRQ_TYPE_NONE>,
206 <0x2 0xc5 0 IRQ_TYPE_NONE>,
207 <0x2 0xc6 0 IRQ_TYPE_NONE>,
Umang Agrawalfbbfb7f2017-12-29 19:27:01 +0530208 <0x2 0xc7 0 IRQ_TYPE_NONE>;
Umang Agrawal16b11602017-12-21 15:32:55 +0530209 interrupt-names = "pmi632_gpio2", "pmi632_gpio3",
210 "pmi632_gpio4", "pmi632_gpio5",
211 "pmi632_gpio6", "pmi632_gpio7",
212 "pmi632_gpio8";
213 gpio-controller;
214 #gpio-cells = <2>;
215 qcom,gpios-disallowed = <1>;
216 };
Ashay Jaiswal4e9d1d12018-02-11 14:56:48 +0530217
218 pmi632_charger: qcom,qpnp-smb5 {
219 compatible = "qcom,qpnp-smb5";
220 #address-cells = <1>;
221 #size-cells = <1>;
Manaf Meethalavalappu Pallikunhi585ef212018-02-27 21:10:51 +0530222 #cooling-cells = <2>;
Ashay Jaiswal4e9d1d12018-02-11 14:56:48 +0530223
224 qcom,pmic-revid = <&pmi632_revid>;
225 dpdm-supply = <&qusb_phy>;
Anirudh Ghayal23fa4a32018-03-08 18:16:23 +0530226 qcom,auto-recharge-soc = <98>;
Ashay Jaiswal4e9d1d12018-02-11 14:56:48 +0530227
Manaf Meethalavalappu Pallikunhi585ef212018-02-27 21:10:51 +0530228 qcom,thermal-mitigation
229 = <3000000 2500000 2000000 1500000
230 1000000 500000>;
231
Ashay Jaiswal4e9d1d12018-02-11 14:56:48 +0530232 qcom,chgr@1000 {
233 reg = <0x1000 0x100>;
234 interrupts =
235 <0x2 0x10 0x0 IRQ_TYPE_EDGE_RISING>,
236 <0x2 0x10 0x1 IRQ_TYPE_EDGE_RISING>,
237 <0x2 0x10 0x2 IRQ_TYPE_EDGE_RISING>,
238 <0x2 0x10 0x3 IRQ_TYPE_EDGE_RISING>,
239 <0x2 0x10 0x4 IRQ_TYPE_EDGE_RISING>,
240 <0x2 0x10 0x5 IRQ_TYPE_EDGE_RISING>,
Ashay Jaiswal9d3f1192018-03-07 19:05:59 +0530241 <0x2 0x10 0x6 IRQ_TYPE_EDGE_RISING>,
242 <0x2 0x10 0x7 IRQ_TYPE_EDGE_RISING>;
Ashay Jaiswal4e9d1d12018-02-11 14:56:48 +0530243
244 interrupt-names = "chgr-error",
245 "chg-state-change",
246 "step-chg-state-change",
247 "step-chg-soc-update-fail",
248 "step-chg-soc-update-req",
249 "fg-fvcal-qualified",
250 "vph-alarm",
251 "vph-drop-prechg";
252 };
253
254 qcom,dcdc@1100 {
255 reg = <0x1100 0x100>;
256 interrupts =
257 <0x2 0x11 0x0 IRQ_TYPE_EDGE_RISING>,
258 <0x2 0x11 0x1 IRQ_TYPE_EDGE_RISING>,
259 <0x2 0x11 0x2 IRQ_TYPE_EDGE_RISING>,
Ashay Jaiswal9d3f1192018-03-07 19:05:59 +0530260 <0x2 0x11 0x3 IRQ_TYPE_EDGE_BOTH>,
Ashay Jaiswal4e9d1d12018-02-11 14:56:48 +0530261 <0x2 0x11 0x4 IRQ_TYPE_EDGE_BOTH>,
262 <0x2 0x11 0x5 IRQ_TYPE_EDGE_BOTH>,
263 <0x2 0x11 0x6 IRQ_TYPE_EDGE_RISING>,
264 <0x2 0x11 0x7 IRQ_TYPE_EDGE_BOTH>;
265
266 interrupt-names = "otg-fail",
267 "otg-oc-disable-sw",
268 "otg-oc-hiccup",
269 "bsm-active",
270 "high-duty-cycle",
271 "input-current-limiting",
272 "concurrent-mode-disable",
273 "switcher-power-ok";
274 };
275
276 qcom,batif@1200 {
277 reg = <0x1200 0x100>;
278 interrupts =
279 <0x2 0x12 0x0 IRQ_TYPE_EDGE_RISING>,
280 <0x2 0x12 0x1 IRQ_TYPE_EDGE_RISING>,
281 <0x2 0x12 0x2 IRQ_TYPE_EDGE_BOTH>,
282 <0x2 0x12 0x3 IRQ_TYPE_EDGE_BOTH>,
283 <0x2 0x12 0x4 IRQ_TYPE_EDGE_BOTH>,
284 <0x2 0x12 0x5 IRQ_TYPE_EDGE_BOTH>,
285 <0x2 0x12 0x6 IRQ_TYPE_EDGE_BOTH>,
Ashay Jaiswal9d3f1192018-03-07 19:05:59 +0530286 <0x2 0x12 0x7 IRQ_TYPE_EDGE_BOTH>;
Ashay Jaiswal4e9d1d12018-02-11 14:56:48 +0530287
288 interrupt-names = "bat-temp",
289 "all-chnl-conv-done",
290 "bat-ov",
291 "bat-low",
292 "bat-therm-or-id-missing",
293 "bat-terminal-missing",
294 "buck-oc",
295 "vph-ov";
296 };
297
298 qcom,usb@1300 {
299 reg = <0x1300 0x100>;
300 interrupts =
301 <0x2 0x13 0x0 IRQ_TYPE_EDGE_BOTH>,
302 <0x2 0x13 0x1 IRQ_TYPE_EDGE_BOTH>,
303 <0x2 0x13 0x2 IRQ_TYPE_EDGE_BOTH>,
304 <0x2 0x13 0x3 IRQ_TYPE_EDGE_BOTH>,
Ashay Jaiswal9d3f1192018-03-07 19:05:59 +0530305 <0x2 0x13 0x4 IRQ_TYPE_EDGE_BOTH>,
306 <0x2 0x13 0x5 IRQ_TYPE_EDGE_BOTH>,
Ashay Jaiswal4e9d1d12018-02-11 14:56:48 +0530307 <0x2 0x13 0x6 IRQ_TYPE_EDGE_RISING>,
308 <0x2 0x13 0x7 IRQ_TYPE_EDGE_RISING>;
309
310 interrupt-names = "usbin-collapse",
311 "usbin-vashdn",
312 "usbin-uv",
313 "usbin-ov",
314 "usbin-plugin",
315 "usbin-revi-change",
316 "usbin-src-change",
317 "usbin-icl-change";
318 };
319
320 qcom,typec@1500 {
321 reg = <0x1500 0x100>;
322 interrupts =
323 <0x2 0x15 0x0 IRQ_TYPE_EDGE_BOTH>,
Ashay Jaiswal9d3f1192018-03-07 19:05:59 +0530324 <0x2 0x15 0x1 IRQ_TYPE_EDGE_BOTH>,
Ashay Jaiswal4e9d1d12018-02-11 14:56:48 +0530325 <0x2 0x15 0x2 IRQ_TYPE_EDGE_RISING>,
Ashay Jaiswal9d3f1192018-03-07 19:05:59 +0530326 <0x2 0x15 0x3 IRQ_TYPE_EDGE_RISING>,
327 <0x2 0x15 0x4 IRQ_TYPE_EDGE_BOTH>,
Ashay Jaiswal4e9d1d12018-02-11 14:56:48 +0530328 <0x2 0x15 0x5 IRQ_TYPE_EDGE_RISING>,
Ashay Jaiswal9d3f1192018-03-07 19:05:59 +0530329 <0x2 0x15 0x6 IRQ_TYPE_EDGE_RISING>,
Ashay Jaiswal4e9d1d12018-02-11 14:56:48 +0530330 <0x2 0x15 0x7 IRQ_TYPE_EDGE_RISING>;
331
332 interrupt-names = "typec-or-rid-detect-change",
333 "typec-vpd-detect",
334 "typec-cc-state-change",
335 "typec-vconn-oc",
336 "typec-vbus-change",
337 "typec-attach-detach",
338 "typec-legacy-cable-detect",
339 "typec-try-snk-src-detect";
340 };
341
342 qcom,misc@1600 {
343 reg = <0x1600 0x100>;
344 interrupts =
345 <0x2 0x16 0x0 IRQ_TYPE_EDGE_RISING>,
346 <0x2 0x16 0x1 IRQ_TYPE_EDGE_RISING>,
Ashay Jaiswal9d3f1192018-03-07 19:05:59 +0530347 <0x2 0x16 0x2 IRQ_TYPE_EDGE_RISING>,
348 <0x2 0x16 0x3 IRQ_TYPE_EDGE_RISING>,
349 <0x2 0x16 0x4 IRQ_TYPE_EDGE_BOTH>,
Ashay Jaiswal4e9d1d12018-02-11 14:56:48 +0530350 <0x2 0x16 0x5 IRQ_TYPE_EDGE_RISING>,
Ashay Jaiswal9d3f1192018-03-07 19:05:59 +0530351 <0x2 0x16 0x6 IRQ_TYPE_EDGE_RISING>,
Ashay Jaiswal4e9d1d12018-02-11 14:56:48 +0530352 <0x2 0x16 0x7 IRQ_TYPE_EDGE_RISING>;
353
354 interrupt-names = "wdog-snarl",
355 "wdog-bark",
356 "aicl-fail",
357 "aicl-done",
358 "smb-en",
359 "imp-trigger",
360 "temp-change",
361 "temp-change-smb";
362 };
363
Ashay Jaiswal3ee6df62018-02-19 17:02:16 +0530364 qcom,schgm-flash@a600 {
365 reg = <0xa600 0x100>;
366 interrupts =
367 <0x2 0xa6 0x2 IRQ_TYPE_EDGE_RISING>,
368 <0x2 0xa6 0x5 IRQ_TYPE_EDGE_RISING>,
369 <0x2 0xa6 0x6 IRQ_TYPE_EDGE_RISING>,
370 <0x2 0xa6 0x7 IRQ_TYPE_EDGE_BOTH>;
371
372 interrupt-names = "flash-state-change",
373 "ilim1-s1",
374 "ilim2-s2",
375 "vreg-ok";
376 };
377
Ashay Jaiswal4e9d1d12018-02-11 14:56:48 +0530378 smb5_vbus: qcom,smb5-vbus {
379 regulator-name = "smb5-vbus";
380 };
381 };
Anirudh Ghayalb4b52282018-02-16 19:56:15 +0530382
383 pmi632_qg: qpnp,qg {
384 compatible = "qcom,qpnp-qg";
385 #address-cells = <1>;
386 #size-cells = <1>;
387
Anirudh Ghayal23fa4a32018-03-08 18:16:23 +0530388 qcom,vbatt-empty-mv = <3300>;
Anirudh Ghayalb4b52282018-02-16 19:56:15 +0530389 qcom,vbatt-low-mv = <3500>;
390 qcom,vbatt-cutoff-mv = <3400>;
391 qcom,qg-iterm-ma = <100>;
Anirudh Ghayal23fa4a32018-03-08 18:16:23 +0530392 qcom,hold-soc-while-full;
393 qcom,linearize-soc;
Anirudh Ghayalb4b52282018-02-16 19:56:15 +0530394 qcom,qg-vadc = <&pmi632_vadc>;
395 qcom,pmic-revid = <&pmi632_revid>;
396
397 qcom,qgauge@4800 {
398 status = "okay";
399 reg = <0x4800 0x100>;
400 interrupts = <0x2 0x48 0x0 IRQ_TYPE_EDGE_BOTH>,
401 <0x2 0x48 0x1 IRQ_TYPE_EDGE_BOTH>,
402 <0x2 0x48 0x2 IRQ_TYPE_EDGE_BOTH>,
403 <0x2 0x48 0x3 IRQ_TYPE_EDGE_BOTH>,
404 <0x2 0x48 0x4 IRQ_TYPE_EDGE_BOTH>;
405 interrupt-names = "qg-batt-missing",
406 "qg-vbat-low",
407 "qg-vbat-empty",
408 "qg-fifo-done",
409 "qg-good-ocv";
410 };
411
412 qcom,qg-sdam@b100 {
413 status = "okay";
414 reg = <0xb100 0x100>;
415 };
416 };
Manaf Meethalavalappu Pallikunhi0c5f0162018-02-24 01:55:58 +0530417
418 bcl_sensor: bcl@3d00 {
419 compatible = "qcom,msm-bcl-pmic5";
420 reg = <0x3d00 0xff>;
421 interrupts = <0x2 0x3d 0x0 IRQ_TYPE_NONE>,
422 <0x2 0x3d 0x1 IRQ_TYPE_NONE>;
423 interrupt-names = "bcl-high-ibat",
424 "bcl-low-vbat";
425 #thermal-sensor-cells = <1>;
426 };
427
428 bcl_soc: bcl-soc {
429 compatible = "qcom,msm-bcl-soc";
430 #thermal-sensor-cells = <0>;
431 };
Umang Agrawal16b11602017-12-21 15:32:55 +0530432 };
433
434 pmi632_3: qcom,pmi632@3 {
435 compatible ="qcom,spmi-pmic";
436 reg = <0x3 SPMI_USID>;
Anirudh Ghayald77f8f62018-03-04 20:05:25 +0530437 #address-cells = <1>;
438 #size-cells = <1>;
Umang Agrawal16b11602017-12-21 15:32:55 +0530439
Tirupathi Reddy08968e82018-01-09 16:58:28 +0530440 pmi632_vib: qcom,vibrator@5700 {
441 compatible = "qcom,qpnp-vibrator-ldo";
442 reg = <0x5700 0x100>;
Tirupathi Reddy398336a2018-02-02 09:01:15 +0530443 qcom,vib-ldo-volt-uv = <3000000>;
Tirupathi Reddy08968e82018-01-09 16:58:28 +0530444 qcom,vib-overdrive-volt-uv = <3544000>;
445 };
446
Fenglin Wu80e87902018-01-24 11:39:47 +0800447 pmi632_pwm: qcom,pwms@b300 {
448 compatible = "qcom,pwm-lpg";
449 reg = <0xb300 0x500>;
450 reg-names = "lpg-base";
Umang Agrawal16b11602017-12-21 15:32:55 +0530451 #pwm-cells = <2>;
Umang Agrawal16b11602017-12-21 15:32:55 +0530452 };
453
Fenglin Wu80e87902018-01-24 11:39:47 +0800454 pmi632_rgb: qcom,leds@d000 {
455 compatible = "qcom,tri-led";
456 reg = <0xd000 0x100>;
457 red {
458 label = "red";
459 pwms = <&pmi632_pwm 0 1000000>;
460 led-sources = <0>;
Fenglin Wuc6759002018-02-28 10:46:19 +0800461 linux,default-trigger = "timer";
Fenglin Wu80e87902018-01-24 11:39:47 +0800462 };
463 green {
464 label = "green";
465 pwms = <&pmi632_pwm 1 1000000>;
466 led-sources = <1>;
Fenglin Wuc6759002018-02-28 10:46:19 +0800467 linux,default-trigger = "timer";
Fenglin Wu80e87902018-01-24 11:39:47 +0800468 };
469 blue {
470 label = "blue";
471 pwms = <&pmi632_pwm 2 1000000>;
472 led-sources = <2>;
Fenglin Wuc6759002018-02-28 10:46:19 +0800473 linux,default-trigger = "timer";
Fenglin Wu80e87902018-01-24 11:39:47 +0800474 };
Umang Agrawal16b11602017-12-21 15:32:55 +0530475 };
Kiran Gunda833a5c72018-01-09 18:34:42 +0530476
477 pmi632_lcdb: qpnp-lcdb@ec00 {
478 compatible = "qcom,qpnp-lcdb-regulator";
479 #address-cells = <1>;
480 #size-cells = <1>;
481 reg = <0xec00 0x100>;
482 interrupts = <0x3 0xec 0x1 IRQ_TYPE_EDGE_RISING>;
483 interrupt-names = "sc-irq";
484
485 qcom,pmic-revid = <&pmi632_revid>;
486
487 lcdb_ldo_vreg: ldo {
488 label = "ldo";
489 regulator-name = "lcdb_ldo";
490 regulator-min-microvolt = <4000000>;
491 regulator-max-microvolt = <6000000>;
492 };
493
494 lcdb_ncp_vreg: ncp {
495 label = "ncp";
496 regulator-name = "lcdb_ncp";
497 regulator-min-microvolt = <4000000>;
498 regulator-max-microvolt = <6000000>;
499 };
500 };
Kiran Gunda27259b52018-01-16 15:12:04 +0530501
502 flash_led: qcom,leds@d300 {
503 compatible = "qcom,qpnp-flash-led-v2";
504 status = "okay";
505 reg = <0xd300 0x100>;
506 label = "flash";
507 interrupts = <0x3 0xd3 0x0 IRQ_TYPE_EDGE_RISING>,
508 <0x3 0xd3 0x3 IRQ_TYPE_EDGE_RISING>,
509 <0x3 0xd3 0x4 IRQ_TYPE_EDGE_RISING>;
510 interrupt-names = "led-fault-irq",
511 "all-ramp-down-done-irq",
512 "all-ramp-up-done-irq";
513 qcom,short-circuit-det;
514 qcom,open-circuit-det;
515 qcom,vph-droop-det;
516 qcom,thermal-derate-en;
517 qcom,thermal-derate-current = <200 500 1000>;
518 qcom,isc-delay = <192>;
519 qcom,pmic-revid = <&pmi632_revid>;
520
521 pmi632_flash0: qcom,flash_0 {
522 label = "flash";
523 qcom,led-name = "led:flash_0";
524 qcom,max-current = <1500>;
525 qcom,default-led-trigger = "flash0_trigger";
526 qcom,id = <0>;
527 qcom,current-ma = <1000>;
528 qcom,duration-ms = <1280>;
529 qcom,ires-ua = <12500>;
530 qcom,hdrm-voltage-mv = <400>;
531 qcom,hdrm-vol-hi-lo-win-mv = <100>;
532 };
533
534 pmi632_flash1: qcom,flash_1 {
535 label = "flash";
536 qcom,led-name = "led:flash_1";
537 qcom,max-current = <1500>;
538 qcom,default-led-trigger = "flash1_trigger";
539 qcom,id = <1>;
540 qcom,current-ma = <1000>;
541 qcom,duration-ms = <1280>;
542 qcom,ires-ua = <12500>;
543 qcom,hdrm-voltage-mv = <400>;
544 qcom,hdrm-vol-hi-lo-win-mv = <100>;
545 };
546
547 pmi632_torch0: qcom,torch_0 {
548 label = "torch";
549 qcom,led-name = "led:torch_0";
550 qcom,max-current = <500>;
551 qcom,default-led-trigger = "torch0_trigger";
552 qcom,id = <0>;
553 qcom,current-ma = <300>;
554 qcom,ires-ua = <12500>;
555 qcom,hdrm-voltage-mv = <400>;
556 qcom,hdrm-vol-hi-lo-win-mv = <100>;
557 };
558
559 pmi632_torch1: qcom,torch_1 {
560 label = "torch";
561 qcom,led-name = "led:torch_1";
562 qcom,max-current = <500>;
563 qcom,default-led-trigger = "torch1_trigger";
564 qcom,id = <1>;
565 qcom,current-ma = <300>;
566 qcom,ires-ua = <12500>;
567 qcom,hdrm-voltage-mv = <400>;
568 qcom,hdrm-vol-hi-lo-win-mv = <100>;
569 };
570
571 pmi632_switch0: qcom,led_switch_0 {
572 label = "switch";
573 qcom,led-name = "led:switch_0";
574 qcom,led-mask = <3>;
575 qcom,default-led-trigger = "switch0_trigger";
576 };
577
578 pmi632_switch1: qcom,led_switch_1 {
579 label = "switch";
580 qcom,led-name = "led:switch_1";
581 qcom,led-mask = <2>;
582 qcom,default-led-trigger = "switch1_trigger";
583 };
584
585 };
586
Umang Agrawal16b11602017-12-21 15:32:55 +0530587 };
588};
Vijay kumar Tumati26fe6282018-02-21 18:40:21 +0530589&soc {
590 led_flash0: qcom,camera-flash {
591 cell-index = <0>;
592 compatible = "qcom,camera-flash";
593 qcom,flash-type = <1>;
594 qcom,flash-source = <&pmi632_flash0 &pmi632_flash1>;
595 qcom,torch-source = <&pmi632_torch0 &pmi632_torch1>;
596 qcom,switch-source = <&pmi632_switch0>;
597 };
598};
Manaf Meethalavalappu Pallikunhi0c5f0162018-02-24 01:55:58 +0530599
600&thermal_zones {
601 ibat-high {
602 polling-delay-passive = <0>;
603 polling-delay = <0>;
604 thermal-governor = "step_wise";
605 thermal-sensors = <&bcl_sensor 0>;
606
607 trips {
608 pmi632_ibat:ibat-high {
609 temperature = <3500>;
610 hysteresis = <200>;
611 type = "passive";
612 };
613 };
614 };
615
616 vbat_low {
617 polling-delay-passive = <100>;
618 polling-delay = <0>;
619 thermal-governor = "low_limits_cap";
620 thermal-sensors = <&bcl_sensor 2>;
621 tracks-low;
622
623 trips {
624 pmi632_vbat_low: vbat-low {
625 temperature = <3000>;
626 hysteresis = <100>;
627 type = "passive";
628 };
629 };
Manaf Meethalavalappu Pallikunhi0c5f0162018-02-24 01:55:58 +0530630 };
631
632 soc {
633 polling-delay-passive = <100>;
634 polling-delay = <0>;
635 thermal-governor = "low_limits_cap";
636 thermal-sensors = <&bcl_soc>;
637 tracks-low;
638
639 trips {
640 pmi632_low_soc: low-soc {
641 temperature = <10>;
642 hysteresis = <0>;
643 type = "passive";
644 };
645 };
Manaf Meethalavalappu Pallikunhi0c5f0162018-02-24 01:55:58 +0530646 };
647};