For further information, please visit i.MX 8 Series Applications Processors | Arm® Cortex®-A72/A53/A35/M4 cores | NXP Semiconductors
For i.MX8M CPU: OTG not supported
Boards support both host and client mode, but, at the moment, the switch between them is available just at build time.
The dynamic switch between host and client mode depends on a dedicated PIN which is not managed.