From: markus.mayer@linaro.org (Markus Mayer)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 2/3] ARM: bcm281xx: Device Tree bindings for GPIO driver
Date: Fri, 26 Jul 2013 13:25:44 -0700 [thread overview]
Message-ID: <1374870345-8276-3-git-send-email-markus.mayer@linaro.org> (raw)
In-Reply-To: <1374870345-8276-1-git-send-email-markus.mayer@linaro.org>
Signed-off-by: Markus Mayer <markus.mayer@linaro.org>
Reviewed-by: Christian Daudt <csd@broadcom.com>
Reviewed-by: Tim Kryger <tim.kryger@linaro.org>
Reviewed-by: Matt Porter <matt.porter@linaro.org>
---
.../devicetree/bindings/gpio/gpio-bcm-kona.txt | 41 ++++++++++++++++++++
arch/arm/boot/dts/bcm11351.dtsi | 16 ++++++++
2 files changed, 57 insertions(+)
create mode 100644 Documentation/devicetree/bindings/gpio/gpio-bcm-kona.txt
diff --git a/Documentation/devicetree/bindings/gpio/gpio-bcm-kona.txt b/Documentation/devicetree/bindings/gpio/gpio-bcm-kona.txt
new file mode 100644
index 0000000..08e9b5a
--- /dev/null
+++ b/Documentation/devicetree/bindings/gpio/gpio-bcm-kona.txt
@@ -0,0 +1,41 @@
+Broadcom Kona Family GPIO
+-------------------------
+
+This GPIO driver is used in the following Broadcom SoCs:
+ BCM11130, BCM11140, BCM11351, BCM28145, BCM28155
+
+The GPIO controller only supports edge, not level triggering.
+
+Required properties:
+ - compatible: "brcm,kona-gpio"
+ - reg: Physical base address and length of the controller's registers.
+ - interrupts: The interrupt outputs from the controller.
+ - #gpio-cells: Should be <2>. The first cell is the pin number, the second
+ cell is used to specify optional parameters:
+ - bit 0 specifies polarity (0 for normal, 1 for inverted)
+ - #interrupt-cells: Should be <2>. The first cell is the GPIO number.
+ The second cell is used to specify flags:
+ - trigger type (bits[1:0]):
+ 1 = low-to-high edge triggered.
+ 2 = high-to-low edge triggered.
+ 3 = low-to-high or high-to-low edge triggered
+ Valid values are 1, 2, 3
+ - gpio-controller: Marks the device node as a GPIO controller.
+ - interrupt-controller: Marks the device node as an interrupt controller.
+
+Example:
+ gpio: gpio at 35003000 {
+ compatible = "brcm,kona-gpio";
+ reg = <0x35003000 0x800>;
+ interrupts =
+ <0x0 106 0x4
+ 0x0 115 0x4
+ 0x0 114 0x4
+ 0x0 113 0x4
+ 0x0 112 0x4
+ 0x0 111 0x4>;
+ #gpio-cells = <2>;
+ #interrupt-cells = <2>;
+ gpio-controller;
+ interrupt-controller;
+ };
diff --git a/arch/arm/boot/dts/bcm11351.dtsi b/arch/arm/boot/dts/bcm11351.dtsi
index c0cdf66..13aaa06 100644
--- a/arch/arm/boot/dts/bcm11351.dtsi
+++ b/arch/arm/boot/dts/bcm11351.dtsi
@@ -63,6 +63,22 @@
clock-frequency = <32768>;
};
+ gpio: gpio at 35003000 {
+ compatible = "brcm,kona-gpio";
+ reg = <0x35003000 0x800>;
+ interrupts =
+ <0x0 106 0x4
+ 0x0 115 0x4
+ 0x0 114 0x4
+ 0x0 113 0x4
+ 0x0 112 0x4
+ 0x0 111 0x4>;
+ #gpio-cells = <2>;
+ #interrupt-cells = <2>;
+ gpio-controller;
+ interrupt-controller;
+ };
+
sdio0: sdio at 0x3f180000 {
compatible = "bcm,kona-sdhci";
reg = <0x3f180000 0x10000>;
--
1.7.9.5
next prev parent reply other threads:[~2013-07-26 20:25 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-26 20:25 [PATCH v3 0/3] ARM: bcm281xx: GPIO driver Markus Mayer
2013-07-26 20:25 ` [PATCH v3 1/3] ARM: bcm281xx: Add " Markus Mayer
2013-08-01 18:20 ` Sudeep KarkadaNagesha
2013-08-07 23:52 ` Markus Mayer
2013-07-26 20:25 ` Markus Mayer [this message]
2013-07-26 22:08 ` [PATCH v3 2/3] ARM: bcm281xx: Device Tree bindings for " Stephen Warren
2013-07-26 22:51 ` Markus Mayer
2013-07-26 23:09 ` Stephen Warren
2013-07-26 23:22 ` Markus Mayer
2013-07-27 0:13 ` Tim Kryger
2013-08-16 12:51 ` Linus Walleij
2013-08-19 18:41 ` Markus Mayer
2013-07-26 20:25 ` [PATCH v3 3/3] ARM: bcm281xx: Enable " Markus Mayer
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=1374870345-8276-3-git-send-email-markus.mayer@linaro.org \
--to=markus.mayer@linaro.org \
--cc=linux-arm-kernel@lists.infradead.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).