All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] iio: GPIO power switch support
@ 2016-12-11 22:21 ` Bartosz Golaszewski
  0 siblings, 0 replies; 27+ messages in thread
From: Bartosz Golaszewski @ 2016-12-11 22:21 UTC (permalink / raw)
  To: Jonathan Cameron, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald-Stadler, Rob Herring, Mark Rutland
  Cc: linux-iio-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Kevin Hilman,
	Patrick Titiano, Neil Armstrong, Linus Walleij,
	Alexandre Courbot, linux-gpio-u79uwXL29TY76Z2rM5mHXA,
	Sebastian Reichel, linux-pm-u79uwXL29TY76Z2rM5mHXA, Mark Brown,
	Liam Girdwood, Bartosz Golaszewski

This series is aimed at improving the support for baylibre-acme[1]
power measurement capes. 

We would like to add support for power-cycling of devices measured
using TI INA226 ADCs. An example use case would be measuring the power
consumption of a development board during boot and power-cycling it
remotely using a GPIO power switch.

The first patch proposes to add a new DT binding for describing simple
power switches.

The second adds a simple IIO driver exposing a single attribute.

The motivation for using the IIO framework is the fact that we already
use it for reading the data from the ADC and that power-cycling the
measured devices is an integral part of our use case. Users would find
it convenient to be able to use libiio as the single interface.

[1] http://baylibre.com/acme/

Bartosz Golaszewski (2):
  devicetree: power: add bindings for GPIO-driven power switches
  iio: misc: add support for GPIO power switches

 .../bindings/power/gpio-power-switch.txt           |  25 ++++
 drivers/iio/Kconfig                                |   1 +
 drivers/iio/Makefile                               |   1 +
 drivers/iio/misc/Kconfig                           |  17 +++
 drivers/iio/misc/Makefile                          |   6 +
 drivers/iio/misc/gpio-power-switch.c               | 127 +++++++++++++++++++++
 6 files changed, 177 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/power/gpio-power-switch.txt
 create mode 100644 drivers/iio/misc/Kconfig
 create mode 100644 drivers/iio/misc/Makefile
 create mode 100644 drivers/iio/misc/gpio-power-switch.c

-- 
2.9.3

--
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

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2017-01-02 21:55 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-11 22:21 [PATCH 0/2] iio: GPIO power switch support Bartosz Golaszewski
2016-12-11 22:21 ` Bartosz Golaszewski
2016-12-11 22:21 ` [PATCH 1/2] devicetree: power: add bindings for GPIO-driven power switches Bartosz Golaszewski
2016-12-13 19:27   ` Rob Herring
2016-12-14 16:58     ` Bartosz Golaszewski
2016-12-14 17:36       ` Jonathan Cameron
2016-12-14 17:36         ` Jonathan Cameron
2016-12-15 10:57         ` Bartosz Golaszewski
     [not found]       ` <CAMpxmJWw3wCE4ch8TVik+2b3BC8Lvxbi13HGd9GxruSRLu95Mg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-12-15 15:05         ` Rob Herring
2016-12-15 15:05           ` Rob Herring
     [not found]           ` <CAL_JsqLwS51MhOJQb-Lmo=osHiYKcAcCJaxKJFdSvZBpafz7Gw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-12-23  9:07             ` Geert Uytterhoeven
2016-12-23  9:07               ` Geert Uytterhoeven
     [not found]               ` <CAMuHMdWfAwPE2N-_0WhW5+EEK3bqWoo9HpQZTgLzRRutCg++qg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-12-23 11:40                 ` Lars-Peter Clausen
2016-12-23 11:40                   ` Lars-Peter Clausen
2016-12-30 15:03                   ` Jonathan Cameron
     [not found]   ` <1481494905-18037-2-git-send-email-bgolaszewski-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
2016-12-28 12:52     ` Linus Walleij
2016-12-28 12:52       ` Linus Walleij
2016-12-11 22:21 ` [PATCH 2/2] iio: misc: add support for GPIO " Bartosz Golaszewski
2016-12-28 12:50   ` Linus Walleij
2016-12-28 12:50     ` Linus Walleij
2016-12-29 16:29     ` Sebastian Reichel
2016-12-29 16:29       ` Sebastian Reichel
2016-12-30 13:05       ` Linus Walleij
2016-12-30 13:05         ` Linus Walleij
2016-12-30 15:15         ` Jonathan Cameron
2017-01-02 21:53           ` Linus Walleij
2017-01-02 21:53             ` Linus Walleij

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.