I got the USB working under host mode.
For device mode, I have modified the device tree
status = "okay";
dr_mode = "peripheral";
How / where do I configure the descriptors (device, Interface, Config, Endpoint, String), so that the device gets enumerated as vendor specific device at the boot time.
Using yocto build on iMX-8M.