Notice: Radxa Wiki is no longer maintained and content is for reference only. Please visit the latest Radxa Documentation site:
docs.radxa.com
Rockpi4/dev/usb-host-and-otg-switch-on-rock-pi-4cplus
ROCK Pi 4 > Development > USB host and otg switch on ROCK Pi 4C Plus
Description
This guide describes about usb host and otg switch for the upper USB3.0 port on ROCK Pi 4C Plus.
Switch commands
1.Force host mode
# echo host > /sys/devices/platform/usb0/dwc3_mode
2.Force otg mode
# echo otg > /sys/devices/platform/usb0/dwc3_mode
