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