You can refer to the document to finish configuration and setting.
linux-imx\Documentation\usb\chipidea.rst
The chipidea.rst has very detailed steps.
usb id pin is no needed. Or it could not be called "role switch".
has usb id is called "otg" mode.
linux-imx\Documentation\usb\chipidea.rst