Re: [PATCH 2.6.33] regulator: Implement WM831x BuckWise DC-DCconvertor DVS support

From: Liam Girdwood
Date: Tue Sep 29 2009 - 13:03:53 EST


On Thu, 2009-09-24 at 20:38 +0200, Samuel Ortiz wrote:
> On Thu, Sep 24, 2009 at 07:27:56PM +0100, Liam Girdwood wrote:
> > On Tue, 2009-09-22 at 08:47 -0700, Mark Brown wrote:
> > > The BuckWise DC-DC convertors in WM831x devices support switching to
> > > a second output voltage using the logic level on one of the device
> > > pins. This is intended to allow rapid voltage switching for uses like
> > > cpufreq, replacing the I2C or SPI write used to configure the voltage
> > > of the regulator with a much faster GPIO status change.
> > >
> > > This is implemented by keeping the DVS voltage configured as the
> > > maximum voltage permitted for the regulator. If a request is made
> > > for the maximum voltage then the GPIO is used to switch to the DVS
> > > voltage, otherwise the normal ON voltage is updated and used. This
> > > follows the idiom used by most cpufreq drivers, which drop the
> > > minimum voltage as the core frequency is dropped but use a constant
> > > maximum - raising the voltage should normally be fast, but lowering
> > > it may be slower.
> > >
> > > Configuration of the DVS MFP on the device should be done externally,
> > > for example via OTP.
> > >
> > > Support is present in the hardware for monitoring the status of the
> > > transition using a second GPIO. This is not currently implemented
> > > but platform data is provided for it - the driver currently assumes
> > > that the device will be configured to transition immediately - but
> > > platform data is provided to reduce merge issues once it is.
> > >
> > > Signed-off-by: Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
> > > ---
> > > drivers/regulator/wm831x-dcdc.c | 207 ++++++++++++++++++++++++++++++++++----
> > > include/linux/mfd/wm831x/pdata.h | 17 +++
> > > 2 files changed, 206 insertions(+), 18 deletions(-)
> > >
> >
> > Looks good to me.
> >
> > Samuel, are you ok with the pdata.h change going through regulator ?
> Yes, sure. Feel free to add my Acked-by if needed.

Applied.

Thanks

Liam

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/