blob: 307e4c72c33cea8206373c0eedad1d0b9b6573d2 [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
Xiaozhe Shia0e6c232013-03-06 15:22:05 -080025 qcom,revid@100 {
26 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>;
51 qcom,support-reset = <1>;
52 qcom,pull-up = <1>;
53 qcom,s1-timer = <0>;
54 qcom,s2-timer = <2000>;
55 qcom,s2-type = <1>;
56 linux,code = <114>;
57 };
Amy Maloche442667a2013-06-27 14:11:06 -070058
59 qcom,pon_3 {
60 qcom,pon-type = <3>;
61 qcom,support-reset = <1>;
62 qcom,pull-up = <1>;
63 qcom,s1-timer = <6720>;
64 qcom,s2-timer = <2000>;
65 qcom,s2-type = <7>;
66 };
Amy Malochef8225942013-03-04 12:16:29 -080067 };
68
David Keitelc51a7e52013-03-02 00:14:48 -080069 pm8226_chg: qcom,charger {
70 spmi-dev-container;
71 compatible = "qcom,qpnp-charger";
72 #address-cells = <1>;
73 #size-cells = <1>;
74 status = "disabled";
75
David Keitele89d4782013-03-27 11:29:59 -070076 qcom,vddmax-mv = <4200>;
Xiaozhe Shi22aa0cd2013-05-28 10:45:12 -070077 qcom,vddsafe-mv = <4230>;
Xiaozhe Shi555dffd2013-07-25 17:21:10 -070078 qcom,vinmin-mv = <4300>;
Xiaozhe Shic220bf82013-07-25 17:15:57 -070079 qcom,vbatdet-delta-mv = <100>;
David Keitele89d4782013-03-27 11:29:59 -070080 qcom,ibatmax-ma = <1500>;
David Keitel9fd07382013-05-02 15:37:44 -070081 qcom,ibatterm-ma = <100>;
David Keitele89d4782013-03-27 11:29:59 -070082 qcom,ibatsafe-ma = <1500>;
83 qcom,thermal-mitigation = <1500 700 600 325>;
Xiaozhe Shi1acc0922013-07-12 10:55:21 -070084 qcom,resume-soc = <99>;
David Keitelb0b63632013-03-27 15:17:33 -070085 qcom,tchg-mins = <150>;
Siddartha Mohanadoss3cb2b6b2013-06-21 12:07:05 -070086 qcom,chg-vadc = <&pm8226_vadc>;
Siddartha Mohanadoss88a3fde2013-06-24 16:18:52 -070087 qcom,chg-adc_tm = <&pm8226_adc_tm>;
David Keitelc51a7e52013-03-02 00:14:48 -080088
David Keitele89d4782013-03-27 11:29:59 -070089 qcom,chgr@1000 {
David Keitelc51a7e52013-03-02 00:14:48 -080090 status = "disabled";
91 reg = <0x1000 0x100>;
92 interrupts = <0x0 0x10 0x0>,
93 <0x0 0x10 0x1>,
94 <0x0 0x10 0x2>,
95 <0x0 0x10 0x3>,
96 <0x0 0x10 0x4>,
97 <0x0 0x10 0x5>,
98 <0x0 0x10 0x6>,
99 <0x0 0x10 0x7>;
100
101 interrupt-names = "vbat-det-lo",
102 "vbat-det-hi",
103 "chgwdog",
104 "state-change",
105 "trkl-chg-on",
106 "fast-chg-on",
107 "chg-failed",
108 "chg-done";
109 };
110
David Keitele89d4782013-03-27 11:29:59 -0700111 qcom,buck@1100 {
David Keitelc51a7e52013-03-02 00:14:48 -0800112 status = "disabled";
113 reg = <0x1100 0x100>;
114 interrupts = <0x0 0x11 0x0>,
115 <0x0 0x11 0x1>,
116 <0x0 0x11 0x2>,
117 <0x0 0x11 0x3>,
118 <0x0 0x11 0x4>,
119 <0x0 0x11 0x5>,
120 <0x0 0x11 0x6>;
121
122 interrupt-names = "vbat-ov",
123 "vreg-ov",
124 "overtemp",
125 "vchg-loop",
126 "ichg-loop",
127 "ibat-loop",
128 "vdd-loop";
129 };
130
David Keitele89d4782013-03-27 11:29:59 -0700131 qcom,bat-if@1200 {
David Keitelc51a7e52013-03-02 00:14:48 -0800132 status = "disabled";
133 reg = <0x1200 0x100>;
134 interrupts = <0x0 0x12 0x0>,
135 <0x0 0x12 0x1>,
136 <0x0 0x12 0x2>,
137 <0x0 0x12 0x3>,
138 <0x0 0x12 0x4>;
139
140 interrupt-names = "batt-pres",
141 "bat-temp-ok",
142 "bat-fet-on",
143 "vcp-on",
144 "psi";
David Keitelc51a7e52013-03-02 00:14:48 -0800145 };
146
David Keitel3bdfa5d2013-07-10 17:36:07 -0700147 pm8226_chg_boost: qcom,boost@1500 {
148 status = "disabled";
149 reg = <0x1500 0x100>;
150 interrupts = <0x0 0x15 0x0>,
151 <0x0 0x15 0x1>;
152
153 interrupt-names = "boost-pwr-ok",
154 "limit-error";
155 };
156
157
David Keitel55aa28c2013-05-22 05:24:47 -0700158 pm8226_chg_otg: qcom,usb-chgpth@1300 {
David Keitelc51a7e52013-03-02 00:14:48 -0800159 status = "disabled";
160 reg = <0x1300 0x100>;
161 interrupts = <0 0x13 0x0>,
162 <0 0x13 0x1>,
David Keitel0b62bdd2013-07-10 17:30:51 -0700163 <0x0 0x13 0x2>,
164 <0x0 0x13 0x3>;
David Keitelc51a7e52013-03-02 00:14:48 -0800165
166 interrupt-names = "coarse-det-usb",
167 "usbin-valid",
David Keitel0b62bdd2013-07-10 17:30:51 -0700168 "chg-gone",
169 "usb-ocp";
David Keitelc51a7e52013-03-02 00:14:48 -0800170 };
171
David Keitelc51a7e52013-03-02 00:14:48 -0800172 qcom,chg-misc@1600 {
173 status = "disabled";
174 reg = <0x1600 0x100>;
175 };
176 };
177
Xiaozhe Shicb59c9d2013-03-19 10:43:07 -0700178 pm8226_bms: qcom,bms {
179 spmi-dev-container;
180 compatible = "qcom,qpnp-bms";
181 #address-cells = <1>;
182 #size-cells = <1>;
183 status = "disabled";
184
185 qcom,r-sense-uohm = <10000>;
186 qcom,v-cutoff-uv = <3400000>;
187 qcom,max-voltage-uv = <4200000>;
Xiaozhe Shie0da4c72013-04-02 10:43:55 -0700188 qcom,r-conn-mohm = <0>;
Xiaozhe Shicb59c9d2013-03-19 10:43:07 -0700189 qcom,shutdown-soc-valid-limit = <20>;
Xiaozhe Shi561ebf72013-03-25 13:51:27 -0700190 qcom,adjust-soc-low-threshold = <15>;
Xiaozhe Shicb59c9d2013-03-19 10:43:07 -0700191 qcom,ocv-voltage-high-threshold-uv = <3750000>;
192 qcom,ocv-voltage-low-threshold-uv = <3650000>;
193 qcom,low-soc-calculate-soc-threshold = <15>;
194 qcom,low-soc-calculate-soc-ms = <5000>;
195 qcom,calculate-soc-ms = <20000>;
196 qcom,chg-term-ua = <100000>;
197 qcom,batt-type = <0>;
Xiaozhe Shi535494d2013-04-05 12:27:51 -0700198 qcom,tm-temp-margin = <5000>;
Xiaozhe Shi0ac7a002013-03-26 13:14:03 -0700199 qcom,low-ocv-correction-limit-uv = <100>;
200 qcom,high-ocv-correction-limit-uv = <50>;
201 qcom,hold-soc-est = <3>;
Xiaozhe Shi33988df2013-04-03 10:37:56 -0700202 qcom,low-voltage-threshold = <3420000>;
Siddartha Mohanadoss3cb2b6b2013-06-21 12:07:05 -0700203 qcom,bms-vadc = <&pm8226_vadc>;
Siddartha Mohanadoss55d0bca2013-06-24 08:29:34 -0700204 qcom,bms-iadc = <&pm8226_iadc>;
Siddartha Mohanadoss88a3fde2013-06-24 16:18:52 -0700205 qcom,bms-adc_tm = <&pm8226_adc_tm>;
Xiaozhe Shicb59c9d2013-03-19 10:43:07 -0700206
207 qcom,bms-iadc@3800 {
208 reg = <0x3800 0x100>;
209 };
210
211 qcom,bms-bms@4000 {
212 reg = <0x4000 0x100>;
213 interrupts = <0x0 0x40 0x0>,
214 <0x0 0x40 0x1>,
215 <0x0 0x40 0x2>,
216 <0x0 0x40 0x3>,
217 <0x0 0x40 0x4>,
218 <0x0 0x40 0x5>,
219 <0x0 0x40 0x6>,
220 <0x0 0x40 0x7>;
221
222 interrupt-names = "vsense_for_r",
223 "vsense_avg",
224 "sw_cc_thr",
225 "ocv_thr",
226 "charge_begin",
227 "good_ocv",
228 "ocv_for_r",
229 "cc_thr";
230 };
231 };
232
Amy Malochef92d79c2013-04-22 11:55:05 -0700233 qcom,leds@a100 {
234 compatible = "qcom,leds-qpnp";
235 reg = <0xa100 0x100>;
236 label = "mpp";
237 };
238
Amy Maloche95ee2ab2013-04-22 11:50:26 -0700239 qcom,leds@a300 {
240 compatible = "qcom,leds-qpnp";
241 reg = <0xa300 0x100>;
242 label = "mpp";
243 };
244
245 qcom,leds@a500 {
246 compatible = "qcom,leds-qpnp";
247 reg = <0xa500 0x100>;
248 label = "mpp";
249 };
250
David Keitel4109e952013-02-07 20:22:13 -0800251 pm8226_gpios: gpios {
252 spmi-dev-container;
253 compatible = "qcom,qpnp-pin";
254 gpio-controller;
255 #gpio-cells = <2>;
256 #address-cells = <1>;
257 #size-cells = <1>;
258 label = "pm8226-gpio";
259
260 gpio@c000 {
261 reg = <0xc000 0x100>;
262 qcom,pin-num = <1>;
263 };
264
265 gpio@c100 {
266 reg = <0xc100 0x100>;
267 qcom,pin-num = <2>;
268 };
269
270 gpio@c200 {
271 reg = <0xc200 0x100>;
272 qcom,pin-num = <3>;
273 };
274
275 gpio@c300 {
276 reg = <0xc300 0x100>;
277 qcom,pin-num = <4>;
278 };
279
280 gpio@c400 {
281 reg = <0xc400 0x100>;
282 qcom,pin-num = <5>;
283 };
284
285 gpio@c500 {
286 reg = <0xc500 0x100>;
287 qcom,pin-num = <6>;
288 };
289
290 gpio@c600 {
291 reg = <0xc600 0x100>;
292 qcom,pin-num = <7>;
293 };
294
295 gpio@c700 {
296 reg = <0xc700 0x100>;
297 qcom,pin-num = <8>;
298 };
299 };
300
301 pm8226_mpps: mpps {
302 spmi-dev-container;
303 compatible = "qcom,qpnp-pin";
304 gpio-controller;
305 #gpio-cells = <2>;
306 #address-cells = <1>;
307 #size-cells = <1>;
308 label = "pm8226-mpp";
309
310 mpp@a000 {
311 reg = <0xa000 0x100>;
312 qcom,pin-num = <1>;
313 };
314
315 mpp@a100 {
316 reg = <0xa100 0x100>;
317 qcom,pin-num = <2>;
318 };
319
320 mpp@a200 {
321 reg = <0xa200 0x100>;
322 qcom,pin-num = <3>;
323 };
324
325 mpp@a300 {
326 reg = <0xa300 0x100>;
327 qcom,pin-num = <4>;
328 };
329
330 mpp@a400 {
331 reg = <0xa400 0x100>;
332 qcom,pin-num = <5>;
333 };
334
335 mpp@a500 {
336 reg = <0xa500 0x100>;
337 qcom,pin-num = <6>;
338 };
339
340 mpp@a600 {
341 reg = <0xa600 0x100>;
342 qcom,pin-num = <7>;
343 };
344
345 mpp@a700 {
346 reg = <0xa700 0x100>;
347 qcom,pin-num = <8>;
348 };
349 };
Siddartha Mohanadossae99e772013-02-19 15:44:40 -0800350
351 pm8226_vadc: vadc@3100 {
352 compatible = "qcom,qpnp-vadc";
353 reg = <0x3100 0x100>;
354 #address-cells = <1>;
355 #size-cells = <0>;
356 interrupts = <0x0 0x31 0x0>;
357 interrupt-names = "eoc-int-en-set";
358 qcom,adc-bit-resolution = <15>;
359 qcom,adc-vdd-reference = <1800>;
360
361 chan@8 {
362 label = "die_temp";
363 reg = <8>;
364 qcom,decimation = <0>;
365 qcom,pre-div-channel-scaling = <0>;
366 qcom,calibration-type = "absolute";
367 qcom,scale-function = <3>;
368 qcom,hw-settle-time = <0>;
369 qcom,fast-avg-setup = <0>;
370 };
371
372 chan@9 {
373 label = "ref_625mv";
374 reg = <9>;
375 qcom,decimation = <0>;
376 qcom,pre-div-channel-scaling = <0>;
377 qcom,calibration-type = "absolute";
378 qcom,scale-function = <0>;
379 qcom,hw-settle-time = <0>;
380 qcom,fast-avg-setup = <0>;
381 };
382
383 chan@a {
384 label = "ref_1250v";
385 reg = <0xa>;
386 qcom,decimation = <0>;
387 qcom,pre-div-channel-scaling = <0>;
388 qcom,calibration-type = "absolute";
389 qcom,scale-function = <0>;
390 qcom,hw-settle-time = <0>;
391 qcom,fast-avg-setup = <0>;
392 };
Siddartha Mohanadossa3390632013-03-15 07:37:27 -0700393
394 chan@c {
395 label = "ref_buf_625mv";
396 reg = <0xc>;
397 qcom,decimation = <0>;
398 qcom,pre-div-channel-scaling = <0>;
399 qcom,calibration-type = "absolute";
400 qcom,scale-function = <0>;
401 qcom,hw-settle-time = <0>;
402 qcom,fast-avg-setup = <0>;
403 };
Siddartha Mohanadossae99e772013-02-19 15:44:40 -0800404 };
405
Siddartha Mohanadoss3cb2b6b2013-06-21 12:07:05 -0700406 pm8226_iadc: iadc@3600 {
Siddartha Mohanadossae99e772013-02-19 15:44:40 -0800407 compatible = "qcom,qpnp-iadc";
408 reg = <0x3600 0x100>;
409 #address-cells = <1>;
410 #size-cells = <0>;
411 interrupts = <0x0 0x36 0x0>;
412 interrupt-names = "eoc-int-en-set";
413 qcom,adc-bit-resolution = <16>;
414 qcom,adc-vdd-reference = <1800>;
Siddartha Mohanadoss3cb2b6b2013-06-21 12:07:05 -0700415 qcom,iadc-vadc = <&pm8226_vadc>;
Siddartha Mohanadossae99e772013-02-19 15:44:40 -0800416
417 chan@0 {
418 label = "internal_rsense";
419 reg = <0>;
420 qcom,decimation = <0>;
421 qcom,pre-div-channel-scaling = <1>;
422 qcom,calibration-type = "absolute";
423 qcom,scale-function = <0>;
424 qcom,hw-settle-time = <0>;
425 qcom,fast-avg-setup = <0>;
426 };
427 };
Ashay Jaiswalc51f7e92013-03-11 10:25:58 +0530428
Siddartha Mohanadoss8aea3172013-05-09 11:49:37 -0700429 pm8226_adc_tm: vadc@3400 {
430 compatible = "qcom,qpnp-adc-tm";
431 reg = <0x3400 0x100>;
432 #address-cells = <1>;
433 #size-cells = <0>;
434 interrupts = <0x0 0x34 0x0>,
435 <0x0 0x34 0x3>,
436 <0x0 0x34 0x4>;
437 interrupt-names = "eoc-int-en-set",
438 "high-thr-en-set",
439 "low-thr-en-set";
440 qcom,adc-bit-resolution = <15>;
441 qcom,adc-vdd-reference = <1800>;
Siddartha Mohanadoss3cb2b6b2013-06-21 12:07:05 -0700442 qcom,adc_tm-vadc = <&pm8226_vadc>;
Siddartha Mohanadoss8aea3172013-05-09 11:49:37 -0700443 };
444
David Collins196f01c2013-05-20 14:01:24 -0700445 qcom,temp-alarm@2400 {
446 compatible = "qcom,qpnp-temp-alarm";
447 reg = <0x2400 0x100>;
448 interrupts = <0x0 0x24 0x0>;
449 label = "pm8226_tz";
450 qcom,channel-num = <8>;
451 qcom,threshold-set = <0>;
Siddartha Mohanadoss3cb2b6b2013-06-21 12:07:05 -0700452 qcom,temp_alarm-vadc = <&pm8226_vadc>;
David Collins196f01c2013-05-20 14:01:24 -0700453 };
454
Ashay Jaiswalc51f7e92013-03-11 10:25:58 +0530455 qcom,pm8226_rtc {
456 spmi-dev-container;
457 compatible = "qcom,qpnp-rtc";
458 #address-cells = <1>;
459 #size-cells = <1>;
460 qcom,qpnp-rtc-write = <0>;
461 qcom,qpnp-rtc-alarm-pwrup = <0>;
462
463 qcom,pm8226_rtc_rw@6000 {
464 reg = <0x6000 0x100>;
465 };
466 qcom,pm8226_rtc_alarm@6100 {
467 reg = <0x6100 0x100>;
468 interrupts = <0x0 0x61 0x1>;
469 };
470 };
David Keitel4109e952013-02-07 20:22:13 -0800471 };
472
David Keitel84987112013-02-11 13:26:30 -0800473 qcom,pm8226@1 {
474 spmi-slave-container;
475 reg = <0x1>;
476 #address-cells = <1>;
477 #size-cells = <1>;
478
479 regulator@1400 {
480 regulator-name = "8226_s1";
481 spmi-dev-container;
482 #address-cells = <1>;
483 #size-cells = <1>;
484 compatible = "qcom,qpnp-regulator";
485 reg = <0x1400 0x300>;
486 status = "disabled";
487
488 qcom,ctl@1400 {
489 reg = <0x1400 0x100>;
490 };
491 qcom,ps@1500 {
492 reg = <0x1500 0x100>;
493 };
494 qcom,freq@1600 {
495 reg = <0x1600 0x100>;
496 };
497 };
498
499 regulator@1700 {
500 regulator-name = "8226_s2";
501 spmi-dev-container;
502 #address-cells = <1>;
503 #size-cells = <1>;
504 compatible = "qcom,qpnp-regulator";
505 reg = <0x1700 0x300>;
506 status = "disabled";
507
508 qcom,ctl@1700 {
509 reg = <0x1700 0x100>;
510 };
511 qcom,ps@1800 {
512 reg = <0x1800 0x100>;
513 };
514 qcom,freq@1900 {
515 reg = <0x1900 0x100>;
516 };
517 };
518
519 regulator@1a00 {
520 regulator-name = "8226_s3";
521 spmi-dev-container;
522 #address-cells = <1>;
523 #size-cells = <1>;
524 compatible = "qcom,qpnp-regulator";
525 reg = <0x1a00 0x300>;
526 status = "disabled";
527
528 qcom,ctl@1a00 {
529 reg = <0x1a00 0x100>;
530 };
531 qcom,ps@1b00 {
532 reg = <0x1b00 0x100>;
533 };
534 qcom,freq@1c00 {
535 reg = <0x1c00 0x100>;
536 };
537 };
538
539 regulator@1d00 {
540 regulator-name = "8226_s4";
541 spmi-dev-container;
542 #address-cells = <1>;
543 #size-cells = <1>;
544 compatible = "qcom,qpnp-regulator";
545 reg = <0x1d00 0x300>;
546 status = "disabled";
547
548 qcom,ctl@1d00 {
549 reg = <0x1d00 0x100>;
550 };
551 qcom,ps@1e00 {
552 reg = <0x1e00 0x100>;
553 };
554 qcom,freq@1f00 {
555 reg = <0x1f00 0x100>;
556 };
557 };
558
559 regulator@2000 {
560 regulator-name = "8226_s5";
561 spmi-dev-container;
562 #address-cells = <1>;
563 #size-cells = <1>;
564 compatible = "qcom,qpnp-regulator";
565 reg = <0x2000 0x300>;
566 status = "disabled";
567
568 qcom,ctl@2000 {
569 reg = <0x2000 0x100>;
570 };
571 qcom,ps@2100 {
572 reg = <0x2100 0x100>;
573 };
574 qcom,freq@2200 {
575 reg = <0x2200 0x100>;
576 };
577 };
578
579 regulator@4000 {
580 regulator-name = "8226_l1";
581 reg = <0x4000 0x100>;
582 compatible = "qcom,qpnp-regulator";
583 status = "disabled";
584 };
585
586 regulator@4100 {
587 regulator-name = "8226_l2";
588 reg = <0x4100 0x100>;
589 compatible = "qcom,qpnp-regulator";
590 status = "disabled";
591 };
592
593 regulator@4200 {
594 regulator-name = "8226_l3";
595 reg = <0x4200 0x100>;
596 compatible = "qcom,qpnp-regulator";
597 status = "disabled";
598 };
599
600 regulator@4300 {
601 regulator-name = "8226_l4";
602 reg = <0x4300 0x100>;
603 compatible = "qcom,qpnp-regulator";
604 status = "disabled";
605 };
606
607 regulator@4400 {
608 regulator-name = "8226_l5";
609 reg = <0x4400 0x100>;
610 compatible = "qcom,qpnp-regulator";
611 status = "disabled";
612 };
613
614 regulator@4500 {
615 regulator-name = "8226_l6";
616 reg = <0x4500 0x100>;
617 compatible = "qcom,qpnp-regulator";
618 status = "disabled";
619 };
620
621 regulator@4600 {
622 regulator-name = "8226_l7";
623 reg = <0x4600 0x100>;
624 compatible = "qcom,qpnp-regulator";
625 status = "disabled";
626 };
627
628 regulator@4700 {
629 regulator-name = "8226_l8";
630 reg = <0x4700 0x100>;
631 compatible = "qcom,qpnp-regulator";
632 status = "disabled";
633 };
634
635 regulator@4800 {
636 regulator-name = "8226_l9";
637 reg = <0x4800 0x100>;
638 compatible = "qcom,qpnp-regulator";
639 status = "disabled";
640 };
641
642 regulator@4900 {
643 regulator-name = "8226_l10";
644 reg = <0x4900 0x100>;
645 compatible = "qcom,qpnp-regulator";
646 status = "disabled";
647 };
648
649 regulator@4b00 {
650 regulator-name = "8226_l12";
651 reg = <0x4b00 0x100>;
652 compatible = "qcom,qpnp-regulator";
653 status = "disabled";
654 };
655
656 regulator@4d00 {
657 regulator-name = "8226_l14";
658 reg = <0x4d00 0x100>;
659 compatible = "qcom,qpnp-regulator";
660 status = "disabled";
661 };
662
663 regulator@4e00 {
664 regulator-name = "8226_l15";
665 reg = <0x4e00 0x100>;
666 compatible = "qcom,qpnp-regulator";
667 status = "disabled";
668 };
669
670 regulator@4f00 {
671 regulator-name = "8226_l16";
672 reg = <0x4f00 0x100>;
673 compatible = "qcom,qpnp-regulator";
674 status = "disabled";
675 };
676
677 regulator@5000 {
678 regulator-name = "8226_l17";
679 reg = <0x5000 0x100>;
680 compatible = "qcom,qpnp-regulator";
681 status = "disabled";
682 };
683
684 regulator@5100 {
685 regulator-name = "8226_l18";
686 reg = <0x5100 0x100>;
687 compatible = "qcom,qpnp-regulator";
688 status = "disabled";
689 };
690
691 regulator@5200 {
692 regulator-name = "8226_l19";
693 reg = <0x5200 0x100>;
694 compatible = "qcom,qpnp-regulator";
695 status = "disabled";
696 };
697
698 regulator@5300 {
699 regulator-name = "8226_l20";
700 reg = <0x5300 0x100>;
701 compatible = "qcom,qpnp-regulator";
702 status = "disabled";
703 };
704
705 regulator@5400 {
706 regulator-name = "8226_l21";
707 reg = <0x5400 0x100>;
708 compatible = "qcom,qpnp-regulator";
709 status = "disabled";
710 };
711
712 regulator@5500 {
713 regulator-name = "8226_l22";
714 reg = <0x5500 0x100>;
715 compatible = "qcom,qpnp-regulator";
716 status = "disabled";
717 };
718
719 regulator@5600 {
720 regulator-name = "8226_l23";
721 reg = <0x5600 0x100>;
722 compatible = "qcom,qpnp-regulator";
723 status = "disabled";
724 };
725
726 regulator@5700 {
727 regulator-name = "8226_l24";
728 reg = <0x5700 0x100>;
729 compatible = "qcom,qpnp-regulator";
730 status = "disabled";
731 };
732
733 regulator@5900 {
734 regulator-name = "8226_l26";
735 reg = <0x5900 0x100>;
736 compatible = "qcom,qpnp-regulator";
737 status = "disabled";
738 };
739
740 regulator@5a00 {
741 regulator-name = "8226_l27";
742 reg = <0x5a00 0x100>;
743 compatible = "qcom,qpnp-regulator";
744 status = "disabled";
745 };
746
747 regulator@5b00 {
748 regulator-name = "8226_l28";
749 reg = <0x5b00 0x100>;
750 compatible = "qcom,qpnp-regulator";
751 status = "disabled";
752 };
753
Amy Maloched699b942013-03-03 15:47:52 -0800754 qcom,leds@d800 {
755 compatible = "qcom,leds-qpnp";
756 reg = <0xd800 0x100>;
757 label = "wled";
758 };
759
Amy Maloche43532912013-03-25 12:55:42 -0700760 pwm@b100 {
761 compatible = "qcom,qpnp-pwm";
762 reg = <0xb100 0x100>,
763 <0xb042 0x7e>;
764 reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base";
765 qcom,channel-id = <0>;
766 };
767
768 pwm@b200 {
769 compatible = "qcom,qpnp-pwm";
770 reg = <0xb200 0x100>,
771 <0xb042 0x7e>;
772 reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base";
773 qcom,channel-id = <1>;
774 };
775
776 pwm@b300 {
777 compatible = "qcom,qpnp-pwm";
778 reg = <0xb300 0x100>,
779 <0xb042 0x7e>;
780 reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base";
781 qcom,channel-id = <2>;
782 };
783
784 pwm@b400 {
785 compatible = "qcom,qpnp-pwm";
786 reg = <0xb400 0x100>,
787 <0xb042 0x7e>;
788 reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base";
789 qcom,channel-id = <3>;
790 };
791
792 pwm@b500 {
793 compatible = "qcom,qpnp-pwm";
794 reg = <0xb500 0x100>,
795 <0xb042 0x7e>;
796 reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base";
797 qcom,channel-id = <4>;
798 };
799
800 pwm@b600 {
801 compatible = "qcom,qpnp-pwm";
802 reg = <0xb600 0x100>,
803 <0xb042 0x7e>;
804 reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base";
805 qcom,channel-id = <5>;
806 };
807
David Keitel84987112013-02-11 13:26:30 -0800808 regulator@8000 {
809 regulator-name = "8226_lvs1";
810 reg = <0x8000 0x100>;
811 compatible = "qcom,qpnp-regulator";
812 status = "disabled";
813 };
Fenglin Wu3a707802013-03-21 14:34:20 -0700814
Fenglin Wu7f38bae2013-03-12 21:22:35 -0700815 qcom,vibrator@c000 {
816 compatible = "qcom,qpnp-vibrator";
817 reg = <0xc000 0x100>;
818 label = "vibrator";
819 status = "disabled";
820 };
821
Fenglin Wu3a707802013-03-21 14:34:20 -0700822 qcom,leds@d300 {
823 compatible = "qcom,leds-qpnp";
Chun Zhanga7a1f8b2013-06-03 19:10:33 -0700824 status = "okay";
Fenglin Wu3a707802013-03-21 14:34:20 -0700825 reg = <0xd300 0x100>;
826 label = "flash";
Chun Zhanga7a1f8b2013-06-03 19:10:33 -0700827 flash_boost-supply = <&pm8226_chg_boost>;
Fenglin Wu3a707802013-03-21 14:34:20 -0700828 pm8226_flash0: qcom,flash_0 {
829 qcom,max-current = <1000>;
830 qcom,default-state = "off";
831 qcom,headroom = <0>;
832 qcom,duration = <1280>;
833 qcom,clamp-curr = <200>;
834 qcom,startup-dly = <1>;
835 qcom,safety-timer;
836 label = "flash";
837 linux,default-trigger =
838 "flash0_trigger";
839 qcom,id = <1>;
840 linux,name = "led:flash_0";
841 qcom,current = <625>;
842 };
843
844 pm8226_flash1: qcom,flash_1 {
845 qcom,max-current = <1000>;
846 qcom,default-state = "off";
847 qcom,headroom = <0>;
848 qcom,duration = <1280>;
849 qcom,clamp-curr = <200>;
850 qcom,startup-dly = <1>;
851 qcom,safety-timer;
852 linux,default-trigger =
853 "flash1_trigger";
854 label = "flash";
855 qcom,id = <2>;
856 linux,name = "led:flash_1";
857 qcom,current = <625>;
858 };
859 };
David Keitel84987112013-02-11 13:26:30 -0800860 };
Kenneth Heitkee5804002012-11-15 17:50:07 -0700861};