aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/extcon
diff options
context:
space:
mode:
authorStephen Boyd <stephen.boyd@linaro.org>2016-09-09 17:48:47 -0400
committerChanwoo Choi <cw00.choi@samsung.com>2016-09-12 22:26:26 -0400
commit38085c987f52674c2cc84fa0c0788eb71137cb2b (patch)
tree710f79c6c239ea67742cb530f87a8cc9f9059a1e /Documentation/devicetree/bindings/extcon
parent8670b4598064007abfc44554e713fa2004734e1d (diff)
extcon: Add support for qcom SPMI PMIC USB id detection hardware
Some Qualcomm PMICs have a misc device that performs USB id pin detection via an interrupt. When the interrupt triggers, we should read the interrupt line to see if it has gone high or low. If the interrupt is low then the ID pin is grounded, and if the interrupt is high then the ID pin is being held high. Cc: Roger Quadros <rogerq@ti.com> Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org> [cw00.choi: Edited the driver description and added the author information] Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'Documentation/devicetree/bindings/extcon')
-rw-r--r--Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.txt41
1 files changed, 41 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.txt b/Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.txt
new file mode 100644
index 000000000000..35383adb10f1
--- /dev/null
+++ b/Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.txt
@@ -0,0 +1,41 @@
1Qualcomm's PM8941 USB ID Extcon device
2
3Some Qualcomm PMICs have a "misc" module that can be used to detect when
4the USB ID pin has been pulled low or high.
5
6PROPERTIES
7
8- compatible:
9 Usage: required
10 Value type: <string>
11 Definition: Should contain "qcom,pm8941-misc";
12
13- reg:
14 Usage: required
15 Value type: <u32>
16 Definition: Should contain the offset to the misc address space
17
18- interrupts:
19 Usage: required
20 Value type: <prop-encoded-array>
21 Definition: Should contain the usb id interrupt
22
23- interrupt-names:
24 Usage: required
25 Value type: <stringlist>
26 Definition: Should contain the string "usb_id" for the usb id interrupt
27
28Example:
29
30 pmic {
31 usb_id: misc@900 {
32 compatible = "qcom,pm8941-misc";
33 reg = <0x900>;
34 interrupts = <0x0 0x9 0 IRQ_TYPE_EDGE_BOTH>;
35 interrupt-names = "usb_id";
36 };
37 }
38
39 usb-controller {
40 extcon = <&usb_id>;
41 };