From: Sean Nyekjaer <sean.nyekjaer@prevas.dk>
To: linux-gpio@vger.kernel.org
Cc: Sean Nyekjaer <sean.nyekjaer@prevas.dk>, devicetree@vger.kernel.org
Subject: [PATCH v5 2/2] gpio: sn65hvs885: Add DT binding documentation
Date: Tue, 26 Jan 2016 08:32:46 +0100 [thread overview]
Message-ID: <1453793566-31363-2-git-send-email-sean.nyekjaer@prevas.dk> (raw)
In-Reply-To: <1453793566-31363-1-git-send-email-sean.nyekjaer@prevas.dk>
Signed-off-by: Sean Nyekjaer <sean.nyekjaer@prevas.dk>
---
Changes since v4:
- Added description, required properties
- Tested and added support for gpio polarity
- Added vendor prefix to compatible flags
Changes since v3:
- Added gpio-controller and gpio cells flags
.../devicetree/bindings/gpio/gpio-sn65hvs885.txt | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
create mode 100644 Documentation/devicetree/bindings/gpio/gpio-sn65hvs885.txt
diff --git a/Documentation/devicetree/bindings/gpio/gpio-sn65hvs885.txt b/Documentation/devicetree/bindings/gpio/gpio-sn65hvs885.txt
new file mode 100644
index 0000000..c9b3592
--- /dev/null
+++ b/Documentation/devicetree/bindings/gpio/gpio-sn65hvs885.txt
@@ -0,0 +1,20 @@
+* TI SN65HVS885 digital-input serializer
+
+Required properties:
+- compatible : Should be "ti,sn65hvs885"
+- reg : chip select number
+- 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:
+sn65hvs885@3 {
+ compatible = "ti,sn65hvs885";
+ spi-max-frequency = <10000000>;
+ latch-gpio = <&gpio4 1 GPIO_ACTIVE_HIGH>;
+ reg = <0>;
+ gpio-controller;
+ #gpio-cells = <2>;
+};
--
2.7.0
next prev parent reply other threads:[~2016-01-26 7:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-26 7:32 [PATCH v5 1/2] gpio: add TI SN65HVS885 spi industrial input serializer driver Sean Nyekjaer
2016-01-26 7:32 ` Sean Nyekjaer [this message]
2016-01-29 2:43 ` [PATCH v5 2/2] gpio: sn65hvs885: Add DT binding documentation Rob Herring
2016-01-29 6:24 ` Sean Nyekjær
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=1453793566-31363-2-git-send-email-sean.nyekjaer@prevas.dk \
--to=sean.nyekjaer@prevas.dk \
--cc=devicetree@vger.kernel.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).