blob: ba1bf089b5719e74e77b8f7ceb6b9d6833248ebd [file] [log] [blame]
David Keitel84987112013-02-11 13:26:30 -08001/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
Kenneth Heitkee5804002012-11-15 17:50:07 -07002 *
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&spmi_bus {
14 #address-cells = <1>;
15 #size-cells = <0>;
16 interrupt-controller;
17 #interrupt-cells = <3>;
David Keitel84987112013-02-11 13:26:30 -080018
David Keitel4109e952013-02-07 20:22:13 -080019 qcom,pm8226@0 {
20 spmi-slave-container;
21 reg = <0x0>;
22 #address-cells = <1>;
23 #size-cells = <1>;
24
Abhijeet Dharmapurikare7497002013-07-29 11:25:37 -070025 pm8226_revid: qcom,revid@100 {
Xiaozhe Shia0e6c232013-03-06 15:22:05 -080026 compatible = "qcom,qpnp-revid";
27 reg = <0x100 0x100>;
28 };
29
Amy Malochef8225942013-03-04 12:16:29 -080030 qcom,power-on@800 {
31 compatible = "qcom,qpnp-power-on";
32 reg = <0x800 0x100>;
33 interrupts = <0x0 0x8 0x0>,
34 <0x0 0x8 0x1>,
Amy Maloche442667a2013-06-27 14:11:06 -070035 <0x0 0x8 0x4>,
36 <0x0 0x8 0x5>;
37 interrupt-names = "kpdpwr", "resin",
38 "resin-bark", "kpdpwr-resin-bark";
Amy Malochef8225942013-03-04 12:16:29 -080039 qcom,pon-dbc-delay = <15625>;
40 qcom,system-reset;
Amy Maloche442667a2013-06-27 14:11:06 -070041 qcom,s3-debounce = <32>;
Amy Malochef8225942013-03-04 12:16:29 -080042
43 qcom,pon_1 {
44 qcom,pon-type = <0>;
45 qcom,pull-up = <1>;
46 linux,code = <116>;
47 };
48
49 qcom,pon_2 {
50 qcom,pon-type = <1>;
Amy Malochef8225942013-03-04 12:16:29 -080051 qcom,pull-up = <1>;
Amy Malochef8225942013-03-04 12:16:29 -080052 linux,code = <114>;
53 };
Amy Maloche442667a2013-06-27 14:11:06 -070054
55 qcom,pon_3 {
56 qcom,pon-type = <3>;
57 qcom,support-reset = <1>;
58 qcom,pull-up = <1>;
59 qcom,s1-timer = <6720>;
60 qcom,s2-timer = <2000>;
61 qcom,s2-type = <7>;
62 };
Amy Malochef8225942013-03-04 12:16:29 -080063 };
64
David Keitelc51a7e52013-03-02 00:14:48 -080065 pm8226_chg: qcom,charger {
66 spmi-dev-container;
67 compatible = "qcom,qpnp-charger";
68 #address-cells = <1>;
69 #size-cells = <1>;
70 status = "disabled";
71
David Keitele89d4782013-03-27 11:29:59 -070072 qcom,vddmax-mv = <4200>;
Xiaozhe Shi22aa0cd2013-05-28 10:45:12 -070073 qcom,vddsafe-mv = <4230>;
Xiaozhe Shi555dffd2013-07-25 17:21:10 -070074 qcom,vinmin-mv = <4300>;
Xiaozhe Shic220bf82013-07-25 17:15:57 -070075 qcom,vbatdet-delta-mv = <100>;
David Keitele89d4782013-03-27 11:29:59 -070076 qcom,ibatmax-ma = <1500>;
David Keitel9fd07382013-05-02 15:37:44 -070077 qcom,ibatterm-ma = <100>;
David Keitele89d4782013-03-27 11:29:59 -070078 qcom,ibatsafe-ma = <1500>;
79 qcom,thermal-mitigation = <1500 700 600 325>;
Xiaozhe Shi1acc0922013-07-12 10:55:21 -070080 qcom,resume-soc = <99>;
David Keitelb0b63632013-03-27 15:17:33 -070081 qcom,tchg-mins = <150>;
Siddartha Mohanadoss3cb2b6b2013-06-21 12:07:05 -070082 qcom,chg-vadc = <&pm8226_vadc>;
Siddartha Mohanadoss88a3fde2013-06-24 16:18:52 -070083 qcom,chg-adc_tm = <&pm8226_adc_tm>;
Abhijeet Dharmapurikare7497002013-07-29 11:25:37 -070084 qcom,pmic-revid = <&pm8226_revid>;
David Keitel5dd5df82013-07-29 17:28:39 -070085 qcom,ibatmax-warm-ma = <350>;
86 qcom,warm-bat-decidegc = <450>;
87 qcom,warm-bat-mv = <4100>;
88 qcom,cool-bat-decidegc = <100>;
89 qcom,cool-bat-mv = <4100>;
90 qcom,ibatmax-cool-ma = <350>;
David Keitelc51a7e52013-03-02 00:14:48 -080091
David Keitele89d4782013-03-27 11:29:59 -070092 qcom,chgr@1000 {
David Keitelc51a7e52013-03-02 00:14:48 -080093 status = "disabled";
94 reg = <0x1000 0x100>;
95 interrupts = <0x0 0x10 0x0>,
96 <0x0 0x10 0x1>,
97 <0x0 0x10 0x2>,
98 <0x0 0x10 0x3>,
99 <0x0 0x10 0x4>,
100 <0x0 0x10 0x5>,
101 <0x0 0x10 0x6>,
102 <0x0 0x10 0x7>;
103
104 interrupt-names = "vbat-det-lo",
105 "vbat-det-hi",
106 "chgwdog",
107 "state-change",
108 "trkl-chg-on",
109 "fast-chg-on",
110 "chg-failed",
111 "chg-done";
112 };
113
David Keitele89d4782013-03-27 11:29:59 -0700114 qcom,buck@1100 {
David Keitelc51a7e52013-03-02 00:14:48 -0800115 status = "disabled";
116 reg = <0x1100 0x100>;
117 interrupts = <0x0 0x11 0x0>,
118 <0x0 0x11 0x1>,
119 <0x0 0x11 0x2>,
120 <0x0 0x11 0x3>,
121 <0x0 0x11 0x4>,
122 <0x0 0x11 0x5>,
123 <0x0 0x11 0x6>;
124
125 interrupt-names = "vbat-ov",
126 "vreg-ov",
127 "overtemp",
128 "vchg-loop",
129 "ichg-loop",
130 "ibat-loop",
131 "vdd-loop";
132 };
133
David Keitele89d4782013-03-27 11:29:59 -0700134 qcom,bat-if@1200 {
David Keitelc51a7e52013-03-02 00:14:48 -0800135 status = "disabled";
136 reg = <0x1200 0x100>;
137 interrupts = <0x0 0x12 0x0>,
138 <0x0 0x12 0x1>,
139 <0x0 0x12 0x2>,
140 <0x0 0x12 0x3>,
141 <0x0 0x12 0x4>;
142
143 interrupt-names = "batt-pres",
144 "bat-temp-ok",
145 "bat-fet-on",
146 "vcp-on",
147 "psi";
David Keitelc51a7e52013-03-02 00:14:48 -0800148 };
149
David Keitel3bdfa5d2013-07-10 17:36:07 -0700150 pm8226_chg_boost: qcom,boost@1500 {
151 status = "disabled";
152 reg = <0x1500 0x100>;
153 interrupts = <0x0 0x15 0x0>,
154 <0x0 0x15 0x1>;
155
156 interrupt-names = "boost-pwr-ok",
157 "limit-error";
158 };
159
160
David Keitel55aa28c2013-05-22 05:24:47 -0700161 pm8226_chg_otg: qcom,usb-chgpth@1300 {
David Keitelc51a7e52013-03-02 00:14:48 -0800162 status = "disabled";
163 reg = <0x1300 0x100>;
164 interrupts = <0 0x13 0x0>,
165 <0 0x13 0x1>,
David Keitel0b62bdd2013-07-10 17:30:51 -0700166 <0x0 0x13 0x2>,
167 <0x0 0x13 0x3>;
David Keitelc51a7e52013-03-02 00:14:48 -0800168
169 interrupt-names = "coarse-det-usb",
170 "usbin-valid",
David Keitel0b62bdd2013-07-10 17:30:51 -0700171 "chg-gone",
172 "usb-ocp";
David Keitelc51a7e52013-03-02 00:14:48 -0800173 };
174
David Keitelc51a7e52013-03-02 00:14:48 -0800175 qcom,chg-misc@1600 {
176 status = "disabled";
177 reg = <0x1600 0x100>;
178 };
179 };
180
Xiaozhe Shicb59c9d2013-03-19 10:43:07 -0700181 pm8226_bms: qcom,bms {
182 spmi-dev-container;
183 compatible = "qcom,qpnp-bms";
184 #address-cells = <1>;
185 #size-cells = <1>;
186 status = "disabled";
187
188 qcom,r-sense-uohm = <10000>;
189 qcom,v-cutoff-uv = <3400000>;
190 qcom,max-voltage-uv = <4200000>;
Xiaozhe Shie0da4c72013-04-02 10:43:55 -0700191 qcom,r-conn-mohm = <0>;
Xiaozhe Shi8e1fe4c2013-09-11 10:53:59 -0700192 qcom,shutdown-soc-valid-limit = <100>;
Xiaozhe Shi561ebf72013-03-25 13:51:27 -0700193 qcom,adjust-soc-low-threshold = <15>;
Xiaozhe Shicb59c9d2013-03-19 10:43:07 -0700194 qcom,ocv-voltage-high-threshold-uv = <3750000>;
195 qcom,ocv-voltage-low-threshold-uv = <3650000>;
196 qcom,low-soc-calculate-soc-threshold = <15>;
197 qcom,low-soc-calculate-soc-ms = <5000>;
198 qcom,calculate-soc-ms = <20000>;
199 qcom,chg-term-ua = <100000>;
200 qcom,batt-type = <0>;
Xiaozhe Shi535494d2013-04-05 12:27:51 -0700201 qcom,tm-temp-margin = <5000>;
Xiaozhe Shi0ac7a002013-03-26 13:14:03 -0700202 qcom,low-ocv-correction-limit-uv = <100>;
203 qcom,high-ocv-correction-limit-uv = <50>;
204 qcom,hold-soc-est = <3>;
Xiaozhe Shi33988df2013-04-03 10:37:56 -0700205 qcom,low-voltage-threshold = <3420000>;
Siddartha Mohanadoss3cb2b6b2013-06-21 12:07:05 -0700206 qcom,bms-vadc = <&pm8226_vadc>;
Siddartha Mohanadoss55d0bca2013-06-24 08:29:34 -0700207 qcom,bms-iadc = <&pm8226_iadc>;
Siddartha Mohanadoss88a3fde2013-06-24 16:18:52 -0700208 qcom,bms-adc_tm = <&pm8226_adc_tm>;
Xiaozhe Shicb59c9d2013-03-19 10:43:07 -0700209
210 qcom,bms-iadc@3800 {
211 reg = <0x3800 0x100>;
212 };
213
214 qcom,bms-bms@4000 {
215 reg = <0x4000 0x100>;
216 interrupts = <0x0 0x40 0x0>,
217 <0x0 0x40 0x1>,
218 <0x0 0x40 0x2>,
219 <0x0 0x40 0x3>,
220 <0x0 0x40 0x4>,
221 <0x0 0x40 0x5>,
222 <0x0 0x40 0x6>,
223 <0x0 0x40 0x7>;
224
Xiaozhe Shic4c04ee2013-07-29 10:41:48 -0700225 interrupt-names = "cc_thr",
Xiaozhe Shicb59c9d2013-03-19 10:43:07 -0700226 "ocv_for_r",
Xiaozhe Shic4c04ee2013-07-29 10:41:48 -0700227 "good_ocv",
228 "charge_begin",
229 "ocv_thr",
230 "sw_cc_thr",
231 "vsense_avg",
232 "vsense_for_r";
Xiaozhe Shicb59c9d2013-03-19 10:43:07 -0700233 };
234 };
235
Amy Malochef92d79c2013-04-22 11:55:05 -0700236 qcom,leds@a100 {
237 compatible = "qcom,leds-qpnp";
238 reg = <0xa100 0x100>;
239 label = "mpp";
240 };
241
Amy Maloche95ee2ab2013-04-22 11:50:26 -0700242 qcom,leds@a300 {
243 compatible = "qcom,leds-qpnp";
244 reg = <0xa300 0x100>;
245 label = "mpp";
246 };
247
248 qcom,leds@a500 {
249 compatible = "qcom,leds-qpnp";
250 reg = <0xa500 0x100>;
251 label = "mpp";
252 };
253
David Keitel4109e952013-02-07 20:22:13 -0800254 pm8226_gpios: gpios {
255 spmi-dev-container;
256 compatible = "qcom,qpnp-pin";
257 gpio-controller;
258 #gpio-cells = <2>;
259 #address-cells = <1>;
260 #size-cells = <1>;
261 label = "pm8226-gpio";
262
263 gpio@c000 {
264 reg = <0xc000 0x100>;
265 qcom,pin-num = <1>;
266 };
267
268 gpio@c100 {
269 reg = <0xc100 0x100>;
270 qcom,pin-num = <2>;
271 };
272
273 gpio@c200 {
274 reg = <0xc200 0x100>;
275 qcom,pin-num = <3>;
276 };
277
278 gpio@c300 {
279 reg = <0xc300 0x100>;
280 qcom,pin-num = <4>;
281 };
282
283 gpio@c400 {
284 reg = <0xc400 0x100>;
285 qcom,pin-num = <5>;
286 };
287
288 gpio@c500 {
289 reg = <0xc500 0x100>;
290 qcom,pin-num = <6>;
291 };
292
293 gpio@c600 {
294 reg = <0xc600 0x100>;
295 qcom,pin-num = <7>;
296 };
297
298 gpio@c700 {
299 reg = <0xc700 0x100>;
300 qcom,pin-num = <8>;
301 };
302 };
303
304 pm8226_mpps: mpps {
305 spmi-dev-container;
306 compatible = "qcom,qpnp-pin";
307 gpio-controller;
308 #gpio-cells = <2>;
309 #address-cells = <1>;
310 #size-cells = <1>;
311 label = "pm8226-mpp";
312
313 mpp@a000 {
314 reg = <0xa000 0x100>;
315 qcom,pin-num = <1>;
316 };
317
318 mpp@a100 {
319 reg = <0xa100 0x100>;
320 qcom,pin-num = <2>;
321 };
322
323 mpp@a200 {
324 reg = <0xa200 0x100>;
325 qcom,pin-num = <3>;
326 };
327
328 mpp@a300 {
329 reg = <0xa300 0x100>;
330 qcom,pin-num = <4>;
331 };
332
333 mpp@a400 {
334 reg = <0xa400 0x100>;
335 qcom,pin-num = <5>;
336 };
337
338 mpp@a500 {
339 reg = <0xa500 0x100>;
340 qcom,pin-num = <6>;
341 };
342
343 mpp@a600 {
344 reg = <0xa600 0x100>;
345 qcom,pin-num = <7>;
346 };
347
348 mpp@a700 {
349 reg = <0xa700 0x100>;
350 qcom,pin-num = <8>;
351 };
352 };
Siddartha Mohanadossae99e772013-02-19 15:44:40 -0800353
354 pm8226_vadc: vadc@3100 {
355 compatible = "qcom,qpnp-vadc";
356 reg = <0x3100 0x100>;
357 #address-cells = <1>;
358 #size-cells = <0>;
359 interrupts = <0x0 0x31 0x0>;
360 interrupt-names = "eoc-int-en-set";
361 qcom,adc-bit-resolution = <15>;
362 qcom,adc-vdd-reference = <1800>;
363
364 chan@8 {
365 label = "die_temp";
366 reg = <8>;
367 qcom,decimation = <0>;
368 qcom,pre-div-channel-scaling = <0>;
369 qcom,calibration-type = "absolute";
370 qcom,scale-function = <3>;
371 qcom,hw-settle-time = <0>;
372 qcom,fast-avg-setup = <0>;
373 };
374
375 chan@9 {
376 label = "ref_625mv";
377 reg = <9>;
378 qcom,decimation = <0>;
379 qcom,pre-div-channel-scaling = <0>;
380 qcom,calibration-type = "absolute";
381 qcom,scale-function = <0>;
382 qcom,hw-settle-time = <0>;
383 qcom,fast-avg-setup = <0>;
384 };
385
386 chan@a {
387 label = "ref_1250v";
388 reg = <0xa>;
389 qcom,decimation = <0>;
390 qcom,pre-div-channel-scaling = <0>;
391 qcom,calibration-type = "absolute";
392 qcom,scale-function = <0>;
393 qcom,hw-settle-time = <0>;
394 qcom,fast-avg-setup = <0>;
395 };
Siddartha Mohanadossa3390632013-03-15 07:37:27 -0700396
397 chan@c {
398 label = "ref_buf_625mv";
399 reg = <0xc>;
400 qcom,decimation = <0>;
401 qcom,pre-div-channel-scaling = <0>;
402 qcom,calibration-type = "absolute";
403 qcom,scale-function = <0>;
404 qcom,hw-settle-time = <0>;
405 qcom,fast-avg-setup = <0>;
406 };
Siddartha Mohanadossae99e772013-02-19 15:44:40 -0800407 };
408
Siddartha Mohanadoss3cb2b6b2013-06-21 12:07:05 -0700409 pm8226_iadc: iadc@3600 {
Siddartha Mohanadossae99e772013-02-19 15:44:40 -0800410 compatible = "qcom,qpnp-iadc";
411 reg = <0x3600 0x100>;
412 #address-cells = <1>;
413 #size-cells = <0>;
414 interrupts = <0x0 0x36 0x0>;
415 interrupt-names = "eoc-int-en-set";
416 qcom,adc-bit-resolution = <16>;
417 qcom,adc-vdd-reference = <1800>;
Siddartha Mohanadoss3cb2b6b2013-06-21 12:07:05 -0700418 qcom,iadc-vadc = <&pm8226_vadc>;
Siddartha Mohanadossae99e772013-02-19 15:44:40 -0800419
420 chan@0 {
421 label = "internal_rsense";
422 reg = <0>;
423 qcom,decimation = <0>;
424 qcom,pre-div-channel-scaling = <1>;
425 qcom,calibration-type = "absolute";
426 qcom,scale-function = <0>;
427 qcom,hw-settle-time = <0>;
428 qcom,fast-avg-setup = <0>;
429 };
430 };
Ashay Jaiswalc51f7e92013-03-11 10:25:58 +0530431
Siddartha Mohanadoss8aea3172013-05-09 11:49:37 -0700432 pm8226_adc_tm: vadc@3400 {
433 compatible = "qcom,qpnp-adc-tm";
434 reg = <0x3400 0x100>;
435 #address-cells = <1>;
436 #size-cells = <0>;
437 interrupts = <0x0 0x34 0x0>,
438 <0x0 0x34 0x3>,
439 <0x0 0x34 0x4>;
440 interrupt-names = "eoc-int-en-set",
441 "high-thr-en-set",
442 "low-thr-en-set";
443 qcom,adc-bit-resolution = <15>;
444 qcom,adc-vdd-reference = <1800>;
Siddartha Mohanadoss3cb2b6b2013-06-21 12:07:05 -0700445 qcom,adc_tm-vadc = <&pm8226_vadc>;
Siddartha Mohanadoss8aea3172013-05-09 11:49:37 -0700446 };
447
David Collins196f01c2013-05-20 14:01:24 -0700448 qcom,temp-alarm@2400 {
449 compatible = "qcom,qpnp-temp-alarm";
450 reg = <0x2400 0x100>;
451 interrupts = <0x0 0x24 0x0>;
452 label = "pm8226_tz";
453 qcom,channel-num = <8>;
454 qcom,threshold-set = <0>;
Siddartha Mohanadoss3cb2b6b2013-06-21 12:07:05 -0700455 qcom,temp_alarm-vadc = <&pm8226_vadc>;
David Collins196f01c2013-05-20 14:01:24 -0700456 };
457
Ashay Jaiswalc51f7e92013-03-11 10:25:58 +0530458 qcom,pm8226_rtc {
459 spmi-dev-container;
460 compatible = "qcom,qpnp-rtc";
461 #address-cells = <1>;
462 #size-cells = <1>;
463 qcom,qpnp-rtc-write = <0>;
464 qcom,qpnp-rtc-alarm-pwrup = <0>;
465
466 qcom,pm8226_rtc_rw@6000 {
467 reg = <0x6000 0x100>;
468 };
469 qcom,pm8226_rtc_alarm@6100 {
470 reg = <0x6100 0x100>;
471 interrupts = <0x0 0x61 0x1>;
472 };
473 };
David Keitel4109e952013-02-07 20:22:13 -0800474 };
475
David Keitel84987112013-02-11 13:26:30 -0800476 qcom,pm8226@1 {
477 spmi-slave-container;
478 reg = <0x1>;
479 #address-cells = <1>;
480 #size-cells = <1>;
481
482 regulator@1400 {
483 regulator-name = "8226_s1";
484 spmi-dev-container;
485 #address-cells = <1>;
486 #size-cells = <1>;
487 compatible = "qcom,qpnp-regulator";
488 reg = <0x1400 0x300>;
489 status = "disabled";
490
491 qcom,ctl@1400 {
492 reg = <0x1400 0x100>;
493 };
494 qcom,ps@1500 {
495 reg = <0x1500 0x100>;
496 };
497 qcom,freq@1600 {
498 reg = <0x1600 0x100>;
499 };
500 };
501
502 regulator@1700 {
503 regulator-name = "8226_s2";
504 spmi-dev-container;
505 #address-cells = <1>;
506 #size-cells = <1>;
507 compatible = "qcom,qpnp-regulator";
508 reg = <0x1700 0x300>;
509 status = "disabled";
510
511 qcom,ctl@1700 {
512 reg = <0x1700 0x100>;
513 };
514 qcom,ps@1800 {
515 reg = <0x1800 0x100>;
516 };
517 qcom,freq@1900 {
518 reg = <0x1900 0x100>;
519 };
520 };
521
522 regulator@1a00 {
523 regulator-name = "8226_s3";
524 spmi-dev-container;
525 #address-cells = <1>;
526 #size-cells = <1>;
527 compatible = "qcom,qpnp-regulator";
528 reg = <0x1a00 0x300>;
529 status = "disabled";
530
531 qcom,ctl@1a00 {
532 reg = <0x1a00 0x100>;
533 };
534 qcom,ps@1b00 {
535 reg = <0x1b00 0x100>;
536 };
537 qcom,freq@1c00 {
538 reg = <0x1c00 0x100>;
539 };
540 };
541
542 regulator@1d00 {
543 regulator-name = "8226_s4";
544 spmi-dev-container;
545 #address-cells = <1>;
546 #size-cells = <1>;
547 compatible = "qcom,qpnp-regulator";
548 reg = <0x1d00 0x300>;
549 status = "disabled";
550
551 qcom,ctl@1d00 {
552 reg = <0x1d00 0x100>;
553 };
554 qcom,ps@1e00 {
555 reg = <0x1e00 0x100>;
556 };
557 qcom,freq@1f00 {
558 reg = <0x1f00 0x100>;
559 };
560 };
561
562 regulator@2000 {
563 regulator-name = "8226_s5";
564 spmi-dev-container;
565 #address-cells = <1>;
566 #size-cells = <1>;
567 compatible = "qcom,qpnp-regulator";
568 reg = <0x2000 0x300>;
569 status = "disabled";
570
571 qcom,ctl@2000 {
572 reg = <0x2000 0x100>;
573 };
574 qcom,ps@2100 {
575 reg = <0x2100 0x100>;
576 };
577 qcom,freq@2200 {
578 reg = <0x2200 0x100>;
579 };
580 };
581
582 regulator@4000 {
583 regulator-name = "8226_l1";
584 reg = <0x4000 0x100>;
585 compatible = "qcom,qpnp-regulator";
586 status = "disabled";
587 };
588
589 regulator@4100 {
590 regulator-name = "8226_l2";
591 reg = <0x4100 0x100>;
592 compatible = "qcom,qpnp-regulator";
593 status = "disabled";
594 };
595
596 regulator@4200 {
597 regulator-name = "8226_l3";
598 reg = <0x4200 0x100>;
599 compatible = "qcom,qpnp-regulator";
600 status = "disabled";
601 };
602
603 regulator@4300 {
604 regulator-name = "8226_l4";
605 reg = <0x4300 0x100>;
606 compatible = "qcom,qpnp-regulator";
607 status = "disabled";
608 };
609
610 regulator@4400 {
611 regulator-name = "8226_l5";
612 reg = <0x4400 0x100>;
613 compatible = "qcom,qpnp-regulator";
614 status = "disabled";
615 };
616
617 regulator@4500 {
618 regulator-name = "8226_l6";
619 reg = <0x4500 0x100>;
620 compatible = "qcom,qpnp-regulator";
621 status = "disabled";
622 };
623
624 regulator@4600 {
625 regulator-name = "8226_l7";
626 reg = <0x4600 0x100>;
627 compatible = "qcom,qpnp-regulator";
628 status = "disabled";
629 };
630
631 regulator@4700 {
632 regulator-name = "8226_l8";
633 reg = <0x4700 0x100>;
634 compatible = "qcom,qpnp-regulator";
635 status = "disabled";
636 };
637
638 regulator@4800 {
639 regulator-name = "8226_l9";
640 reg = <0x4800 0x100>;
641 compatible = "qcom,qpnp-regulator";
642 status = "disabled";
643 };
644
645 regulator@4900 {
646 regulator-name = "8226_l10";
647 reg = <0x4900 0x100>;
648 compatible = "qcom,qpnp-regulator";
649 status = "disabled";
650 };
651
652 regulator@4b00 {
653 regulator-name = "8226_l12";
654 reg = <0x4b00 0x100>;
655 compatible = "qcom,qpnp-regulator";
656 status = "disabled";
657 };
658
659 regulator@4d00 {
660 regulator-name = "8226_l14";
661 reg = <0x4d00 0x100>;
662 compatible = "qcom,qpnp-regulator";
663 status = "disabled";
664 };
665
666 regulator@4e00 {
667 regulator-name = "8226_l15";
668 reg = <0x4e00 0x100>;
669 compatible = "qcom,qpnp-regulator";
670 status = "disabled";
671 };
672
673 regulator@4f00 {
674 regulator-name = "8226_l16";
675 reg = <0x4f00 0x100>;
676 compatible = "qcom,qpnp-regulator";
677 status = "disabled";
678 };
679
680 regulator@5000 {
681 regulator-name = "8226_l17";
682 reg = <0x5000 0x100>;
683 compatible = "qcom,qpnp-regulator";
684 status = "disabled";
685 };
686
687 regulator@5100 {
688 regulator-name = "8226_l18";
689 reg = <0x5100 0x100>;
690 compatible = "qcom,qpnp-regulator";
691 status = "disabled";
692 };
693
694 regulator@5200 {
695 regulator-name = "8226_l19";
696 reg = <0x5200 0x100>;
697 compatible = "qcom,qpnp-regulator";
698 status = "disabled";
699 };
700
701 regulator@5300 {
702 regulator-name = "8226_l20";
703 reg = <0x5300 0x100>;
704 compatible = "qcom,qpnp-regulator";
705 status = "disabled";
706 };
707
708 regulator@5400 {
709 regulator-name = "8226_l21";
710 reg = <0x5400 0x100>;
711 compatible = "qcom,qpnp-regulator";
712 status = "disabled";
713 };
714
715 regulator@5500 {
716 regulator-name = "8226_l22";
717 reg = <0x5500 0x100>;
718 compatible = "qcom,qpnp-regulator";
719 status = "disabled";
720 };
721
722 regulator@5600 {
723 regulator-name = "8226_l23";
724 reg = <0x5600 0x100>;
725 compatible = "qcom,qpnp-regulator";
726 status = "disabled";
727 };
728
729 regulator@5700 {
730 regulator-name = "8226_l24";
731 reg = <0x5700 0x100>;
732 compatible = "qcom,qpnp-regulator";
733 status = "disabled";
734 };
735
736 regulator@5900 {
737 regulator-name = "8226_l26";
738 reg = <0x5900 0x100>;
739 compatible = "qcom,qpnp-regulator";
740 status = "disabled";
741 };
742
743 regulator@5a00 {
744 regulator-name = "8226_l27";
745 reg = <0x5a00 0x100>;
746 compatible = "qcom,qpnp-regulator";
747 status = "disabled";
748 };
749
750 regulator@5b00 {
751 regulator-name = "8226_l28";
752 reg = <0x5b00 0x100>;
753 compatible = "qcom,qpnp-regulator";
754 status = "disabled";
755 };
756
Amy Maloched699b942013-03-03 15:47:52 -0800757 qcom,leds@d800 {
758 compatible = "qcom,leds-qpnp";
759 reg = <0xd800 0x100>;
760 label = "wled";
761 };
762
Amy Maloche43532912013-03-25 12:55:42 -0700763 pwm@b100 {
764 compatible = "qcom,qpnp-pwm";
765 reg = <0xb100 0x100>,
766 <0xb042 0x7e>;
767 reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base";
768 qcom,channel-id = <0>;
769 };
770
771 pwm@b200 {
772 compatible = "qcom,qpnp-pwm";
773 reg = <0xb200 0x100>,
774 <0xb042 0x7e>;
775 reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base";
776 qcom,channel-id = <1>;
777 };
778
779 pwm@b300 {
780 compatible = "qcom,qpnp-pwm";
781 reg = <0xb300 0x100>,
782 <0xb042 0x7e>;
783 reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base";
784 qcom,channel-id = <2>;
785 };
786
787 pwm@b400 {
788 compatible = "qcom,qpnp-pwm";
789 reg = <0xb400 0x100>,
790 <0xb042 0x7e>;
791 reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base";
792 qcom,channel-id = <3>;
793 };
794
795 pwm@b500 {
796 compatible = "qcom,qpnp-pwm";
797 reg = <0xb500 0x100>,
798 <0xb042 0x7e>;
799 reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base";
800 qcom,channel-id = <4>;
801 };
802
803 pwm@b600 {
804 compatible = "qcom,qpnp-pwm";
805 reg = <0xb600 0x100>,
806 <0xb042 0x7e>;
807 reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base";
808 qcom,channel-id = <5>;
809 };
810
David Keitel84987112013-02-11 13:26:30 -0800811 regulator@8000 {
812 regulator-name = "8226_lvs1";
813 reg = <0x8000 0x100>;
814 compatible = "qcom,qpnp-regulator";
815 status = "disabled";
816 };
Fenglin Wu3a707802013-03-21 14:34:20 -0700817
Fenglin Wu7f38bae2013-03-12 21:22:35 -0700818 qcom,vibrator@c000 {
819 compatible = "qcom,qpnp-vibrator";
820 reg = <0xc000 0x100>;
821 label = "vibrator";
822 status = "disabled";
823 };
824
Chun Zhang0d6ca072013-07-30 21:08:39 -0700825 qcom,leds@d300 {
826 compatible = "qcom,leds-qpnp";
827 status = "okay";
828 reg = <0xd300 0x100>;
829 label = "flash";
830 flash-boost-supply = <&pm8226_chg_boost>;
831 pm8226_flash0: qcom,flash_0 {
832 qcom,max-current = <1000>;
833 qcom,default-state = "off";
Chun Zhanga3306492013-09-09 15:17:26 -0700834 qcom,headroom = <3>;
Chun Zhang0d6ca072013-07-30 21:08:39 -0700835 qcom,duration = <1280>;
836 qcom,clamp-curr = <200>;
Chun Zhanga3306492013-09-09 15:17:26 -0700837 qcom,startup-dly = <3>;
Chun Zhang0d6ca072013-07-30 21:08:39 -0700838 qcom,safety-timer;
839 label = "flash";
840 linux,default-trigger =
841 "flash0_trigger";
842 qcom,id = <1>;
843 linux,name = "led:flash_0";
844 qcom,current = <625>;
845 };
Fenglin Wu3a707802013-03-21 14:34:20 -0700846
Chun Zhang0d6ca072013-07-30 21:08:39 -0700847 pm8226_flash1: qcom,flash_1 {
848 qcom,max-current = <1000>;
849 qcom,default-state = "off";
Chun Zhanga3306492013-09-09 15:17:26 -0700850 qcom,headroom = <3>;
Chun Zhang0d6ca072013-07-30 21:08:39 -0700851 qcom,duration = <1280>;
852 qcom,clamp-curr = <200>;
Chun Zhanga3306492013-09-09 15:17:26 -0700853 qcom,startup-dly = <3>;
Chun Zhang0d6ca072013-07-30 21:08:39 -0700854 qcom,safety-timer;
855 linux,default-trigger =
856 "flash1_trigger";
857 label = "flash";
858 qcom,id = <2>;
859 linux,name = "led:flash_1";
860 qcom,current = <625>;
861 };
Chun Zhangbfd07352013-07-30 21:10:04 -0700862
863 pm8226_torch: qcom,flash_torch {
864 qcom,max-current = <200>;
865 qcom,default-state = "off";
866 linux,default-trigger =
867 "torch_trigger";
868 label = "flash";
869 qcom,id = <1>;
870 linux,name = "led:flash_torch";
871 qcom,current = <120>;
872 qcom,torch-enable;
873 };
874 };
David Keitel84987112013-02-11 13:26:30 -0800875 };
Kenneth Heitkee5804002012-11-15 17:50:07 -0700876};