blob: ce050a4eff18f5a64043666dedb93a2ea366056b [file] [log] [blame]
Xiaozhe Shi7870f482013-01-10 15:14:50 -08001/* Copyright (c) 2012-2013, 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
David Keitel299548f2013-03-19 17:26:26 -070025 pm8941_misc: qcom,misc@900 {
26 compatible = "qcom,qpnp-misc";
27 reg = <0x900 0x100>;
28 };
29
Xiaozhe Shi92699082013-03-06 15:22:05 -080030 qcom,revid@100 {
31 compatible = "qcom,qpnp-revid";
32 reg = <0x100 0x100>;
33 };
34
David Collinsfaafdf52012-10-10 17:10:22 -070035 qcom,temp-alarm@2400 {
36 compatible = "qcom,qpnp-temp-alarm";
37 reg = <0x2400 0x100>;
38 interrupts = <0x0 0x24 0x0>;
39 label = "pm8941_tz";
40 qcom,channel-num = <8>;
41 qcom,threshold-set = <0>;
42 };
43
Anirudh Ghayal19cf4982012-07-16 11:10:17 +053044 qcom,power-on@800 {
45 compatible = "qcom,qpnp-power-on";
46 reg = <0x800 0x100>;
Anirudh Ghayald44f5aa2012-08-02 11:49:04 +053047 interrupts = <0x0 0x8 0x0>,
48 <0x0 0x8 0x1>,
Mohan Pallakab7a1beb2013-06-13 13:04:36 +053049 <0x0 0x8 0x4>,
50 <0x0 0x8 0x5>;
51 interrupt-names = "kpdpwr", "resin",
52 "resin-bark", "kpdpwr-resin-bark";
Anirudh Ghayald44f5aa2012-08-02 11:49:04 +053053 qcom,pon-dbc-delay = <15625>;
Michael Bohane7204222012-09-07 10:21:18 -070054 qcom,system-reset;
Mohan Pallakab7a1beb2013-06-13 13:04:36 +053055 qcom,s3-debounce = <32>;
Anirudh Ghayald44f5aa2012-08-02 11:49:04 +053056
57 qcom,pon_1 {
58 qcom,pon-type = <0>;
59 qcom,pull-up = <1>;
60 linux,code = <116>;
61 };
62
63 qcom,pon_2 {
64 qcom,pon-type = <1>;
Anirudh Ghayal579709662012-08-13 12:57:05 +053065 qcom,support-reset = <1>;
Anirudh Ghayald44f5aa2012-08-02 11:49:04 +053066 qcom,pull-up = <1>;
Anirudh Ghayal579709662012-08-13 12:57:05 +053067 qcom,s1-timer = <0>;
68 qcom,s2-timer = <2000>;
69 qcom,s2-type = <1>;
Anirudh Ghayald44f5aa2012-08-02 11:49:04 +053070 linux,code = <114>;
71 };
Mohan Pallakab7a1beb2013-06-13 13:04:36 +053072
73 qcom,pon_3 {
74 qcom,pon-type = <3>;
75 qcom,support-reset = <1>;
76 qcom,s1-timer = <6720>;
77 qcom,s2-timer = <2000>;
78 qcom,s2-type = <7>;
79 qcom,pull-up = <1>;
80 };
Anirudh Ghayal19cf4982012-07-16 11:10:17 +053081 };
82
David Collins3f378292013-01-23 14:23:18 -080083 bif_ctrl: qcom,bsi@1b00 {
84 compatible = "qcom,qpnp-bsi";
85 reg = <0x1b00 0x100>,
86 <0x1208 0x1>;
87 reg-names = "bsi-base", "batt-id-status";
88 label = "pm8941-bsi";
89 interrupts = <0x0 0x1b 0x0>,
90 <0x0 0x1b 0x1>,
91 <0x0 0x1b 0x2>,
92 <0x0 0x12 0x0>;
93 interrupt-names = "err",
94 "rx",
95 "tx",
96 "batt-present";
97 qcom,channel-num = <0x31>;
98 qcom,pullup-ohms = <100000>;
99 qcom,vref-microvolts = <1800000>;
100 qcom,min-clock-period = <1000>;
101 qcom,max-clock-period = <160000>;
102 qcom,sample-rate = <4>;
103 };
104
David Collinsd5081c32013-03-11 13:21:00 -0700105 pm8941_coincell: qcom,coincell@2800 {
106 compatible = "qcom,qpnp-coincell";
107 reg = <0x2800 0x100>;
108 };
109
Xiaozhe Shic40b3972012-11-30 14:11:16 -0800110 pm8941_bms: qcom,bms {
111 spmi-dev-container;
112 compatible = "qcom,qpnp-bms";
Xiaozhe Shi3d0e3662012-08-23 18:00:04 -0700113 #address-cells = <1>;
114 #size-cells = <1>;
Xiaozhe Shi03a44bf2012-11-12 15:59:27 -0800115 status = "disabled";
Xiaozhe Shi3d0e3662012-08-23 18:00:04 -0700116
Xiaozhe Shi9bd24622013-01-23 15:54:54 -0800117 qcom,r-sense-uohm = <10000>;
118 qcom,v-cutoff-uv = <3400000>;
119 qcom,max-voltage-uv = <4200000>;
Xiaozhe Shic320cf22013-04-01 16:08:28 -0700120 qcom,r-conn-mohm = <0>;
Xiaozhe Shi9bd24622013-01-23 15:54:54 -0800121 qcom,shutdown-soc-valid-limit = <20>;
Xiaozhe Shi561ebf72013-03-25 13:51:27 -0700122 qcom,adjust-soc-low-threshold = <15>;
Xiaozhe Shi9bd24622013-01-23 15:54:54 -0800123 qcom,ocv-voltage-high-threshold-uv = <3750000>;
124 qcom,ocv-voltage-low-threshold-uv = <3650000>;
125 qcom,low-soc-calculate-soc-threshold = <15>;
126 qcom,low-soc-calculate-soc-ms = <5000>;
127 qcom,calculate-soc-ms = <20000>;
128 qcom,chg-term-ua = <100000>;
129 qcom,batt-type = <0>;
Xiaozhe Shi4be85782013-02-22 17:33:40 -0800130 qcom,low-voltage-threshold = <3420000>;
Xiaozhe Shi535494d2013-04-05 12:27:51 -0700131 qcom,tm-temp-margin = <5000>;
Xiaozhe Shi0ac7a002013-03-26 13:14:03 -0700132 qcom,low-ocv-correction-limit-uv = <100>;
133 qcom,high-ocv-correction-limit-uv = <50>;
134 qcom,hold-soc-est = <3>;
Xiaozhe Shic40b3972012-11-30 14:11:16 -0800135
136 qcom,bms-iadc@3800 {
137 reg = <0x3800 0x100>;
138 };
139
140 qcom,bms-bms@4000 {
141 reg = <0x4000 0x100>;
142 interrupts = <0x0 0x40 0x0>,
143 <0x0 0x40 0x1>,
144 <0x0 0x40 0x2>,
145 <0x0 0x40 0x3>,
146 <0x0 0x40 0x4>,
147 <0x0 0x40 0x5>,
148 <0x0 0x40 0x6>,
149 <0x0 0x40 0x7>;
150
151 interrupt-names = "vsense_for_r",
152 "vsense_avg",
153 "sw_cc_thr",
154 "ocv_thr",
155 "charge_begin",
156 "good_ocv",
157 "ocv_for_r",
158 "cc_thr";
159 };
Xiaozhe Shi3d0e3662012-08-23 18:00:04 -0700160 };
161
Michael Bohanee1f8fe2012-08-03 18:32:16 -0700162 clkdiv@5b00 {
163 reg = <0x5b00 0x100>;
164 compatible = "qcom,qpnp-clkdiv";
165 qcom,cxo-freq = <19200000>;
166 };
167
168 clkdiv@5c00 {
169 reg = <0x5c00 0x100>;
170 compatible = "qcom,qpnp-clkdiv";
171 qcom,cxo-freq = <19200000>;
172 };
173
174 clkdiv@5d00 {
175 reg = <0x5d00 0x1000>;
176 compatible = "qcom,qpnp-clkdiv";
177 qcom,cxo-freq = <19200000>;
178 };
179
David Keitela7a71732012-09-24 12:30:44 -0700180 pm8941_chg: qcom,charger {
David Keitel6adff102012-07-27 14:24:00 -0700181 spmi-dev-container;
182 compatible = "qcom,qpnp-charger";
183 #address-cells = <1>;
184 #size-cells = <1>;
David Keitela7a71732012-09-24 12:30:44 -0700185 status = "disabled";
David Keitel6adff102012-07-27 14:24:00 -0700186
David Keitele89d4782013-03-27 11:29:59 -0700187 qcom,vddmax-mv = <4200>;
Xiaozhe Shi22aa0cd2013-05-28 10:45:12 -0700188 qcom,vddsafe-mv = <4230>;
David Keitel3c62b472013-05-06 15:38:11 -0700189 qcom,vinmin-mv = <4300>;
David Keitele89d4782013-03-27 11:29:59 -0700190 qcom,ibatmax-ma = <1500>;
David Keitel9fd07382013-05-02 15:37:44 -0700191 qcom,ibatterm-ma = <100>;
David Keitele89d4782013-03-27 11:29:59 -0700192 qcom,ibatsafe-ma = <1500>;
193 qcom,thermal-mitigation = <1500 700 600 325>;
194 qcom,cool-bat-decidegc = <100>;
195 qcom,cool-bat-mv = <4100>;
196 qcom,ibatmax-warm-ma = <350>;
197 qcom,warm-bat-decidegc = <450>;
198 qcom,warm-bat-mv = <4100>;
199 qcom,ibatmax-cool-ma = <350>;
David Keitel9fd07382013-05-02 15:37:44 -0700200 qcom,vbatdet-delta-mv = <100>;
David Keitelb0b63632013-03-27 15:17:33 -0700201 qcom,tchg-mins = <150>;
David Keitel6adff102012-07-27 14:24:00 -0700202
David Keitele89d4782013-03-27 11:29:59 -0700203 qcom,chgr@1000 {
David Keitela7a71732012-09-24 12:30:44 -0700204 status = "disabled";
David Keitel6adff102012-07-27 14:24:00 -0700205 reg = <0x1000 0x100>;
206 interrupts = <0x0 0x10 0x0>,
207 <0x0 0x10 0x1>,
208 <0x0 0x10 0x2>,
209 <0x0 0x10 0x3>,
210 <0x0 0x10 0x4>,
211 <0x0 0x10 0x5>,
212 <0x0 0x10 0x6>,
213 <0x0 0x10 0x7>;
214
David Keitel0cba0992012-10-30 06:21:10 -0700215 interrupt-names = "vbat-det-lo",
David Keitel6adff102012-07-27 14:24:00 -0700216 "vbat-det-hi",
David Keitel0cba0992012-10-30 06:21:10 -0700217 "chgwdog",
218 "state-change",
219 "trkl-chg-on",
220 "fast-chg-on",
221 "chg-failed",
222 "chg-done";
David Keitel6adff102012-07-27 14:24:00 -0700223 };
224
David Keitele89d4782013-03-27 11:29:59 -0700225 qcom,buck@1100 {
David Keitela7a71732012-09-24 12:30:44 -0700226 status = "disabled";
David Keitel6adff102012-07-27 14:24:00 -0700227 reg = <0x1100 0x100>;
228 interrupts = <0x0 0x11 0x0>,
229 <0x0 0x11 0x1>,
230 <0x0 0x11 0x2>,
231 <0x0 0x11 0x3>,
232 <0x0 0x11 0x4>,
233 <0x0 0x11 0x5>,
234 <0x0 0x11 0x6>;
235
David Keitel0cba0992012-10-30 06:21:10 -0700236 interrupt-names = "vbat-ov",
237 "vreg-ov",
David Keitel6adff102012-07-27 14:24:00 -0700238 "overtemp",
David Keitel0cba0992012-10-30 06:21:10 -0700239 "vchg-loop",
240 "ichg-loop",
241 "ibat-loop",
242 "vdd-loop";
David Keitel6adff102012-07-27 14:24:00 -0700243 };
244
David Keitele89d4782013-03-27 11:29:59 -0700245 qcom,bat-if@1200 {
David Keitela7a71732012-09-24 12:30:44 -0700246 status = "disabled";
David Keitel6adff102012-07-27 14:24:00 -0700247 reg = <0x1200 0x100>;
248 interrupts = <0x0 0x12 0x0>,
249 <0x0 0x12 0x1>,
250 <0x0 0x12 0x2>,
251 <0x0 0x12 0x3>,
252 <0x0 0x12 0x4>;
253
David Keitel0cba0992012-10-30 06:21:10 -0700254 interrupt-names = "batt-pres",
David Keitel6adff102012-07-27 14:24:00 -0700255 "bat-temp-ok",
David Keitel0cba0992012-10-30 06:21:10 -0700256 "bat-fet-on",
257 "vcp-on",
258 "psi";
259
David Keitel6adff102012-07-27 14:24:00 -0700260 };
261
David Keitela2f8ef9a2013-05-16 19:32:52 -0700262 pm8941_chg_otg: qcom,usb-chgpth@1300 {
David Keitela7a71732012-09-24 12:30:44 -0700263 status = "disabled";
David Keitel6adff102012-07-27 14:24:00 -0700264 reg = <0x1300 0x100>;
265 interrupts = <0 0x13 0x0>,
266 <0 0x13 0x1>,
267 <0x0 0x13 0x2>;
268
David Keitel4429b1f2012-10-18 10:42:50 -0700269 interrupt-names = "coarse-det-usb",
270 "usbin-valid",
David Keitel6adff102012-07-27 14:24:00 -0700271 "chg-gone";
272 };
273
David Keitele89d4782013-03-27 11:29:59 -0700274 qcom,dc-chgpth@1400 {
David Keitela7a71732012-09-24 12:30:44 -0700275 status = "disabled";
David Keitel6adff102012-07-27 14:24:00 -0700276 reg = <0x1400 0x100>;
277 interrupts = <0x0 0x14 0x0>,
278 <0x0 0x14 0x1>;
279
David Keitel0cba0992012-10-30 06:21:10 -0700280 interrupt-names = "coarse-det-dc",
281 "dcin-valid";
David Keitel6adff102012-07-27 14:24:00 -0700282 };
283
David Keitela2f8ef9a2013-05-16 19:32:52 -0700284 pm8941_chg_boost: qcom,boost@1500 {
David Keitela7a71732012-09-24 12:30:44 -0700285 status = "disabled";
David Keitel6adff102012-07-27 14:24:00 -0700286 reg = <0x1500 0x100>;
287 interrupts = <0x0 0x15 0x0>,
288 <0x0 0x15 0x1>;
289
David Keitel0cba0992012-10-30 06:21:10 -0700290 interrupt-names = "boost-pwr-ok",
291 "limit-error";
David Keitel6adff102012-07-27 14:24:00 -0700292 };
293
294 qcom,chg-misc@1600 {
David Keitela7a71732012-09-24 12:30:44 -0700295 status = "disabled";
David Keitel6adff102012-07-27 14:24:00 -0700296 reg = <0x1600 0x100>;
297 };
298 };
299
Michael Bohand5ea7242012-10-01 18:01:51 -0700300 pm8941_gpios: gpios {
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700301 spmi-dev-container;
302 compatible = "qcom,qpnp-pin";
303 gpio-controller;
304 #gpio-cells = <2>;
Michael Bohan8b909b42012-04-18 17:39:12 -0700305 #address-cells = <1>;
306 #size-cells = <1>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700307 label = "pm8941-gpio";
Michael Bohan8b909b42012-04-18 17:39:12 -0700308
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700309 gpio@c000 {
310 reg = <0xc000 0x100>;
311 qcom,pin-num = <1>;
Michael Bohan8b909b42012-04-18 17:39:12 -0700312 };
Michael Bohan5085a052012-06-11 13:27:34 -0700313
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700314 gpio@c100 {
315 reg = <0xc100 0x100>;
316 qcom,pin-num = <2>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700317 };
Michael Bohan5085a052012-06-11 13:27:34 -0700318
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700319 gpio@c200 {
320 reg = <0xc200 0x100>;
321 qcom,pin-num = <3>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700322 };
Michael Bohan5085a052012-06-11 13:27:34 -0700323
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700324 gpio@c300 {
325 reg = <0xc300 0x100>;
326 qcom,pin-num = <4>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700327 };
Michael Bohan5085a052012-06-11 13:27:34 -0700328
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700329 gpio@c400 {
330 reg = <0xc400 0x100>;
331 qcom,pin-num = <5>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700332 };
Michael Bohan5085a052012-06-11 13:27:34 -0700333
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700334 gpio@c500 {
335 reg = <0xc500 0x100>;
336 qcom,pin-num = <6>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700337 };
Michael Bohan5085a052012-06-11 13:27:34 -0700338
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700339 gpio@c600 {
340 reg = <0xc600 0x100>;
341 qcom,pin-num = <7>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700342 };
Michael Bohan5085a052012-06-11 13:27:34 -0700343
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700344 gpio@c700 {
345 reg = <0xc700 0x100>;
346 qcom,pin-num = <8>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700347 };
Michael Bohan5085a052012-06-11 13:27:34 -0700348
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700349 gpio@c800 {
350 reg = <0xc800 0x100>;
351 qcom,pin-num = <9>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700352 };
Michael Bohan5085a052012-06-11 13:27:34 -0700353
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700354 gpio@c900 {
355 reg = <0xc900 0x100>;
356 qcom,pin-num = <10>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700357 };
358
359 gpio@ca00 {
360 reg = <0xca00 0x100>;
361 qcom,pin-num = <11>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700362 };
363
364 gpio@cb00 {
365 reg = <0xcb00 0x100>;
366 qcom,pin-num = <12>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700367 };
368
369 gpio@cc00 {
370 reg = <0xcc00 0x100>;
371 qcom,pin-num = <13>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700372 };
373
374 gpio@cd00 {
375 reg = <0xcd00 0x100>;
376 qcom,pin-num = <14>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700377 };
378
379 gpio@ce00 {
380 reg = <0xce00 0x100>;
381 qcom,pin-num = <15>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700382 };
383
384 gpio@cf00 {
385 reg = <0xcf00 0x100>;
386 qcom,pin-num = <16>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700387 };
388
389 gpio@d000 {
390 reg = <0xd000 0x100>;
391 qcom,pin-num = <17>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700392 };
393
394 gpio@d100 {
395 reg = <0xd100 0x100>;
396 qcom,pin-num = <18>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700397 };
398
399 gpio@d200 {
400 reg = <0xd200 0x100>;
401 qcom,pin-num = <19>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700402 };
403
404 gpio@d300 {
405 reg = <0xd300 0x100>;
406 qcom,pin-num = <20>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700407 };
408
409 gpio@d400 {
410 reg = <0xd400 0x100>;
411 qcom,pin-num = <21>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700412 };
413
414 gpio@d500 {
415 reg = <0xd500 0x100>;
416 qcom,pin-num = <22>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700417 };
418
419 gpio@d600 {
420 reg = <0xd600 0x100>;
421 qcom,pin-num = <23>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700422 };
423
424 gpio@d700 {
425 reg = <0xd700 0x100>;
426 qcom,pin-num = <24>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700427 };
428
429 gpio@d800 {
430 reg = <0xd800 0x100>;
431 qcom,pin-num = <25>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700432 };
433
434 gpio@d900 {
435 reg = <0xd900 0x100>;
436 qcom,pin-num = <26>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700437 };
438
439 gpio@da00 {
440 reg = <0xda00 0x100>;
441 qcom,pin-num = <27>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700442 };
443
444 gpio@db00 {
445 reg = <0xdb00 0x100>;
446 qcom,pin-num = <28>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700447 };
448
449 gpio@dc00 {
450 reg = <0xdc00 0x100>;
451 qcom,pin-num = <29>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700452 };
453
454 gpio@dd00 {
455 reg = <0xdd00 0x100>;
456 qcom,pin-num = <30>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700457 };
458
459 gpio@de00 {
460 reg = <0xde00 0x100>;
461 qcom,pin-num = <31>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700462 };
463
464 gpio@df00 {
465 reg = <0xdf00 0x100>;
466 qcom,pin-num = <32>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700467 };
468
469 gpio@e000 {
470 reg = <0xe000 0x100>;
471 qcom,pin-num = <33>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700472 };
473
474 gpio@e100 {
475 reg = <0xe100 0x100>;
476 qcom,pin-num = <34>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700477 };
478
479 gpio@e200 {
480 reg = <0xe200 0x100>;
481 qcom,pin-num = <35>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700482 };
483
484 gpio@e300 {
485 reg = <0xe300 0x100>;
486 qcom,pin-num = <36>;
Michael Bohan5085a052012-06-11 13:27:34 -0700487 };
Michael Bohan8b909b42012-04-18 17:39:12 -0700488 };
489
Michael Bohand5ea7242012-10-01 18:01:51 -0700490 pm8941_mpps: mpps {
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700491 spmi-dev-container;
492 compatible = "qcom,qpnp-pin";
493 gpio-controller;
494 #gpio-cells = <2>;
David Collins153d45a2012-03-26 11:57:50 -0700495 #address-cells = <1>;
496 #size-cells = <1>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700497 label = "pm8941-mpp";
David Collins153d45a2012-03-26 11:57:50 -0700498
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700499 mpp@a000 {
David Collins32f825f2012-06-06 09:49:24 -0700500 reg = <0xa000 0x100>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700501 qcom,pin-num = <1>;
David Collins153d45a2012-03-26 11:57:50 -0700502 };
503
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700504 mpp@a100 {
505 reg = <0xa100 0x100>;
506 qcom,pin-num = <2>;
David Collins153d45a2012-03-26 11:57:50 -0700507 };
508
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700509 mpp@a200 {
510 reg = <0xa200 0x100>;
511 qcom,pin-num = <3>;
David Collins153d45a2012-03-26 11:57:50 -0700512 };
513
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700514 mpp@a300 {
515 reg = <0xa300 0x100>;
516 qcom,pin-num = <4>;
David Collins153d45a2012-03-26 11:57:50 -0700517 };
518
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700519 mpp@a400 {
520 reg = <0xa400 0x100>;
521 qcom,pin-num = <5>;
David Collins153d45a2012-03-26 11:57:50 -0700522 };
523
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700524 mpp@a500 {
525 reg = <0xa500 0x100>;
526 qcom,pin-num = <6>;
David Collins153d45a2012-03-26 11:57:50 -0700527 };
528
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700529 mpp@a600 {
530 reg = <0xa600 0x100>;
531 qcom,pin-num = <7>;
David Collins153d45a2012-03-26 11:57:50 -0700532 };
533
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700534 mpp@a700 {
535 reg = <0xa700 0x100>;
536 qcom,pin-num = <8>;
David Collins153d45a2012-03-26 11:57:50 -0700537 };
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700538 };
Ashay Jaiswal93ad9702012-07-17 15:12:33 +0530539
540 qcom,pm8941_rtc {
541 spmi-dev-container;
542 compatible = "qcom,qpnp-rtc";
543 #address-cells = <1>;
544 #size-cells = <1>;
545 qcom,qpnp-rtc-write = <0>;
546 qcom,qpnp-rtc-alarm-pwrup = <0>;
547
548 qcom,pm8941_rtc_rw@6000 {
549 reg = <0x6000 0x100>;
550 };
551 qcom,pm8941_rtc_alarm@6100 {
552 reg = <0x6100 0x100>;
553 interrupts = <0x0 0x61 0x1>;
554 };
555 };
Siddartha Mohanadoss3696ee82012-07-20 14:47:04 -0700556
557 vadc@3100 {
558 compatible = "qcom,qpnp-vadc";
559 reg = <0x3100 0x100>;
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800560 #address-cells = <1>;
561 #size-cells = <0>;
Siddartha Mohanadoss3696ee82012-07-20 14:47:04 -0700562 interrupts = <0x0 0x31 0x0>;
Siddartha Mohanadoss12109952012-11-20 14:57:51 -0800563 interrupt-names = "eoc-int-en-set";
Siddartha Mohanadoss3696ee82012-07-20 14:47:04 -0700564 qcom,adc-bit-resolution = <15>;
565 qcom,adc-vdd-reference = <1800>;
566
567 chan@0 {
568 label = "usb_in";
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800569 reg = <0>;
Siddartha Mohanadoss3696ee82012-07-20 14:47:04 -0700570 qcom,decimation = <0>;
Siddartha Mohanadossf5367672012-09-04 22:09:31 -0700571 qcom,pre-div-channel-scaling = <4>;
Siddartha Mohanadoss3696ee82012-07-20 14:47:04 -0700572 qcom,calibration-type = "absolute";
573 qcom,scale-function = <0>;
574 qcom,hw-settle-time = <0>;
575 qcom,fast-avg-setup = <0>;
576 };
Siddartha Mohanadosse6440cf2012-08-08 17:08:18 -0700577
Siddartha Mohanadoss5a5d5512012-09-06 20:25:42 -0700578 chan@1 {
579 label = "dc_in";
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800580 reg = <1>;
Siddartha Mohanadoss5a5d5512012-09-06 20:25:42 -0700581 qcom,decimation = <0>;
582 qcom,pre-div-channel-scaling = <4>;
583 qcom,calibration-type = "absolute";
584 qcom,scale-function = <0>;
585 qcom,hw-settle-time = <0>;
586 qcom,fast-avg-setup = <0>;
587 };
588
Siddartha Mohanadosse6440cf2012-08-08 17:08:18 -0700589 chan@2 {
590 label = "vchg_sns";
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800591 reg = <2>;
Siddartha Mohanadosse6440cf2012-08-08 17:08:18 -0700592 qcom,decimation = <0>;
Siddartha Mohanadossf5367672012-09-04 22:09:31 -0700593 qcom,pre-div-channel-scaling = <3>;
Siddartha Mohanadosse6440cf2012-08-08 17:08:18 -0700594 qcom,calibration-type = "absolute";
595 qcom,scale-function = <0>;
596 qcom,hw-settle-time = <0>;
597 qcom,fast-avg-setup = <0>;
598 };
599
Siddartha Mohanadoss5a5d5512012-09-06 20:25:42 -0700600 chan@3 {
Siddartha Mohanadoss94b38292013-05-09 13:09:12 -0700601 label = "spare1_div3";
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800602 reg = <3>;
Siddartha Mohanadoss5a5d5512012-09-06 20:25:42 -0700603 qcom,decimation = <0>;
Siddartha Mohanadoss94b38292013-05-09 13:09:12 -0700604 qcom,pre-div-channel-scaling = <1>;
Siddartha Mohanadoss5a5d5512012-09-06 20:25:42 -0700605 qcom,calibration-type = "absolute";
606 qcom,scale-function = <0>;
607 qcom,hw-settle-time = <0>;
608 qcom,fast-avg-setup = <0>;
609 };
610
611 chan@4 {
Siddartha Mohanadoss94b38292013-05-09 13:09:12 -0700612 label = "usb_id_mv";
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800613 reg = <4>;
Siddartha Mohanadoss5a5d5512012-09-06 20:25:42 -0700614 qcom,decimation = <0>;
Siddartha Mohanadoss94b38292013-05-09 13:09:12 -0700615 qcom,pre-div-channel-scaling = <1>;
Siddartha Mohanadoss5a5d5512012-09-06 20:25:42 -0700616 qcom,calibration-type = "absolute";
617 qcom,scale-function = <0>;
618 qcom,hw-settle-time = <0>;
619 qcom,fast-avg-setup = <0>;
620 };
621
Siddartha Mohanadosse6440cf2012-08-08 17:08:18 -0700622 chan@5 {
623 label = "vcoin";
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800624 reg = <5>;
Siddartha Mohanadosse6440cf2012-08-08 17:08:18 -0700625 qcom,decimation = <0>;
Siddartha Mohanadossf5367672012-09-04 22:09:31 -0700626 qcom,pre-div-channel-scaling = <1>;
Siddartha Mohanadosse6440cf2012-08-08 17:08:18 -0700627 qcom,calibration-type = "absolute";
628 qcom,scale-function = <0>;
629 qcom,hw-settle-time = <0>;
630 qcom,fast-avg-setup = <0>;
631 };
632
633 chan@6 {
634 label = "vbat_sns";
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800635 reg = <6>;
Siddartha Mohanadosse6440cf2012-08-08 17:08:18 -0700636 qcom,decimation = <0>;
Siddartha Mohanadossf5367672012-09-04 22:09:31 -0700637 qcom,pre-div-channel-scaling = <1>;
Siddartha Mohanadosse6440cf2012-08-08 17:08:18 -0700638 qcom,calibration-type = "absolute";
639 qcom,scale-function = <0>;
640 qcom,hw-settle-time = <0>;
641 qcom,fast-avg-setup = <0>;
642 };
643
644 chan@7 {
645 label = "vph_pwr";
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800646 reg = <7>;
Siddartha Mohanadosse6440cf2012-08-08 17:08:18 -0700647 qcom,decimation = <0>;
Siddartha Mohanadossf5367672012-09-04 22:09:31 -0700648 qcom,pre-div-channel-scaling = <1>;
Siddartha Mohanadosse6440cf2012-08-08 17:08:18 -0700649 qcom,calibration-type = "absolute";
650 qcom,scale-function = <0>;
651 qcom,hw-settle-time = <0>;
652 qcom,fast-avg-setup = <0>;
653 };
654
Siddartha Mohanadoss5a5d5512012-09-06 20:25:42 -0700655 chan@8 {
656 label = "die_temp";
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800657 reg = <8>;
Siddartha Mohanadoss5a5d5512012-09-06 20:25:42 -0700658 qcom,decimation = <0>;
659 qcom,pre-div-channel-scaling = <0>;
660 qcom,calibration-type = "absolute";
661 qcom,scale-function = <3>;
662 qcom,hw-settle-time = <0>;
663 qcom,fast-avg-setup = <0>;
664 };
665
Siddartha Mohanadosse6440cf2012-08-08 17:08:18 -0700666 chan@9 {
667 label = "ref_625mv";
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800668 reg = <9>;
Siddartha Mohanadosse6440cf2012-08-08 17:08:18 -0700669 qcom,decimation = <0>;
Siddartha Mohanadossf5367672012-09-04 22:09:31 -0700670 qcom,pre-div-channel-scaling = <0>;
Siddartha Mohanadosse6440cf2012-08-08 17:08:18 -0700671 qcom,calibration-type = "absolute";
672 qcom,scale-function = <0>;
673 qcom,hw-settle-time = <0>;
674 qcom,fast-avg-setup = <0>;
675 };
676
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800677 chan@a {
Siddartha Mohanadossf5367672012-09-04 22:09:31 -0700678 label = "ref_1250v";
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800679 reg = <0xa>;
Siddartha Mohanadosse6440cf2012-08-08 17:08:18 -0700680 qcom,decimation = <0>;
Siddartha Mohanadossf5367672012-09-04 22:09:31 -0700681 qcom,pre-div-channel-scaling = <0>;
Siddartha Mohanadosse6440cf2012-08-08 17:08:18 -0700682 qcom,calibration-type = "absolute";
683 qcom,scale-function = <0>;
684 qcom,hw-settle-time = <0>;
685 qcom,fast-avg-setup = <0>;
686 };
Siddartha Mohanadoss5a5d5512012-09-06 20:25:42 -0700687
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800688 chan@30 {
Siddartha Mohanadoss5a5d5512012-09-06 20:25:42 -0700689 label = "batt_therm";
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800690 reg = <0x30>;
Siddartha Mohanadoss5a5d5512012-09-06 20:25:42 -0700691 qcom,decimation = <0>;
692 qcom,pre-div-channel-scaling = <0>;
693 qcom,calibration-type = "ratiometric";
694 qcom,scale-function = <1>;
Siddartha Mohanadoss74cece62013-02-22 10:07:30 -0800695 qcom,hw-settle-time = <2>;
Siddartha Mohanadoss5a5d5512012-09-06 20:25:42 -0700696 qcom,fast-avg-setup = <0>;
697 };
698
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800699 chan@31 {
Siddartha Mohanadoss5a5d5512012-09-06 20:25:42 -0700700 label = "batt_id";
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800701 reg = <0x31>;
Siddartha Mohanadoss5a5d5512012-09-06 20:25:42 -0700702 qcom,decimation = <0>;
703 qcom,pre-div-channel-scaling = <0>;
704 qcom,calibration-type = "ratiometric";
705 qcom,scale-function = <0>;
Siddartha Mohanadoss74cece62013-02-22 10:07:30 -0800706 qcom,hw-settle-time = <2>;
Siddartha Mohanadoss5a5d5512012-09-06 20:25:42 -0700707 qcom,fast-avg-setup = <0>;
708 };
709
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800710 chan@b2 {
Siddartha Mohanadoss3601d232012-09-14 16:01:39 -0700711 label = "xo_therm_pu2";
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800712 reg = <0xb2>;
Siddartha Mohanadoss5a5d5512012-09-06 20:25:42 -0700713 qcom,decimation = <0>;
714 qcom,pre-div-channel-scaling = <0>;
715 qcom,calibration-type = "ratiometric";
716 qcom,scale-function = <4>;
Siddartha Mohanadoss74cece62013-02-22 10:07:30 -0800717 qcom,hw-settle-time = <2>;
Siddartha Mohanadoss5a5d5512012-09-06 20:25:42 -0700718 qcom,fast-avg-setup = <0>;
719 };
Siddartha Mohanadoss0a918562012-09-13 14:26:54 -0700720
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800721 chan@b3 {
Siddartha Mohanadoss0a918562012-09-13 14:26:54 -0700722 label = "msm_therm";
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800723 reg = <0xb3>;
Siddartha Mohanadoss0a918562012-09-13 14:26:54 -0700724 qcom,decimation = <0>;
725 qcom,pre-div-channel-scaling = <0>;
726 qcom,calibration-type = "ratiometric";
727 qcom,scale-function = <2>;
Siddartha Mohanadoss74cece62013-02-22 10:07:30 -0800728 qcom,hw-settle-time = <2>;
Siddartha Mohanadoss0a918562012-09-13 14:26:54 -0700729 qcom,fast-avg-setup = <0>;
730 };
731
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800732 chan@b4 {
Siddartha Mohanadoss0a918562012-09-13 14:26:54 -0700733 label = "emmc_therm";
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800734 reg = <0xb4>;
Siddartha Mohanadoss0a918562012-09-13 14:26:54 -0700735 qcom,decimation = <0>;
736 qcom,pre-div-channel-scaling = <0>;
737 qcom,calibration-type = "ratiometric";
738 qcom,scale-function = <2>;
Siddartha Mohanadoss74cece62013-02-22 10:07:30 -0800739 qcom,hw-settle-time = <2>;
Siddartha Mohanadoss0a918562012-09-13 14:26:54 -0700740 qcom,fast-avg-setup = <0>;
741 };
742
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800743 chan@b5 {
Siddartha Mohanadoss54124362013-03-26 19:53:29 -0700744 label = "pa_therm0";
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800745 reg = <0xb5>;
Siddartha Mohanadoss0a918562012-09-13 14:26:54 -0700746 qcom,decimation = <0>;
747 qcom,pre-div-channel-scaling = <0>;
748 qcom,calibration-type = "ratiometric";
749 qcom,scale-function = <2>;
Siddartha Mohanadoss74cece62013-02-22 10:07:30 -0800750 qcom,hw-settle-time = <2>;
Siddartha Mohanadoss0a918562012-09-13 14:26:54 -0700751 qcom,fast-avg-setup = <0>;
752 };
753
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800754 chan@b7 {
Siddartha Mohanadoss54124362013-03-26 19:53:29 -0700755 label = "pa_therm1";
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800756 reg = <0xb7>;
Siddartha Mohanadoss0a918562012-09-13 14:26:54 -0700757 qcom,decimation = <0>;
758 qcom,pre-div-channel-scaling = <0>;
759 qcom,calibration-type = "ratiometric";
760 qcom,scale-function = <2>;
Siddartha Mohanadoss74cece62013-02-22 10:07:30 -0800761 qcom,hw-settle-time = <2>;
Siddartha Mohanadoss0a918562012-09-13 14:26:54 -0700762 qcom,fast-avg-setup = <0>;
763 };
764
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800765 chan@b8 {
Siddartha Mohanadoss0a918562012-09-13 14:26:54 -0700766 label = "quiet_therm";
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800767 reg = <0xb8>;
Siddartha Mohanadoss0a918562012-09-13 14:26:54 -0700768 qcom,decimation = <0>;
769 qcom,pre-div-channel-scaling = <0>;
770 qcom,calibration-type = "ratiometric";
771 qcom,scale-function = <2>;
Siddartha Mohanadoss74cece62013-02-22 10:07:30 -0800772 qcom,hw-settle-time = <2>;
Siddartha Mohanadoss0a918562012-09-13 14:26:54 -0700773 qcom,fast-avg-setup = <0>;
774 };
Siddartha Mohanadossa406dd42012-11-20 16:43:47 -0800775
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800776 chan@b9 {
Siddartha Mohanadossa406dd42012-11-20 16:43:47 -0800777 label = "usb_id";
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800778 reg = <0xb9>;
Siddartha Mohanadossa406dd42012-11-20 16:43:47 -0800779 qcom,decimation = <0>;
780 qcom,pre-div-channel-scaling = <0>;
781 qcom,calibration-type = "ratiometric";
782 qcom,scale-function = <0>;
Siddartha Mohanadoss74cece62013-02-22 10:07:30 -0800783 qcom,hw-settle-time = <2>;
Siddartha Mohanadossa406dd42012-11-20 16:43:47 -0800784 qcom,fast-avg-setup = <0>;
785 };
Siddartha Mohanadoss3cb76152013-04-12 16:17:02 -0700786
787 chan@39 {
788 label = "usb_id_nopull";
789 reg = <0x39>;
790 qcom,decimation = <0>;
791 qcom,pre-div-channel-scaling = <0>;
792 qcom,calibration-type = "ratiometric";
793 qcom,scale-function = <0>;
794 qcom,hw-settle-time = <2>;
795 qcom,fast-avg-setup = <0>;
796 };
Siddartha Mohanadoss3696ee82012-07-20 14:47:04 -0700797 };
Siddartha Mohanadossb11538e2012-07-27 12:06:22 -0700798
799 iadc@3600 {
800 compatible = "qcom,qpnp-iadc";
801 reg = <0x3600 0x100>;
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800802 #address-cells = <1>;
803 #size-cells = <0>;
Siddartha Mohanadossb11538e2012-07-27 12:06:22 -0700804 interrupts = <0x0 0x36 0x0>;
Siddartha Mohanadoss12109952012-11-20 14:57:51 -0800805 interrupt-names = "eoc-int-en-set";
Siddartha Mohanadossb11538e2012-07-27 12:06:22 -0700806 qcom,adc-bit-resolution = <16>;
807 qcom,adc-vdd-reference = <1800>;
Siddartha Mohanadossb11538e2012-07-27 12:06:22 -0700808
809 chan@0 {
810 label = "internal_rsense";
Siddartha Mohanadoss96be0a02012-12-07 14:38:48 -0800811 reg = <0>;
Siddartha Mohanadossb11538e2012-07-27 12:06:22 -0700812 qcom,decimation = <0>;
813 qcom,pre-div-channel-scaling = <1>;
814 qcom,calibration-type = "absolute";
815 qcom,scale-function = <0>;
816 qcom,hw-settle-time = <0>;
817 qcom,fast-avg-setup = <0>;
818 };
819 };
Siddartha Mohanadoss7d1e9d82012-11-20 18:06:51 -0800820
821 qcom,vadc@3400 {
822 compatible = "qcom,qpnp-adc-tm";
823 reg = <0x3400 0x100>;
824 #address-cells = <1>;
825 #size-cells = <0>;
826 interrupts = <0x0 0x34 0x0>,
827 <0x0 0x34 0x3>,
828 <0x0 0x34 0x4>;
829 interrupt-names = "eoc-int-en-set",
830 "high-thr-en-set",
831 "low-thr-en-set";
832 qcom,adc-bit-resolution = <15>;
833 qcom,adc-vdd-reference = <1800>;
834
835 /* Channel Node */
836 chan@b9 {
837 label = "usb_id";
838 reg = <0xb9>;
839 qcom,decimation = <0>;
840 qcom,pre-div-channel-scaling = <0>;
841 qcom,calibration-type = "ratiometric";
842 qcom,scale-function = <2>;
Siddartha Mohanadoss74cece62013-02-22 10:07:30 -0800843 qcom,hw-settle-time = <2>;
Siddartha Mohanadoss1dacc2d2013-03-27 19:40:41 -0700844 qcom,fast-avg-setup = <3>;
Siddartha Mohanadoss7d1e9d82012-11-20 18:06:51 -0800845 qcom,btm-channel-number = <0x48>;
846 };
847
848 chan@30 {
849 label = "batt_therm";
850 reg = <0x30>;
851 qcom,decimation = <0>;
852 qcom,pre-div-channel-scaling = <0>;
853 qcom,calibration-type = "ratiometric";
854 qcom,scale-function = <1>;
Siddartha Mohanadoss74cece62013-02-22 10:07:30 -0800855 qcom,hw-settle-time = <2>;
Siddartha Mohanadoss1dacc2d2013-03-27 19:40:41 -0700856 qcom,fast-avg-setup = <3>;
Siddartha Mohanadoss7d1e9d82012-11-20 18:06:51 -0800857 qcom,btm-channel-number = <0x68>;
858 };
859
Siddartha Mohanadossb919e7b2013-03-22 09:50:40 -0700860 chan@8 {
861 label = "die_temp";
862 reg = <8>;
863 qcom,decimation = <0>;
864 qcom,pre-div-channel-scaling = <0>;
865 qcom,calibration-type = "absolute";
Siddartha Mohanadoss255bff62013-04-23 11:13:34 -0700866 qcom,scale-function = <3>;
Siddartha Mohanadossb919e7b2013-03-22 09:50:40 -0700867 qcom,hw-settle-time = <0>;
Siddartha Mohanadoss1dacc2d2013-03-27 19:40:41 -0700868 qcom,fast-avg-setup = <3>;
Siddartha Mohanadossa38ca952013-03-28 18:41:47 -0700869 qcom,btm-channel-number = <0x70>;
Siddartha Mohanadossb919e7b2013-03-22 09:50:40 -0700870 };
871
872 chan@6 {
873 label = "vbat_sns";
874 reg = <6>;
875 qcom,decimation = <0>;
876 qcom,pre-div-channel-scaling = <1>;
877 qcom,calibration-type = "absolute";
Siddartha Mohanadoss999f8082013-03-28 18:42:48 -0700878 qcom,scale-function = <0>;
Siddartha Mohanadossb919e7b2013-03-22 09:50:40 -0700879 qcom,hw-settle-time = <0>;
Siddartha Mohanadoss1dacc2d2013-03-27 19:40:41 -0700880 qcom,fast-avg-setup = <3>;
Siddartha Mohanadossa38ca952013-03-28 18:41:47 -0700881 qcom,btm-channel-number = <0x78>;
Siddartha Mohanadossb919e7b2013-03-22 09:50:40 -0700882 };
883
Siddartha Mohanadoss7d1e9d82012-11-20 18:06:51 -0800884 chan@b5 {
Siddartha Mohanadoss54124362013-03-26 19:53:29 -0700885 label = "pa_therm0";
Siddartha Mohanadoss7d1e9d82012-11-20 18:06:51 -0800886 reg = <0xb5>;
887 qcom,decimation = <0>;
888 qcom,pre-div-channel-scaling = <0>;
Siddartha Mohanadoss94b38292013-05-09 13:09:12 -0700889 qcom,calibration-type = "ratiometric";
Siddartha Mohanadoss7d1e9d82012-11-20 18:06:51 -0800890 qcom,scale-function = <2>;
Siddartha Mohanadoss74cece62013-02-22 10:07:30 -0800891 qcom,hw-settle-time = <2>;
Siddartha Mohanadoss1dacc2d2013-03-27 19:40:41 -0700892 qcom,fast-avg-setup = <3>;
Siddartha Mohanadossa38ca952013-03-28 18:41:47 -0700893 qcom,btm-channel-number = <0x80>;
Siddartha Mohanadoss192a8bd2013-03-25 09:30:12 -0700894 qcom,thermal-node;
Siddartha Mohanadoss7d1e9d82012-11-20 18:06:51 -0800895 };
896
897 chan@b7 {
Siddartha Mohanadoss54124362013-03-26 19:53:29 -0700898 label = "pa_therm1";
Siddartha Mohanadoss7d1e9d82012-11-20 18:06:51 -0800899 reg = <0xb7>;
900 qcom,decimation = <0>;
901 qcom,pre-div-channel-scaling = <0>;
902 qcom,calibration-type = "ratiometric";
903 qcom,scale-function = <2>;
Siddartha Mohanadoss74cece62013-02-22 10:07:30 -0800904 qcom,hw-settle-time = <2>;
Siddartha Mohanadoss1dacc2d2013-03-27 19:40:41 -0700905 qcom,fast-avg-setup = <3>;
Siddartha Mohanadossa38ca952013-03-28 18:41:47 -0700906 qcom,btm-channel-number = <0x88>;
Siddartha Mohanadoss192a8bd2013-03-25 09:30:12 -0700907 qcom,thermal-node;
Siddartha Mohanadoss7d1e9d82012-11-20 18:06:51 -0800908 };
909
910 chan@b4 {
911 label = "emmc_therm";
912 reg = <0xb4>;
913 qcom,decimation = <0>;
914 qcom,pre-div-channel-scaling = <0>;
915 qcom,calibration-type = "ratiometric";
916 qcom,scale-function = <2>;
Siddartha Mohanadoss74cece62013-02-22 10:07:30 -0800917 qcom,hw-settle-time = <2>;
Siddartha Mohanadoss1dacc2d2013-03-27 19:40:41 -0700918 qcom,fast-avg-setup = <3>;
Siddartha Mohanadossa38ca952013-03-28 18:41:47 -0700919 qcom,btm-channel-number = <0x90>;
Siddartha Mohanadoss192a8bd2013-03-25 09:30:12 -0700920 qcom,thermal-node;
Siddartha Mohanadoss7d1e9d82012-11-20 18:06:51 -0800921 };
Siddartha Mohanadossb919e7b2013-03-22 09:50:40 -0700922
923 chan@b3 {
924 label = "msm_therm";
925 reg = <0xb3>;
926 qcom,decimation = <0>;
927 qcom,pre-div-channel-scaling = <0>;
928 qcom,calibration-type = "ratiometric";
929 qcom,scale-function = <2>;
930 qcom,hw-settle-time = <2>;
Siddartha Mohanadoss1dacc2d2013-03-27 19:40:41 -0700931 qcom,fast-avg-setup = <3>;
Siddartha Mohanadossb919e7b2013-03-22 09:50:40 -0700932 qcom,btm-channel-number = <0x98>;
933 qcom,thermal-node;
934 };
Siddartha Mohanadoss7d1e9d82012-11-20 18:06:51 -0800935 };
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700936 };
David Collins153d45a2012-03-26 11:57:50 -0700937
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700938 qcom,pm8941@1 {
939 spmi-slave-container;
940 reg = <0x1>;
941 #address-cells = <1>;
942 #size-cells = <1>;
David Collins153d45a2012-03-26 11:57:50 -0700943
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700944 regulator@1400 {
945 regulator-name = "8941_s1";
946 spmi-dev-container;
947 #address-cells = <1>;
948 #size-cells = <1>;
949 compatible = "qcom,qpnp-regulator";
950 reg = <0x1400 0x300>;
951 status = "disabled";
David Collins153d45a2012-03-26 11:57:50 -0700952
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700953 qcom,ctl@1400 {
954 reg = <0x1400 0x100>;
David Collins153d45a2012-03-26 11:57:50 -0700955 };
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700956 qcom,ps@1500 {
957 reg = <0x1500 0x100>;
958 };
959 qcom,freq@1600 {
960 reg = <0x1600 0x100>;
961 };
962 };
David Collins153d45a2012-03-26 11:57:50 -0700963
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700964 regulator@1700 {
965 regulator-name = "8941_s2";
966 spmi-dev-container;
967 #address-cells = <1>;
968 #size-cells = <1>;
969 compatible = "qcom,qpnp-regulator";
970 reg = <0x1700 0x300>;
971 status = "disabled";
David Collins153d45a2012-03-26 11:57:50 -0700972
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700973 qcom,ctl@1700 {
974 reg = <0x1700 0x100>;
David Collins153d45a2012-03-26 11:57:50 -0700975 };
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700976 qcom,ps@1800 {
977 reg = <0x1800 0x100>;
978 };
979 qcom,freq@1900 {
980 reg = <0x1900 0x100>;
981 };
982 };
David Collins153d45a2012-03-26 11:57:50 -0700983
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700984 regulator@1a00 {
985 regulator-name = "8941_s3";
986 spmi-dev-container;
987 #address-cells = <1>;
988 #size-cells = <1>;
989 compatible = "qcom,qpnp-regulator";
Michael Bohand3253c72012-08-09 11:34:49 -0700990 reg = <0x1a00 0x300>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700991 status = "disabled";
David Collins153d45a2012-03-26 11:57:50 -0700992
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700993 qcom,ctl@1a00 {
994 reg = <0x1a00 0x100>;
David Collins153d45a2012-03-26 11:57:50 -0700995 };
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700996 qcom,ps@1b00 {
997 reg = <0x1b00 0x100>;
998 };
999 qcom,freq@1c00 {
1000 reg = <0x1c00 0x100>;
1001 };
1002 };
David Collins153d45a2012-03-26 11:57:50 -07001003
Varad Deshmukh18057ed2012-07-03 16:34:53 -07001004 regulator@a000 {
1005 regulator-name = "8941_boost";
1006 reg = <0xa000 0x100>;
1007 compatible = "qcom,qpnp-regulator";
1008 status = "disabled";
1009 };
David Collins153d45a2012-03-26 11:57:50 -07001010
Varad Deshmukh18057ed2012-07-03 16:34:53 -07001011 regulator@4000 {
1012 regulator-name = "8941_l1";
1013 reg = <0x4000 0x100>;
1014 compatible = "qcom,qpnp-regulator";
1015 status = "disabled";
1016 };
David Collins153d45a2012-03-26 11:57:50 -07001017
Varad Deshmukh18057ed2012-07-03 16:34:53 -07001018 regulator@4100 {
1019 regulator-name = "8941_l2";
1020 reg = <0x4100 0x100>;
1021 compatible = "qcom,qpnp-regulator";
1022 status = "disabled";
1023 };
David Collins153d45a2012-03-26 11:57:50 -07001024
Varad Deshmukh18057ed2012-07-03 16:34:53 -07001025 regulator@4200 {
1026 regulator-name = "8941_l3";
1027 reg = <0x4200 0x100>;
1028 compatible = "qcom,qpnp-regulator";
1029 status = "disabled";
1030 };
David Collins153d45a2012-03-26 11:57:50 -07001031
Varad Deshmukh18057ed2012-07-03 16:34:53 -07001032 regulator@4300 {
1033 regulator-name = "8941_l4";
1034 reg = <0x4300 0x100>;
1035 compatible = "qcom,qpnp-regulator";
1036 status = "disabled";
1037 };
David Collins153d45a2012-03-26 11:57:50 -07001038
Varad Deshmukh18057ed2012-07-03 16:34:53 -07001039 regulator@4400 {
1040 regulator-name = "8941_l5";
1041 reg = <0x4400 0x100>;
1042 compatible = "qcom,qpnp-regulator";
Michael Bohane18bf882012-08-09 15:00:23 -07001043 qcom,force-type = <0x04 0x10>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -07001044 status = "disabled";
1045 };
David Collins153d45a2012-03-26 11:57:50 -07001046
Varad Deshmukh18057ed2012-07-03 16:34:53 -07001047 regulator@4500 {
1048 regulator-name = "8941_l6";
1049 reg = <0x4500 0x100>;
1050 compatible = "qcom,qpnp-regulator";
1051 status = "disabled";
1052 };
David Collins153d45a2012-03-26 11:57:50 -07001053
Varad Deshmukh18057ed2012-07-03 16:34:53 -07001054 regulator@4600 {
1055 regulator-name = "8941_l7";
1056 reg = <0x4600 0x100>;
1057 compatible = "qcom,qpnp-regulator";
Michael Bohane18bf882012-08-09 15:00:23 -07001058 qcom,force-type = <0x04 0x10>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -07001059 status = "disabled";
1060 };
David Collins153d45a2012-03-26 11:57:50 -07001061
Varad Deshmukh18057ed2012-07-03 16:34:53 -07001062 regulator@4700 {
1063 regulator-name = "8941_l8";
1064 reg = <0x4700 0x100>;
1065 compatible = "qcom,qpnp-regulator";
1066 status = "disabled";
1067 };
David Collins153d45a2012-03-26 11:57:50 -07001068
Varad Deshmukh18057ed2012-07-03 16:34:53 -07001069 regulator@4800 {
1070 regulator-name = "8941_l9";
1071 reg = <0x4800 0x100>;
1072 compatible = "qcom,qpnp-regulator";
1073 status = "disabled";
1074 };
David Collins153d45a2012-03-26 11:57:50 -07001075
Varad Deshmukh18057ed2012-07-03 16:34:53 -07001076 regulator@4900 {
1077 regulator-name = "8941_l10";
1078 reg = <0x4900 0x100>;
1079 compatible = "qcom,qpnp-regulator";
1080 status = "disabled";
1081 };
David Collins153d45a2012-03-26 11:57:50 -07001082
Varad Deshmukh18057ed2012-07-03 16:34:53 -07001083 regulator@4a00 {
1084 regulator-name = "8941_l11";
1085 reg = <0x4a00 0x100>;
1086 compatible = "qcom,qpnp-regulator";
1087 status = "disabled";
1088 };
David Collins153d45a2012-03-26 11:57:50 -07001089
Varad Deshmukh18057ed2012-07-03 16:34:53 -07001090 regulator@4b00 {
1091 regulator-name = "8941_l12";
1092 reg = <0x4b00 0x100>;
1093 compatible = "qcom,qpnp-regulator";
1094 status = "disabled";
1095 };
David Collins153d45a2012-03-26 11:57:50 -07001096
Varad Deshmukh18057ed2012-07-03 16:34:53 -07001097 regulator@4c00 {
1098 regulator-name = "8941_l13";
1099 reg = <0x4c00 0x100>;
1100 compatible = "qcom,qpnp-regulator";
1101 status = "disabled";
1102 };
David Collins153d45a2012-03-26 11:57:50 -07001103
Varad Deshmukh18057ed2012-07-03 16:34:53 -07001104 regulator@4d00 {
1105 regulator-name = "8941_l14";
1106 reg = <0x4d00 0x100>;
1107 compatible = "qcom,qpnp-regulator";
1108 status = "disabled";
1109 };
1110
1111 regulator@4e00 {
1112 regulator-name = "8941_l15";
1113 reg = <0x4e00 0x100>;
1114 compatible = "qcom,qpnp-regulator";
1115 status = "disabled";
1116 };
1117
1118 regulator@4f00 {
1119 regulator-name = "8941_l16";
1120 reg = <0x4f00 0x100>;
1121 compatible = "qcom,qpnp-regulator";
1122 status = "disabled";
1123 };
1124
1125 regulator@5000 {
1126 regulator-name = "8941_l17";
1127 reg = <0x5000 0x100>;
1128 compatible = "qcom,qpnp-regulator";
1129 status = "disabled";
1130 };
1131
1132 regulator@5100 {
1133 regulator-name = "8941_l18";
1134 reg = <0x5100 0x100>;
1135 compatible = "qcom,qpnp-regulator";
1136 status = "disabled";
1137 };
1138
1139 regulator@5200 {
1140 regulator-name = "8941_l19";
1141 reg = <0x5200 0x100>;
1142 compatible = "qcom,qpnp-regulator";
1143 status = "disabled";
1144 };
1145
1146 regulator@5300 {
1147 regulator-name = "8941_l20";
1148 reg = <0x5300 0x100>;
1149 compatible = "qcom,qpnp-regulator";
1150 status = "disabled";
1151 };
1152
1153 regulator@5400 {
1154 regulator-name = "8941_l21";
1155 reg = <0x5400 0x100>;
1156 compatible = "qcom,qpnp-regulator";
1157 status = "disabled";
1158 };
1159
1160 regulator@5500 {
1161 regulator-name = "8941_l22";
1162 reg = <0x5500 0x100>;
1163 compatible = "qcom,qpnp-regulator";
1164 status = "disabled";
1165 };
1166
1167 regulator@5600 {
1168 regulator-name = "8941_l23";
1169 reg = <0x5600 0x100>;
1170 compatible = "qcom,qpnp-regulator";
1171 status = "disabled";
1172 };
1173
1174 regulator@5700 {
1175 regulator-name = "8941_l24";
1176 reg = <0x5700 0x100>;
1177 compatible = "qcom,qpnp-regulator";
1178 status = "disabled";
1179 };
1180
1181 regulator@8000 {
1182 regulator-name = "8941_lvs1";
1183 reg = <0x8000 0x100>;
1184 compatible = "qcom,qpnp-regulator";
1185 status = "disabled";
1186 };
1187
1188 regulator@8100 {
1189 regulator-name = "8941_lvs2";
1190 reg = <0x8100 0x100>;
1191 compatible = "qcom,qpnp-regulator";
1192 status = "disabled";
1193 };
1194
1195 regulator@8200 {
1196 regulator-name = "8941_lvs3";
1197 reg = <0x8200 0x100>;
1198 compatible = "qcom,qpnp-regulator";
1199 status = "disabled";
1200 };
1201
1202 regulator@8300 {
1203 regulator-name = "8941_mvs1";
1204 reg = <0x8300 0x100>;
1205 compatible = "qcom,qpnp-regulator";
1206 status = "disabled";
1207 };
1208
1209 regulator@8400 {
1210 regulator-name = "8941_mvs2";
1211 reg = <0x8400 0x100>;
1212 compatible = "qcom,qpnp-regulator";
1213 status = "disabled";
David Collins153d45a2012-03-26 11:57:50 -07001214 };
Amy Maloche02a5eae2012-08-10 21:33:59 -07001215
Amy Malochec9aa2cb2012-11-07 12:22:58 -08001216 qcom,vibrator@c000 {
1217 compatible = "qcom,qpnp-vibrator";
1218 reg = <0xc000 0x100>;
1219 label = "vibrator";
1220 status = "disabled";
1221 };
1222
Amy Maloche4f0b0462012-09-17 12:09:49 -07001223 qcom,leds@d000 {
1224 compatible = "qcom,leds-qpnp";
1225 reg = <0xd000 0x100>;
1226 label = "rgb";
1227 };
1228
1229 qcom,leds@d100 {
1230 compatible = "qcom,leds-qpnp";
1231 reg = <0xd100 0x100>;
1232 label = "rgb";
1233 };
1234
1235 qcom,leds@d200 {
1236 compatible = "qcom,leds-qpnp";
1237 reg = <0xd200 0x100>;
1238 label = "rgb";
1239 };
1240
Amy Maloche2b8b79b2012-10-22 10:36:04 -07001241 qcom,leds@d300 {
1242 compatible = "qcom,leds-qpnp";
1243 reg = <0xd300 0x100>;
1244 label = "flash";
Chun Zhangf2364be2013-06-03 19:02:30 -07001245 flash_boost-supply = <&pm8941_chg_boost>;
Amy Maloche2b8b79b2012-10-22 10:36:04 -07001246 };
1247
1248 qcom,leds@d400 {
1249 compatible = "qcom,leds-qpnp";
1250 reg = <0xd400 0x100>;
1251 label = "flash";
1252 };
1253
1254 qcom,leds@d500 {
1255 compatible = "qcom,leds-qpnp";
1256 reg = <0xd500 0x100>;
1257 label = "flash";
1258 };
1259
1260 qcom,leds@d600 {
1261 compatible = "qcom,leds-qpnp";
1262 reg = <0xd600 0x100>;
1263 label = "flash";
1264 };
1265
1266 qcom,leds@d700 {
1267 compatible = "qcom,leds-qpnp";
1268 reg = <0xd700 0x100>;
1269 label = "flash";
1270 };
1271
Amy Maloche02a5eae2012-08-10 21:33:59 -07001272 qcom,leds@d800 {
1273 compatible = "qcom,leds-qpnp";
1274 reg = <0xd800 0x100>;
Amy Malochea5ca5552012-10-23 13:34:46 -07001275 label = "wled";
Amy Maloche02a5eae2012-08-10 21:33:59 -07001276 };
1277
1278 qcom,leds@d900 {
1279 compatible = "qcom,leds-qpnp";
1280 reg = <0xd900 0x100>;
Amy Malochea5ca5552012-10-23 13:34:46 -07001281 label = "wled";
Amy Maloche02a5eae2012-08-10 21:33:59 -07001282 };
1283
1284 qcom,leds@da00 {
1285 compatible = "qcom,leds-qpnp";
1286 reg = <0xda00 0x100>;
Amy Malochea5ca5552012-10-23 13:34:46 -07001287 label = "wled";
Amy Maloche02a5eae2012-08-10 21:33:59 -07001288 };
1289
1290 qcom,leds@db00 {
1291 compatible = "qcom,leds-qpnp";
1292 reg = <0xdb00 0x100>;
Amy Malochea5ca5552012-10-23 13:34:46 -07001293 label = "wled";
Amy Maloche02a5eae2012-08-10 21:33:59 -07001294 };
1295
1296 qcom,leds@dc00 {
1297 compatible = "qcom,leds-qpnp";
1298 reg = <0xdc00 0x100>;
Amy Malochea5ca5552012-10-23 13:34:46 -07001299 label = "wled";
Amy Maloche02a5eae2012-08-10 21:33:59 -07001300 };
1301
1302 qcom,leds@dd00 {
1303 compatible = "qcom,leds-qpnp";
1304 reg = <0xdd00 0x100>;
Amy Malochea5ca5552012-10-23 13:34:46 -07001305 label = "wled";
Amy Maloche02a5eae2012-08-10 21:33:59 -07001306 };
1307
1308 qcom,leds@de00 {
1309 compatible = "qcom,leds-qpnp";
1310 reg = <0xde00 0x100>;
Amy Malochea5ca5552012-10-23 13:34:46 -07001311 label = "wled";
Amy Maloche02a5eae2012-08-10 21:33:59 -07001312 };
1313
1314 qcom,leds@df00 {
1315 compatible = "qcom,leds-qpnp";
1316 reg = <0xdf00 0x100>;
Amy Malochea5ca5552012-10-23 13:34:46 -07001317 label = "wled";
Amy Maloche02a5eae2012-08-10 21:33:59 -07001318 };
1319
1320 qcom,leds@e000 {
1321 compatible = "qcom,leds-qpnp";
1322 reg = <0xe000 0x100>;
Amy Malochea5ca5552012-10-23 13:34:46 -07001323 label = "wled";
Amy Maloche02a5eae2012-08-10 21:33:59 -07001324 };
1325
1326 qcom,leds@e100 {
1327 compatible = "qcom,leds-qpnp";
1328 reg = <0xe100 0x100>;
Amy Malochea5ca5552012-10-23 13:34:46 -07001329 label = "wled";
Amy Maloche02a5eae2012-08-10 21:33:59 -07001330 };
1331
Jay Chokshi6254a162012-05-07 12:38:14 -07001332 pwm@b100 {
1333 compatible = "qcom,qpnp-pwm";
1334 reg = <0xb100 0x100>,
1335 <0xb042 0x7e>;
1336 reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base";
1337 qcom,channel-id = <0>;
1338 };
1339
1340 pwm@b200 {
1341 compatible = "qcom,qpnp-pwm";
1342 reg = <0xb200 0x100>,
1343 <0xb042 0x7e>;
1344 reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base";
1345 qcom,channel-id = <1>;
1346 };
1347
1348 pwm@b300 {
1349 compatible = "qcom,qpnp-pwm";
1350 reg = <0xb300 0x100>,
1351 <0xb042 0x7e>;
1352 reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base";
1353 qcom,channel-id = <2>;
1354 };
1355
1356 pwm@b400 {
1357 compatible = "qcom,qpnp-pwm";
1358 reg = <0xb400 0x100>,
1359 <0xb042 0x7e>;
1360 reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base";
1361 qcom,channel-id = <3>;
1362 };
1363
1364 pwm@b500 {
1365 compatible = "qcom,qpnp-pwm";
1366 reg = <0xb500 0x100>,
1367 <0xb042 0x7e>;
1368 reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base";
1369 qcom,channel-id = <4>;
1370 };
1371
1372 pwm@b600 {
1373 compatible = "qcom,qpnp-pwm";
1374 reg = <0xb600 0x100>,
1375 <0xb042 0x7e>;
1376 reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base";
1377 qcom,channel-id = <5>;
1378 };
1379
1380 pwm@b700 {
1381 compatible = "qcom,qpnp-pwm";
1382 reg = <0xb700 0x100>,
1383 <0xb042 0x7e>;
1384 reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base";
1385 qcom,channel-id = <6>;
1386 };
1387
1388 pwm@b800 {
1389 compatible = "qcom,qpnp-pwm";
1390 reg = <0xb800 0x100>,
1391 <0xb042 0x7e>;
1392 reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base";
1393 qcom,channel-id = <7>;
1394 };
David Collins153d45a2012-03-26 11:57:50 -07001395 };
1396};