[lkml]   [2023]   [Jan]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: fixed-regulator with enable from another regulator
Il 28 gennaio 2023 14:16:00 CET, Mark Brown <> ha scritto:
>On Fri, Jan 27, 2023 at 10:33:14PM +0100, Francesco Dolcini wrote:
>> I am trying to figure out if it is possible with the current
>> regulator-fixed or with any other solution already implemented in Linux
>> to have a regulator enabled from another one.
>Not really. You can model the regulators as sharing the same
>enable if there's a GPIO enable for the parent regulator,
>otherwise it'd need some framework work.

Thanks, I'll propose a patch if needed.

>> I am still not 100% sure if describing this specific hardware connection
>> would be required on my system, maybe I can just ignore all of that.
>It seems like a fairly strange hardware design TBH.

Just to shred some light on this weird request, I am not the one who did the design, but there is a reason.

There is one device that requires 3 different voltages, one of those come from a dedicated output of a PMIC, the other 2 from dedicated LDOs.

Having the enable of the 2 LDO on the PMIC output allows to control the power of the device without additional GPIOs usage (that were not available, for instance, while the PMIC can enable/disable the output from I2C).

(not that is relevant for this discussion, but this is of course fine for the power sequencing of this specific device).


Hello Mark,

 \ /
  Last update: 2023-03-27 00:00    [W:0.161 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site