summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorAbhijeet Dharmapurikar <adharmap@codeaurora.org>2016-01-18 11:25:01 -0800
committerRohit Vaswani <rvaswani@codeaurora.org>2016-03-01 12:22:45 -0800
commit60402227ec71f254367526393b032ed974952d42 (patch)
treeccfdf9f63128ddd3e5c8af390b815ae4e0fd57fa /Documentation
parent8ee0110ce34e4cb4ce24754682afba2293f8557c (diff)
gpio-usbdetect: use gpio instead of irq
The current driver uses irq_read_line api which is not standard. Instead use a gpio and register for an interrupt when it changes states. And upon a change in state interrupt is received, read the gpio state to determine whether it is high or low. Change-Id: Ie4b1226cedfb44e65a84349da4b3eef5fe988dff Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/platform/msm/gpio-usbdetect.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/Documentation/devicetree/bindings/platform/msm/gpio-usbdetect.txt b/Documentation/devicetree/bindings/platform/msm/gpio-usbdetect.txt
index 6ade25c32526..5bb85a4860ab 100644
--- a/Documentation/devicetree/bindings/platform/msm/gpio-usbdetect.txt
+++ b/Documentation/devicetree/bindings/platform/msm/gpio-usbdetect.txt
@@ -9,6 +9,7 @@ subsytem using the power_supply framework.
Required Properties:
- compatible: must be "qcom,gpio-usbdetect"
+ - qcom,vbus-det-gpio: GPIO from which VBUS detection can be read from.
- interrupts: an interrupt triggered by the output of the detection circuit
- interrupt-names: must be "vbus_det_irq"
@@ -19,8 +20,6 @@ Example:
usb_detect {
compatible = "qcom,gpio-usbdetect";
- interrupt-parent = <&spmi_bus>;
- interrupts = <0x0 0xCA 0x0>; /* PMA8084 GPIO 11 */
- interrupt-names = "vbus_det_irq";
+ qcom,vbus-det-gpio = <&pm8084 2 0>;
vin-supply = <&vbus_det_reg>;
};