blob: 9b8e506385f9a8456aefe313907a69f8744ee475 [file] [log] [blame]
David Collinsf8861902013-01-10 15:38:09 -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
Michael Bohanc659a5e2012-08-21 16:50:52 -070013
14/* QPNP controlled regulators: */
15
Varad Deshmukh18057ed2012-07-03 16:34:53 -070016&spmi_bus {
Michael Bohanc659a5e2012-08-21 16:50:52 -070017
Varad Deshmukh18057ed2012-07-03 16:34:53 -070018 qcom,pm8941@1 {
David Collins153d45a2012-03-26 11:57:50 -070019
Varad Deshmukh18057ed2012-07-03 16:34:53 -070020 pm8941_boost: regulator@a000 {
21 regulator-min-microvolt = <5000000>;
22 regulator-max-microvolt = <5000000>;
23 qcom,enable-time = <500>;
24 status = "okay";
David Collins153d45a2012-03-26 11:57:50 -070025 };
26
Varad Deshmukh18057ed2012-07-03 16:34:53 -070027 pm8941_mvs1: regulator@8300 {
28 parent-supply = <&pm8941_boost>;
29 qcom,enable-time = <200>;
30 qcom,pull-down-enable = <1>;
31 status = "okay";
32 };
David Collins153d45a2012-03-26 11:57:50 -070033
Varad Deshmukh18057ed2012-07-03 16:34:53 -070034 pm8941_mvs2: regulator@8400 {
35 parent-supply = <&pm8941_boost>;
36 qcom,enable-time = <200>;
37 qcom,pull-down-enable = <1>;
38 status = "okay";
David Collins153d45a2012-03-26 11:57:50 -070039 };
40 };
Varad Deshmukh18057ed2012-07-03 16:34:53 -070041};
42
David Collins1c91ea72012-05-03 16:17:35 -070043/* RPM controlled regulators: */
44
Varad Deshmukh18057ed2012-07-03 16:34:53 -070045&rpm_bus {
46 rpm-regulator-smpb1 {
47 status = "okay";
48 pm8841_s1: regulator-s1 {
49 regulator-min-microvolt = <675000>;
50 regulator-max-microvolt = <1050000>;
David Collins1c91ea72012-05-03 16:17:35 -070051 status = "okay";
David Collins1c91ea72012-05-03 16:17:35 -070052 };
Varad Deshmukh18057ed2012-07-03 16:34:53 -070053 pm8841_s1_ao: regulator-s1-ao {
54 regulator-name = "8841_s1_ao";
55 qcom,set = <1>;
56 regulator-min-microvolt = <675000>;
57 regulator-max-microvolt = <1050000>;
David Collins1c91ea72012-05-03 16:17:35 -070058 status = "okay";
Varad Deshmukh18057ed2012-07-03 16:34:53 -070059 compatible = "qcom,rpm-regulator-smd";
David Collins1c91ea72012-05-03 16:17:35 -070060 };
David Collins00ab3062012-08-28 09:56:28 -070061 pm8841_s1_so: regulator-s1-so {
62 regulator-name = "8841_s1_so";
63 qcom,set = <2>;
64 regulator-min-microvolt = <675000>;
65 regulator-max-microvolt = <1050000>;
66 qcom,init-voltage = <675000>;
67 status = "okay";
68 compatible = "qcom,rpm-regulator-smd";
69 };
David Collins1c91ea72012-05-03 16:17:35 -070070 };
71
Varad Deshmukh18057ed2012-07-03 16:34:53 -070072 rpm-regulator-smpb2 {
73 status = "okay";
Varad Deshmukh18057ed2012-07-03 16:34:53 -070074 pm8841_s2: regulator-s2 {
75 regulator-min-microvolt = <500000>;
76 regulator-max-microvolt = <1050000>;
77 status = "okay";
78 };
79 pm8841_s2_corner: regulator-s2-corner {
80 regulator-name = "8841_s2_corner";
81 qcom,set = <3>;
82 regulator-min-microvolt = <1>;
David Collinsf3d82322012-07-18 11:29:48 -070083 regulator-max-microvolt = <7>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -070084 qcom,use-voltage-corner;
85 compatible = "qcom,rpm-regulator-smd";
86 qcom,consumer-supplies = "vdd_dig", "";
87 };
88 pm8841_s2_corner_ao: regulator-s2-corner-ao {
89 regulator-name = "8841_s2_corner_ao";
90 qcom,set = <1>;
91 regulator-min-microvolt = <1>;
David Collinsf3d82322012-07-18 11:29:48 -070092 regulator-max-microvolt = <7>;
Varad Deshmukh18057ed2012-07-03 16:34:53 -070093 qcom,use-voltage-corner;
94 compatible = "qcom,rpm-regulator-smd";
95 };
96 };
97
Michael Bohanc659a5e2012-08-21 16:50:52 -070098 rpm-regulator-smpb3 {
99 status = "okay";
100 pm8841_s3: regulator-s3 {
101 regulator-min-microvolt = <1050000>;
102 regulator-max-microvolt = <1050000>;
103 qcom,init-voltage = <1050000>;
104 status = "okay";
105 };
106 };
107
108 rpm-regulator-smpb4 {
109 status = "okay";
110 pm8841_s4: regulator-s4 {
David Collinsff8e9332012-12-05 12:16:37 -0800111 regulator-min-microvolt = <815000>;
Michael Bohanc659a5e2012-08-21 16:50:52 -0700112 regulator-max-microvolt = <900000>;
Michael Bohanc659a5e2012-08-21 16:50:52 -0700113 status = "okay";
114 };
David Collinsf8861902013-01-10 15:38:09 -0800115 pm8841_s4_corner: regulator-s4-corner {
116 compatible = "qcom,rpm-regulator-smd";
117 regulator-name = "8841_s4_corner";
118 qcom,set = <3>;
119 qcom,use-voltage-corner;
120 regulator-min-microvolt = <1>;
121 regulator-max-microvolt = <7>;
122 qcom,init-voltage-corner = <3>; /* SVS SOC */
123 };
Michael Bohanc659a5e2012-08-21 16:50:52 -0700124 };
125
126 rpm-regulator-smpa1 {
127 status = "okay";
128 pm8941_s1: regulator-s1 {
129 regulator-min-microvolt = <1300000>;
130 regulator-max-microvolt = <1300000>;
131 qcom,init-voltage = <1300000>;
Michael Bohanc659a5e2012-08-21 16:50:52 -0700132 status = "okay";
133 };
134 };
135
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700136 rpm-regulator-smpa2 {
137 status = "okay";
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700138 pm8941_s2: regulator-s2 {
139 regulator-min-microvolt = <2150000>;
140 regulator-max-microvolt = <2150000>;
141 qcom,init-voltage = <2150000>;
142 status = "okay";
143 };
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700144 };
145
Michael Bohanc659a5e2012-08-21 16:50:52 -0700146 rpm-regulator-smpa3 {
147 status = "okay";
148 pm8941_s3: regulator-s3 {
149 regulator-min-microvolt = <1800000>;
150 regulator-max-microvolt = <1800000>;
151 qcom,init-voltage = <1800000>;
Michael Bohanc659a5e2012-08-21 16:50:52 -0700152 status = "okay";
153 };
154 };
155
156 rpm-regulator-ldoa1 {
157 status = "okay";
158 pm8941_l1: regulator-l1 {
Michael Bohanc659a5e2012-08-21 16:50:52 -0700159 regulator-min-microvolt = <1225000>;
160 regulator-max-microvolt = <1225000>;
161 qcom,init-voltage = <1225000>;
Michael Bohanc659a5e2012-08-21 16:50:52 -0700162 status = "okay";
163 };
164 };
165
166 rpm-regulator-ldoa2 {
167 status = "okay";
168 pm8941_l2: regulator-l2 {
Michael Bohanc659a5e2012-08-21 16:50:52 -0700169 regulator-min-microvolt = <1200000>;
170 regulator-max-microvolt = <1200000>;
171 qcom,init-voltage = <1200000>;
172 status = "okay";
173 };
174 };
175
176 rpm-regulator-ldoa3 {
177 status = "okay";
178 pm8941_l3: regulator-l3 {
Michael Bohanc659a5e2012-08-21 16:50:52 -0700179 regulator-min-microvolt = <1225000>;
180 regulator-max-microvolt = <1225000>;
181 qcom,init-voltage = <1225000>;
182 status = "okay";
183 };
184 };
185
186 rpm-regulator-ldoa4 {
187 status = "okay";
188 pm8941_l4: regulator-l4 {
Michael Bohanc659a5e2012-08-21 16:50:52 -0700189 regulator-min-microvolt = <1225000>;
190 regulator-max-microvolt = <1225000>;
191 qcom,init-voltage = <1225000>;
192 status = "okay";
193 };
194 };
195
196 rpm-regulator-ldoa5 {
197 status = "okay";
198 pm8941_l5: regulator-l5 {
Michael Bohanc659a5e2012-08-21 16:50:52 -0700199 regulator-min-microvolt = <1800000>;
200 regulator-max-microvolt = <1800000>;
201 qcom,init-voltage = <1800000>;
202 status = "okay";
203 };
204 };
205
206 rpm-regulator-ldoa6 {
207 status = "okay";
208 pm8941_l6: regulator-l6 {
Michael Bohanc659a5e2012-08-21 16:50:52 -0700209 regulator-min-microvolt = <1800000>;
210 regulator-max-microvolt = <1800000>;
211 qcom,init-voltage = <1800000>;
212 status = "okay";
213 };
214 };
215
216 rpm-regulator-ldoa7 {
217 status = "okay";
218 pm8941_l7: regulator-l7 {
Michael Bohanc659a5e2012-08-21 16:50:52 -0700219 regulator-min-microvolt = <1800000>;
220 regulator-max-microvolt = <1800000>;
221 qcom,init-voltage = <1800000>;
222 status = "okay";
223 };
224 };
225
226 rpm-regulator-ldoa8 {
227 status = "okay";
228 pm8941_l8: regulator-l8 {
229 regulator-min-microvolt = <1800000>;
230 regulator-max-microvolt = <1800000>;
231 qcom,init-voltage = <1800000>;
232 status = "okay";
233 };
234 };
235
236 rpm-regulator-ldoa9 {
237 status = "okay";
238 pm8941_l9: regulator-l9 {
239 regulator-min-microvolt = <1800000>;
240 regulator-max-microvolt = <2950000>;
241 qcom,init-voltage = <2950000>;
242 status = "okay";
243 };
244 };
245
246 rpm-regulator-ldoa10 {
247 status = "okay";
248 pm8941_l10: regulator-l10 {
249 regulator-min-microvolt = <1800000>;
250 regulator-max-microvolt = <2950000>;
251 qcom,init-voltage = <2950000>;
252 status = "okay";
253 };
254 };
255
256 rpm-regulator-ldoa11 {
257 status = "okay";
258 pm8941_l11: regulator-l11 {
Michael Bohanc659a5e2012-08-21 16:50:52 -0700259 regulator-min-microvolt = <1300000>;
260 regulator-max-microvolt = <1300000>;
261 qcom,init-voltage = <1300000>;
262 status = "okay";
263 };
264 };
265
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700266 rpm-regulator-ldoa12 {
267 status = "okay";
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700268 pm8941_l12: regulator-l12 {
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700269 regulator-min-microvolt = <1800000>;
270 regulator-max-microvolt = <1800000>;
271 status = "okay";
272 };
273 pm8941_l12_ao: regulator-l12-ao {
274 regulator-name = "8941_l12_ao";
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700275 qcom,set = <1>;
276 regulator-min-microvolt = <1800000>;
277 regulator-max-microvolt = <1800000>;
278 status = "okay";
279 compatible = "qcom,rpm-regulator-smd";
280 };
281 };
Michael Bohanc659a5e2012-08-21 16:50:52 -0700282
283 rpm-regulator-ldoa13 {
284 status = "okay";
285 pm8941_l13: regulator-l13 {
286 regulator-min-microvolt = <1800000>;
287 regulator-max-microvolt = <2950000>;
288 qcom,init-voltage = <2950000>;
289 status = "okay";
290 };
291 };
292
293 rpm-regulator-ldoa14 {
294 status = "okay";
295 pm8941_l14: regulator-l14 {
Michael Bohanc659a5e2012-08-21 16:50:52 -0700296 regulator-min-microvolt = <1800000>;
297 regulator-max-microvolt = <1800000>;
298 qcom,init-voltage = <1800000>;
299 status = "okay";
300 };
301 };
302
303 rpm-regulator-ldoa15 {
304 status = "okay";
305 pm8941_l15: regulator-l15 {
Michael Bohanc659a5e2012-08-21 16:50:52 -0700306 regulator-min-microvolt = <2050000>;
307 regulator-max-microvolt = <2050000>;
308 qcom,init-voltage = <2050000>;
309 status = "okay";
310 };
311 };
312
313 rpm-regulator-ldoa16 {
314 status = "okay";
315 pm8941_l16: regulator-l16 {
316 regulator-min-microvolt = <2700000>;
317 regulator-max-microvolt = <2700000>;
318 qcom,init-voltage = <2700000>;
319 status = "okay";
320 };
321 };
322
323 rpm-regulator-ldoa17 {
324 status = "okay";
325 pm8941_l17: regulator-l17 {
326 regulator-min-microvolt = <2850000>;
327 regulator-max-microvolt = <2850000>;
328 qcom,init-voltage = <2850000>;
329 status = "okay";
330 };
331 };
332
333 rpm-regulator-ldoa18 {
334 status = "okay";
335 pm8941_l18: regulator-l18 {
336 regulator-min-microvolt = <2850000>;
337 regulator-max-microvolt = <2850000>;
338 qcom,init-voltage = <2850000>;
339 status = "okay";
340 };
341 };
342
343 rpm-regulator-ldoa19 {
344 status = "okay";
345 pm8941_l19: regulator-l19 {
346 regulator-min-microvolt = <2900000>;
347 regulator-max-microvolt = <2900000>;
348 qcom,init-voltage = <2900000>;
349 status = "okay";
350 };
351 };
352
353 rpm-regulator-ldoa20 {
354 status = "okay";
355 pm8941_l20: regulator-l20 {
356 regulator-min-microvolt = <2950000>;
357 regulator-max-microvolt = <2950000>;
358 qcom,init-voltage = <2950000>;
359 status = "okay";
360 };
361 };
362
363 rpm-regulator-ldoa21 {
364 status = "okay";
365 pm8941_l21: regulator-l21 {
366 regulator-min-microvolt = <2950000>;
367 regulator-max-microvolt = <2950000>;
368 qcom,init-voltage = <2950000>;
369 status = "okay";
370 };
371 };
372
373 rpm-regulator-ldoa22 {
374 status = "okay";
375 pm8941_l22: regulator-l22 {
376 regulator-min-microvolt = <3000000>;
377 regulator-max-microvolt = <3000000>;
378 qcom,init-voltage = <3000000>;
379 status = "okay";
380 };
381 };
382
383 rpm-regulator-ldoa23 {
384 status = "okay";
385 pm8941_l23: regulator-l23 {
386 regulator-min-microvolt = <3000000>;
387 regulator-max-microvolt = <3000000>;
388 qcom,init-voltage = <3000000>;
389 status = "okay";
390 };
391 };
392
393 rpm-regulator-ldoa24 {
394 status = "okay";
395 pm8941_l24: regulator-l24 {
396 regulator-min-microvolt = <3075000>;
397 regulator-max-microvolt = <3075000>;
398 qcom,init-voltage = <3075000>;
399 status = "okay";
400 };
401 };
402
403 rpm-regulator-vsa1 {
404 status = "okay";
405 pm8941_lvs1: regulator-lvs1 {
Michael Bohanc659a5e2012-08-21 16:50:52 -0700406 status = "okay";
407 };
408 };
409
410 rpm-regulator-vsa2 {
411 status = "okay";
412 pm8941_lvs2: regulator-lvs2 {
Michael Bohanc659a5e2012-08-21 16:50:52 -0700413 status = "okay";
414 };
415 };
416
417 rpm-regulator-vsa3 {
418 status = "okay";
419 pm8941_lvs3: regulator-lvs3 {
Michael Bohanc659a5e2012-08-21 16:50:52 -0700420 status = "okay";
421 };
422 };
Varad Deshmukh18057ed2012-07-03 16:34:53 -0700423};
424
425/ {
Abhijeet Dharmapurikar90728b42012-05-10 14:07:24 -0700426 krait0_vreg: regulator@f9088000 {
427 compatible = "qcom,krait-regulator";
428 regulator-name = "krait0";
429 reg = <0xf9088000 0x1000>;
430 regulator-min-microvolt = <500000>;
431 regulator-max-microvolt = <1100000>;
Abhijeet Dharmapurikar34f0d642012-10-25 12:35:23 -0700432 qcom,headroom-voltage = <150000>;
433 qcom,retention-voltage = <745000>;
434 qcom,ldo-default-voltage = <745000>;
435 qcom,ldo-threshold-voltage = <750000>;
Abhijeet Dharmapurikar90728b42012-05-10 14:07:24 -0700436 };
437
438 krait1_vreg: regulator@f9098000 {
439 compatible = "qcom,krait-regulator";
440 regulator-name = "krait1";
441 reg = <0xf9098000 0x1000>;
442 regulator-min-microvolt = <500000>;
443 regulator-max-microvolt = <1100000>;
Abhijeet Dharmapurikar34f0d642012-10-25 12:35:23 -0700444 qcom,headroom-voltage = <150000>;
445 qcom,retention-voltage = <745000>;
446 qcom,ldo-default-voltage = <745000>;
447 qcom,ldo-threshold-voltage = <750000>;
Abhijeet Dharmapurikar90728b42012-05-10 14:07:24 -0700448 };
449
450 krait2_vreg: regulator@f90a8000 {
451 compatible = "qcom,krait-regulator";
452 regulator-name = "krait2";
453 reg = <0xf90a8000 0x1000>;
454 regulator-min-microvolt = <500000>;
455 regulator-max-microvolt = <1100000>;
Abhijeet Dharmapurikar34f0d642012-10-25 12:35:23 -0700456 qcom,headroom-voltage = <150000>;
457 qcom,retention-voltage = <745000>;
458 qcom,ldo-default-voltage = <745000>;
459 qcom,ldo-threshold-voltage = <750000>;
Abhijeet Dharmapurikar90728b42012-05-10 14:07:24 -0700460 };
461
462 krait3_vreg: regulator@f90b8000 {
463 compatible = "qcom,krait-regulator";
464 regulator-name = "krait3";
465 reg = <0xf90b8000 0x1000>;
466 regulator-min-microvolt = <500000>;
467 regulator-max-microvolt = <1100000>;
Abhijeet Dharmapurikar34f0d642012-10-25 12:35:23 -0700468 qcom,headroom-voltage = <150000>;
469 qcom,retention-voltage = <745000>;
470 qcom,ldo-default-voltage = <745000>;
471 qcom,ldo-threshold-voltage = <750000>;
Abhijeet Dharmapurikar90728b42012-05-10 14:07:24 -0700472 };
Michael Bohana7da06f2012-08-11 12:12:33 -0700473
474 spi_eth_vreg: spi_eth_phy_vreg {
475 compatible = "regulator-fixed";
476 regulator-name = "ethernet_phy";
477 gpio = <&pm8941_mpps 5 0>;
478 enable-active-high;
479 };
David Collins153d45a2012-03-26 11:57:50 -0700480};