I am looking for the guidance/document for the configuring USB OTG2 port in the peripheral mode. By default it is configured in Host mode.
I made changes in the eval board imx6ul-14x14-evk.dts as below.
dr_mode = "peripheral";
status = "okay";
What else required to configure second USB port in peripheral mode?
Secondly, what should I configure to tell gadget examples(g_serial and g_hid) to link with this second USB port?
I am searching for these thing since last few days but unable to find any hint/example/document.