From: Bartosz Golaszewski <bgolaszewski-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> To: Jonathan Cameron <jic23-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>, Hartmut Knaack <knaack.h-Mmb7MZpHnFY@public.gmane.org>, Lars-Peter Clausen <lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org>, Peter Meerwald-Stadler <pmeerw-jW+XmwGofnusTnJN9+BGXg@public.gmane.org>, Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>, Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org> Cc: linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Kevin Hilman <khilman-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>, Patrick Titiano <ptitiano-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>, Neil Armstrong <narmstrong-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>, Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>, Alexandre Courbot <gnurou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>, linux-gpio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Sebastian Reichel <sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>, linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>, Liam Girdwood <lgirdwood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>, Bartosz Golaszewski <bgolaszewski-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> Subject: [PATCH 0/2] iio: GPIO power switch support Date: Sun, 11 Dec 2016 23:21:43 +0100 [thread overview] Message-ID: <1481494905-18037-1-git-send-email-bgolaszewski@baylibre.com> (raw) 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
WARNING: multiple messages have this Message-ID (diff)
From: Bartosz Golaszewski <bgolaszewski@baylibre.com> To: Jonathan Cameron <jic23@kernel.org>, Hartmut Knaack <knaack.h@gmx.de>, Lars-Peter Clausen <lars@metafoo.de>, Peter Meerwald-Stadler <pmeerw@pmeerw.net>, Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com> Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kevin Hilman <khilman@baylibre.com>, Patrick Titiano <ptitiano@baylibre.com>, Neil Armstrong <narmstrong@baylibre.com>, Linus Walleij <linus.walleij@linaro.org>, Alexandre Courbot <gnurou@gmail.com>, linux-gpio@vger.kernel.org, Sebastian Reichel <sre@kernel.org>, linux-pm@vger.kernel.org, Mark Brown <broonie@kernel.org>, Liam Girdwood <lgirdwood@gmail.com>, Bartosz Golaszewski <bgolaszewski@baylibre.com> Subject: [PATCH 0/2] iio: GPIO power switch support Date: Sun, 11 Dec 2016 23:21:43 +0100 [thread overview] Message-ID: <1481494905-18037-1-git-send-email-bgolaszewski@baylibre.com> (raw) 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
next reply other threads:[~2016-12-11 22:21 UTC|newest] Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-12-11 22:21 Bartosz Golaszewski [this message] 2016-12-11 22:21 ` [PATCH 0/2] iio: GPIO power switch support 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1481494905-18037-1-git-send-email-bgolaszewski@baylibre.com \ --to=bgolaszewski-rdvid1duhrbwk0htik3j/w@public.gmane.org \ --cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \ --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \ --cc=gnurou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \ --cc=jic23-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \ --cc=khilman-rdvid1DuHRBWk0Htik3J/w@public.gmane.org \ --cc=knaack.h-Mmb7MZpHnFY@public.gmane.org \ --cc=lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org \ --cc=lgirdwood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \ --cc=linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \ --cc=linux-gpio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \ --cc=linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \ --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \ --cc=linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \ --cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \ --cc=narmstrong-rdvid1DuHRBWk0Htik3J/w@public.gmane.org \ --cc=pmeerw-jW+XmwGofnusTnJN9+BGXg@public.gmane.org \ --cc=ptitiano-rdvid1DuHRBWk0Htik3J/w@public.gmane.org \ --cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \ --cc=sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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.