gpio: add bindings for TS-4800 gpio controller
authorJulien Grossholtz <julien.grossholtz@savoirfairelinux.com>
Wed, 13 Jan 2016 16:57:42 +0000 (11:57 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 5 Feb 2016 14:05:48 +0000 (15:05 +0100)
Device tree binding documentation for the TS-4800
GPIO controller.

Signed-off-by: Julien Grossholtz <julien.grossholtz@savoirfairelinux.com>
[Point ngpios to gpio.txt]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/gpio/gpio-ts4800.txt [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/gpio/gpio-ts4800.txt b/Documentation/devicetree/bindings/gpio/gpio-ts4800.txt
new file mode 100644 (file)
index 0000000..92ea9c8
--- /dev/null
@@ -0,0 +1,20 @@
+* TS-4800 FPGA's GPIO controller bindings
+
+Required properties:
+- compatible: Must be "technologic,ts4800-gpio".
+- #gpio-cells: Should be two. The first cell is the pin number.
+- reg: Physical base address of the controller and length
+       of memory mapped region.
+
+Optional property:
+- ngpios: See "gpio.txt"
+
+Example:
+
+gpio1: gpio {
+       compatible = "technologic,ts4800-gpio";
+       reg = <0x10020 0x6>;
+       ngpios = <8>;
+       gpio-controller;
+       #gpio-cells = <2>;
+};