linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexander Shiyan <shc_work@mail.ru>
To: linux-gpio@vger.kernel.org
Cc: Alexandre Courbot <gnurou@gmail.com>,
	Linus Walleij <linus.walleij@linaro.org>,
	devicetree@vger.kernel.org, Alexander Shiyan <shc_work@mail.ru>
Subject: [PATCH 2/2] GPIO: 74xx-mmio: Add DT bindings documentation
Date: Fri, 19 Sep 2014 11:40:04 +0400	[thread overview]
Message-ID: <1411112404-16040-3-git-send-email-shc_work@mail.ru> (raw)
In-Reply-To: <1411112404-16040-1-git-send-email-shc_work@mail.ru>

This patch adds DT binding documentation for the 74xx-mmio GPIO driver.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 .../devicetree/bindings/gpio/gpio-74xx-mmio.txt    | 30 ++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/gpio/gpio-74xx-mmio.txt

diff --git a/Documentation/devicetree/bindings/gpio/gpio-74xx-mmio.txt b/Documentation/devicetree/bindings/gpio/gpio-74xx-mmio.txt
new file mode 100644
index 0000000..202dce7
--- /dev/null
+++ b/Documentation/devicetree/bindings/gpio/gpio-74xx-mmio.txt
@@ -0,0 +1,30 @@
+* 74XX MMIO GPIO driver
+
+Required properties:
+- compatible: Should contain one of the following:
+   "ti,74ahc1g125": for 74AHC1G125 (1-bit Input),
+   "ti,74auc1g174": for 74AUC1G74 (1-bit Output),
+   "ti,74lvc2g125": for 74LVC2G125 (2-bit Input),
+   "ti,74hc74":     for 74HC74 (2-bit Output),
+   "ti,74hc125":    for 74HC125 (4-bit Input),
+   "ti,74hc175":    for 74HC175 (4-bit Output),
+   "ti,74hc365":    for 74HC365 (6-bit Input),
+   "ti,74hc174":    for 74HC174 (6-bit Output),
+   "ti,74hc244":    for 74HC244 (8-bit Input),
+   "ti,74hc273":    for 74HC273 (8-bit Output),
+   "ti,74ac1624":   for 74AC1624 (16-bit Input),
+   "ti,74ac16374":  for 74AC16374 (16-bit Output).
+- reg: Physical base address and length where IC resides.
+- gpio-controller: Marks the device node as a gpio controller.
+- #gpio-cells: Should be two. The first cell is the pin number and
+   the second cell is used to specify the GPIO polarity:
+    0 = Active High,
+    1 = Active Low.
+
+Example:
+	ctrl: gpio@30008004 {
+		compatible = "ti,74hc174";
+		reg = <0x30008004 0x1>;
+		gpio-controller;
+		#gpio-cells = <2>;
+	};
-- 
1.8.5.5


  parent reply	other threads:[~2014-09-19  7:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-19  7:40 [PATCH 0/2] Driver for 74xx-ICs with MMIO access Alexander Shiyan
2014-09-19  7:40 ` [PATCH 1/2] GPIO: Add driver " Alexander Shiyan
2014-09-29 12:04   ` Linus Walleij
2014-09-29 12:10     ` Alexander Shiyan
2014-09-19  7:40 ` Alexander Shiyan [this message]
2014-09-22 11:39   ` [PATCH 2/2] GPIO: 74xx-mmio: Add DT bindings documentation Geert Uytterhoeven
2014-09-23 16:51     ` Alexander Shiyan
2014-09-24 11:26       ` Linus Walleij

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=1411112404-16040-3-git-send-email-shc_work@mail.ru \
    --to=shc_work@mail.ru \
    --cc=devicetree@vger.kernel.org \
    --cc=gnurou@gmail.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.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).