| 403 | |
| 404 | |
| 405 | [=#device-mode] |
| 406 | == Using a Non-OTG port in device mode |
| 407 | In some cases you can use a USB Type-A socket in device mode in a non-standard way. This can be used for example on boards that route a USB OTG controller to a Type-A socket which does not have an OTG_ID signal. In this case you need to isolate VBUS to ensure both the host and the device are not both driving it at the same time. This opportunity exists on certain Ventana boards (where the 'usbotg' host controller is enabled in the device-tree yet the signals route to a USB Type-A socket connector instead of an OTG controller). |
| 408 | |
| 409 | In this case you can do the following: |
| 410 | 1. use a non-standard Type-A plug to Type-A plug cable and isolate the VBUS (red wire) to ensure host and device are not both driving VBUS |
| 411 | 2. configure the OTG controller for device-mode (see [#dual-role above]) |
| 412 | 3. Load a gadget driver (see [#device above]) |