From: Gregory Fong <gregory.0xf0@gmail.com>
To: linux-gpio@vger.kernel.org
Cc: Gregory Fong <gregory.0xf0@gmail.com>,
Alexandre Courbot <gnurou@gmail.com>,
bcm-kernel-feedback-list@broadcom.com,
Brian Norris <computersforpeace@gmail.com>,
devicetree@vger.kernel.org,
Florian Fainelli <f.fainelli@gmail.com>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Kumar Gala <galak@codeaurora.org>,
Linus Walleij <linus.walleij@linaro.org>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, Mark Rutland <mark.rutland@arm.com>,
Pawel Moll <pawel.moll@arm.com>, Rob Herring <robh+dt@kernel.org>,
Russell King <linux@arm.linux.org.uk>
Subject: [PATCH v2 3/6] dt-bindings: brcmstb-gpio: document properties for wakeup
Date: Thu, 28 May 2015 19:14:07 -0700 [thread overview]
Message-ID: <1432865650-4062-4-git-send-email-gregory.0xf0@gmail.com> (raw)
In-Reply-To: <1432865650-4062-1-git-send-email-gregory.0xf0@gmail.com>
Some brcmstb GPIO controllers can be used to wake from suspend, so use the
de facto standard property 'wakeup-source' to mark the nodes of controllers
with that capability.
Also document interrupts-extended, which will be used for wakeup handling
because the interrupt parent for the wake IRQ is different from the regular
IRQ.
Signed-off-by: Gregory Fong <gregory.0xf0@gmail.com>
---
New in v2.
.../devicetree/bindings/gpio/brcm,brcmstb-gpio.txt | 26 +++++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/gpio/brcm,brcmstb-gpio.txt b/Documentation/devicetree/bindings/gpio/brcm,brcmstb-gpio.txt
index 435f1bc..568814f 100644
--- a/Documentation/devicetree/bindings/gpio/brcm,brcmstb-gpio.txt
+++ b/Documentation/devicetree/bindings/gpio/brcm,brcmstb-gpio.txt
@@ -33,6 +33,12 @@ Optional properties:
- interrupt-parent:
phandle of the parent interrupt controller
+- interrupts-extended:
+ Alternate form of specifying interrupts and parents that allows for
+ multiple parents. This takes precedence over 'interrupts' and
+ 'interrupt-parent'. This probably must be used if the wakeup-source
+ property is provided because that may have a different interrupt parent.
+
- #interrupt-cells:
Should be <2>. The first cell is the GPIO number, the second should specify
flags. The following subset of flags is supported:
@@ -48,7 +54,10 @@ Optional properties:
Marks the device node as an interrupt controller
- interrupt-names:
- The name of the IRQ resource used by this controller
+ The names of the IRQ resources used by this controller
+
+- wakeup-source:
+ GPIOs for this controller can be used as a wakeup source
Example:
upg_gio: gpio@f040a700 {
@@ -63,3 +72,18 @@ Example:
interrupt-names = "upg_gio";
brcm,gpio-bank-widths = <0x20 0x20 0x20 0x18>;
};
+
+ upg_gio_aon: gpio@f04172c0 {
+ #gpio-cells = <0x2>;
+ #interrupt-cells = <0x2>;
+ compatible = "brcm,bcm7445-gpio", "brcm,brcmstb-gpio";
+ gpio-controller;
+ interrupt-controller;
+ reg = <0xf04172c0 0x40>;
+ interrupt-parent = <0xc>;
+ interrupts = <0x6>;
+ interrupts-extended = <0xc 0x6 0xa 0x5>;
+ interrupt-names = "upg_gio_aon", "upg_gio_aon_wakeup";
+ wakeup-source;
+ brcm,gpio-bank-widths = <0x12 0x4>;
+ };
--
1.9.1
next prev parent reply other threads:[~2015-05-29 2:15 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-29 2:14 [PATCH v2 0/6] GPIO support for BRCMSTB Gregory Fong
2015-05-29 2:14 ` [PATCH v2 1/6] gpio: Add GPIO support for Broadcom STB SoCs Gregory Fong
[not found] ` <1432865650-4062-2-git-send-email-gregory.0xf0-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-06-02 13:40 ` Linus Walleij
[not found] ` <1432865650-4062-1-git-send-email-gregory.0xf0-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-05-29 2:14 ` [PATCH v2 2/6] gpio: brcmstb: Add interrupt support Gregory Fong
2015-05-30 0:10 ` Brian Norris
2015-05-30 1:30 ` Gregory Fong
2015-06-02 13:33 ` Linus Walleij
2015-05-29 2:14 ` Gregory Fong [this message]
2015-05-30 0:36 ` [PATCH v2 3/6] dt-bindings: brcmstb-gpio: document properties for wakeup Brian Norris
2015-05-30 0:57 ` Gregory Fong
2015-05-30 1:37 ` Brian Norris
2015-05-30 1:51 ` Gregory Fong
2015-05-29 2:14 ` [PATCH v2 4/6] gpio: brcmstb: Allow GPIOs to be wakeup sources Gregory Fong
[not found] ` <1432865650-4062-5-git-send-email-gregory.0xf0-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-05-30 0:43 ` Brian Norris
2015-06-02 17:27 ` Gregory Fong
2015-06-02 13:45 ` Linus Walleij
[not found] ` <CACRpkdYnZ9nYHPoUsmgLUtKhB2Us0c_scAYsZVJJQK2orKcpVA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-02 17:27 ` Gregory Fong
2015-05-29 2:14 ` [PATCH v2 5/6] ARM: brcmstb: Select ARCH_WANT_OPTIONAL_GPIOLIB Gregory Fong
2015-05-29 21:53 ` Florian Fainelli
2015-06-02 13:42 ` Linus Walleij
2015-05-29 2:14 ` [PATCH v2 6/6] ARM: brcmstb: Add default gpio number Gregory Fong
[not found] ` <1432865650-4062-7-git-send-email-gregory.0xf0-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-05-29 21:54 ` Florian Fainelli
2015-06-02 13:41 ` Linus Walleij
2015-05-29 16:26 ` [PATCH v2 0/6] GPIO support for BRCMSTB Florian Fainelli
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=1432865650-4062-4-git-send-email-gregory.0xf0@gmail.com \
--to=gregory.0xf0@gmail.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=computersforpeace@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=f.fainelli@gmail.com \
--cc=galak@codeaurora.org \
--cc=gnurou@gmail.com \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.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).