xref: /freebsd/sys/contrib/device-tree/Bindings/extcon/qcom,pm8941-misc.txt (revision af23369a6deaaeb612ab266eb88b8bb8d560c322)
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	};
42