AnsweredAssumed Answered

USB OTG Functionality

Question asked by SUMIT SHARMA on Jul 20, 2015
Latest reply on Jul 21, 2015 by SUMIT SHARMA

Hi All,

 

We are using a custom designed board having a standard USB host port (USB_H1) and USB OTG port terminated on a micro USB connector.

 

We are facing an issue in implementing the OTG Host mode when we are connecting the small micro usb cable convertor(USB  micro-B to USB TYPE-A female connector). Even VBUS 5V also doesn't not comes up.

 

To verify the functionality of the USB_OTG_ID pin we have probed the pin and got fair results:

  >> While connecting the small micro usb cable converter (USB  micro-B to USB TYPE-A female connector)  :   USB_OTG_ID Pin -> 0

  >> Normally during the Device mode functionality    :  USB_OTG_ID Pin -> 1 ( 3.23V as we have PU with 100K)

 

In SW side, We are doing following in DTS:

&usbotg {

        vbus-supply = <&reg_usb_otg_vbus>;

        pinctrl-names = "default";

        pinctrl-0 = <&pinctrl_usbotg_1>;

        disable-over-current;

        dr_mode = "otg";

        status = "okay";

};

[6:14:28 PM] Alok Pawar: reg_usb_otg_vbus: usb_otg_vbus {

                        compatible = "regulator-fixed";

                        regulator-name = "usb_otg_vbus";

                        regulator-min-microvolt = <5000000>;

                        regulator-max-microvolt = <5000000>;

                        gpio = <&gpio4 15 0>;

                        enable-active-high;

                };

[6:14:48 PM] Alok Pawar: usbotg {

                pinctrl_usbotg_1: usbotggrp-1 {

                        fsl,pins = <

                                MX6QDL_PAD_GPIO_1__USB_OTG_ID           0x17059

                                MX6QDL_PAD_KEY_COL4__USB_OTG_OC         0x1b0b0

                                MX6QDL_PAD_KEY_ROW4__GPIO4_IO15         0x0b0b0

                        >;

                };

        };

 

   Device Mode Functionality is working fine. But Host mode is not Working with this .

 

Thanks

Sumit

Outcomes