Hi Igor,
One more input from my side. What should be pin configuration settings in device tree file for USB OTG to work in both mode "host" and "gadget").
For me both modes are working individually but not simultaneously.
HOST mode pin configurations:
NOTE : With below pin configuration only HOST mode is working fine.
reg_usb_otg_vbus: usb_otg_vbus {
compatible = "regulator-fixed";
regulator-name = "usb_otg_vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
gpio = <&gpio3 22 0>;
enable-active-high;
};
usbotg {
pinctrl_usbotg_1: usbotggrp-1 {
fsl,pins = <
MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059
MX6QDL_PAD_KEY_COL4__USB_OTG_OC 0x17059
MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x000b0
>;
};
&usbotg {
vbus-supply = <®_usb_otg_vbus>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usbotg_1>;
disable-over-current;
dr_mode = "otg";
status = "okay";
}
Gadget Mode : (Comment out ID pin: Which is strange)
With below pin configuration only Gadget mode is working
usbotg {
pinctrl_usbotg_1: usbotggrp-1 {
fsl,pins = <
/* MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059 */
MX6QDL_PAD_KEY_COL4__USB_OTG_OC 0x17059
MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x000b0
>;
};
Please suggest.
Thanks,
Jemish