Tool/software: Linux
A TYPE A USB port is required to sometimes act as a host reading USB-stick, and some other times act as a device to connect to PC as a virtual serial.
The USB1_ID pin is connected directly to DGND.
I changed IDDIG and IDDIG_MUX of USB1MODE register(0x474018E8) and SESSION of devctl register (0x47401C60) in application level, but it failed to switch the role from host to device.
Does anyone know how to dynamically switch USB role between host and device in application level?