From: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
To: linus.walleij@linaro.org
Cc: lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com,
gnurou@gmail.com, linux-gpio@vger.kernel.org,
devicetree@vger.kernel.org, patches@opensource.wolfsonmicro.com
Subject: [PATCH 1/3] gpio: Add new flags to control sleep status of GPIOs
Date: Tue, 16 May 2017 16:31:52 +0100 [thread overview]
Message-ID: <1494948714-15203-1-git-send-email-ckeepax@opensource.wolfsonmicro.com> (raw)
Add new flags to allow users to specify that they are not concerned with
the status of GPIOs whilst in a sleep/low power state.
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
---
include/dt-bindings/gpio/gpio.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/dt-bindings/gpio/gpio.h b/include/dt-bindings/gpio/gpio.h
index b4f54da..48c28f0 100644
--- a/include/dt-bindings/gpio/gpio.h
+++ b/include/dt-bindings/gpio/gpio.h
@@ -21,6 +21,10 @@
#define GPIO_LINE_OPEN_SOURCE 0
#define GPIO_LINE_OPEN_DRAIN 4
+/* Bit 3 express GPIO suspend/resume persistence */
+#define GPIO_SLEEP_MAINTAIN_VALUE 0
+#define GPIO_SLEEP_MAY_LOOSE_VALUE 8
+
/*
* Open Drain/Collector is the combination of single-ended open drain interface.
* Open Source/Emitter is the combination of single-ended open source interface.
--
2.1.4
next reply other threads:[~2017-05-16 15:30 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-16 15:31 Charles Keepax [this message]
[not found] ` <1494948714-15203-1-git-send-email-ckeepax-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2017-05-16 15:31 ` [PATCH 2/3] gpio: arizona: Add support for GPIOs that need to be maintained Charles Keepax
2017-05-23 8:46 ` Linus Walleij
2017-05-23 8:56 ` Charles Keepax
2017-05-23 8:39 ` [PATCH 1/3] gpio: Add new flags to control sleep status of GPIOs Linus Walleij
[not found] ` <CACRpkdbiyZ9jPnuaX9OuYjVbrUYxtpqO-XMqb75ScCEH-=kOEg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-05-23 8:51 ` Lee Jones
2017-05-23 13:38 ` Rob Herring
2017-05-16 15:31 ` [PATCH 3/3] mfd: arizona: Update GPIO binding for newly supported flag Charles Keepax
2017-05-23 0:16 ` Rob Herring
[not found] ` <1494948714-15203-3-git-send-email-ckeepax-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2017-05-22 11:07 ` Lee Jones
2017-05-22 11:07 ` Lee Jones
2017-05-23 8:49 ` Linus Walleij
2017-05-23 9:00 ` Charles Keepax
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=1494948714-15203-1-git-send-email-ckeepax@opensource.wolfsonmicro.com \
--to=ckeepax@opensource.wolfsonmicro.com \
--cc=devicetree@vger.kernel.org \
--cc=gnurou@gmail.com \
--cc=lee.jones@linaro.org \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=patches@opensource.wolfsonmicro.com \
--cc=robh+dt@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).