Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Rockpi4/dev/usb-host-and-otg-switch-on-rock-pi-4cplus

< Rockpi4‎ | dev
Revision as of 09:38, 8 June 2022 by Stephen (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
    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