Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1461273 > unrolled thread

[PATCH v4 1/2] gpio: add bindings for Technologic I2C-FPGA gpio controller

Started byLucile Quirion <lucile.quirion@savoirfairelinux.com>
First post2016-08-12 17:20 +0200
Last post2016-08-19 11:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v4 1/2] gpio: add bindings for Technologic I2C-FPGA gpio controller Lucile Quirion <lucile.quirion@savoirfairelinux.com> - 2016-08-12 17:20 +0200
    Re: [PATCH v4 1/2] gpio: add bindings for Technologic I2C-FPGA gpio controller Linus Walleij <linus.walleij@linaro.org> - 2016-08-19 11:10 +0200

#1461273 — [PATCH v4 1/2] gpio: add bindings for Technologic I2C-FPGA gpio controller

FromLucile Quirion <lucile.quirion@savoirfairelinux.com>
Date2016-08-12 17:20 +0200
Subject[PATCH v4 1/2] gpio: add bindings for Technologic I2C-FPGA gpio controller
Message-ID<s5mpz-3m3-3@gated-at.bofh.it>
Device tree binding documentation for Technologic's I2C-FPGA GPIO
controller.

Signed-off-by: Lucile Quirion <lucile.quirion@savoirfairelinux.com>
---
 .../devicetree/bindings/gpio/gpio-ts4900.txt       | 29 ++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/gpio/gpio-ts4900.txt

diff --git a/Documentation/devicetree/bindings/gpio/gpio-ts4900.txt b/Documentation/devicetree/bindings/gpio/gpio-ts4900.txt
new file mode 100644
index 0000000..206fc21
--- /dev/null
+++ b/Documentation/devicetree/bindings/gpio/gpio-ts4900.txt
@@ -0,0 +1,29 @@
+* 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 has, default is 32.
+
+Example:
+
+&i2c2 {
+	gpio8: gpio@28 {
+		compatible = "technologic,ts4900-gpio";
+		reg = <0x28>;
+		#gpio-cells = <2>;
+		gpio-controller;
+		ngpios = <32>;
+	};
+};
-- 
2.5.5

[toc] | [next] | [standalone]


#1466240

FromLinus Walleij <linus.walleij@linaro.org>
Date2016-08-19 11:10 +0200
Message-ID<s7NYl-3GZ-5@gated-at.bofh.it>
In reply to#1461273
On Fri, Aug 12, 2016 at 5:16 PM, Lucile Quirion
<lucile.quirion@savoirfairelinux.com> wrote:

> Device tree binding documentation for Technologic's I2C-FPGA GPIO
> controller.
>
> Signed-off-by: Lucile Quirion <lucile.quirion@savoirfairelinux.com>

Applied, adding a reference to gpio.txt in the process.

Yours,
Linus Walleij

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web