extcon: Add support for qcom SPMI PMIC USB id detection hardware
[deliverable/linux.git] / Documentation / devicetree / bindings / extcon / qcom,pm8941-misc.txt
1 Qualcomm's PM8941 USB ID Extcon device
2
3 Some Qualcomm PMICs have a "misc" module that can be used to detect when
4 the USB ID pin has been pulled low or high.
5
6 PROPERTIES
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
28 Example:
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 };
This page took 0.032531 seconds and 5 git commands to generate.