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

Difference between revisions of "Rockpi4/dev/usb-host-and-otg-switch-on-rock-pi-4"

< Rockpi4‎ | dev
Line 28: Line 28:
  
 
  # echo host > /sys/devices/platform/usb0/dwc3_mode
 
  # echo host > /sys/devices/platform/usb0/dwc3_mode
 +
 +
===== Switch to peripheral mode =====
 +
 +
Force peripheral mode
 +
 +
# echo peripheral > /sys/devices/platform/usb0/dwc3_mode
  
 
===== Switch to otg mode =====
 
===== Switch to otg mode =====

Revision as of 02:23, 24 August 2022

    ROCK Pi 4 >  Development >  USB host and otg switch on ROCK Pi 4

Description

This guide describes about usb host and otg switch for the upper USB3.0 port on ROCK Pi 4.

Part one: For ROCK Pi 4A / 4A+ / 4B / 4B+ / 4C

Switch to host mode

In hardware, turn the OTG SWITCH to the L side.

Switch to otg mode

In hardware, turn the OTG SWITCH to the H side.

To use adb, please install package rockchip-adbd. See Using adb .

Part two: For ROCK Pi 4C+

Switch to host mode

Force host mode

# echo host > /sys/devices/platform/usb0/dwc3_mode
Switch to peripheral mode

Force peripheral mode

# echo peripheral > /sys/devices/platform/usb0/dwc3_mode
Switch to otg mode

Force otg mode

# echo otg > /sys/devices/platform/usb0/dwc3_mode

To use adb, please install package rockchip-adbd. See Using adb .