2 * wm831x-ldo.c -- LDO driver for the WM831x series
4 * Copyright 2009 Wolfson Microelectronics PLC.
6 * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; either version 2 of the License, or (at your
11 * option) any later version.
14 #include <linux/module.h>
15 #include <linux/moduleparam.h>
16 #include <linux/init.h>
17 #include <linux/bitops.h>
18 #include <linux/err.h>
19 #include <linux/i2c.h>
20 #include <linux/platform_device.h>
21 #include <linux/regulator/driver.h>
22 #include <linux/slab.h>
24 #include <linux/mfd/wm831x/core.h>
25 #include <linux/mfd/wm831x/regulator.h>
26 #include <linux/mfd/wm831x/pdata.h>
28 #define WM831X_LDO_MAX_NAME 9
30 #define WM831X_LDO_CONTROL 0
31 #define WM831X_LDO_ON_CONTROL 1
32 #define WM831X_LDO_SLEEP_CONTROL 2
34 #define WM831X_ALIVE_LDO_ON_CONTROL 0
35 #define WM831X_ALIVE_LDO_SLEEP_CONTROL 1
38 char name
[WM831X_LDO_MAX_NAME
];
39 char supply_name
[WM831X_LDO_MAX_NAME
];
40 struct regulator_desc desc
;
42 struct wm831x
*wm831x
;
43 struct regulator_dev
*regulator
;
50 static irqreturn_t
wm831x_ldo_uv_irq(int irq
, void *data
)
52 struct wm831x_ldo
*ldo
= data
;
54 regulator_notifier_call_chain(ldo
->regulator
,
55 REGULATOR_EVENT_UNDER_VOLTAGE
,
62 * General purpose LDOs
65 static const struct regulator_linear_range wm831x_gp_ldo_ranges
[] = {
66 { .min_uV
= 900000, .max_uV
= 1600000, .min_sel
= 0, .max_sel
= 14,
68 { .min_uV
= 1700000, .max_uV
= 3300000, .min_sel
= 15, .max_sel
= 31,
72 static int wm831x_gp_ldo_set_suspend_voltage(struct regulator_dev
*rdev
,
75 struct wm831x_ldo
*ldo
= rdev_get_drvdata(rdev
);
76 struct wm831x
*wm831x
= ldo
->wm831x
;
77 int sel
, reg
= ldo
->base
+ WM831X_LDO_SLEEP_CONTROL
;
79 sel
= regulator_map_voltage_linear_range(rdev
, uV
, uV
);
83 return wm831x_set_bits(wm831x
, reg
, WM831X_LDO1_ON_VSEL_MASK
, sel
);
86 static unsigned int wm831x_gp_ldo_get_mode(struct regulator_dev
*rdev
)
88 struct wm831x_ldo
*ldo
= rdev_get_drvdata(rdev
);
89 struct wm831x
*wm831x
= ldo
->wm831x
;
90 int ctrl_reg
= ldo
->base
+ WM831X_LDO_CONTROL
;
91 int on_reg
= ldo
->base
+ WM831X_LDO_ON_CONTROL
;
94 ret
= wm831x_reg_read(wm831x
, on_reg
);
98 if (!(ret
& WM831X_LDO1_ON_MODE
))
99 return REGULATOR_MODE_NORMAL
;
101 ret
= wm831x_reg_read(wm831x
, ctrl_reg
);
105 if (ret
& WM831X_LDO1_LP_MODE
)
106 return REGULATOR_MODE_STANDBY
;
108 return REGULATOR_MODE_IDLE
;
111 static int wm831x_gp_ldo_set_mode(struct regulator_dev
*rdev
,
114 struct wm831x_ldo
*ldo
= rdev_get_drvdata(rdev
);
115 struct wm831x
*wm831x
= ldo
->wm831x
;
116 int ctrl_reg
= ldo
->base
+ WM831X_LDO_CONTROL
;
117 int on_reg
= ldo
->base
+ WM831X_LDO_ON_CONTROL
;
122 case REGULATOR_MODE_NORMAL
:
123 ret
= wm831x_set_bits(wm831x
, on_reg
,
124 WM831X_LDO1_ON_MODE
, 0);
129 case REGULATOR_MODE_IDLE
:
130 ret
= wm831x_set_bits(wm831x
, ctrl_reg
,
131 WM831X_LDO1_LP_MODE
, 0);
135 ret
= wm831x_set_bits(wm831x
, on_reg
,
137 WM831X_LDO1_ON_MODE
);
142 case REGULATOR_MODE_STANDBY
:
143 ret
= wm831x_set_bits(wm831x
, ctrl_reg
,
145 WM831X_LDO1_LP_MODE
);
149 ret
= wm831x_set_bits(wm831x
, on_reg
,
151 WM831X_LDO1_ON_MODE
);
163 static int wm831x_gp_ldo_get_status(struct regulator_dev
*rdev
)
165 struct wm831x_ldo
*ldo
= rdev_get_drvdata(rdev
);
166 struct wm831x
*wm831x
= ldo
->wm831x
;
167 int mask
= 1 << rdev_get_id(rdev
);
170 /* Is the regulator on? */
171 ret
= wm831x_reg_read(wm831x
, WM831X_LDO_STATUS
);
175 return REGULATOR_STATUS_OFF
;
177 /* Is it reporting under voltage? */
178 ret
= wm831x_reg_read(wm831x
, WM831X_LDO_UV_STATUS
);
182 return REGULATOR_STATUS_ERROR
;
184 ret
= wm831x_gp_ldo_get_mode(rdev
);
188 return regulator_mode_to_status(ret
);
191 static unsigned int wm831x_gp_ldo_get_optimum_mode(struct regulator_dev
*rdev
,
193 int output_uV
, int load_uA
)
196 return REGULATOR_MODE_STANDBY
;
198 return REGULATOR_MODE_IDLE
;
199 return REGULATOR_MODE_NORMAL
;
203 static struct regulator_ops wm831x_gp_ldo_ops
= {
204 .list_voltage
= regulator_list_voltage_linear_range
,
205 .map_voltage
= regulator_map_voltage_linear_range
,
206 .get_voltage_sel
= regulator_get_voltage_sel_regmap
,
207 .set_voltage_sel
= regulator_set_voltage_sel_regmap
,
208 .set_suspend_voltage
= wm831x_gp_ldo_set_suspend_voltage
,
209 .get_mode
= wm831x_gp_ldo_get_mode
,
210 .set_mode
= wm831x_gp_ldo_set_mode
,
211 .get_status
= wm831x_gp_ldo_get_status
,
212 .get_optimum_mode
= wm831x_gp_ldo_get_optimum_mode
,
213 .get_bypass
= regulator_get_bypass_regmap
,
214 .set_bypass
= regulator_set_bypass_regmap
,
216 .is_enabled
= regulator_is_enabled_regmap
,
217 .enable
= regulator_enable_regmap
,
218 .disable
= regulator_disable_regmap
,
221 static int wm831x_gp_ldo_probe(struct platform_device
*pdev
)
223 struct wm831x
*wm831x
= dev_get_drvdata(pdev
->dev
.parent
);
224 struct wm831x_pdata
*pdata
= dev_get_platdata(wm831x
->dev
);
225 struct regulator_config config
= { };
227 struct wm831x_ldo
*ldo
;
228 struct resource
*res
;
231 if (pdata
&& pdata
->wm831x_num
)
232 id
= (pdata
->wm831x_num
* 10) + 1;
237 dev_dbg(&pdev
->dev
, "Probing LDO%d\n", id
+ 1);
239 ldo
= devm_kzalloc(&pdev
->dev
, sizeof(struct wm831x_ldo
), GFP_KERNEL
);
241 dev_err(&pdev
->dev
, "Unable to allocate private data\n");
245 ldo
->wm831x
= wm831x
;
247 res
= platform_get_resource(pdev
, IORESOURCE_REG
, 0);
249 dev_err(&pdev
->dev
, "No REG resource\n");
253 ldo
->base
= res
->start
;
255 snprintf(ldo
->name
, sizeof(ldo
->name
), "LDO%d", id
+ 1);
256 ldo
->desc
.name
= ldo
->name
;
258 snprintf(ldo
->supply_name
, sizeof(ldo
->supply_name
),
260 ldo
->desc
.supply_name
= ldo
->supply_name
;
263 ldo
->desc
.type
= REGULATOR_VOLTAGE
;
264 ldo
->desc
.n_voltages
= 32;
265 ldo
->desc
.ops
= &wm831x_gp_ldo_ops
;
266 ldo
->desc
.owner
= THIS_MODULE
;
267 ldo
->desc
.vsel_reg
= ldo
->base
+ WM831X_LDO_ON_CONTROL
;
268 ldo
->desc
.vsel_mask
= WM831X_LDO1_ON_VSEL_MASK
;
269 ldo
->desc
.enable_reg
= WM831X_LDO_ENABLE
;
270 ldo
->desc
.enable_mask
= 1 << id
;
271 ldo
->desc
.bypass_reg
= ldo
->base
;
272 ldo
->desc
.bypass_mask
= WM831X_LDO1_SWI
;
273 ldo
->desc
.linear_ranges
= wm831x_gp_ldo_ranges
;
274 ldo
->desc
.n_linear_ranges
= ARRAY_SIZE(wm831x_gp_ldo_ranges
);
276 config
.dev
= pdev
->dev
.parent
;
278 config
.init_data
= pdata
->ldo
[id
];
279 config
.driver_data
= ldo
;
280 config
.regmap
= wm831x
->regmap
;
282 ldo
->regulator
= regulator_register(&ldo
->desc
, &config
);
283 if (IS_ERR(ldo
->regulator
)) {
284 ret
= PTR_ERR(ldo
->regulator
);
285 dev_err(wm831x
->dev
, "Failed to register LDO%d: %d\n",
290 irq
= wm831x_irq(wm831x
, platform_get_irq_byname(pdev
, "UV"));
291 ret
= request_threaded_irq(irq
, NULL
, wm831x_ldo_uv_irq
,
292 IRQF_TRIGGER_RISING
, ldo
->name
,
295 dev_err(&pdev
->dev
, "Failed to request UV IRQ %d: %d\n",
300 platform_set_drvdata(pdev
, ldo
);
305 regulator_unregister(ldo
->regulator
);
310 static int wm831x_gp_ldo_remove(struct platform_device
*pdev
)
312 struct wm831x_ldo
*ldo
= platform_get_drvdata(pdev
);
314 free_irq(wm831x_irq(ldo
->wm831x
,
315 platform_get_irq_byname(pdev
, "UV")), ldo
);
316 regulator_unregister(ldo
->regulator
);
321 static struct platform_driver wm831x_gp_ldo_driver
= {
322 .probe
= wm831x_gp_ldo_probe
,
323 .remove
= wm831x_gp_ldo_remove
,
325 .name
= "wm831x-ldo",
326 .owner
= THIS_MODULE
,
334 static const struct regulator_linear_range wm831x_aldo_ranges
[] = {
335 { .min_uV
= 1000000, .max_uV
= 1600000, .min_sel
= 0, .max_sel
= 12,
337 { .min_uV
= 1700000, .max_uV
= 3500000, .min_sel
= 13, .max_sel
= 31,
341 static int wm831x_aldo_set_suspend_voltage(struct regulator_dev
*rdev
,
344 struct wm831x_ldo
*ldo
= rdev_get_drvdata(rdev
);
345 struct wm831x
*wm831x
= ldo
->wm831x
;
346 int sel
, reg
= ldo
->base
+ WM831X_LDO_SLEEP_CONTROL
;
348 sel
= regulator_map_voltage_linear_range(rdev
, uV
, uV
);
352 return wm831x_set_bits(wm831x
, reg
, WM831X_LDO7_ON_VSEL_MASK
, sel
);
355 static unsigned int wm831x_aldo_get_mode(struct regulator_dev
*rdev
)
357 struct wm831x_ldo
*ldo
= rdev_get_drvdata(rdev
);
358 struct wm831x
*wm831x
= ldo
->wm831x
;
359 int on_reg
= ldo
->base
+ WM831X_LDO_ON_CONTROL
;
362 ret
= wm831x_reg_read(wm831x
, on_reg
);
366 if (ret
& WM831X_LDO7_ON_MODE
)
367 return REGULATOR_MODE_IDLE
;
369 return REGULATOR_MODE_NORMAL
;
372 static int wm831x_aldo_set_mode(struct regulator_dev
*rdev
,
375 struct wm831x_ldo
*ldo
= rdev_get_drvdata(rdev
);
376 struct wm831x
*wm831x
= ldo
->wm831x
;
377 int on_reg
= ldo
->base
+ WM831X_LDO_ON_CONTROL
;
382 case REGULATOR_MODE_NORMAL
:
383 ret
= wm831x_set_bits(wm831x
, on_reg
, WM831X_LDO7_ON_MODE
, 0);
388 case REGULATOR_MODE_IDLE
:
389 ret
= wm831x_set_bits(wm831x
, on_reg
, WM831X_LDO7_ON_MODE
,
390 WM831X_LDO7_ON_MODE
);
402 static int wm831x_aldo_get_status(struct regulator_dev
*rdev
)
404 struct wm831x_ldo
*ldo
= rdev_get_drvdata(rdev
);
405 struct wm831x
*wm831x
= ldo
->wm831x
;
406 int mask
= 1 << rdev_get_id(rdev
);
409 /* Is the regulator on? */
410 ret
= wm831x_reg_read(wm831x
, WM831X_LDO_STATUS
);
414 return REGULATOR_STATUS_OFF
;
416 /* Is it reporting under voltage? */
417 ret
= wm831x_reg_read(wm831x
, WM831X_LDO_UV_STATUS
);
421 return REGULATOR_STATUS_ERROR
;
423 ret
= wm831x_aldo_get_mode(rdev
);
427 return regulator_mode_to_status(ret
);
430 static struct regulator_ops wm831x_aldo_ops
= {
431 .list_voltage
= regulator_list_voltage_linear_range
,
432 .map_voltage
= regulator_map_voltage_linear_range
,
433 .get_voltage_sel
= regulator_get_voltage_sel_regmap
,
434 .set_voltage_sel
= regulator_set_voltage_sel_regmap
,
435 .set_suspend_voltage
= wm831x_aldo_set_suspend_voltage
,
436 .get_mode
= wm831x_aldo_get_mode
,
437 .set_mode
= wm831x_aldo_set_mode
,
438 .get_status
= wm831x_aldo_get_status
,
439 .set_bypass
= regulator_set_bypass_regmap
,
440 .get_bypass
= regulator_get_bypass_regmap
,
442 .is_enabled
= regulator_is_enabled_regmap
,
443 .enable
= regulator_enable_regmap
,
444 .disable
= regulator_disable_regmap
,
447 static int wm831x_aldo_probe(struct platform_device
*pdev
)
449 struct wm831x
*wm831x
= dev_get_drvdata(pdev
->dev
.parent
);
450 struct wm831x_pdata
*pdata
= dev_get_platdata(wm831x
->dev
);
451 struct regulator_config config
= { };
453 struct wm831x_ldo
*ldo
;
454 struct resource
*res
;
457 if (pdata
&& pdata
->wm831x_num
)
458 id
= (pdata
->wm831x_num
* 10) + 1;
463 dev_dbg(&pdev
->dev
, "Probing LDO%d\n", id
+ 1);
465 ldo
= devm_kzalloc(&pdev
->dev
, sizeof(struct wm831x_ldo
), GFP_KERNEL
);
467 dev_err(&pdev
->dev
, "Unable to allocate private data\n");
471 ldo
->wm831x
= wm831x
;
473 res
= platform_get_resource(pdev
, IORESOURCE_REG
, 0);
475 dev_err(&pdev
->dev
, "No REG resource\n");
479 ldo
->base
= res
->start
;
481 snprintf(ldo
->name
, sizeof(ldo
->name
), "LDO%d", id
+ 1);
482 ldo
->desc
.name
= ldo
->name
;
484 snprintf(ldo
->supply_name
, sizeof(ldo
->supply_name
),
486 ldo
->desc
.supply_name
= ldo
->supply_name
;
489 ldo
->desc
.type
= REGULATOR_VOLTAGE
;
490 ldo
->desc
.n_voltages
= 32;
491 ldo
->desc
.linear_ranges
= wm831x_aldo_ranges
;
492 ldo
->desc
.n_linear_ranges
= ARRAY_SIZE(wm831x_aldo_ranges
);
493 ldo
->desc
.ops
= &wm831x_aldo_ops
;
494 ldo
->desc
.owner
= THIS_MODULE
;
495 ldo
->desc
.vsel_reg
= ldo
->base
+ WM831X_LDO_ON_CONTROL
;
496 ldo
->desc
.vsel_mask
= WM831X_LDO7_ON_VSEL_MASK
;
497 ldo
->desc
.enable_reg
= WM831X_LDO_ENABLE
;
498 ldo
->desc
.enable_mask
= 1 << id
;
499 ldo
->desc
.bypass_reg
= ldo
->base
;
500 ldo
->desc
.bypass_mask
= WM831X_LDO7_SWI
;
502 config
.dev
= pdev
->dev
.parent
;
504 config
.init_data
= pdata
->ldo
[id
];
505 config
.driver_data
= ldo
;
506 config
.regmap
= wm831x
->regmap
;
508 ldo
->regulator
= regulator_register(&ldo
->desc
, &config
);
509 if (IS_ERR(ldo
->regulator
)) {
510 ret
= PTR_ERR(ldo
->regulator
);
511 dev_err(wm831x
->dev
, "Failed to register LDO%d: %d\n",
516 irq
= wm831x_irq(wm831x
, platform_get_irq_byname(pdev
, "UV"));
517 ret
= request_threaded_irq(irq
, NULL
, wm831x_ldo_uv_irq
,
518 IRQF_TRIGGER_RISING
, ldo
->name
, ldo
);
520 dev_err(&pdev
->dev
, "Failed to request UV IRQ %d: %d\n",
525 platform_set_drvdata(pdev
, ldo
);
530 regulator_unregister(ldo
->regulator
);
535 static int wm831x_aldo_remove(struct platform_device
*pdev
)
537 struct wm831x_ldo
*ldo
= platform_get_drvdata(pdev
);
539 free_irq(wm831x_irq(ldo
->wm831x
, platform_get_irq_byname(pdev
, "UV")),
541 regulator_unregister(ldo
->regulator
);
546 static struct platform_driver wm831x_aldo_driver
= {
547 .probe
= wm831x_aldo_probe
,
548 .remove
= wm831x_aldo_remove
,
550 .name
= "wm831x-aldo",
551 .owner
= THIS_MODULE
,
559 #define WM831X_ALIVE_LDO_MAX_SELECTOR 0xf
561 static int wm831x_alive_ldo_set_suspend_voltage(struct regulator_dev
*rdev
,
564 struct wm831x_ldo
*ldo
= rdev_get_drvdata(rdev
);
565 struct wm831x
*wm831x
= ldo
->wm831x
;
566 int sel
, reg
= ldo
->base
+ WM831X_ALIVE_LDO_SLEEP_CONTROL
;
568 sel
= regulator_map_voltage_linear(rdev
, uV
, uV
);
572 return wm831x_set_bits(wm831x
, reg
, WM831X_LDO11_ON_VSEL_MASK
, sel
);
575 static int wm831x_alive_ldo_get_status(struct regulator_dev
*rdev
)
577 struct wm831x_ldo
*ldo
= rdev_get_drvdata(rdev
);
578 struct wm831x
*wm831x
= ldo
->wm831x
;
579 int mask
= 1 << rdev_get_id(rdev
);
582 /* Is the regulator on? */
583 ret
= wm831x_reg_read(wm831x
, WM831X_LDO_STATUS
);
587 return REGULATOR_STATUS_ON
;
589 return REGULATOR_STATUS_OFF
;
592 static struct regulator_ops wm831x_alive_ldo_ops
= {
593 .list_voltage
= regulator_list_voltage_linear
,
594 .map_voltage
= regulator_map_voltage_linear
,
595 .get_voltage_sel
= regulator_get_voltage_sel_regmap
,
596 .set_voltage_sel
= regulator_set_voltage_sel_regmap
,
597 .set_suspend_voltage
= wm831x_alive_ldo_set_suspend_voltage
,
598 .get_status
= wm831x_alive_ldo_get_status
,
600 .is_enabled
= regulator_is_enabled_regmap
,
601 .enable
= regulator_enable_regmap
,
602 .disable
= regulator_disable_regmap
,
605 static int wm831x_alive_ldo_probe(struct platform_device
*pdev
)
607 struct wm831x
*wm831x
= dev_get_drvdata(pdev
->dev
.parent
);
608 struct wm831x_pdata
*pdata
= dev_get_platdata(wm831x
->dev
);
609 struct regulator_config config
= { };
611 struct wm831x_ldo
*ldo
;
612 struct resource
*res
;
615 if (pdata
&& pdata
->wm831x_num
)
616 id
= (pdata
->wm831x_num
* 10) + 1;
622 dev_dbg(&pdev
->dev
, "Probing LDO%d\n", id
+ 1);
624 ldo
= devm_kzalloc(&pdev
->dev
, sizeof(struct wm831x_ldo
), GFP_KERNEL
);
626 dev_err(&pdev
->dev
, "Unable to allocate private data\n");
630 ldo
->wm831x
= wm831x
;
632 res
= platform_get_resource(pdev
, IORESOURCE_REG
, 0);
634 dev_err(&pdev
->dev
, "No REG resource\n");
638 ldo
->base
= res
->start
;
640 snprintf(ldo
->name
, sizeof(ldo
->name
), "LDO%d", id
+ 1);
641 ldo
->desc
.name
= ldo
->name
;
643 snprintf(ldo
->supply_name
, sizeof(ldo
->supply_name
),
645 ldo
->desc
.supply_name
= ldo
->supply_name
;
648 ldo
->desc
.type
= REGULATOR_VOLTAGE
;
649 ldo
->desc
.n_voltages
= WM831X_ALIVE_LDO_MAX_SELECTOR
+ 1;
650 ldo
->desc
.ops
= &wm831x_alive_ldo_ops
;
651 ldo
->desc
.owner
= THIS_MODULE
;
652 ldo
->desc
.vsel_reg
= ldo
->base
+ WM831X_ALIVE_LDO_ON_CONTROL
;
653 ldo
->desc
.vsel_mask
= WM831X_LDO11_ON_VSEL_MASK
;
654 ldo
->desc
.enable_reg
= WM831X_LDO_ENABLE
;
655 ldo
->desc
.enable_mask
= 1 << id
;
656 ldo
->desc
.min_uV
= 800000;
657 ldo
->desc
.uV_step
= 50000;
658 ldo
->desc
.enable_time
= 1000;
660 config
.dev
= pdev
->dev
.parent
;
662 config
.init_data
= pdata
->ldo
[id
];
663 config
.driver_data
= ldo
;
664 config
.regmap
= wm831x
->regmap
;
666 ldo
->regulator
= regulator_register(&ldo
->desc
, &config
);
667 if (IS_ERR(ldo
->regulator
)) {
668 ret
= PTR_ERR(ldo
->regulator
);
669 dev_err(wm831x
->dev
, "Failed to register LDO%d: %d\n",
674 platform_set_drvdata(pdev
, ldo
);
682 static int wm831x_alive_ldo_remove(struct platform_device
*pdev
)
684 struct wm831x_ldo
*ldo
= platform_get_drvdata(pdev
);
686 regulator_unregister(ldo
->regulator
);
691 static struct platform_driver wm831x_alive_ldo_driver
= {
692 .probe
= wm831x_alive_ldo_probe
,
693 .remove
= wm831x_alive_ldo_remove
,
695 .name
= "wm831x-alive-ldo",
696 .owner
= THIS_MODULE
,
700 static int __init
wm831x_ldo_init(void)
704 ret
= platform_driver_register(&wm831x_gp_ldo_driver
);
706 pr_err("Failed to register WM831x GP LDO driver: %d\n", ret
);
708 ret
= platform_driver_register(&wm831x_aldo_driver
);
710 pr_err("Failed to register WM831x ALDO driver: %d\n", ret
);
712 ret
= platform_driver_register(&wm831x_alive_ldo_driver
);
714 pr_err("Failed to register WM831x alive LDO driver: %d\n",
719 subsys_initcall(wm831x_ldo_init
);
721 static void __exit
wm831x_ldo_exit(void)
723 platform_driver_unregister(&wm831x_alive_ldo_driver
);
724 platform_driver_unregister(&wm831x_aldo_driver
);
725 platform_driver_unregister(&wm831x_gp_ldo_driver
);
727 module_exit(wm831x_ldo_exit
);
729 /* Module information */
730 MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>");
731 MODULE_DESCRIPTION("WM831x LDO driver");
732 MODULE_LICENSE("GPL");
733 MODULE_ALIAS("platform:wm831x-ldo");
734 MODULE_ALIAS("platform:wm831x-aldo");
735 MODULE_ALIAS("platform:wm831x-aliveldo");