Changes between Version 4 and Version 5 of linux/OTG
- Timestamp:
- 04/24/2020 04:49:26 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
linux/OTG
v4 v5 379 379 [=#dual-role] 380 380 == OTG Mode selection 381 USB OTG host controllers are 'dual-role' controllers in that they can behave as a {{{USB host}}} or a {{{USB peripheral}}}. The decision on which mode to be in is typically controlled by the state of the OTG ID pin which is grounded on OTG to host cables, and left floating on OTG to device cables. 381 USB OTG host controllers are 'dual-role' controllers in that they can behave as a {{{USB host}}} or a {{{USB peripheral}}}. The decision on which mode to be in is typically controlled by the state of the OTG ID pin (OTG_ID) which is grounded on OTG to host cables, and left floating on OTG to device cables. 382 383 In some cases you may have a board without an OTG_ID signal where you still want to use USB OTG in device mode. 382 384 383 385 Dual-role controllers can be forced into 'host' mode or 'peripheral' mode via the device-tree 'dr_mode' property. For example to force an IMX6 OTG controller to peripheral mode add 'dr_mode = "peripheral";' to the dt such as: