blob: 3d899c51bbac7dec06968ed42d786b4ce816a588 [file] [log] [blame]
Sundar Iyer4f724be2010-09-15 10:50:59 +01001/*
2 * Copyright (C) ST-Ericsson SA 2010
3 *
4 * License Terms: GNU General Public License v2
5 *
Bengt Jonssona1e516e2010-12-10 11:08:48 +01006 * Authors: Sundar Iyer <sundar.iyer@stericsson.com>
7 * Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Sundar Iyer4f724be2010-09-15 10:50:59 +01008 *
9 * MOP500 board specific initialization for regulators
10 */
11#include <linux/kernel.h>
12#include <linux/regulator/machine.h>
Bengt Jonssona1e516e2010-12-10 11:08:48 +010013#include <linux/regulator/ab8500.h>
Linus Walleijd1de85a2010-12-02 17:10:14 +010014#include "board-mop500-regulators.h"
15
Lee Jones0b5ea1e2012-09-03 14:33:39 +010016static struct regulator_consumer_supply gpio_en_3v3_consumers[] = {
17 REGULATOR_SUPPLY("vdd33a", "smsc911x.0"),
18};
19
20struct regulator_init_data gpio_en_3v3_regulator = {
21 .constraints = {
22 .name = "EN-3V3",
23 .min_uV = 3300000,
24 .max_uV = 3300000,
25 .valid_ops_mask = REGULATOR_CHANGE_STATUS,
26 },
27 .num_consumer_supplies = ARRAY_SIZE(gpio_en_3v3_consumers),
28 .consumer_supplies = gpio_en_3v3_consumers,
29};
30
Linus Walleijfe67dfc2011-03-07 11:48:15 +010031/*
32 * TPS61052 regulator
33 */
34static struct regulator_consumer_supply tps61052_vaudio_consumers[] = {
35 /*
36 * Boost converter supply to raise voltage on audio speaker, this
37 * is actually connected to three pins, VInVhfL (left amplifier)
38 * VInVhfR (right amplifier) and VIntDClassInt - all three must
39 * be connected to the same voltage.
40 */
41 REGULATOR_SUPPLY("vintdclassint", "ab8500-codec.0"),
42};
43
44struct regulator_init_data tps61052_regulator = {
45 .constraints = {
46 .name = "vaudio-hf",
47 .min_uV = 4500000,
48 .max_uV = 4500000,
49 .valid_ops_mask = REGULATOR_CHANGE_STATUS,
50 },
51 .num_consumer_supplies = ARRAY_SIZE(tps61052_vaudio_consumers),
52 .consumer_supplies = tps61052_vaudio_consumers,
53};
54
Linus Walleijd1de85a2010-12-02 17:10:14 +010055static struct regulator_consumer_supply ab8500_vaux1_consumers[] = {
Lee Jones27f26de2013-03-21 15:59:05 +000056 /* Main display, u8500 R3 uib */
57 REGULATOR_SUPPLY("vddi", "mcde_disp_sony_acx424akp.0"),
58 /* Main display, u8500 uib and ST uib */
59 REGULATOR_SUPPLY("vdd1", "samsung_s6d16d0.0"),
60 /* Secondary display, ST uib */
61 REGULATOR_SUPPLY("vdd1", "samsung_s6d16d0.1"),
Linus Walleijd1de85a2010-12-02 17:10:14 +010062 /* SFH7741 proximity sensor */
63 REGULATOR_SUPPLY("vcc", "gpio-keys.0"),
64 /* BH1780GLS ambient light sensor */
65 REGULATOR_SUPPLY("vcc", "2-0029"),
66 /* lsm303dlh accelerometer */
67 REGULATOR_SUPPLY("vdd", "3-0018"),
68 /* lsm303dlh magnetometer */
69 REGULATOR_SUPPLY("vdd", "3-001e"),
70 /* Rohm BU21013 Touchscreen devices */
71 REGULATOR_SUPPLY("avdd", "3-005c"),
72 REGULATOR_SUPPLY("avdd", "3-005d"),
73 /* Synaptics RMI4 Touchscreen device */
74 REGULATOR_SUPPLY("vdd", "3-004b"),
Lee Jonesefb34d22013-03-21 15:59:10 +000075 /* L3G4200D Gyroscope device */
76 REGULATOR_SUPPLY("vdd", "2-0068"),
Lee Jones2d0266a2013-03-21 15:59:11 +000077 /* Ambient light sensor device */
78 REGULATOR_SUPPLY("vdd", "3-0029"),
Lee Jones4336c1d2013-03-21 15:59:12 +000079 /* Pressure sensor device */
80 REGULATOR_SUPPLY("vdd", "2-005c"),
Lee Jones5379f022013-03-21 15:59:13 +000081 /* Cypress TrueTouch Touchscreen device */
82 REGULATOR_SUPPLY("vcpin", "spi8.0"),
Lee Jonesfa679522013-03-21 15:59:14 +000083 /* Camera device */
84 REGULATOR_SUPPLY("vaux12v5", "mmio_camera"),
Linus Walleijd1de85a2010-12-02 17:10:14 +010085};
86
87static struct regulator_consumer_supply ab8500_vaux2_consumers[] = {
88 /* On-board eMMC power */
89 REGULATOR_SUPPLY("vmmc", "sdi4"),
90 /* AB8500 audio codec */
91 REGULATOR_SUPPLY("vcc-N2158", "ab8500-codec.0"),
92};
93
94static struct regulator_consumer_supply ab8500_vaux3_consumers[] = {
95 /* External MMC slot power */
96 REGULATOR_SUPPLY("vmmc", "sdi0"),
97};
98
99static struct regulator_consumer_supply ab8500_vtvout_consumers[] = {
100 /* TV-out DENC supply */
101 REGULATOR_SUPPLY("vtvout", "ab8500-denc.0"),
102 /* Internal general-purpose ADC */
103 REGULATOR_SUPPLY("vddadc", "ab8500-gpadc.0"),
104};
105
Ola Lilja29bd2ab2012-02-01 14:18:10 +0100106static struct regulator_consumer_supply ab8500_vaud_consumers[] = {
107 /* AB8500 audio-codec main supply */
108 REGULATOR_SUPPLY("vaud", "ab8500-codec.0"),
109};
110
111static struct regulator_consumer_supply ab8500_vamic1_consumers[] = {
112 /* AB8500 audio-codec Mic1 supply */
113 REGULATOR_SUPPLY("vamic1", "ab8500-codec.0"),
114};
115
116static struct regulator_consumer_supply ab8500_vamic2_consumers[] = {
117 /* AB8500 audio-codec Mic2 supply */
118 REGULATOR_SUPPLY("vamic2", "ab8500-codec.0"),
119};
120
121static struct regulator_consumer_supply ab8500_vdmic_consumers[] = {
122 /* AB8500 audio-codec DMic supply */
123 REGULATOR_SUPPLY("vdmic", "ab8500-codec.0"),
124};
125
Linus Walleijd1de85a2010-12-02 17:10:14 +0100126static struct regulator_consumer_supply ab8500_vintcore_consumers[] = {
127 /* SoC core supply, no device */
128 REGULATOR_SUPPLY("v-intcore", NULL),
Joe Perches7c9d4402011-06-23 11:39:20 -0700129 /* USB Transceiver */
Linus Walleijd1de85a2010-12-02 17:10:14 +0100130 REGULATOR_SUPPLY("vddulpivio18", "ab8500-usb.0"),
131};
132
133static struct regulator_consumer_supply ab8500_vana_consumers[] = {
134 /* External displays, connector on board, 1v8 power supply */
135 REGULATOR_SUPPLY("vsmps2", "mcde.0"),
136};
Sundar Iyer4f724be2010-09-15 10:50:59 +0100137
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100138/* ab8500 regulator register initialization */
Bengt Jonsson732805a2013-03-21 15:59:03 +0000139static struct ab8500_regulator_reg_init ab8500_reg_init[] = {
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100140 /*
141 * VanaRequestCtrl = HP/LP depending on VxRequest
142 * VextSupply1RequestCtrl = HP/LP depending on VxRequest
143 */
Lee Jones43a59112013-03-21 15:59:15 +0000144 INIT_REGULATOR_REGISTER(AB8500_REGUREQUESTCTRL2, 0xf0, 0x00),
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100145 /*
146 * VextSupply2RequestCtrl = HP/LP depending on VxRequest
147 * VextSupply3RequestCtrl = HP/LP depending on VxRequest
148 * Vaux1RequestCtrl = HP/LP depending on VxRequest
149 * Vaux2RequestCtrl = HP/LP depending on VxRequest
150 */
Lee Jones3c1b8432013-03-21 15:59:01 +0000151 INIT_REGULATOR_REGISTER(AB8500_REGUREQUESTCTRL3, 0xff, 0x00),
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100152 /*
153 * Vaux3RequestCtrl = HP/LP depending on VxRequest
154 * SwHPReq = Control through SWValid disabled
155 */
Lee Jones3c1b8432013-03-21 15:59:01 +0000156 INIT_REGULATOR_REGISTER(AB8500_REGUREQUESTCTRL4, 0x07, 0x00),
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100157 /*
158 * VanaSysClkReq1HPValid = disabled
159 * Vaux1SysClkReq1HPValid = disabled
160 * Vaux2SysClkReq1HPValid = disabled
161 * Vaux3SysClkReq1HPValid = disabled
162 */
Lee Jones43a59112013-03-21 15:59:15 +0000163 INIT_REGULATOR_REGISTER(AB8500_REGUSYSCLKREQ1HPVALID1, 0xe8, 0x00),
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100164 /*
165 * VextSupply1SysClkReq1HPValid = disabled
166 * VextSupply2SysClkReq1HPValid = disabled
167 * VextSupply3SysClkReq1HPValid = SysClkReq1 controlled
168 */
Lee Jones3c1b8432013-03-21 15:59:01 +0000169 INIT_REGULATOR_REGISTER(AB8500_REGUSYSCLKREQ1HPVALID2, 0x70, 0x40),
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100170 /*
171 * VanaHwHPReq1Valid = disabled
172 * Vaux1HwHPreq1Valid = disabled
173 * Vaux2HwHPReq1Valid = disabled
174 * Vaux3HwHPReqValid = disabled
175 */
Lee Jones3c1b8432013-03-21 15:59:01 +0000176 INIT_REGULATOR_REGISTER(AB8500_REGUHWHPREQ1VALID1, 0xe8, 0x00),
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100177 /*
178 * VextSupply1HwHPReq1Valid = disabled
179 * VextSupply2HwHPReq1Valid = disabled
180 * VextSupply3HwHPReq1Valid = disabled
181 */
Lee Jones3c1b8432013-03-21 15:59:01 +0000182 INIT_REGULATOR_REGISTER(AB8500_REGUHWHPREQ1VALID2, 0x07, 0x00),
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100183 /*
184 * VanaHwHPReq2Valid = disabled
185 * Vaux1HwHPReq2Valid = disabled
186 * Vaux2HwHPReq2Valid = disabled
187 * Vaux3HwHPReq2Valid = disabled
188 */
Lee Jones3c1b8432013-03-21 15:59:01 +0000189 INIT_REGULATOR_REGISTER(AB8500_REGUHWHPREQ2VALID1, 0xe8, 0x00),
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100190 /*
191 * VextSupply1HwHPReq2Valid = disabled
192 * VextSupply2HwHPReq2Valid = disabled
193 * VextSupply3HwHPReq2Valid = HWReq2 controlled
194 */
Lee Jones3c1b8432013-03-21 15:59:01 +0000195 INIT_REGULATOR_REGISTER(AB8500_REGUHWHPREQ2VALID2, 0x07, 0x04),
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100196 /*
197 * VanaSwHPReqValid = disabled
198 * Vaux1SwHPReqValid = disabled
199 */
Lee Jones3c1b8432013-03-21 15:59:01 +0000200 INIT_REGULATOR_REGISTER(AB8500_REGUSWHPREQVALID1, 0xa0, 0x00),
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100201 /*
202 * Vaux2SwHPReqValid = disabled
203 * Vaux3SwHPReqValid = disabled
204 * VextSupply1SwHPReqValid = disabled
205 * VextSupply2SwHPReqValid = disabled
206 * VextSupply3SwHPReqValid = disabled
207 */
Lee Jones3c1b8432013-03-21 15:59:01 +0000208 INIT_REGULATOR_REGISTER(AB8500_REGUSWHPREQVALID2, 0x1f, 0x00),
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100209 /*
210 * SysClkReq2Valid1 = SysClkReq2 controlled
211 * SysClkReq3Valid1 = disabled
212 * SysClkReq4Valid1 = SysClkReq4 controlled
213 * SysClkReq5Valid1 = disabled
214 * SysClkReq6Valid1 = SysClkReq6 controlled
215 * SysClkReq7Valid1 = disabled
216 * SysClkReq8Valid1 = disabled
217 */
Lee Jones3c1b8432013-03-21 15:59:01 +0000218 INIT_REGULATOR_REGISTER(AB8500_REGUSYSCLKREQVALID1, 0xfe, 0x2a),
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100219 /*
220 * SysClkReq2Valid2 = disabled
221 * SysClkReq3Valid2 = disabled
222 * SysClkReq4Valid2 = disabled
223 * SysClkReq5Valid2 = disabled
224 * SysClkReq6Valid2 = SysClkReq6 controlled
225 * SysClkReq7Valid2 = disabled
226 * SysClkReq8Valid2 = disabled
227 */
Lee Jones3c1b8432013-03-21 15:59:01 +0000228 INIT_REGULATOR_REGISTER(AB8500_REGUSYSCLKREQVALID2, 0xfe, 0x20),
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100229 /*
230 * VTVoutEna = disabled
231 * Vintcore12Ena = disabled
232 * Vintcore12Sel = 1.25 V
233 * Vintcore12LP = inactive (HP)
234 * VTVoutLP = inactive (HP)
235 */
Lee Jones3c1b8432013-03-21 15:59:01 +0000236 INIT_REGULATOR_REGISTER(AB8500_REGUMISC1, 0xfe, 0x10),
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100237 /*
238 * VaudioEna = disabled
239 * VdmicEna = disabled
240 * Vamic1Ena = disabled
241 * Vamic2Ena = disabled
242 */
Lee Jones3c1b8432013-03-21 15:59:01 +0000243 INIT_REGULATOR_REGISTER(AB8500_VAUDIOSUPPLY, 0x1e, 0x00),
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100244 /*
245 * Vamic1_dzout = high-Z when Vamic1 is disabled
246 * Vamic2_dzout = high-Z when Vamic2 is disabled
247 */
Lee Jones3c1b8432013-03-21 15:59:01 +0000248 INIT_REGULATOR_REGISTER(AB8500_REGUCTRL1VAMIC, 0x03, 0x00),
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100249 /*
Lee Jones43a59112013-03-21 15:59:15 +0000250 * VPll = Hw controlled (NOTE! PRCMU bits)
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100251 * VanaRegu = force off
252 */
Lee Jones3c1b8432013-03-21 15:59:01 +0000253 INIT_REGULATOR_REGISTER(AB8500_VPLLVANAREGU, 0x0f, 0x02),
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100254 /*
255 * VrefDDREna = disabled
256 * VrefDDRSleepMode = inactive (no pulldown)
257 */
Lee Jones3c1b8432013-03-21 15:59:01 +0000258 INIT_REGULATOR_REGISTER(AB8500_VREFDDR, 0x03, 0x00),
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100259 /*
260 * VextSupply1Regu = HW control
261 * VextSupply2Regu = HW control
262 * VextSupply3Regu = HW control
263 * ExtSupply2Bypass = ExtSupply12LPn ball is 0 when Ena is 0
264 * ExtSupply3Bypass = ExtSupply3LPn ball is 0 when Ena is 0
265 */
Lee Jones3c1b8432013-03-21 15:59:01 +0000266 INIT_REGULATOR_REGISTER(AB8500_EXTSUPPLYREGU, 0xff, 0x1a),
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100267 /*
268 * Vaux1Regu = force HP
269 * Vaux2Regu = force off
270 */
Lee Jones3c1b8432013-03-21 15:59:01 +0000271 INIT_REGULATOR_REGISTER(AB8500_VAUX12REGU, 0x0f, 0x01),
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100272 /*
Lee Jonesd79df322013-03-21 15:58:58 +0000273 * Vaux3Regu = force off
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100274 */
Lee Jones43a59112013-03-21 15:59:15 +0000275 INIT_REGULATOR_REGISTER(AB8500_VRF1VAUX3REGU, 0x03, 0x00),
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100276 /*
277 * Vaux1Sel = 2.5 V
278 */
Lee Jones3c1b8432013-03-21 15:59:01 +0000279 INIT_REGULATOR_REGISTER(AB8500_VAUX1SEL, 0x0f, 0x08),
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100280 /*
281 * Vaux2Sel = 2.9 V
282 */
Lee Jones3c1b8432013-03-21 15:59:01 +0000283 INIT_REGULATOR_REGISTER(AB8500_VAUX2SEL, 0x0f, 0x0d),
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100284 /*
285 * Vaux3Sel = 2.91 V
286 */
Lee Jones3c1b8432013-03-21 15:59:01 +0000287 INIT_REGULATOR_REGISTER(AB8500_VRF1VAUX3SEL, 0x07, 0x07),
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100288 /*
289 * VextSupply12LP = disabled (no LP)
290 */
Lee Jones3c1b8432013-03-21 15:59:01 +0000291 INIT_REGULATOR_REGISTER(AB8500_REGUCTRL2SPARE, 0x01, 0x00),
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100292 /*
293 * Vaux1Disch = short discharge time
294 * Vaux2Disch = short discharge time
295 * Vaux3Disch = short discharge time
296 * Vintcore12Disch = short discharge time
297 * VTVoutDisch = short discharge time
298 * VaudioDisch = short discharge time
299 */
Lee Jones3c1b8432013-03-21 15:59:01 +0000300 INIT_REGULATOR_REGISTER(AB8500_REGUCTRLDISCH, 0xfc, 0x00),
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100301 /*
302 * VanaDisch = short discharge time
303 * VdmicPullDownEna = pulldown disabled when Vdmic is disabled
304 * VdmicDisch = short discharge time
305 */
Lee Jones3c1b8432013-03-21 15:59:01 +0000306 INIT_REGULATOR_REGISTER(AB8500_REGUCTRLDISCH2, 0x16, 0x00),
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100307};
308
Bengt Jonssona1e516e2010-12-10 11:08:48 +0100309/* AB8500 regulators */
Bengt Jonsson732805a2013-03-21 15:59:03 +0000310static struct regulator_init_data ab8500_regulators[AB8500_NUM_REGULATORS] = {
Bengt Jonssona1e516e2010-12-10 11:08:48 +0100311 /* supplies to the display/camera */
312 [AB8500_LDO_AUX1] = {
313 .constraints = {
314 .name = "V-DISPLAY",
315 .min_uV = 2500000,
316 .max_uV = 2900000,
317 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
318 REGULATOR_CHANGE_STATUS,
Linus Walleijdb245202011-04-04 10:44:51 +0200319 .boot_on = 1, /* display is on at boot */
320 /*
321 * This voltage cannot be disabled right now because
322 * it is somehow affecting the external MMC
323 * functionality, though that typically will use
324 * AUX3.
325 */
326 .always_on = 1,
Bengt Jonssona1e516e2010-12-10 11:08:48 +0100327 },
Linus Walleijd1de85a2010-12-02 17:10:14 +0100328 .num_consumer_supplies = ARRAY_SIZE(ab8500_vaux1_consumers),
329 .consumer_supplies = ab8500_vaux1_consumers,
Bengt Jonssona1e516e2010-12-10 11:08:48 +0100330 },
331 /* supplies to the on-board eMMC */
332 [AB8500_LDO_AUX2] = {
333 .constraints = {
334 .name = "V-eMMC1",
335 .min_uV = 1100000,
336 .max_uV = 3300000,
337 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
338 REGULATOR_CHANGE_STATUS,
339 },
Linus Walleijd1de85a2010-12-02 17:10:14 +0100340 .num_consumer_supplies = ARRAY_SIZE(ab8500_vaux2_consumers),
341 .consumer_supplies = ab8500_vaux2_consumers,
Bengt Jonssona1e516e2010-12-10 11:08:48 +0100342 },
343 /* supply for VAUX3, supplies to SDcard slots */
344 [AB8500_LDO_AUX3] = {
345 .constraints = {
346 .name = "V-MMC-SD",
347 .min_uV = 1100000,
348 .max_uV = 3300000,
349 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
350 REGULATOR_CHANGE_STATUS,
351 },
Linus Walleijd1de85a2010-12-02 17:10:14 +0100352 .num_consumer_supplies = ARRAY_SIZE(ab8500_vaux3_consumers),
353 .consumer_supplies = ab8500_vaux3_consumers,
Bengt Jonssona1e516e2010-12-10 11:08:48 +0100354 },
355 /* supply for tvout, gpadc, TVOUT LDO */
356 [AB8500_LDO_TVOUT] = {
357 .constraints = {
358 .name = "V-TVOUT",
359 .valid_ops_mask = REGULATOR_CHANGE_STATUS,
360 },
Linus Walleijd1de85a2010-12-02 17:10:14 +0100361 .num_consumer_supplies = ARRAY_SIZE(ab8500_vtvout_consumers),
362 .consumer_supplies = ab8500_vtvout_consumers,
Bengt Jonssona1e516e2010-12-10 11:08:48 +0100363 },
364 /* supply for ab8500-vaudio, VAUDIO LDO */
365 [AB8500_LDO_AUDIO] = {
366 .constraints = {
367 .name = "V-AUD",
368 .valid_ops_mask = REGULATOR_CHANGE_STATUS,
369 },
Ola Lilja29bd2ab2012-02-01 14:18:10 +0100370 .num_consumer_supplies = ARRAY_SIZE(ab8500_vaud_consumers),
371 .consumer_supplies = ab8500_vaud_consumers,
Bengt Jonssona1e516e2010-12-10 11:08:48 +0100372 },
373 /* supply for v-anamic1 VAMic1-LDO */
374 [AB8500_LDO_ANAMIC1] = {
375 .constraints = {
376 .name = "V-AMIC1",
377 .valid_ops_mask = REGULATOR_CHANGE_STATUS,
378 },
Ola Lilja29bd2ab2012-02-01 14:18:10 +0100379 .num_consumer_supplies = ARRAY_SIZE(ab8500_vamic1_consumers),
380 .consumer_supplies = ab8500_vamic1_consumers,
Bengt Jonssona1e516e2010-12-10 11:08:48 +0100381 },
382 /* supply for v-amic2, VAMIC2 LDO, reuse constants for AMIC1 */
383 [AB8500_LDO_ANAMIC2] = {
384 .constraints = {
385 .name = "V-AMIC2",
386 .valid_ops_mask = REGULATOR_CHANGE_STATUS,
387 },
Ola Lilja29bd2ab2012-02-01 14:18:10 +0100388 .num_consumer_supplies = ARRAY_SIZE(ab8500_vamic2_consumers),
389 .consumer_supplies = ab8500_vamic2_consumers,
Bengt Jonssona1e516e2010-12-10 11:08:48 +0100390 },
391 /* supply for v-dmic, VDMIC LDO */
392 [AB8500_LDO_DMIC] = {
393 .constraints = {
394 .name = "V-DMIC",
395 .valid_ops_mask = REGULATOR_CHANGE_STATUS,
396 },
Ola Lilja29bd2ab2012-02-01 14:18:10 +0100397 .num_consumer_supplies = ARRAY_SIZE(ab8500_vdmic_consumers),
398 .consumer_supplies = ab8500_vdmic_consumers,
Bengt Jonssona1e516e2010-12-10 11:08:48 +0100399 },
400 /* supply for v-intcore12, VINTCORE12 LDO */
401 [AB8500_LDO_INTCORE] = {
402 .constraints = {
403 .name = "V-INTCORE",
404 .valid_ops_mask = REGULATOR_CHANGE_STATUS,
405 },
Linus Walleijd1de85a2010-12-02 17:10:14 +0100406 .num_consumer_supplies = ARRAY_SIZE(ab8500_vintcore_consumers),
407 .consumer_supplies = ab8500_vintcore_consumers,
Bengt Jonssona1e516e2010-12-10 11:08:48 +0100408 },
409 /* supply for U8500 CSI/DSI, VANA LDO */
410 [AB8500_LDO_ANA] = {
411 .constraints = {
412 .name = "V-CSI/DSI",
413 .valid_ops_mask = REGULATOR_CHANGE_STATUS,
414 },
Linus Walleijd1de85a2010-12-02 17:10:14 +0100415 .num_consumer_supplies = ARRAY_SIZE(ab8500_vana_consumers),
416 .consumer_supplies = ab8500_vana_consumers,
Sundar Iyer4f724be2010-09-15 10:50:59 +0100417 },
418};
Bengt Jonsson732805a2013-03-21 15:59:03 +0000419
420struct ab8500_regulator_platform_data ab8500_regulator_plat_data = {
421 .reg_init = ab8500_reg_init,
422 .num_reg_init = ARRAY_SIZE(ab8500_reg_init),
423 .regulator = ab8500_regulators,
424 .num_regulator = ARRAY_SIZE(ab8500_regulators),
425};