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


Groups > linux.kernel > #1406854

[PATCH v2 2/2] extcon: gpio: add DT binding doc for extcon-gpio

From Venkat Reddy Talla <vreddytalla@nvidia.com>
Newsgroups linux.kernel
Subject [PATCH v2 2/2] extcon: gpio: add DT binding doc for extcon-gpio
Date 2016-05-25 13:40 +0200
Message-ID <rCFkm-qt-11@gated-at.bofh.it> (permalink)
References <rCFkl-qt-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Adding DT binding doc for extcon gpio device
properties.

Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>

---
changes in v2:
- added description for extcon-gpio
- using gpio flag cell to handle gpio active state
- change dts property name gpio to gpios
- removed prefix for debounce
- added description for extcon-gpio,cable-names
---
---
 .../devicetree/bindings/extcon/extcon-gpio.txt     | 22 ++++++++++++++++++++++
 1 file changed, 22 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..2302960
--- /dev/null
+++ b/Documentation/devicetree/bindings/extcon/extcon-gpio.txt
@@ -0,0 +1,22 @@
+EXTCON FOR GPIO
+
+extcon-gpio responsible to detect external cable state when
+attached or detached.
+
+Required Properties:
+ - compatible : Should be "extcon-gpio";
+
+Optional Properties:
+ - extcon-gpio,name: Name of extcon device.
+ - gpios: gpio number.
+ - extcon-gpio,irq-flags: IRQ flags for gpio.
+ - debounce-ms: Debounce time in ms.
+ - extcon-gpio,cable-names: The unique id of specific external connector
+	defined in include/linux/extcon.h
+
+extcon-gpio {
+	compatible = "extcon-gpio";
+        extcon-gpio,name = "VBUS";
+	gpios = <&gpio 20 0>;
+	extcon-gpio,cable-names = <EXTCON_USB EXTCON_NONE>;
+};
-- 
2.1.4

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 1/2] extcon: gpio: add device tree support for extcon-gpio Venkat Reddy Talla <vreddytalla@nvidia.com> - 2016-05-25 13:40 +0200
  [PATCH v2 2/2] extcon: gpio: add DT binding doc for extcon-gpio Venkat Reddy Talla <vreddytalla@nvidia.com> - 2016-05-25 13:40 +0200
  Re: [PATCH v2 1/2] extcon: gpio: add device tree support for  extcon-gpio Chanwoo Choi <cw00.choi@samsung.com> - 2016-05-25 14:40 +0200

csiph-web