blob: 51ec10ccec2fdc28ee69ad458186ad027cb85bcf [file] [log] [blame]
David Collins153d45a2012-03-26 11:57:50 -07001/* Copyright (c) 2012, Code Aurora Forum. 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
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>;
28 interrupts = <0x0 0x8 0x0>;
29 interrupt-names = "power-key";
30 qcom,pon-key-enable = <1>;
31 qcom,pon-key-dbc-delay = <15625>;
32 qcom,pon-key-pull-up = <1>;
33 };
34
Varad Deshmukh18057ed2012-07-03 16:34:53 -070035 pm8941_gpios {
36 spmi-dev-container;
37 compatible = "qcom,qpnp-pin";
38 gpio-controller;
39 #gpio-cells = <2>;
Michael Bohan8b909b42012-04-18 17:39:12 -070040 #address-cells = <1>;
41 #size-cells = <1>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -070042 label = "pm8941-gpio";
Michael Bohan8b909b42012-04-18 17:39:12 -070043
Varad Deshmukh18057ed2012-07-03 16:34:53 -070044 gpio@c000 {
45 reg = <0xc000 0x100>;
46 qcom,pin-num = <1>;
47 status = "disabled";
Michael Bohan8b909b42012-04-18 17:39:12 -070048 };
Michael Bohan5085a052012-06-11 13:27:34 -070049
Varad Deshmukh18057ed2012-07-03 16:34:53 -070050 gpio@c100 {
51 reg = <0xc100 0x100>;
52 qcom,pin-num = <2>;
53 status = "disabled";
54 };
Michael Bohan5085a052012-06-11 13:27:34 -070055
Varad Deshmukh18057ed2012-07-03 16:34:53 -070056 gpio@c200 {
57 reg = <0xc200 0x100>;
58 qcom,pin-num = <3>;
59 status = "disabled";
60 };
Michael Bohan5085a052012-06-11 13:27:34 -070061
Varad Deshmukh18057ed2012-07-03 16:34:53 -070062 gpio@c300 {
63 reg = <0xc300 0x100>;
64 qcom,pin-num = <4>;
65 status = "disabled";
66 };
Michael Bohan5085a052012-06-11 13:27:34 -070067
Varad Deshmukh18057ed2012-07-03 16:34:53 -070068 gpio@c400 {
69 reg = <0xc400 0x100>;
70 qcom,pin-num = <5>;
71 status = "disabled";
72 };
Michael Bohan5085a052012-06-11 13:27:34 -070073
Varad Deshmukh18057ed2012-07-03 16:34:53 -070074 gpio@c500 {
75 reg = <0xc500 0x100>;
76 qcom,pin-num = <6>;
77 status = "disabled";
78 };
Michael Bohan5085a052012-06-11 13:27:34 -070079
Varad Deshmukh18057ed2012-07-03 16:34:53 -070080 gpio@c600 {
81 reg = <0xc600 0x100>;
82 qcom,pin-num = <7>;
83 status = "disabled";
84 };
Michael Bohan5085a052012-06-11 13:27:34 -070085
Varad Deshmukh18057ed2012-07-03 16:34:53 -070086 gpio@c700 {
87 reg = <0xc700 0x100>;
88 qcom,pin-num = <8>;
89 status = "disabled";
90 };
Michael Bohan5085a052012-06-11 13:27:34 -070091
Varad Deshmukh18057ed2012-07-03 16:34:53 -070092 gpio@c800 {
93 reg = <0xc800 0x100>;
94 qcom,pin-num = <9>;
95 status = "disabled";
96 };
Michael Bohan5085a052012-06-11 13:27:34 -070097
Varad Deshmukh18057ed2012-07-03 16:34:53 -070098 gpio@c900 {
99 reg = <0xc900 0x100>;
100 qcom,pin-num = <10>;
101 status = "disabled";
102 };
103
104 gpio@ca00 {
105 reg = <0xca00 0x100>;
106 qcom,pin-num = <11>;
107 status = "disabled";
108 };
109
110 gpio@cb00 {
111 reg = <0xcb00 0x100>;
112 qcom,pin-num = <12>;
113 status = "disabled";
114 };
115
116 gpio@cc00 {
117 reg = <0xcc00 0x100>;
118 qcom,pin-num = <13>;
119 status = "disabled";
120 };
121
122 gpio@cd00 {
123 reg = <0xcd00 0x100>;
124 qcom,pin-num = <14>;
125 status = "disabled";
126 };
127
128 gpio@ce00 {
129 reg = <0xce00 0x100>;
130 qcom,pin-num = <15>;
131 status = "disabled";
132 };
133
134 gpio@cf00 {
135 reg = <0xcf00 0x100>;
136 qcom,pin-num = <16>;
137 status = "disabled";
138 };
139
140 gpio@d000 {
141 reg = <0xd000 0x100>;
142 qcom,pin-num = <17>;
143 status = "disabled";
144 };
145
146 gpio@d100 {
147 reg = <0xd100 0x100>;
148 qcom,pin-num = <18>;
149 status = "disabled";
150 };
151
152 gpio@d200 {
153 reg = <0xd200 0x100>;
154 qcom,pin-num = <19>;
155 status = "disabled";
156 };
157
158 gpio@d300 {
159 reg = <0xd300 0x100>;
160 qcom,pin-num = <20>;
161 status = "disabled";
162 };
163
164 gpio@d400 {
165 reg = <0xd400 0x100>;
166 qcom,pin-num = <21>;
167 status = "disabled";
168 };
169
170 gpio@d500 {
171 reg = <0xd500 0x100>;
172 qcom,pin-num = <22>;
173 status = "disabled";
174 };
175
176 gpio@d600 {
177 reg = <0xd600 0x100>;
178 qcom,pin-num = <23>;
179 status = "disabled";
180 };
181
182 gpio@d700 {
183 reg = <0xd700 0x100>;
184 qcom,pin-num = <24>;
185 status = "disabled";
186 };
187
188 gpio@d800 {
189 reg = <0xd800 0x100>;
190 qcom,pin-num = <25>;
191 status = "disabled";
192 };
193
194 gpio@d900 {
195 reg = <0xd900 0x100>;
196 qcom,pin-num = <26>;
197 status = "disabled";
198 };
199
200 gpio@da00 {
201 reg = <0xda00 0x100>;
202 qcom,pin-num = <27>;
203 status = "disabled";
204 };
205
206 gpio@db00 {
207 reg = <0xdb00 0x100>;
208 qcom,pin-num = <28>;
209 status = "disabled";
210 };
211
212 gpio@dc00 {
213 reg = <0xdc00 0x100>;
214 qcom,pin-num = <29>;
215 status = "disabled";
216 };
217
218 gpio@dd00 {
219 reg = <0xdd00 0x100>;
220 qcom,pin-num = <30>;
221 status = "disabled";
222 };
223
224 gpio@de00 {
225 reg = <0xde00 0x100>;
226 qcom,pin-num = <31>;
227 status = "disabled";
228 };
229
230 gpio@df00 {
231 reg = <0xdf00 0x100>;
232 qcom,pin-num = <32>;
233 status = "disabled";
234 };
235
236 gpio@e000 {
237 reg = <0xe000 0x100>;
238 qcom,pin-num = <33>;
239 status = "disabled";
240 };
241
242 gpio@e100 {
243 reg = <0xe100 0x100>;
244 qcom,pin-num = <34>;
245 status = "disabled";
246 };
247
248 gpio@e200 {
249 reg = <0xe200 0x100>;
250 qcom,pin-num = <35>;
251 status = "disabled";
252 };
253
254 gpio@e300 {
255 reg = <0xe300 0x100>;
256 qcom,pin-num = <36>;
257 status = "disabled";
Michael Bohan5085a052012-06-11 13:27:34 -0700258 };
Michael Bohan8b909b42012-04-18 17:39:12 -0700259 };
260
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700261 pm8941_mpps {
262 spmi-dev-container;
263 compatible = "qcom,qpnp-pin";
264 gpio-controller;
265 #gpio-cells = <2>;
David Collins153d45a2012-03-26 11:57:50 -0700266 #address-cells = <1>;
267 #size-cells = <1>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700268 label = "pm8941-mpp";
David Collins153d45a2012-03-26 11:57:50 -0700269
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700270 mpp@a000 {
David Collins32f825f2012-06-06 09:49:24 -0700271 reg = <0xa000 0x100>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700272 qcom,pin-num = <1>;
David Collins153d45a2012-03-26 11:57:50 -0700273 status = "disabled";
274 };
275
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700276 mpp@a100 {
277 reg = <0xa100 0x100>;
278 qcom,pin-num = <2>;
David Collins153d45a2012-03-26 11:57:50 -0700279 status = "disabled";
280 };
281
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700282 mpp@a200 {
283 reg = <0xa200 0x100>;
284 qcom,pin-num = <3>;
David Collins153d45a2012-03-26 11:57:50 -0700285 status = "disabled";
286 };
287
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700288 mpp@a300 {
289 reg = <0xa300 0x100>;
290 qcom,pin-num = <4>;
David Collins153d45a2012-03-26 11:57:50 -0700291 status = "disabled";
292 };
293
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700294 mpp@a400 {
295 reg = <0xa400 0x100>;
296 qcom,pin-num = <5>;
David Collins153d45a2012-03-26 11:57:50 -0700297 status = "disabled";
298 };
299
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700300 mpp@a500 {
301 reg = <0xa500 0x100>;
302 qcom,pin-num = <6>;
David Collins153d45a2012-03-26 11:57:50 -0700303 status = "disabled";
304 };
305
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700306 mpp@a600 {
307 reg = <0xa600 0x100>;
308 qcom,pin-num = <7>;
David Collins153d45a2012-03-26 11:57:50 -0700309 status = "disabled";
310 };
311
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700312 mpp@a700 {
313 reg = <0xa700 0x100>;
314 qcom,pin-num = <8>;
David Collins153d45a2012-03-26 11:57:50 -0700315 status = "disabled";
316 };
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700317 };
Ashay Jaiswal93ad9702012-07-17 15:12:33 +0530318
319 qcom,pm8941_rtc {
320 spmi-dev-container;
321 compatible = "qcom,qpnp-rtc";
322 #address-cells = <1>;
323 #size-cells = <1>;
324 qcom,qpnp-rtc-write = <0>;
325 qcom,qpnp-rtc-alarm-pwrup = <0>;
326
327 qcom,pm8941_rtc_rw@6000 {
328 reg = <0x6000 0x100>;
329 };
330 qcom,pm8941_rtc_alarm@6100 {
331 reg = <0x6100 0x100>;
332 interrupts = <0x0 0x61 0x1>;
333 };
334 };
Siddartha Mohanadoss3696ee82012-07-20 14:47:04 -0700335
336 vadc@3100 {
337 compatible = "qcom,qpnp-vadc";
338 reg = <0x3100 0x100>;
339 interrupts = <0x0 0x31 0x0>;
340 qcom,adc-bit-resolution = <15>;
341 qcom,adc-vdd-reference = <1800>;
342
343 chan@0 {
344 label = "usb_in";
345 qcom,channel-num = <0>;
346 qcom,decimation = <0>;
347 qcom,pre-div-channel-scaling = <20>;
348 qcom,calibration-type = "absolute";
349 qcom,scale-function = <0>;
350 qcom,hw-settle-time = <0>;
351 qcom,fast-avg-setup = <0>;
352 };
353 };
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700354 };
David Collins153d45a2012-03-26 11:57:50 -0700355
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700356 qcom,pm8941@1 {
357 spmi-slave-container;
358 reg = <0x1>;
359 #address-cells = <1>;
360 #size-cells = <1>;
David Collins153d45a2012-03-26 11:57:50 -0700361
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700362 regulator@1400 {
363 regulator-name = "8941_s1";
364 spmi-dev-container;
365 #address-cells = <1>;
366 #size-cells = <1>;
367 compatible = "qcom,qpnp-regulator";
368 reg = <0x1400 0x300>;
369 status = "disabled";
David Collins153d45a2012-03-26 11:57:50 -0700370
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700371 qcom,ctl@1400 {
372 reg = <0x1400 0x100>;
David Collins153d45a2012-03-26 11:57:50 -0700373 };
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700374 qcom,ps@1500 {
375 reg = <0x1500 0x100>;
376 };
377 qcom,freq@1600 {
378 reg = <0x1600 0x100>;
379 };
380 };
David Collins153d45a2012-03-26 11:57:50 -0700381
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700382 regulator@1700 {
383 regulator-name = "8941_s2";
384 spmi-dev-container;
385 #address-cells = <1>;
386 #size-cells = <1>;
387 compatible = "qcom,qpnp-regulator";
388 reg = <0x1700 0x300>;
389 status = "disabled";
David Collins153d45a2012-03-26 11:57:50 -0700390
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700391 qcom,ctl@1700 {
392 reg = <0x1700 0x100>;
David Collins153d45a2012-03-26 11:57:50 -0700393 };
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700394 qcom,ps@1800 {
395 reg = <0x1800 0x100>;
396 };
397 qcom,freq@1900 {
398 reg = <0x1900 0x100>;
399 };
400 };
David Collins153d45a2012-03-26 11:57:50 -0700401
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700402 regulator@1a00 {
403 regulator-name = "8941_s3";
404 spmi-dev-container;
405 #address-cells = <1>;
406 #size-cells = <1>;
407 compatible = "qcom,qpnp-regulator";
408 reg = <0x1400 0x300>;
409 status = "disabled";
David Collins153d45a2012-03-26 11:57:50 -0700410
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700411 qcom,ctl@1a00 {
412 reg = <0x1a00 0x100>;
David Collins153d45a2012-03-26 11:57:50 -0700413 };
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700414 qcom,ps@1b00 {
415 reg = <0x1b00 0x100>;
416 };
417 qcom,freq@1c00 {
418 reg = <0x1c00 0x100>;
419 };
420 };
David Collins153d45a2012-03-26 11:57:50 -0700421
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700422 regulator@a000 {
423 regulator-name = "8941_boost";
424 reg = <0xa000 0x100>;
425 compatible = "qcom,qpnp-regulator";
426 status = "disabled";
427 };
David Collins153d45a2012-03-26 11:57:50 -0700428
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700429 regulator@4000 {
430 regulator-name = "8941_l1";
431 reg = <0x4000 0x100>;
432 compatible = "qcom,qpnp-regulator";
433 status = "disabled";
434 };
David Collins153d45a2012-03-26 11:57:50 -0700435
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700436 regulator@4100 {
437 regulator-name = "8941_l2";
438 reg = <0x4100 0x100>;
439 compatible = "qcom,qpnp-regulator";
440 status = "disabled";
441 };
David Collins153d45a2012-03-26 11:57:50 -0700442
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700443 regulator@4200 {
444 regulator-name = "8941_l3";
445 reg = <0x4200 0x100>;
446 compatible = "qcom,qpnp-regulator";
447 status = "disabled";
448 };
David Collins153d45a2012-03-26 11:57:50 -0700449
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700450 regulator@4300 {
451 regulator-name = "8941_l4";
452 reg = <0x4300 0x100>;
453 compatible = "qcom,qpnp-regulator";
454 status = "disabled";
455 };
David Collins153d45a2012-03-26 11:57:50 -0700456
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700457 regulator@4400 {
458 regulator-name = "8941_l5";
459 reg = <0x4400 0x100>;
460 compatible = "qcom,qpnp-regulator";
461 status = "disabled";
462 };
David Collins153d45a2012-03-26 11:57:50 -0700463
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700464 regulator@4500 {
465 regulator-name = "8941_l6";
466 reg = <0x4500 0x100>;
467 compatible = "qcom,qpnp-regulator";
468 status = "disabled";
469 };
David Collins153d45a2012-03-26 11:57:50 -0700470
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700471 regulator@4600 {
472 regulator-name = "8941_l7";
473 reg = <0x4600 0x100>;
474 compatible = "qcom,qpnp-regulator";
475 status = "disabled";
476 };
David Collins153d45a2012-03-26 11:57:50 -0700477
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700478 regulator@4700 {
479 regulator-name = "8941_l8";
480 reg = <0x4700 0x100>;
481 compatible = "qcom,qpnp-regulator";
482 status = "disabled";
483 };
David Collins153d45a2012-03-26 11:57:50 -0700484
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700485 regulator@4800 {
486 regulator-name = "8941_l9";
487 reg = <0x4800 0x100>;
488 compatible = "qcom,qpnp-regulator";
489 status = "disabled";
490 };
David Collins153d45a2012-03-26 11:57:50 -0700491
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700492 regulator@4900 {
493 regulator-name = "8941_l10";
494 reg = <0x4900 0x100>;
495 compatible = "qcom,qpnp-regulator";
496 status = "disabled";
497 };
David Collins153d45a2012-03-26 11:57:50 -0700498
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700499 regulator@4a00 {
500 regulator-name = "8941_l11";
501 reg = <0x4a00 0x100>;
502 compatible = "qcom,qpnp-regulator";
503 status = "disabled";
504 };
David Collins153d45a2012-03-26 11:57:50 -0700505
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700506 regulator@4b00 {
507 regulator-name = "8941_l12";
508 reg = <0x4b00 0x100>;
509 compatible = "qcom,qpnp-regulator";
510 status = "disabled";
511 };
David Collins153d45a2012-03-26 11:57:50 -0700512
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700513 regulator@4c00 {
514 regulator-name = "8941_l13";
515 reg = <0x4c00 0x100>;
516 compatible = "qcom,qpnp-regulator";
517 status = "disabled";
518 };
David Collins153d45a2012-03-26 11:57:50 -0700519
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700520 regulator@4d00 {
521 regulator-name = "8941_l14";
522 reg = <0x4d00 0x100>;
523 compatible = "qcom,qpnp-regulator";
524 status = "disabled";
525 };
526
527 regulator@4e00 {
528 regulator-name = "8941_l15";
529 reg = <0x4e00 0x100>;
530 compatible = "qcom,qpnp-regulator";
531 status = "disabled";
532 };
533
534 regulator@4f00 {
535 regulator-name = "8941_l16";
536 reg = <0x4f00 0x100>;
537 compatible = "qcom,qpnp-regulator";
538 status = "disabled";
539 };
540
541 regulator@5000 {
542 regulator-name = "8941_l17";
543 reg = <0x5000 0x100>;
544 compatible = "qcom,qpnp-regulator";
545 status = "disabled";
546 };
547
548 regulator@5100 {
549 regulator-name = "8941_l18";
550 reg = <0x5100 0x100>;
551 compatible = "qcom,qpnp-regulator";
552 status = "disabled";
553 };
554
555 regulator@5200 {
556 regulator-name = "8941_l19";
557 reg = <0x5200 0x100>;
558 compatible = "qcom,qpnp-regulator";
559 status = "disabled";
560 };
561
562 regulator@5300 {
563 regulator-name = "8941_l20";
564 reg = <0x5300 0x100>;
565 compatible = "qcom,qpnp-regulator";
566 status = "disabled";
567 };
568
569 regulator@5400 {
570 regulator-name = "8941_l21";
571 reg = <0x5400 0x100>;
572 compatible = "qcom,qpnp-regulator";
573 status = "disabled";
574 };
575
576 regulator@5500 {
577 regulator-name = "8941_l22";
578 reg = <0x5500 0x100>;
579 compatible = "qcom,qpnp-regulator";
580 status = "disabled";
581 };
582
583 regulator@5600 {
584 regulator-name = "8941_l23";
585 reg = <0x5600 0x100>;
586 compatible = "qcom,qpnp-regulator";
587 status = "disabled";
588 };
589
590 regulator@5700 {
591 regulator-name = "8941_l24";
592 reg = <0x5700 0x100>;
593 compatible = "qcom,qpnp-regulator";
594 status = "disabled";
595 };
596
597 regulator@8000 {
598 regulator-name = "8941_lvs1";
599 reg = <0x8000 0x100>;
600 compatible = "qcom,qpnp-regulator";
601 status = "disabled";
602 };
603
604 regulator@8100 {
605 regulator-name = "8941_lvs2";
606 reg = <0x8100 0x100>;
607 compatible = "qcom,qpnp-regulator";
608 status = "disabled";
609 };
610
611 regulator@8200 {
612 regulator-name = "8941_lvs3";
613 reg = <0x8200 0x100>;
614 compatible = "qcom,qpnp-regulator";
615 status = "disabled";
616 };
617
618 regulator@8300 {
619 regulator-name = "8941_mvs1";
620 reg = <0x8300 0x100>;
621 compatible = "qcom,qpnp-regulator";
622 status = "disabled";
623 };
624
625 regulator@8400 {
626 regulator-name = "8941_mvs2";
627 reg = <0x8400 0x100>;
628 compatible = "qcom,qpnp-regulator";
629 status = "disabled";
David Collins153d45a2012-03-26 11:57:50 -0700630 };
631 };
632};