Re: Regulator supplies when using Device Tree

From: Mark Brown
Date: Mon Apr 02 2012 - 17:22:36 EST


On Mon, Apr 02, 2012 at 10:35:22AM -0700, Michael Bohan wrote:
> On 3/30/2012 3:36 AM, Mark Brown wrote:

> >The support for regulator-regulator supplies has always been problematic
> >and infrequently used -

> Hmm, I'd be interested to know the history there.

git logs should be instructive. The use part is just because most board
designs end up thinking of better things to do with their DCDCs than
drop the supply for LDOs.

> >Please be more specific about what you're actually trying to physically
> >accomplish here. It would be *extremely* unusual to see a regulator

> Some of our regulators take inputs from other regulators. Some
> regulators take their input from the battery. We support both types

Oh, if that's all it is that's totally normal and unsurprising. Just
tell the regulator API about the battery supply, typically people use
a fixed regulator for this. You don't have to specify a voltage when
you use them.

> I don't disagree that the new scheme makes supplies more like normal
> supplies. I'm just pointing out the solution doesn't appear perfect
> since extraneous code is put in the driver in this case.

To repeat yet again if you're putting code for this in the driver you've
got a clear abstraction failure.

Attachment: signature.asc
Description: Digital signature