xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunQualcomm's PM8941 USB ID Extcon device
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunSome Qualcomm PMICs have a "misc" module that can be used to detect when
4*4882a593Smuzhiyunthe USB ID pin has been pulled low or high.
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunPROPERTIES
7*4882a593Smuzhiyun
8*4882a593Smuzhiyun- compatible:
9*4882a593Smuzhiyun    Usage: required
10*4882a593Smuzhiyun    Value type: <string>
11*4882a593Smuzhiyun    Definition: Should contain "qcom,pm8941-misc";
12*4882a593Smuzhiyun
13*4882a593Smuzhiyun- reg:
14*4882a593Smuzhiyun    Usage: required
15*4882a593Smuzhiyun    Value type: <u32>
16*4882a593Smuzhiyun    Definition: Should contain the offset to the misc address space
17*4882a593Smuzhiyun
18*4882a593Smuzhiyun- interrupts:
19*4882a593Smuzhiyun    Usage: required
20*4882a593Smuzhiyun    Value type: <prop-encoded-array>
21*4882a593Smuzhiyun    Definition: Should contain the usb id interrupt
22*4882a593Smuzhiyun
23*4882a593Smuzhiyun- interrupt-names:
24*4882a593Smuzhiyun    Usage: required
25*4882a593Smuzhiyun    Value type: <stringlist>
26*4882a593Smuzhiyun    Definition: Should contain the string "usb_id" for the usb id interrupt
27*4882a593Smuzhiyun
28*4882a593SmuzhiyunExample:
29*4882a593Smuzhiyun
30*4882a593Smuzhiyun	pmic {
31*4882a593Smuzhiyun		usb_id: misc@900 {
32*4882a593Smuzhiyun			compatible = "qcom,pm8941-misc";
33*4882a593Smuzhiyun			reg = <0x900>;
34*4882a593Smuzhiyun			interrupts = <0x0 0x9 0 IRQ_TYPE_EDGE_BOTH>;
35*4882a593Smuzhiyun			interrupt-names = "usb_id";
36*4882a593Smuzhiyun		};
37*4882a593Smuzhiyun	}
38*4882a593Smuzhiyun
39*4882a593Smuzhiyun	usb-controller {
40*4882a593Smuzhiyun		extcon = <&usb_id>;
41*4882a593Smuzhiyun	};
42