Re: [PATCH 1/4] devicetree: add a binding for a regulator that constrains its supply
From: Mark Brown
Date: Mon Nov 24 2014 - 13:06:30 EST
On Mon, Nov 24, 2014 at 06:12:33PM +0100, Alban Bedel wrote:
> Using this driver the DTS for the add-on board can further constrain
> this supply to get the voltage it need, for example 3.3V. I understand
> I saw 3 ways to solve this problem:
> 1) This, use a "filter" regulator
> 2) Extend each and every driver that use a voltage regulator to
> optionally set the voltage
> 3) Include the required range in the phandle reference
> #1 was the easiest :) #2 doesn't seems practical to me, #3 seems pretty
> good but I'm really not sure if that would be acceptable.
The DT overlay for the add on board should be setting the constraints
for the parent regulator. I wouldn't expect the final DT to look any
different to how it looks with no hardware modularity unless the actual
module is interesting enough to have a driver of its own.
Attachment:
signature.asc
Description: Digital signature