Re: [PATCH 1/2] devicetree: power: add bindings for GPIO-driven power switches
From: Rob Herring <hidden>
Date: 2016-12-15 15:06:00
Also in:
linux-gpio, linux-iio, linux-pm, lkml
From: Rob Herring <hidden>
Date: 2016-12-15 15:06:00
Also in:
linux-gpio, linux-iio, linux-pm, lkml
On Wed, Dec 14, 2016 at 10:58 AM, Bartosz Golaszewski [off-list ref] wrote:
2016-12-13 20:27 GMT+01:00 Rob Herring [off-list ref]:quoted
On Sun, Dec 11, 2016 at 11:21:44PM +0100, Bartosz Golaszewski wrote:quoted
Some boards are equipped with simple, GPIO-driven power load switches. An example of such ICs is the TI tps229* series.How is this different than a GPIO regulator? The input and output voltages just happen to be the same. I could be convinced this is different enough to have a different compatible, but it somewhat seems you want to use this for IIO, so you are creating a different binding for that usecase.It's more of a fixed regulator I suppose. Do you mean adding a new compatible to the fixed-regulator binding (e.g. "gpio-power-switch" or "simple-power-switch") and then providing an iio driver for toggling the switch?
Yes, at least the first part. I view the switch as just a more specific subtype of a fixed-regulator. Whether an IIO driver is a separate discussion which is happening. Rob P.S. I really don't like compatibles with "simple". -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html