Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | USB GPIO Extcon device |
| 2 | |
| 3 | This is a virtual device used to generate USB cable states from the USB ID pin |
| 4 | connected to a GPIO pin. |
| 5 | |
| 6 | Required properties: |
| 7 | - compatible: Should be "linux,extcon-usb-gpio" |
| 8 | |
| 9 | Either one of id-gpio or vbus-gpio must be present. Both can be present as well. |
| 10 | - id-gpio: gpio for USB ID pin. See gpio binding. |
| 11 | - vbus-gpio: gpio for USB VBUS pin. |
| 12 | |
| 13 | Example: Examples of extcon-usb-gpio node in dra7-evm.dts as listed below: |
| 14 | extcon_usb1 { |
| 15 | compatible = "linux,extcon-usb-gpio"; |
| 16 | id-gpio = <&gpio6 1 GPIO_ACTIVE_HIGH>; |
| 17 | } |
| 18 | |
| 19 | &omap_dwc3_1 { |
| 20 | extcon = <&extcon_usb1>; |
| 21 | }; |