Changes between Version 4 and Version 5 of linux/OTG


Ignore:
Timestamp:
04/24/2020 04:49:26 PM (5 years ago)
Author:
Tim Harvey
Comment:

added additional statement about boards without OTG_ID pins

Legend:

Unmodified
Added
Removed
Modified
  • linux/OTG

    v4 v5  
    379379[=#dual-role]
    380380== 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.
     381USB 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
     383In some cases you may have a board without an OTG_ID signal where you still want to use USB OTG in device mode.
    382384
    383385Dual-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: