During dual role port (DRP) mode, the device
advertises as both a SRC and a SNK by automatically toggling the CC lines between Rp and
Rd. The device can be configured to DRP mode through setting CC_MODE=10b. EN_OTG is
automatically set to 0b (Attached.SNK) or 1b (Attached.SRC) after a connection is
detected. The connection result is shown in the VBUS_STAT register.
The
device supports Try.SRC and Try.SNK. When two DRPs are connected together, the
device can be programmed to prefer connecting as a SRC (Try.SRC), connecting as a
SNK (Try.SNK), or having no preference as part of the initial handshaking through
the DRP_PREF register.
To configure DRP mode:
- Set RP_VALUE to the desired
advertised current if connected as a SRC.
- Set DRP_PREF to the desired Try
behavior (defaults to no Try routine).
- Set CC_MODE = 10b.