AnsweredAssumed Answered

Configure USB OTG2 port in peripheral mode in iMX6 Eval Board

Question asked by Krunal K on May 19, 2017
Latest reply on May 21, 2017 by Krunal K



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.

&usbotg2 {
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. 


Please guide.