diff options
author | George Cherian <george.cherian@ti.com> | 2014-09-12 15:30:59 +0530 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2014-09-12 17:05:55 +0530 |
commit | e7bb322238f9a37d2ca25cf2222b65dce55059a3 (patch) | |
tree | 37d934398be449bbcf489ce9feeac7ef7c902d95 /Documentation | |
parent | e18901ec64d9805f7dfb2206c2be6f6d50a66279 (diff) |
extcon: gpio: Add dt support for the driver.
Add device tree support to extcon-gpio driver.
Add devicetree binding documentation
Signed-off-by: George Cherian <george.cherian@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/extcon/extcon-gpio.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/extcon/extcon-gpio.txt b/Documentation/devicetree/bindings/extcon/extcon-gpio.txt new file mode 100644 index 00000000000..5fe6846182a --- /dev/null +++ b/Documentation/devicetree/bindings/extcon/extcon-gpio.txt @@ -0,0 +1,21 @@ +GPIO based EXTCON + +EXTCON GPIO +----------- + +Required Properties: + - compatible: should be: + * "linux,extcon-gpio" + - gpios: specifies the gpio pin used. + +Optional Properties: + - debounce: Debounce time for GPIO IRQ in ms + + +Eg: + + extcon1: am43_usbid_extcon1 { + compatible = "linux,extcon-gpio"; + gpios = <&gpio3 12 GPIO_ACTIVE_HIGH>; + debounce = <20>; + }; |