From: David Riley <davidriley@chromium.org>
To: Sebastian Reichel <sre@kernel.org>,
Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>,
David Woodhouse <dwmw2@infradead.org>
Cc: Guenter Roeck <linux@roeck-us.net>,
Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Kumar Gala <galak@codeaurora.org>,
Grant Likely <grant.likely@linaro.org>,
David Riley <davidriley@chromium.org>,
Arnd Bergmann <arnd@arndb.de>, Anton Vorontsov <anton@enomsg.org>,
Marc Carino <marc.ceeeee@gmail.com>,
Anders Berg <anders.berg@lsi.com>,
Laxman Dewangan <ldewangan@nvidia.com>,
Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>,
Maxime Ripard <maxime.ripard@free-electrons.com>,
Haojian Zhuang <haojian.zhuang@linaro.org>,
Jamie Lentin <jm@lentin.co.uk>,
Doug Anderson <dianders@chromium.org>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-pm@vger.kernel.org
Subject: [PATCH v2 0/1] gpio-restart restart handler
Date: Wed, 27 Aug 2014 12:23:50 -0700 [thread overview]
Message-ID: <1409167431-21155-1-git-send-email-davidriley@chromium.org> (raw)
This driver builds upon Guenter Roeck's kernel restart handler patchset
to add a driver which registers a GPIO-based restart handler which restarts
the system by toggling a GPIO.
Changes are based off 3.17-rc2 with the following patches from v7 of
Guenter's patchset:
https://patchwork.kernel.org/patch/4746721/
https://patchwork.kernel.org/patch/4746731/
https://patchwork.kernel.org/patch/4747011/
https://patchwork.kernel.org/patch/4746741/
https://patchwork.kernel.org/patch/4746861/
Changes since v1:
v2:
- Updated devicetree binding to make it less kernel specific
- Changed priority property from u8 type to standard u32
- Rename input property to open-source
- Made delays configurable from binding
- Removed unneeded BUG_ON
- Used devm_gpiod_get flags parameter to configure initial direction
David Riley (1):
power: Add simple gpio-restart driver
.../devicetree/bindings/gpio/gpio-restart.txt | 54 ++++++++
drivers/power/reset/Kconfig | 8 ++
drivers/power/reset/Makefile | 1 +
drivers/power/reset/gpio-restart.c | 149 +++++++++++++++++++++
4 files changed, 212 insertions(+)
create mode 100644 Documentation/devicetree/bindings/gpio/gpio-restart.txt
create mode 100644 drivers/power/reset/gpio-restart.c
--
2.0.0
next reply other threads:[~2014-08-27 19:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-27 19:23 David Riley [this message]
2014-08-27 19:23 ` [PATCH v2 1/1] power: Add simple gpio-restart driver David Riley
2014-09-19 4:35 ` Guenter Roeck
2014-09-26 20:23 ` Sebastian Reichel
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=1409167431-21155-1-git-send-email-davidriley@chromium.org \
--to=davidriley@chromium.org \
--cc=anders.berg@lsi.com \
--cc=anton@enomsg.org \
--cc=arnd@arndb.de \
--cc=dbaryshkov@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=dianders@chromium.org \
--cc=dwmw2@infradead.org \
--cc=galak@codeaurora.org \
--cc=grant.likely@linaro.org \
--cc=haojian.zhuang@linaro.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=ivan.khoronzhuk@ti.com \
--cc=jm@lentin.co.uk \
--cc=ldewangan@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=marc.ceeeee@gmail.com \
--cc=mark.rutland@arm.com \
--cc=maxime.ripard@free-electrons.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@kernel.org \
--cc=sre@kernel.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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).