* [PATCH 06/22] gpio: add DT bindings for Cortina Gemini GPIO
@ 2017-01-22 12:18 Linus Walleij
2017-01-23 20:04 ` Rob Herring
0 siblings, 1 reply; 2+ messages in thread
From: Linus Walleij @ 2017-01-22 12:18 UTC (permalink / raw)
To: linux-arm-kernel, Hans Ulli Kroll, Florian Fainelli,
Linus Walleij, Alexandre Courbot
Cc: Janos Laube, Paulius Zaleckas, openwrt-devel, Arnd Bergmann,
linux-kernel, linux-gpio, devicetree
This adds fairly standard DT bindings for the Cortina Systems
Gemini GPIO controller.
Cc: Janos Laube <janos.dev@gmail.com>
Cc: Paulius Zaleckas <paulius.zaleckas@gmail.com>
Cc: Hans Ulli Kroll <ulli.kroll@googlemail.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: devicetree@vger.kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
Note to self: just apply this to the GPIO tree when discussion is over.
---
.../bindings/gpio/cortina,gemini-gpio.txt | 24 ++++++++++++++++++++++
1 file changed, 24 insertions(+)
create mode 100644 Documentation/devicetree/bindings/gpio/cortina,gemini-gpio.txt
diff --git a/Documentation/devicetree/bindings/gpio/cortina,gemini-gpio.txt b/Documentation/devicetree/bindings/gpio/cortina,gemini-gpio.txt
new file mode 100644
index 000000000000..5c9246c054e5
--- /dev/null
+++ b/Documentation/devicetree/bindings/gpio/cortina,gemini-gpio.txt
@@ -0,0 +1,24 @@
+Cortina Systems Gemini GPIO Controller
+
+Required properties:
+
+- compatible : Must be "cortina,gemini-gpio"
+- reg : Should contain registers location and length
+- interrupts : Should contain the interrupt line for the GPIO block
+- gpio-controller : marks this as a GPIO controller
+- #gpio-cells : Should be 2, see gpio/gpio.txt
+- interrupt-controller : marks this as an interrupt controller
+- #interrupt-cells : a standard two-cell interrupt flag, see
+ interrupt-controller/interrupts.txt
+
+Example:
+
+gpio@4d000000 {
+ compatible = "cortina,gemini-gpio";
+ reg = <0x4d000000 0x100>;
+ interrupts = <22 IRQ_TYPE_LEVEL_HIGH>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+};
--
2.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 06/22] gpio: add DT bindings for Cortina Gemini GPIO
2017-01-22 12:18 [PATCH 06/22] gpio: add DT bindings for Cortina Gemini GPIO Linus Walleij
@ 2017-01-23 20:04 ` Rob Herring
0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2017-01-23 20:04 UTC (permalink / raw)
To: Linus Walleij
Cc: linux-arm-kernel, Hans Ulli Kroll, Florian Fainelli,
Alexandre Courbot, Janos Laube, Paulius Zaleckas, openwrt-devel,
Arnd Bergmann, linux-kernel, linux-gpio, devicetree
On Sun, Jan 22, 2017 at 01:18:30PM +0100, Linus Walleij wrote:
> This adds fairly standard DT bindings for the Cortina Systems
> Gemini GPIO controller.
>
> Cc: Janos Laube <janos.dev@gmail.com>
> Cc: Paulius Zaleckas <paulius.zaleckas@gmail.com>
> Cc: Hans Ulli Kroll <ulli.kroll@googlemail.com>
> Cc: Florian Fainelli <f.fainelli@gmail.com>
> Cc: devicetree@vger.kernel.org
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> Note to self: just apply this to the GPIO tree when discussion is over.
> ---
> .../bindings/gpio/cortina,gemini-gpio.txt | 24 ++++++++++++++++++++++
> 1 file changed, 24 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/gpio/cortina,gemini-gpio.txt
Acked-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-01-23 20:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-22 12:18 [PATCH 06/22] gpio: add DT bindings for Cortina Gemini GPIO Linus Walleij
2017-01-23 20:04 ` Rob Herring
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).