Thank you for your reply.
It's not an EVK board, it's an "i.MX 8M Mini Quad applications processor" processor, we made the baseboard.
The hardware wiring is correct, because we tested in linux that both usb's work fine in "otg mode".
Iot we want to use both usb1 and usb2 as "host mode" or "otg mode". Using imx8mm fireware and drivers, usb1 works fine, but usb2 has voltage but no data.
So is it possible that usb2 is not enabled in fireware and how to enable it?