OK3568 4.19.206 Buildroot USB Host-to-Slave Switching

Document classification: □ Top secret □ Secret □ Internal information ■ Open

Revision History

Date

Version

Revision History

04/08/2022

V1.0

Initial Version

USB Host-to-Slave Switching

Switch to the host command.

echo host > /sys/devices/platform/fe8a0000.usb2-phy/otg_mode

Switch to the slave command.

echo peripheral > /sys/devices/platform/fe8a0000.usb2-phy/otg_mode