summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/usb/usb-conn-gpio.txt
blob: 3d05ae56cb0dc892f67d03ecd0c23c2c509b65dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
USB GPIO Based Connection Detection

This is typically used to switch dual role mode from the USB ID pin connected
to an input GPIO, and also used to enable/disable device mode from the USB
Vbus pin connected to an input GPIO.

Required properties:
- compatible : should include "gpio-usb-b-connector" and "usb-b-connector".
- id-gpios, vbus-gpios : input gpios, either one of them must be present,
	and both can be present as well.
	see connector/usb-connector.txt

Optional properties:
- vbus-supply : can be present if needed when supports dual role mode.
	see connector/usb-connector.txt

- Sub-nodes:
	- port : can be present.
		see graph.txt

Example:

&mtu3 {
	connector {
		compatible = "gpio-usb-b-connector", "usb-b-connector";
		type = "micro";
		id-gpios = <&pio 12 GPIO_ACTIVE_HIGH>;
		vbus-supply = <&usb_p0_vbus>;
	};
};