summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/gpio/gpio-ts4900.txt
diff options
context:
space:
mode:
authorLucile Quirion <lucile.quirion@savoirfairelinux.com>2016-08-12 11:16:48 -0400
committerLinus Walleij <linus.walleij@linaro.org>2016-08-19 11:02:57 +0200
commit4cebaf17ecde6d3f78513932ab239af922750e09 (patch)
tree6ce721d7f8df98be40c28d15b921d3794307f6a2 /Documentation/devicetree/bindings/gpio/gpio-ts4900.txt
parentccb3611f5ac7db5e350a00e80d1b64d87789c984 (diff)
gpio: add bindings for Technologic I2C-FPGA gpio controller
Device tree binding documentation for Technologic's I2C-FPGA GPIO controller. Signed-off-by: Lucile Quirion <lucile.quirion@savoirfairelinux.com> [Quirked in a reference to gpio.txt] Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'Documentation/devicetree/bindings/gpio/gpio-ts4900.txt')
-rw-r--r--Documentation/devicetree/bindings/gpio/gpio-ts4900.txt30
1 files changed, 30 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/gpio/gpio-ts4900.txt b/Documentation/devicetree/bindings/gpio/gpio-ts4900.txt
new file mode 100644
index 000000000000..3f8e71b1ab2a
--- /dev/null
+++ b/Documentation/devicetree/bindings/gpio/gpio-ts4900.txt
@@ -0,0 +1,30 @@
+* Technologic Systems I2C-FPGA's GPIO controller bindings
+
+This bindings describes the GPIO controller for Technologic's FPGA core.
+TS-4900's FPGA encodes the GPIO state on 3 bits, whereas the TS-7970's FPGA
+uses 2 bits: it doesn't use a dedicated input bit.
+
+Required properties:
+- compatible: Should be one of the following
+ "technologic,ts4900-gpio"
+ "technologic,ts7970-gpio"
+- reg: Physical base address of the controller and length
+ of memory mapped region.
+- #gpio-cells: Should be two. The first cell is the pin number.
+- gpio-controller: Marks the device node as a gpio controller.
+
+Optional property:
+- ngpios: Number of GPIOs this controller is instantiated with,
+ the default is 32. See gpio.txt for more details.
+
+Example:
+
+&i2c2 {
+ gpio8: gpio@28 {
+ compatible = "technologic,ts4900-gpio";
+ reg = <0x28>;
+ #gpio-cells = <2>;
+ gpio-controller;
+ ngpios = <32>;
+ };
+};