blob: f1e18cfc663d068ce9b6c9e39e5b8ea08fb97457 [file] [log] [blame]
Xiaozhe Shi3d0e3662012-08-23 18:00:04 -07001/* Copyright (c) 2012, The Linux Foundation. All rights reserved.
David Collins153d45a2012-03-26 11:57:50 -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
Varad Deshmukh18057ed2012-07-03 16:34:53 -070013&spmi_bus {
14 #address-cells = <1>;
15 #size-cells = <0>;
16 interrupt-controller;
17 #interrupt-cells = <3>;
David Collins153d45a2012-03-26 11:57:50 -070018
Varad Deshmukh18057ed2012-07-03 16:34:53 -070019 qcom,pm8941@0 {
20 spmi-slave-container;
21 reg = <0x0>;
22 #address-cells = <1>;
23 #size-cells = <1>;
24
Anirudh Ghayal19cf4982012-07-16 11:10:17 +053025 qcom,power-on@800 {
26 compatible = "qcom,qpnp-power-on";
27 reg = <0x800 0x100>;
Anirudh Ghayald44f5aa2012-08-02 11:49:04 +053028 interrupts = <0x0 0x8 0x0>,
29 <0x0 0x8 0x1>,
30 <0x0 0x8 0x4>;
31 interrupt-names = "kpdpwr", "resin", "resin-bark";
32 qcom,pon-dbc-delay = <15625>;
Michael Bohane7204222012-09-07 10:21:18 -070033 qcom,system-reset;
Anirudh Ghayald44f5aa2012-08-02 11:49:04 +053034
35 qcom,pon_1 {
36 qcom,pon-type = <0>;
37 qcom,pull-up = <1>;
38 linux,code = <116>;
39 };
40
41 qcom,pon_2 {
42 qcom,pon-type = <1>;
Anirudh Ghayal579709662012-08-13 12:57:05 +053043 qcom,support-reset = <1>;
Anirudh Ghayald44f5aa2012-08-02 11:49:04 +053044 qcom,pull-up = <1>;
Anirudh Ghayal579709662012-08-13 12:57:05 +053045 qcom,s1-timer = <0>;
46 qcom,s2-timer = <2000>;
47 qcom,s2-type = <1>;
Anirudh Ghayald44f5aa2012-08-02 11:49:04 +053048 linux,code = <114>;
49 };
Anirudh Ghayal19cf4982012-07-16 11:10:17 +053050 };
51
Xiaozhe Shi3d0e3662012-08-23 18:00:04 -070052 bms@4000 {
53 #address-cells = <1>;
54 #size-cells = <1>;
55
56 compatible = "qcom,qpnp-bms";
57 reg = <0x4000 0x100>;
58
59 interrupts = <0x0 0x40 0x0>,
60 <0x0 0x40 0x1>,
61 <0x0 0x40 0x2>,
62 <0x0 0x40 0x3>,
63 <0x0 0x40 0x4>,
64 <0x0 0x40 0x5>,
65 <0x0 0x40 0x6>,
66 <0x0 0x40 0x7>;
67
68 interrupt-names = "vsense_for_r",
69 "vsense_avg",
70 "sw_cc_thr",
71 "ocv_thr",
72 "charge_begin",
73 "good_ocv",
74 "ocv_for_r",
75 "cc_thr";
76
77 qcom,bms-r-sense-mohm = <10>;
78 qcom,bms-v-cutoff-uv = <3400000>;
79 qcom,bms-max-voltage-uv = <4200000>;
80 qcom,bms-r-conn-mohm = <18>;
81 qcom,bms-shutdown-soc-valid-limit = <20>;
82 qcom,bms-adjust-soc-low-threshold = <25>;
83 qcom,bms-adjust-soc-high-threshold = <45>;
84 qcom,bms-chg-term-ua = <100000>;
85 };
86
Michael Bohanee1f8fe2012-08-03 18:32:16 -070087 clkdiv@5b00 {
88 reg = <0x5b00 0x100>;
89 compatible = "qcom,qpnp-clkdiv";
90 qcom,cxo-freq = <19200000>;
91 };
92
93 clkdiv@5c00 {
94 reg = <0x5c00 0x100>;
95 compatible = "qcom,qpnp-clkdiv";
96 qcom,cxo-freq = <19200000>;
97 };
98
99 clkdiv@5d00 {
100 reg = <0x5d00 0x1000>;
101 compatible = "qcom,qpnp-clkdiv";
102 qcom,cxo-freq = <19200000>;
103 };
104
David Keitel6adff102012-07-27 14:24:00 -0700105 pm8941-chg {
106 spmi-dev-container;
107 compatible = "qcom,qpnp-charger";
108 #address-cells = <1>;
109 #size-cells = <1>;
110
111 qcom,chg-vddmax-mv = <4200>;
112 qcom,chg-vddsafe-mv = <4200>;
113 qcom,chg-vinmin-mv = <4200>;
114 qcom,chg-ibatmax-ma = <1500>;
115 qcom,chg-ibatterm-ma = <200>;
116
117 qcom,chg-chgr@1000 {
118 reg = <0x1000 0x100>;
119 interrupts = <0x0 0x10 0x0>,
120 <0x0 0x10 0x1>,
121 <0x0 0x10 0x2>,
122 <0x0 0x10 0x3>,
123 <0x0 0x10 0x4>,
124 <0x0 0x10 0x5>,
125 <0x0 0x10 0x6>,
126 <0x0 0x10 0x7>;
127
128 interrupt-names = "chg-done",
129 "chg-failed",
130 "fast-chg-on",
131 "trkl-chg-on",
132 "state-change",
133 "chgwdog",
134 "vbat-det-hi",
135 "vbat-det-lo";
136 };
137
138 qcom,chg-buck@1100 {
139 reg = <0x1100 0x100>;
140 interrupts = <0x0 0x11 0x0>,
141 <0x0 0x11 0x1>,
142 <0x0 0x11 0x2>,
143 <0x0 0x11 0x3>,
144 <0x0 0x11 0x4>,
145 <0x0 0x11 0x5>,
146 <0x0 0x11 0x6>;
147
148 interrupt-names = "vdd-loop",
149 "ibat-loop",
150 "ichg-loop",
151 "vchg-loop",
152 "overtemp",
153 "vref-ov",
154 "vbat-ov";
155 };
156
157 qcom,chg-bat-if@1200 {
158 reg = <0x1200 0x100>;
159 interrupts = <0x0 0x12 0x0>,
160 <0x0 0x12 0x1>,
161 <0x0 0x12 0x2>,
162 <0x0 0x12 0x3>,
163 <0x0 0x12 0x4>;
164
165 interrupt-names = "psi",
166 "vcp-on",
167 "bat-fet-on",
168 "bat-temp-ok",
169 "batt-pres";
170 };
171
172 qcom,chg-usb-chgpth@1300 {
173 reg = <0x1300 0x100>;
174 interrupts = <0 0x13 0x0>,
175 <0 0x13 0x1>,
176 <0x0 0x13 0x2>;
177
178 interrupt-names = "usbin-valid",
179 "coarse-det-usb",
180 "chg-gone";
181 };
182
183 qcom,chg-dc-chgpth@1400 {
184 reg = <0x1400 0x100>;
185 interrupts = <0x0 0x14 0x0>,
186 <0x0 0x14 0x1>;
187
188 interrupt-names = "dcin-valid",
189 "coarse-det-dc";
190 };
191
192 qcom,chg-boost@1500 {
193 reg = <0x1500 0x100>;
194 interrupts = <0x0 0x15 0x0>,
195 <0x0 0x15 0x1>;
196
197 interrupt-names = "limit-error",
198 "boost-pwr-ok";
199 };
200
201 qcom,chg-misc@1600 {
202 reg = <0x1600 0x100>;
203 };
204 };
205
Michael Bohand5ea7242012-10-01 18:01:51 -0700206 pm8941_gpios: gpios {
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700207 spmi-dev-container;
208 compatible = "qcom,qpnp-pin";
209 gpio-controller;
210 #gpio-cells = <2>;
Michael Bohan8b909b42012-04-18 17:39:12 -0700211 #address-cells = <1>;
212 #size-cells = <1>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700213 label = "pm8941-gpio";
Michael Bohan8b909b42012-04-18 17:39:12 -0700214
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700215 gpio@c000 {
216 reg = <0xc000 0x100>;
217 qcom,pin-num = <1>;
Michael Bohan8b909b42012-04-18 17:39:12 -0700218 };
Michael Bohan5085a052012-06-11 13:27:34 -0700219
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700220 gpio@c100 {
221 reg = <0xc100 0x100>;
222 qcom,pin-num = <2>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700223 };
Michael Bohan5085a052012-06-11 13:27:34 -0700224
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700225 gpio@c200 {
226 reg = <0xc200 0x100>;
227 qcom,pin-num = <3>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700228 };
Michael Bohan5085a052012-06-11 13:27:34 -0700229
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700230 gpio@c300 {
231 reg = <0xc300 0x100>;
232 qcom,pin-num = <4>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700233 };
Michael Bohan5085a052012-06-11 13:27:34 -0700234
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700235 gpio@c400 {
236 reg = <0xc400 0x100>;
237 qcom,pin-num = <5>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700238 };
Michael Bohan5085a052012-06-11 13:27:34 -0700239
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700240 gpio@c500 {
241 reg = <0xc500 0x100>;
242 qcom,pin-num = <6>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700243 };
Michael Bohan5085a052012-06-11 13:27:34 -0700244
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700245 gpio@c600 {
246 reg = <0xc600 0x100>;
247 qcom,pin-num = <7>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700248 };
Michael Bohan5085a052012-06-11 13:27:34 -0700249
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700250 gpio@c700 {
251 reg = <0xc700 0x100>;
252 qcom,pin-num = <8>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700253 };
Michael Bohan5085a052012-06-11 13:27:34 -0700254
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700255 gpio@c800 {
256 reg = <0xc800 0x100>;
257 qcom,pin-num = <9>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700258 };
Michael Bohan5085a052012-06-11 13:27:34 -0700259
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700260 gpio@c900 {
261 reg = <0xc900 0x100>;
262 qcom,pin-num = <10>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700263 };
264
265 gpio@ca00 {
266 reg = <0xca00 0x100>;
267 qcom,pin-num = <11>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700268 };
269
270 gpio@cb00 {
271 reg = <0xcb00 0x100>;
272 qcom,pin-num = <12>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700273 };
274
275 gpio@cc00 {
276 reg = <0xcc00 0x100>;
277 qcom,pin-num = <13>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700278 };
279
280 gpio@cd00 {
281 reg = <0xcd00 0x100>;
282 qcom,pin-num = <14>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700283 };
284
285 gpio@ce00 {
286 reg = <0xce00 0x100>;
287 qcom,pin-num = <15>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700288 };
289
290 gpio@cf00 {
291 reg = <0xcf00 0x100>;
292 qcom,pin-num = <16>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700293 };
294
295 gpio@d000 {
296 reg = <0xd000 0x100>;
297 qcom,pin-num = <17>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700298 };
299
300 gpio@d100 {
301 reg = <0xd100 0x100>;
302 qcom,pin-num = <18>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700303 };
304
305 gpio@d200 {
306 reg = <0xd200 0x100>;
307 qcom,pin-num = <19>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700308 };
309
310 gpio@d300 {
311 reg = <0xd300 0x100>;
312 qcom,pin-num = <20>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700313 };
314
315 gpio@d400 {
316 reg = <0xd400 0x100>;
317 qcom,pin-num = <21>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700318 };
319
320 gpio@d500 {
321 reg = <0xd500 0x100>;
322 qcom,pin-num = <22>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700323 };
324
325 gpio@d600 {
326 reg = <0xd600 0x100>;
327 qcom,pin-num = <23>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700328 };
329
330 gpio@d700 {
331 reg = <0xd700 0x100>;
332 qcom,pin-num = <24>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700333 };
334
335 gpio@d800 {
336 reg = <0xd800 0x100>;
337 qcom,pin-num = <25>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700338 };
339
340 gpio@d900 {
341 reg = <0xd900 0x100>;
342 qcom,pin-num = <26>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700343 };
344
345 gpio@da00 {
346 reg = <0xda00 0x100>;
347 qcom,pin-num = <27>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700348 };
349
350 gpio@db00 {
351 reg = <0xdb00 0x100>;
352 qcom,pin-num = <28>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700353 };
354
355 gpio@dc00 {
356 reg = <0xdc00 0x100>;
357 qcom,pin-num = <29>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700358 };
359
360 gpio@dd00 {
361 reg = <0xdd00 0x100>;
362 qcom,pin-num = <30>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700363 };
364
365 gpio@de00 {
366 reg = <0xde00 0x100>;
367 qcom,pin-num = <31>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700368 };
369
370 gpio@df00 {
371 reg = <0xdf00 0x100>;
372 qcom,pin-num = <32>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700373 };
374
375 gpio@e000 {
376 reg = <0xe000 0x100>;
377 qcom,pin-num = <33>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700378 };
379
380 gpio@e100 {
381 reg = <0xe100 0x100>;
382 qcom,pin-num = <34>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700383 };
384
385 gpio@e200 {
386 reg = <0xe200 0x100>;
387 qcom,pin-num = <35>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700388 };
389
390 gpio@e300 {
391 reg = <0xe300 0x100>;
392 qcom,pin-num = <36>;
Michael Bohan5085a052012-06-11 13:27:34 -0700393 };
Michael Bohan8b909b42012-04-18 17:39:12 -0700394 };
395
Michael Bohand5ea7242012-10-01 18:01:51 -0700396 pm8941_mpps: mpps {
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700397 spmi-dev-container;
398 compatible = "qcom,qpnp-pin";
399 gpio-controller;
400 #gpio-cells = <2>;
David Collins153d45a2012-03-26 11:57:50 -0700401 #address-cells = <1>;
402 #size-cells = <1>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700403 label = "pm8941-mpp";
David Collins153d45a2012-03-26 11:57:50 -0700404
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700405 mpp@a000 {
David Collins32f825f2012-06-06 09:49:24 -0700406 reg = <0xa000 0x100>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700407 qcom,pin-num = <1>;
David Collins153d45a2012-03-26 11:57:50 -0700408 };
409
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700410 mpp@a100 {
411 reg = <0xa100 0x100>;
412 qcom,pin-num = <2>;
David Collins153d45a2012-03-26 11:57:50 -0700413 };
414
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700415 mpp@a200 {
416 reg = <0xa200 0x100>;
417 qcom,pin-num = <3>;
David Collins153d45a2012-03-26 11:57:50 -0700418 };
419
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700420 mpp@a300 {
421 reg = <0xa300 0x100>;
422 qcom,pin-num = <4>;
David Collins153d45a2012-03-26 11:57:50 -0700423 };
424
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700425 mpp@a400 {
426 reg = <0xa400 0x100>;
427 qcom,pin-num = <5>;
David Collins153d45a2012-03-26 11:57:50 -0700428 };
429
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700430 mpp@a500 {
431 reg = <0xa500 0x100>;
432 qcom,pin-num = <6>;
David Collins153d45a2012-03-26 11:57:50 -0700433 };
434
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700435 mpp@a600 {
436 reg = <0xa600 0x100>;
437 qcom,pin-num = <7>;
David Collins153d45a2012-03-26 11:57:50 -0700438 };
439
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700440 mpp@a700 {
441 reg = <0xa700 0x100>;
442 qcom,pin-num = <8>;
David Collins153d45a2012-03-26 11:57:50 -0700443 };
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700444 };
Ashay Jaiswal93ad9702012-07-17 15:12:33 +0530445
446 qcom,pm8941_rtc {
447 spmi-dev-container;
448 compatible = "qcom,qpnp-rtc";
449 #address-cells = <1>;
450 #size-cells = <1>;
451 qcom,qpnp-rtc-write = <0>;
452 qcom,qpnp-rtc-alarm-pwrup = <0>;
453
454 qcom,pm8941_rtc_rw@6000 {
455 reg = <0x6000 0x100>;
456 };
457 qcom,pm8941_rtc_alarm@6100 {
458 reg = <0x6100 0x100>;
459 interrupts = <0x0 0x61 0x1>;
460 };
461 };
Siddartha Mohanadoss3696ee82012-07-20 14:47:04 -0700462
463 vadc@3100 {
464 compatible = "qcom,qpnp-vadc";
465 reg = <0x3100 0x100>;
466 interrupts = <0x0 0x31 0x0>;
467 qcom,adc-bit-resolution = <15>;
468 qcom,adc-vdd-reference = <1800>;
469
470 chan@0 {
471 label = "usb_in";
472 qcom,channel-num = <0>;
473 qcom,decimation = <0>;
Siddartha Mohanadossf5367672012-09-04 22:09:31 -0700474 qcom,pre-div-channel-scaling = <4>;
Siddartha Mohanadoss3696ee82012-07-20 14:47:04 -0700475 qcom,calibration-type = "absolute";
476 qcom,scale-function = <0>;
477 qcom,hw-settle-time = <0>;
478 qcom,fast-avg-setup = <0>;
479 };
Siddartha Mohanadosse6440cf2012-08-08 17:08:18 -0700480
Siddartha Mohanadoss5a5d5512012-09-06 20:25:42 -0700481 chan@1 {
482 label = "dc_in";
483 qcom,channel-num = <1>;
484 qcom,decimation = <0>;
485 qcom,pre-div-channel-scaling = <4>;
486 qcom,calibration-type = "absolute";
487 qcom,scale-function = <0>;
488 qcom,hw-settle-time = <0>;
489 qcom,fast-avg-setup = <0>;
490 };
491
Siddartha Mohanadosse6440cf2012-08-08 17:08:18 -0700492 chan@2 {
493 label = "vchg_sns";
494 qcom,channel-num = <2>;
495 qcom,decimation = <0>;
Siddartha Mohanadossf5367672012-09-04 22:09:31 -0700496 qcom,pre-div-channel-scaling = <3>;
Siddartha Mohanadosse6440cf2012-08-08 17:08:18 -0700497 qcom,calibration-type = "absolute";
498 qcom,scale-function = <0>;
499 qcom,hw-settle-time = <0>;
500 qcom,fast-avg-setup = <0>;
501 };
502
Siddartha Mohanadoss5a5d5512012-09-06 20:25:42 -0700503 chan@3 {
504 label = "spare1";
505 qcom,channel-num = <3>;
506 qcom,decimation = <0>;
507 qcom,pre-div-channel-scaling = <6>;
508 qcom,calibration-type = "absolute";
509 qcom,scale-function = <0>;
510 qcom,hw-settle-time = <0>;
511 qcom,fast-avg-setup = <0>;
512 };
513
514 chan@4 {
515 label = "spare2";
516 qcom,channel-num = <4>;
517 qcom,decimation = <0>;
518 qcom,pre-div-channel-scaling = <6>;
519 qcom,calibration-type = "absolute";
520 qcom,scale-function = <0>;
521 qcom,hw-settle-time = <0>;
522 qcom,fast-avg-setup = <0>;
523 };
524
Siddartha Mohanadosse6440cf2012-08-08 17:08:18 -0700525 chan@5 {
526 label = "vcoin";
527 qcom,channel-num = <5>;
528 qcom,decimation = <0>;
Siddartha Mohanadossf5367672012-09-04 22:09:31 -0700529 qcom,pre-div-channel-scaling = <1>;
Siddartha Mohanadosse6440cf2012-08-08 17:08:18 -0700530 qcom,calibration-type = "absolute";
531 qcom,scale-function = <0>;
532 qcom,hw-settle-time = <0>;
533 qcom,fast-avg-setup = <0>;
534 };
535
536 chan@6 {
537 label = "vbat_sns";
538 qcom,channel-num = <6>;
539 qcom,decimation = <0>;
Siddartha Mohanadossf5367672012-09-04 22:09:31 -0700540 qcom,pre-div-channel-scaling = <1>;
Siddartha Mohanadosse6440cf2012-08-08 17:08:18 -0700541 qcom,calibration-type = "absolute";
542 qcom,scale-function = <0>;
543 qcom,hw-settle-time = <0>;
544 qcom,fast-avg-setup = <0>;
545 };
546
547 chan@7 {
548 label = "vph_pwr";
549 qcom,channel-num = <7>;
550 qcom,decimation = <0>;
Siddartha Mohanadossf5367672012-09-04 22:09:31 -0700551 qcom,pre-div-channel-scaling = <1>;
Siddartha Mohanadosse6440cf2012-08-08 17:08:18 -0700552 qcom,calibration-type = "absolute";
553 qcom,scale-function = <0>;
554 qcom,hw-settle-time = <0>;
555 qcom,fast-avg-setup = <0>;
556 };
557
Siddartha Mohanadoss5a5d5512012-09-06 20:25:42 -0700558 chan@8 {
559 label = "die_temp";
560 qcom,channel-num = <8>;
561 qcom,decimation = <0>;
562 qcom,pre-div-channel-scaling = <0>;
563 qcom,calibration-type = "absolute";
564 qcom,scale-function = <3>;
565 qcom,hw-settle-time = <0>;
566 qcom,fast-avg-setup = <0>;
567 };
568
Siddartha Mohanadosse6440cf2012-08-08 17:08:18 -0700569 chan@9 {
570 label = "ref_625mv";
571 qcom,channel-num = <9>;
572 qcom,decimation = <0>;
Siddartha Mohanadossf5367672012-09-04 22:09:31 -0700573 qcom,pre-div-channel-scaling = <0>;
Siddartha Mohanadosse6440cf2012-08-08 17:08:18 -0700574 qcom,calibration-type = "absolute";
575 qcom,scale-function = <0>;
576 qcom,hw-settle-time = <0>;
577 qcom,fast-avg-setup = <0>;
578 };
579
580 chan@10 {
Siddartha Mohanadossf5367672012-09-04 22:09:31 -0700581 label = "ref_1250v";
Siddartha Mohanadosse6440cf2012-08-08 17:08:18 -0700582 qcom,channel-num = <10>;
583 qcom,decimation = <0>;
Siddartha Mohanadossf5367672012-09-04 22:09:31 -0700584 qcom,pre-div-channel-scaling = <0>;
Siddartha Mohanadosse6440cf2012-08-08 17:08:18 -0700585 qcom,calibration-type = "absolute";
586 qcom,scale-function = <0>;
587 qcom,hw-settle-time = <0>;
588 qcom,fast-avg-setup = <0>;
589 };
Siddartha Mohanadoss5a5d5512012-09-06 20:25:42 -0700590
591 chan@48 {
592 label = "batt_therm";
593 qcom,channel-num = <48>;
594 qcom,decimation = <0>;
595 qcom,pre-div-channel-scaling = <0>;
596 qcom,calibration-type = "ratiometric";
597 qcom,scale-function = <1>;
598 qcom,hw-settle-time = <0>;
599 qcom,fast-avg-setup = <0>;
600 };
601
602 chan@49 {
603 label = "batt_id";
604 qcom,channel-num = <49>;
605 qcom,decimation = <0>;
606 qcom,pre-div-channel-scaling = <0>;
607 qcom,calibration-type = "ratiometric";
608 qcom,scale-function = <0>;
609 qcom,hw-settle-time = <0>;
610 qcom,fast-avg-setup = <0>;
611 };
612
Siddartha Mohanadoss3601d232012-09-14 16:01:39 -0700613 chan@178 {
614 label = "xo_therm_pu2";
615 qcom,channel-num = <178>;
Siddartha Mohanadoss5a5d5512012-09-06 20:25:42 -0700616 qcom,decimation = <0>;
617 qcom,pre-div-channel-scaling = <0>;
618 qcom,calibration-type = "ratiometric";
619 qcom,scale-function = <4>;
620 qcom,hw-settle-time = <0>;
621 qcom,fast-avg-setup = <0>;
622 };
Siddartha Mohanadoss0a918562012-09-13 14:26:54 -0700623
624 chan@179 {
625 label = "msm_therm";
626 qcom,channel-num = <179>;
627 qcom,decimation = <0>;
628 qcom,pre-div-channel-scaling = <0>;
629 qcom,calibration-type = "ratiometric";
630 qcom,scale-function = <2>;
631 qcom,hw-settle-time = <0>;
632 qcom,fast-avg-setup = <0>;
633 };
634
635 chan@180 {
636 label = "emmc_therm";
637 qcom,channel-num = <180>;
638 qcom,decimation = <0>;
639 qcom,pre-div-channel-scaling = <0>;
640 qcom,calibration-type = "ratiometric";
641 qcom,scale-function = <2>;
642 qcom,hw-settle-time = <0>;
643 qcom,fast-avg-setup = <0>;
644 };
645
646 chan@181 {
647 label = "pa_therm1";
648 qcom,channel-num = <181>;
649 qcom,decimation = <0>;
650 qcom,pre-div-channel-scaling = <0>;
651 qcom,calibration-type = "ratiometric";
652 qcom,scale-function = <2>;
653 qcom,hw-settle-time = <0>;
654 qcom,fast-avg-setup = <0>;
655 };
656
657 chan@183 {
658 label = "pa_therm2";
659 qcom,channel-num = <183>;
660 qcom,decimation = <0>;
661 qcom,pre-div-channel-scaling = <0>;
662 qcom,calibration-type = "ratiometric";
663 qcom,scale-function = <2>;
664 qcom,hw-settle-time = <0>;
665 qcom,fast-avg-setup = <0>;
666 };
667
668 chan@184 {
669 label = "quiet_therm";
670 qcom,channel-num = <184>;
671 qcom,decimation = <0>;
672 qcom,pre-div-channel-scaling = <0>;
673 qcom,calibration-type = "ratiometric";
674 qcom,scale-function = <2>;
675 qcom,hw-settle-time = <0>;
676 qcom,fast-avg-setup = <0>;
677 };
Siddartha Mohanadoss3696ee82012-07-20 14:47:04 -0700678 };
Siddartha Mohanadossb11538e2012-07-27 12:06:22 -0700679
680 iadc@3600 {
681 compatible = "qcom,qpnp-iadc";
682 reg = <0x3600 0x100>;
683 interrupts = <0x0 0x36 0x0>;
684 qcom,adc-bit-resolution = <16>;
685 qcom,adc-vdd-reference = <1800>;
686 qcom,rsense = <1500>;
687
688 chan@0 {
689 label = "internal_rsense";
690 qcom,channel-num = <0>;
691 qcom,decimation = <0>;
692 qcom,pre-div-channel-scaling = <1>;
693 qcom,calibration-type = "absolute";
694 qcom,scale-function = <0>;
695 qcom,hw-settle-time = <0>;
696 qcom,fast-avg-setup = <0>;
697 };
698 };
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700699 };
David Collins153d45a2012-03-26 11:57:50 -0700700
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700701 qcom,pm8941@1 {
702 spmi-slave-container;
703 reg = <0x1>;
704 #address-cells = <1>;
705 #size-cells = <1>;
David Collins153d45a2012-03-26 11:57:50 -0700706
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700707 regulator@1400 {
708 regulator-name = "8941_s1";
709 spmi-dev-container;
710 #address-cells = <1>;
711 #size-cells = <1>;
712 compatible = "qcom,qpnp-regulator";
713 reg = <0x1400 0x300>;
714 status = "disabled";
David Collins153d45a2012-03-26 11:57:50 -0700715
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700716 qcom,ctl@1400 {
717 reg = <0x1400 0x100>;
David Collins153d45a2012-03-26 11:57:50 -0700718 };
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700719 qcom,ps@1500 {
720 reg = <0x1500 0x100>;
721 };
722 qcom,freq@1600 {
723 reg = <0x1600 0x100>;
724 };
725 };
David Collins153d45a2012-03-26 11:57:50 -0700726
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700727 regulator@1700 {
728 regulator-name = "8941_s2";
729 spmi-dev-container;
730 #address-cells = <1>;
731 #size-cells = <1>;
732 compatible = "qcom,qpnp-regulator";
733 reg = <0x1700 0x300>;
734 status = "disabled";
David Collins153d45a2012-03-26 11:57:50 -0700735
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700736 qcom,ctl@1700 {
737 reg = <0x1700 0x100>;
David Collins153d45a2012-03-26 11:57:50 -0700738 };
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700739 qcom,ps@1800 {
740 reg = <0x1800 0x100>;
741 };
742 qcom,freq@1900 {
743 reg = <0x1900 0x100>;
744 };
745 };
David Collins153d45a2012-03-26 11:57:50 -0700746
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700747 regulator@1a00 {
748 regulator-name = "8941_s3";
749 spmi-dev-container;
750 #address-cells = <1>;
751 #size-cells = <1>;
752 compatible = "qcom,qpnp-regulator";
Michael Bohand3253c72012-08-09 11:34:49 -0700753 reg = <0x1a00 0x300>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700754 status = "disabled";
David Collins153d45a2012-03-26 11:57:50 -0700755
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700756 qcom,ctl@1a00 {
757 reg = <0x1a00 0x100>;
David Collins153d45a2012-03-26 11:57:50 -0700758 };
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700759 qcom,ps@1b00 {
760 reg = <0x1b00 0x100>;
761 };
762 qcom,freq@1c00 {
763 reg = <0x1c00 0x100>;
764 };
765 };
David Collins153d45a2012-03-26 11:57:50 -0700766
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700767 regulator@a000 {
768 regulator-name = "8941_boost";
769 reg = <0xa000 0x100>;
770 compatible = "qcom,qpnp-regulator";
771 status = "disabled";
772 };
David Collins153d45a2012-03-26 11:57:50 -0700773
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700774 regulator@4000 {
775 regulator-name = "8941_l1";
776 reg = <0x4000 0x100>;
777 compatible = "qcom,qpnp-regulator";
778 status = "disabled";
779 };
David Collins153d45a2012-03-26 11:57:50 -0700780
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700781 regulator@4100 {
782 regulator-name = "8941_l2";
783 reg = <0x4100 0x100>;
784 compatible = "qcom,qpnp-regulator";
785 status = "disabled";
786 };
David Collins153d45a2012-03-26 11:57:50 -0700787
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700788 regulator@4200 {
789 regulator-name = "8941_l3";
790 reg = <0x4200 0x100>;
791 compatible = "qcom,qpnp-regulator";
792 status = "disabled";
793 };
David Collins153d45a2012-03-26 11:57:50 -0700794
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700795 regulator@4300 {
796 regulator-name = "8941_l4";
797 reg = <0x4300 0x100>;
798 compatible = "qcom,qpnp-regulator";
799 status = "disabled";
800 };
David Collins153d45a2012-03-26 11:57:50 -0700801
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700802 regulator@4400 {
803 regulator-name = "8941_l5";
804 reg = <0x4400 0x100>;
805 compatible = "qcom,qpnp-regulator";
Michael Bohane18bf882012-08-09 15:00:23 -0700806 qcom,force-type = <0x04 0x10>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700807 status = "disabled";
808 };
David Collins153d45a2012-03-26 11:57:50 -0700809
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700810 regulator@4500 {
811 regulator-name = "8941_l6";
812 reg = <0x4500 0x100>;
813 compatible = "qcom,qpnp-regulator";
814 status = "disabled";
815 };
David Collins153d45a2012-03-26 11:57:50 -0700816
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700817 regulator@4600 {
818 regulator-name = "8941_l7";
819 reg = <0x4600 0x100>;
820 compatible = "qcom,qpnp-regulator";
Michael Bohane18bf882012-08-09 15:00:23 -0700821 qcom,force-type = <0x04 0x10>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700822 status = "disabled";
823 };
David Collins153d45a2012-03-26 11:57:50 -0700824
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700825 regulator@4700 {
826 regulator-name = "8941_l8";
827 reg = <0x4700 0x100>;
828 compatible = "qcom,qpnp-regulator";
829 status = "disabled";
830 };
David Collins153d45a2012-03-26 11:57:50 -0700831
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700832 regulator@4800 {
833 regulator-name = "8941_l9";
834 reg = <0x4800 0x100>;
835 compatible = "qcom,qpnp-regulator";
836 status = "disabled";
837 };
David Collins153d45a2012-03-26 11:57:50 -0700838
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700839 regulator@4900 {
840 regulator-name = "8941_l10";
841 reg = <0x4900 0x100>;
842 compatible = "qcom,qpnp-regulator";
843 status = "disabled";
844 };
David Collins153d45a2012-03-26 11:57:50 -0700845
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700846 regulator@4a00 {
847 regulator-name = "8941_l11";
848 reg = <0x4a00 0x100>;
849 compatible = "qcom,qpnp-regulator";
850 status = "disabled";
851 };
David Collins153d45a2012-03-26 11:57:50 -0700852
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700853 regulator@4b00 {
854 regulator-name = "8941_l12";
855 reg = <0x4b00 0x100>;
856 compatible = "qcom,qpnp-regulator";
857 status = "disabled";
858 };
David Collins153d45a2012-03-26 11:57:50 -0700859
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700860 regulator@4c00 {
861 regulator-name = "8941_l13";
862 reg = <0x4c00 0x100>;
863 compatible = "qcom,qpnp-regulator";
864 status = "disabled";
865 };
David Collins153d45a2012-03-26 11:57:50 -0700866
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700867 regulator@4d00 {
868 regulator-name = "8941_l14";
869 reg = <0x4d00 0x100>;
870 compatible = "qcom,qpnp-regulator";
871 status = "disabled";
872 };
873
874 regulator@4e00 {
875 regulator-name = "8941_l15";
876 reg = <0x4e00 0x100>;
877 compatible = "qcom,qpnp-regulator";
878 status = "disabled";
879 };
880
881 regulator@4f00 {
882 regulator-name = "8941_l16";
883 reg = <0x4f00 0x100>;
884 compatible = "qcom,qpnp-regulator";
885 status = "disabled";
886 };
887
888 regulator@5000 {
889 regulator-name = "8941_l17";
890 reg = <0x5000 0x100>;
891 compatible = "qcom,qpnp-regulator";
892 status = "disabled";
893 };
894
895 regulator@5100 {
896 regulator-name = "8941_l18";
897 reg = <0x5100 0x100>;
898 compatible = "qcom,qpnp-regulator";
899 status = "disabled";
900 };
901
902 regulator@5200 {
903 regulator-name = "8941_l19";
904 reg = <0x5200 0x100>;
905 compatible = "qcom,qpnp-regulator";
906 status = "disabled";
907 };
908
909 regulator@5300 {
910 regulator-name = "8941_l20";
911 reg = <0x5300 0x100>;
912 compatible = "qcom,qpnp-regulator";
913 status = "disabled";
914 };
915
916 regulator@5400 {
917 regulator-name = "8941_l21";
918 reg = <0x5400 0x100>;
919 compatible = "qcom,qpnp-regulator";
920 status = "disabled";
921 };
922
923 regulator@5500 {
924 regulator-name = "8941_l22";
925 reg = <0x5500 0x100>;
926 compatible = "qcom,qpnp-regulator";
927 status = "disabled";
928 };
929
930 regulator@5600 {
931 regulator-name = "8941_l23";
932 reg = <0x5600 0x100>;
933 compatible = "qcom,qpnp-regulator";
934 status = "disabled";
935 };
936
937 regulator@5700 {
938 regulator-name = "8941_l24";
939 reg = <0x5700 0x100>;
940 compatible = "qcom,qpnp-regulator";
941 status = "disabled";
942 };
943
944 regulator@8000 {
945 regulator-name = "8941_lvs1";
946 reg = <0x8000 0x100>;
947 compatible = "qcom,qpnp-regulator";
948 status = "disabled";
949 };
950
951 regulator@8100 {
952 regulator-name = "8941_lvs2";
953 reg = <0x8100 0x100>;
954 compatible = "qcom,qpnp-regulator";
955 status = "disabled";
956 };
957
958 regulator@8200 {
959 regulator-name = "8941_lvs3";
960 reg = <0x8200 0x100>;
961 compatible = "qcom,qpnp-regulator";
962 status = "disabled";
963 };
964
965 regulator@8300 {
966 regulator-name = "8941_mvs1";
967 reg = <0x8300 0x100>;
968 compatible = "qcom,qpnp-regulator";
969 status = "disabled";
970 };
971
972 regulator@8400 {
973 regulator-name = "8941_mvs2";
974 reg = <0x8400 0x100>;
975 compatible = "qcom,qpnp-regulator";
976 status = "disabled";
David Collins153d45a2012-03-26 11:57:50 -0700977 };
Amy Maloche02a5eae2012-08-10 21:33:59 -0700978
979 qcom,leds@d800 {
980 compatible = "qcom,leds-qpnp";
981 reg = <0xd800 0x100>;
982 qcom,label = "wled";
983 };
984
985 qcom,leds@d900 {
986 compatible = "qcom,leds-qpnp";
987 reg = <0xd900 0x100>;
988 qcom,label = "wled";
989 };
990
991 qcom,leds@da00 {
992 compatible = "qcom,leds-qpnp";
993 reg = <0xda00 0x100>;
994 qcom,label = "wled";
995 };
996
997 qcom,leds@db00 {
998 compatible = "qcom,leds-qpnp";
999 reg = <0xdb00 0x100>;
1000 qcom,label = "wled";
1001 };
1002
1003 qcom,leds@dc00 {
1004 compatible = "qcom,leds-qpnp";
1005 reg = <0xdc00 0x100>;
1006 qcom,label = "wled";
1007 };
1008
1009 qcom,leds@dd00 {
1010 compatible = "qcom,leds-qpnp";
1011 reg = <0xdd00 0x100>;
1012 qcom,label = "wled";
1013 };
1014
1015 qcom,leds@de00 {
1016 compatible = "qcom,leds-qpnp";
1017 reg = <0xde00 0x100>;
1018 qcom,label = "wled";
1019 };
1020
1021 qcom,leds@df00 {
1022 compatible = "qcom,leds-qpnp";
1023 reg = <0xdf00 0x100>;
1024 qcom,label = "wled";
1025 };
1026
1027 qcom,leds@e000 {
1028 compatible = "qcom,leds-qpnp";
1029 reg = <0xe000 0x100>;
1030 qcom,label = "wled";
1031 };
1032
1033 qcom,leds@e100 {
1034 compatible = "qcom,leds-qpnp";
1035 reg = <0xe100 0x100>;
1036 qcom,label = "wled";
1037 };
1038
David Collins153d45a2012-03-26 11:57:50 -07001039 };
1040};