From: Venkat Reddy Talla <vreddytalla@nvidia.com>
To: MyungJoo Ham <myungjoo.ham@samsung.com>,
Chanwoo Choi <cw00.choi@samsung.com>,
Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Kumar Gala <galak@codeaurora.org>
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
Laxman Dewangan <ldewangan@nvidia.com>,
Venkat Reddy Talla <vreddytalla@nvidia.com>
Subject: [PATCH 2/2] extcon: gpio: add DT binding doc for extcon-gpio
Date: Tue, 3 May 2016 11:19:51 +0530 [thread overview]
Message-ID: <1462254591-8907-2-git-send-email-vreddytalla@nvidia.com> (raw)
In-Reply-To: <1462254591-8907-1-git-send-email-vreddytalla@nvidia.com>
Addiing DT binding doc for the extcon gpios properties.
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
---
.../devicetree/bindings/extcon/extcon-gpio.txt | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
create mode 100644 Documentation/devicetree/bindings/extcon/extcon-gpio.txt
diff --git a/Documentation/devicetree/bindings/extcon/extcon-gpio.txt b/Documentation/devicetree/bindings/extcon/extcon-gpio.txt
new file mode 100644
index 0000000..4a49c23
--- /dev/null
+++ b/Documentation/devicetree/bindings/extcon/extcon-gpio.txt
@@ -0,0 +1,19 @@
+EXTCON FOR GPIO
+
+Required Properties:
+ - compatible : Should be "extcon-gpio";
+
+Optional Properties:
+ - extcon-gpio,name: Name of extcon device.
+ - gpio: gpio number.
+ - extcon-gpio,irq-flags: IRQ flags for GPIO.
+ - extcon-gpio,debounce: Debounce time in ms.
+ - extcon-gpio,connection-state-low: boolean, Connection state with
+ gpio state. True if gpio low means connected.
+
+extcon-gpio {
+ compatible = "extcon-gpio";
+ extcon-gpio,name = "VBUS";
+ gpio = <&gpio 20 0>;
+ extcon-gpio,cable-names = <EXTCON_USB EXTCON_NONE>;
+};
--
2.1.4
next prev parent reply other threads:[~2016-05-03 5:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-03 5:49 [PATCH 1/2] extcon: gpio: add device tree support for extcon-gpio Venkat Reddy Talla
2016-05-03 5:49 ` Venkat Reddy Talla [this message]
[not found] ` <1462254591-8907-2-git-send-email-vreddytalla-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2016-05-04 13:30 ` [PATCH 2/2] extcon: gpio: add DT binding doc " Rob Herring
2016-05-17 11:27 ` Venkat Reddy Talla
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=1462254591-8907-2-git-send-email-vreddytalla@nvidia.com \
--to=vreddytalla@nvidia.com \
--cc=cw00.choi@samsung.com \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=ldewangan@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=myungjoo.ham@samsung.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@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).