xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/extcon/extcon-usb-gpio.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunUSB GPIO Extcon device
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThis is a virtual device used to generate USB cable states from the USB ID pin
4*4882a593Smuzhiyunconnected to a GPIO pin.
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunRequired properties:
7*4882a593Smuzhiyun- compatible: Should be "linux,extcon-usb-gpio"
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunEither one of id-gpio or vbus-gpio must be present. Both can be present as well.
10*4882a593Smuzhiyun- id-gpio: gpio for USB ID pin. See gpio binding.
11*4882a593Smuzhiyun- vbus-gpio: gpio for USB VBUS pin.
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunExample: Examples of extcon-usb-gpio node in dra7-evm.dts as listed below:
14*4882a593Smuzhiyun	extcon_usb1 {
15*4882a593Smuzhiyun		compatible = "linux,extcon-usb-gpio";
16*4882a593Smuzhiyun		id-gpio = <&gpio6 1 GPIO_ACTIVE_HIGH>;
17*4882a593Smuzhiyun	}
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun	&omap_dwc3_1 {
20*4882a593Smuzhiyun		extcon = <&extcon_usb1>;
21*4882a593Smuzhiyun	};
22