blob: d2de7fc980801486e64aa41b927a1064ce9bcfd2 [file] [log] [blame]
Ashish Jangam08bf1c02011-12-09 19:48:20 +05301/*
2* da9052-regulator.c: Regulator driver for DA9052
3*
4* Copyright(c) 2011 Dialog Semiconductor Ltd.
5*
6* Author: David Dajun Chen <dchen@diasemi.com>
7*
8* This program is free software; you can redistribute it and/or modify
9* it under the terms of the GNU General Public License as published by
10* the Free Software Foundation; either version 2 of the License, or
11* (at your option) any later version.
12*
13*/
14
15#include <linux/module.h>
16#include <linux/moduleparam.h>
17#include <linux/init.h>
18#include <linux/err.h>
19#include <linux/platform_device.h>
20#include <linux/regulator/driver.h>
21#include <linux/regulator/machine.h>
Ying-Chun Liu (PaulLiu)88c84c12012-04-13 21:37:41 +080022#ifdef CONFIG_OF
Mark Browncd22a962012-04-16 09:54:24 +010023#include <linux/of.h>
Ying-Chun Liu (PaulLiu)88c84c12012-04-13 21:37:41 +080024#include <linux/regulator/of_regulator.h>
25#endif
Ashish Jangam08bf1c02011-12-09 19:48:20 +053026
27#include <linux/mfd/da9052/da9052.h>
28#include <linux/mfd/da9052/reg.h>
29#include <linux/mfd/da9052/pdata.h>
30
31/* Buck step size */
32#define DA9052_BUCK_PERI_3uV_STEP 100000
33#define DA9052_BUCK_PERI_REG_MAP_UPTO_3uV 24
34#define DA9052_CONST_3uV 3000000
35
36#define DA9052_MIN_UA 0
37#define DA9052_MAX_UA 3
38#define DA9052_CURRENT_RANGE 4
39
40/* Bit masks */
41#define DA9052_BUCK_ILIM_MASK_EVEN 0x0c
42#define DA9052_BUCK_ILIM_MASK_ODD 0xc0
43
Axel Lin9210f052012-03-15 19:58:39 +080044/* DA9052 REGULATOR IDs */
45#define DA9052_ID_BUCK1 0
46#define DA9052_ID_BUCK2 1
47#define DA9052_ID_BUCK3 2
48#define DA9052_ID_BUCK4 3
49#define DA9052_ID_LDO1 4
50#define DA9052_ID_LDO2 5
51#define DA9052_ID_LDO3 6
52#define DA9052_ID_LDO4 7
53#define DA9052_ID_LDO5 8
54#define DA9052_ID_LDO6 9
55#define DA9052_ID_LDO7 10
56#define DA9052_ID_LDO8 11
57#define DA9052_ID_LDO9 12
58#define DA9052_ID_LDO10 13
59
Ashish Jangam08bf1c02011-12-09 19:48:20 +053060static const u32 da9052_current_limits[3][4] = {
61 {700000, 800000, 1000000, 1200000}, /* DA9052-BC BUCKs */
62 {1600000, 2000000, 2400000, 3000000}, /* DA9053-AA/Bx BUCK-CORE */
63 {800000, 1000000, 1200000, 1500000}, /* DA9053-AA/Bx BUCK-PRO,
64 * BUCK-MEM and BUCK-PERI
65 */
66};
67
68struct da9052_regulator_info {
69 struct regulator_desc reg_desc;
70 int step_uV;
71 int min_uV;
72 int max_uV;
Ashish Jangam08bf1c02011-12-09 19:48:20 +053073 unsigned char activate_bit;
74};
75
76struct da9052_regulator {
77 struct da9052 *da9052;
78 struct da9052_regulator_info *info;
79 struct regulator_dev *rdev;
80};
81
82static int verify_range(struct da9052_regulator_info *info,
83 int min_uV, int max_uV)
84{
85 if (min_uV > info->max_uV || max_uV < info->min_uV)
86 return -EINVAL;
87
88 return 0;
89}
90
Ashish Jangam08bf1c02011-12-09 19:48:20 +053091static int da9052_dcdc_get_current_limit(struct regulator_dev *rdev)
92{
93 struct da9052_regulator *regulator = rdev_get_drvdata(rdev);
94 int offset = rdev_get_id(rdev);
95 int ret, row = 2;
96
97 ret = da9052_reg_read(regulator->da9052, DA9052_BUCKA_REG + offset/2);
98 if (ret < 0)
99 return ret;
100
101 /* Determine the even or odd position of the buck current limit
102 * register field
103 */
104 if (offset % 2 == 0)
105 ret = (ret & DA9052_BUCK_ILIM_MASK_EVEN) >> 2;
106 else
107 ret = (ret & DA9052_BUCK_ILIM_MASK_ODD) >> 6;
108
109 /* Select the appropriate current limit range */
110 if (regulator->da9052->chip_id == DA9052)
111 row = 0;
112 else if (offset == 0)
113 row = 1;
114
115 return da9052_current_limits[row][ret];
116}
117
118static int da9052_dcdc_set_current_limit(struct regulator_dev *rdev, int min_uA,
119 int max_uA)
120{
121 struct da9052_regulator *regulator = rdev_get_drvdata(rdev);
122 int offset = rdev_get_id(rdev);
123 int reg_val = 0;
124 int i, row = 2;
125
126 /* Select the appropriate current limit range */
127 if (regulator->da9052->chip_id == DA9052)
128 row = 0;
129 else if (offset == 0)
130 row = 1;
131
132 if (min_uA > da9052_current_limits[row][DA9052_MAX_UA] ||
133 max_uA < da9052_current_limits[row][DA9052_MIN_UA])
134 return -EINVAL;
135
136 for (i = 0; i < DA9052_CURRENT_RANGE; i++) {
137 if (min_uA <= da9052_current_limits[row][i]) {
138 reg_val = i;
139 break;
140 }
141 }
142
143 /* Determine the even or odd position of the buck current limit
144 * register field
145 */
146 if (offset % 2 == 0)
147 return da9052_reg_update(regulator->da9052,
148 DA9052_BUCKA_REG + offset/2,
149 DA9052_BUCK_ILIM_MASK_EVEN,
150 reg_val << 2);
151 else
152 return da9052_reg_update(regulator->da9052,
153 DA9052_BUCKA_REG + offset/2,
154 DA9052_BUCK_ILIM_MASK_ODD,
155 reg_val << 6);
156}
157
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530158static int da9052_list_voltage(struct regulator_dev *rdev,
159 unsigned int selector)
160{
161 struct da9052_regulator *regulator = rdev_get_drvdata(rdev);
162 struct da9052_regulator_info *info = regulator->info;
Axel Lin0ec446e2012-03-15 20:00:07 +0800163 int id = rdev_get_id(rdev);
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530164 int volt_uV;
165
Axel Lin0ec446e2012-03-15 20:00:07 +0800166 if ((id == DA9052_ID_BUCK4) && (regulator->da9052->chip_id == DA9052)
167 && (selector >= DA9052_BUCK_PERI_REG_MAP_UPTO_3uV)) {
168 volt_uV = ((DA9052_BUCK_PERI_REG_MAP_UPTO_3uV * info->step_uV)
169 + info->min_uV);
170 volt_uV += (selector - DA9052_BUCK_PERI_REG_MAP_UPTO_3uV)
171 * (DA9052_BUCK_PERI_3uV_STEP);
172 } else {
173 volt_uV = (selector * info->step_uV) + info->min_uV;
174 }
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530175
176 if (volt_uV > info->max_uV)
177 return -EINVAL;
178
179 return volt_uV;
180}
181
Axel Lin0ec446e2012-03-15 20:00:07 +0800182static int da9052_regulator_set_voltage(struct regulator_dev *rdev,
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530183 int min_uV, int max_uV,
184 unsigned int *selector)
185{
186 struct da9052_regulator *regulator = rdev_get_drvdata(rdev);
187 struct da9052_regulator_info *info = regulator->info;
Axel Lin0ec446e2012-03-15 20:00:07 +0800188 int id = rdev_get_id(rdev);
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530189 int ret;
190
191 ret = verify_range(info, min_uV, max_uV);
192 if (ret < 0)
193 return ret;
194
195 if (min_uV < info->min_uV)
196 min_uV = info->min_uV;
197
Axel Lin0ec446e2012-03-15 20:00:07 +0800198 if ((id == DA9052_ID_BUCK4) && (regulator->da9052->chip_id == DA9052)
199 && (min_uV >= DA9052_CONST_3uV)) {
200 *selector = DA9052_BUCK_PERI_REG_MAP_UPTO_3uV +
201 DIV_ROUND_UP(min_uV - DA9052_CONST_3uV,
202 DA9052_BUCK_PERI_3uV_STEP);
203 } else {
204 *selector = DIV_ROUND_UP(min_uV - info->min_uV, info->step_uV);
205 }
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530206
207 ret = da9052_list_voltage(rdev, *selector);
208 if (ret < 0)
209 return ret;
210
Axel Lin09812bc2012-04-24 09:54:38 +0800211 ret = da9052_reg_update(regulator->da9052, rdev->desc->vsel_reg,
212 rdev->desc->vsel_mask, *selector);
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530213 if (ret < 0)
214 return ret;
215
Axel Lin0ec446e2012-03-15 20:00:07 +0800216 /* Some LDOs and DCDCs are DVC controlled which requires enabling of
217 * the activate bit to implment the changes on the output.
218 */
219 switch (id) {
220 case DA9052_ID_BUCK1:
221 case DA9052_ID_BUCK2:
222 case DA9052_ID_BUCK3:
223 case DA9052_ID_LDO2:
224 case DA9052_ID_LDO3:
225 ret = da9052_reg_update(regulator->da9052, DA9052_SUPPLY_REG,
226 info->activate_bit, info->activate_bit);
227 break;
228 }
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530229
Axel Lin0ec446e2012-03-15 20:00:07 +0800230 return ret;
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530231}
232
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530233static struct regulator_ops da9052_dcdc_ops = {
Axel Lin0ec446e2012-03-15 20:00:07 +0800234 .set_voltage = da9052_regulator_set_voltage,
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530235 .get_current_limit = da9052_dcdc_get_current_limit,
236 .set_current_limit = da9052_dcdc_set_current_limit,
237
238 .list_voltage = da9052_list_voltage,
Axel Lin09812bc2012-04-24 09:54:38 +0800239 .get_voltage_sel = regulator_get_voltage_sel_regmap,
Axel Lin0d481f72012-04-17 11:34:32 +0800240 .is_enabled = regulator_is_enabled_regmap,
241 .enable = regulator_enable_regmap,
242 .disable = regulator_disable_regmap,
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530243};
244
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530245static struct regulator_ops da9052_ldo_ops = {
Axel Lin0ec446e2012-03-15 20:00:07 +0800246 .set_voltage = da9052_regulator_set_voltage,
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530247
248 .list_voltage = da9052_list_voltage,
Axel Lin09812bc2012-04-24 09:54:38 +0800249 .get_voltage_sel = regulator_get_voltage_sel_regmap,
Axel Lin0d481f72012-04-17 11:34:32 +0800250 .is_enabled = regulator_is_enabled_regmap,
251 .enable = regulator_enable_regmap,
252 .disable = regulator_disable_regmap,
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530253};
254
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530255#define DA9052_LDO(_id, step, min, max, sbits, ebits, abits) \
256{\
257 .reg_desc = {\
Axel Lin9210f052012-03-15 19:58:39 +0800258 .name = #_id,\
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530259 .ops = &da9052_ldo_ops,\
260 .type = REGULATOR_VOLTAGE,\
Axel Lin9210f052012-03-15 19:58:39 +0800261 .id = DA9052_ID_##_id,\
Axel Lin7b957652012-03-05 20:04:32 +0800262 .n_voltages = (max - min) / step + 1, \
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530263 .owner = THIS_MODULE,\
Axel Lin09812bc2012-04-24 09:54:38 +0800264 .vsel_reg = DA9052_BUCKCORE_REG + DA9052_ID_##_id, \
265 .vsel_mask = (1 << (sbits)) - 1,\
Axel Lin0d481f72012-04-17 11:34:32 +0800266 .enable_reg = DA9052_BUCKCORE_REG + DA9052_ID_##_id, \
267 .enable_mask = 1 << (ebits),\
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530268 },\
269 .min_uV = (min) * 1000,\
270 .max_uV = (max) * 1000,\
271 .step_uV = (step) * 1000,\
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530272 .activate_bit = (abits),\
273}
274
275#define DA9052_DCDC(_id, step, min, max, sbits, ebits, abits) \
276{\
277 .reg_desc = {\
Axel Lin9210f052012-03-15 19:58:39 +0800278 .name = #_id,\
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530279 .ops = &da9052_dcdc_ops,\
280 .type = REGULATOR_VOLTAGE,\
Axel Lin9210f052012-03-15 19:58:39 +0800281 .id = DA9052_ID_##_id,\
Axel Lin7b957652012-03-05 20:04:32 +0800282 .n_voltages = (max - min) / step + 1, \
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530283 .owner = THIS_MODULE,\
Axel Lin09812bc2012-04-24 09:54:38 +0800284 .vsel_reg = DA9052_BUCKCORE_REG + DA9052_ID_##_id, \
285 .vsel_mask = (1 << (sbits)) - 1,\
Axel Lin0d481f72012-04-17 11:34:32 +0800286 .enable_reg = DA9052_BUCKCORE_REG + DA9052_ID_##_id, \
287 .enable_mask = 1 << (ebits),\
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530288 },\
289 .min_uV = (min) * 1000,\
290 .max_uV = (max) * 1000,\
291 .step_uV = (step) * 1000,\
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530292 .activate_bit = (abits),\
293}
294
Axel Lin6242eae2011-12-20 17:12:00 +0800295static struct da9052_regulator_info da9052_regulator_info[] = {
Axel Lin9210f052012-03-15 19:58:39 +0800296 DA9052_DCDC(BUCK1, 25, 500, 2075, 6, 6, DA9052_SUPPLY_VBCOREGO),
297 DA9052_DCDC(BUCK2, 25, 500, 2075, 6, 6, DA9052_SUPPLY_VBPROGO),
298 DA9052_DCDC(BUCK3, 25, 925, 2500, 6, 6, DA9052_SUPPLY_VBMEMGO),
Axel Lin0ec446e2012-03-15 20:00:07 +0800299 DA9052_DCDC(BUCK4, 50, 1800, 3600, 5, 6, 0),
Axel Lin9210f052012-03-15 19:58:39 +0800300 DA9052_LDO(LDO1, 50, 600, 1800, 5, 6, 0),
Axel Lin0ec446e2012-03-15 20:00:07 +0800301 DA9052_LDO(LDO2, 25, 600, 1800, 6, 6, DA9052_SUPPLY_VLDO2GO),
302 DA9052_LDO(LDO3, 25, 1725, 3300, 6, 6, DA9052_SUPPLY_VLDO3GO),
Axel Lin9210f052012-03-15 19:58:39 +0800303 DA9052_LDO(LDO4, 25, 1725, 3300, 6, 6, 0),
304 DA9052_LDO(LDO5, 50, 1200, 3600, 6, 6, 0),
305 DA9052_LDO(LDO6, 50, 1200, 3600, 6, 6, 0),
306 DA9052_LDO(LDO7, 50, 1200, 3600, 6, 6, 0),
307 DA9052_LDO(LDO8, 50, 1200, 3600, 6, 6, 0),
308 DA9052_LDO(LDO9, 50, 1250, 3650, 6, 6, 0),
309 DA9052_LDO(LDO10, 50, 1200, 3600, 6, 6, 0),
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530310};
311
Axel Lin6242eae2011-12-20 17:12:00 +0800312static struct da9052_regulator_info da9053_regulator_info[] = {
Axel Lin9210f052012-03-15 19:58:39 +0800313 DA9052_DCDC(BUCK1, 25, 500, 2075, 6, 6, DA9052_SUPPLY_VBCOREGO),
314 DA9052_DCDC(BUCK2, 25, 500, 2075, 6, 6, DA9052_SUPPLY_VBPROGO),
315 DA9052_DCDC(BUCK3, 25, 925, 2500, 6, 6, DA9052_SUPPLY_VBMEMGO),
Axel Lin0ec446e2012-03-15 20:00:07 +0800316 DA9052_DCDC(BUCK4, 25, 925, 2500, 6, 6, 0),
Axel Lin9210f052012-03-15 19:58:39 +0800317 DA9052_LDO(LDO1, 50, 600, 1800, 5, 6, 0),
Axel Lin0ec446e2012-03-15 20:00:07 +0800318 DA9052_LDO(LDO2, 25, 600, 1800, 6, 6, DA9052_SUPPLY_VLDO2GO),
319 DA9052_LDO(LDO3, 25, 1725, 3300, 6, 6, DA9052_SUPPLY_VLDO3GO),
Axel Lin9210f052012-03-15 19:58:39 +0800320 DA9052_LDO(LDO4, 25, 1725, 3300, 6, 6, 0),
321 DA9052_LDO(LDO5, 50, 1200, 3600, 6, 6, 0),
322 DA9052_LDO(LDO6, 50, 1200, 3600, 6, 6, 0),
323 DA9052_LDO(LDO7, 50, 1200, 3600, 6, 6, 0),
324 DA9052_LDO(LDO8, 50, 1200, 3600, 6, 6, 0),
325 DA9052_LDO(LDO9, 50, 1250, 3650, 6, 6, 0),
326 DA9052_LDO(LDO10, 50, 1200, 3600, 6, 6, 0),
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530327};
328
329static inline struct da9052_regulator_info *find_regulator_info(u8 chip_id,
330 int id)
331{
332 struct da9052_regulator_info *info;
333 int i;
334
Ashish Jangam984b5a62011-12-15 18:59:53 +0530335 switch (chip_id) {
336 case DA9052:
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530337 for (i = 0; i < ARRAY_SIZE(da9052_regulator_info); i++) {
338 info = &da9052_regulator_info[i];
339 if (info->reg_desc.id == id)
340 return info;
341 }
Ashish Jangam984b5a62011-12-15 18:59:53 +0530342 break;
343 case DA9053_AA:
344 case DA9053_BA:
345 case DA9053_BB:
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530346 for (i = 0; i < ARRAY_SIZE(da9053_regulator_info); i++) {
347 info = &da9053_regulator_info[i];
348 if (info->reg_desc.id == id)
349 return info;
350 }
Ashish Jangam984b5a62011-12-15 18:59:53 +0530351 break;
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530352 }
353
354 return NULL;
355}
356
357static int __devinit da9052_regulator_probe(struct platform_device *pdev)
358{
Mark Brownc1727082012-04-04 00:50:22 +0100359 struct regulator_config config = { };
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530360 struct da9052_regulator *regulator;
361 struct da9052 *da9052;
362 struct da9052_pdata *pdata;
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530363
Ashish Jangam984b5a62011-12-15 18:59:53 +0530364 regulator = devm_kzalloc(&pdev->dev, sizeof(struct da9052_regulator),
365 GFP_KERNEL);
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530366 if (!regulator)
367 return -ENOMEM;
368
369 da9052 = dev_get_drvdata(pdev->dev.parent);
370 pdata = da9052->dev->platform_data;
371 regulator->da9052 = da9052;
372
373 regulator->info = find_regulator_info(regulator->da9052->chip_id,
374 pdev->id);
375 if (regulator->info == NULL) {
376 dev_err(&pdev->dev, "invalid regulator ID specified\n");
Axel Lin7eb64442012-04-05 12:08:58 +0800377 return -EINVAL;
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530378 }
Mark Brownc1727082012-04-04 00:50:22 +0100379
380 config.dev = &pdev->dev;
Mark Brownc1727082012-04-04 00:50:22 +0100381 config.driver_data = regulator;
Axel Lin0d481f72012-04-17 11:34:32 +0800382 config.regmap = da9052->regmap;
Ying-Chun Liu (PaulLiu)88c84c12012-04-13 21:37:41 +0800383 if (pdata && pdata->regulators) {
384 config.init_data = pdata->regulators[pdev->id];
385 } else {
386#ifdef CONFIG_OF
387 struct device_node *nproot = da9052->dev->of_node;
388 struct device_node *np;
389
390 if (!nproot)
391 return -ENODEV;
392
393 nproot = of_find_node_by_name(nproot, "regulators");
394 if (!nproot)
395 return -ENODEV;
396
Ying-Chun Liu (PaulLiu)8e8a5072012-05-07 15:57:23 +0800397 for (np = of_get_next_child(nproot, NULL); np;
Ying-Chun Liu (PaulLiu)88c84c12012-04-13 21:37:41 +0800398 np = of_get_next_child(nproot, np)) {
399 if (!of_node_cmp(np->name,
400 regulator->info->reg_desc.name)) {
401 config.init_data = of_get_regulator_init_data(
402 &pdev->dev, np);
403 break;
404 }
405 }
406#endif
407 }
Mark Brownc1727082012-04-04 00:50:22 +0100408
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530409 regulator->rdev = regulator_register(&regulator->info->reg_desc,
Mark Brownc1727082012-04-04 00:50:22 +0100410 &config);
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530411 if (IS_ERR(regulator->rdev)) {
412 dev_err(&pdev->dev, "failed to register regulator %s\n",
413 regulator->info->reg_desc.name);
Axel Lin7eb64442012-04-05 12:08:58 +0800414 return PTR_ERR(regulator->rdev);
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530415 }
416
417 platform_set_drvdata(pdev, regulator);
418
419 return 0;
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530420}
421
422static int __devexit da9052_regulator_remove(struct platform_device *pdev)
423{
424 struct da9052_regulator *regulator = platform_get_drvdata(pdev);
425
426 regulator_unregister(regulator->rdev);
Ashish Jangam08bf1c02011-12-09 19:48:20 +0530427 return 0;
428}
429
430static struct platform_driver da9052_regulator_driver = {
431 .probe = da9052_regulator_probe,
432 .remove = __devexit_p(da9052_regulator_remove),
433 .driver = {
434 .name = "da9052-regulator",
435 .owner = THIS_MODULE,
436 },
437};
438
439static int __init da9052_regulator_init(void)
440{
441 return platform_driver_register(&da9052_regulator_driver);
442}
443subsys_initcall(da9052_regulator_init);
444
445static void __exit da9052_regulator_exit(void)
446{
447 platform_driver_unregister(&da9052_regulator_driver);
448}
449module_exit(da9052_regulator_exit);
450
451MODULE_AUTHOR("David Dajun Chen <dchen@diasemi.com>");
452MODULE_DESCRIPTION("Power Regulator driver for Dialog DA9052 PMIC");
453MODULE_LICENSE("GPL");
454MODULE_ALIAS("platform:da9052-regulator");