lkml.org 
[lkml]   [2013]   [Aug]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC PATCH 5/6] extcon-gpio: Describe devicetree bindings
Date
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
.../devicetree/bindings/extcon/extcon-gpio | 23 ++++++++++++++++++++
1 file changed, 23 insertions(+)
create mode 100644 Documentation/devicetree/bindings/extcon/extcon-gpio

diff --git a/Documentation/devicetree/bindings/extcon/extcon-gpio b/Documentation/devicetree/bindings/extcon/extcon-gpio
new file mode 100644
index 0000000..091ddc6
--- /dev/null
+++ b/Documentation/devicetree/bindings/extcon/extcon-gpio
@@ -0,0 +1,23 @@
+Device-Tree bindings for extcon/extcon-gpio driver
+
+Required properties:
+ - compatible = "gpio-connector";
+ - presence-detect-gpios - presence detect gpio pin
+
+Optional properties:
+ - debounce-interval - debounce interval in milli-seconds
+ - state-on - on (connected) state
+ - state-off - off (disconnected) state
+ Depending on the type of connector or cable, states may
+ for example be reported as "connected"/"disconnected"
+ or "inserted"/"removed".
+
+Example node:
+
+ some-connector {
+ compatible = "gpio-connector";
+ presence-detect-gpios = <&gpio1 7 1>;
+ debounce-interval = <1>;
+ state-on = "connected";
+ state-on = "disconnected";
+ };
--
1.7.9.7


\
 
 \ /
  Last update: 2013-08-30 07:01    [W:0.127 / U:0.900 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site