AnsweredAssumed Answered

iMX6 OTG 'wait otg vbus change timeout!'

Question asked by frédéric on Feb 1, 2016
Latest reply on Feb 2, 2016 by frédéric



We are using a spinoff of a Boundary Nitrogen6x, kernel 3.0.35. When I plug a mouse on the OTG it is detected and work fine.

However we changed the uboot (was 2013.10, now 2014.04) to have support for signed kernel and now when I plug a mouse on OTG I have this message in kernel:


wait otg vbus change timeout!


and it does not work. We have not changed the kernel, so it looks like the previous uboot configured something about OTG that we are missing.

I put this in my new uboot:




       /* USB_OTG_PWR = 0 */

       gpio_direction_output(USB_OTG_PWR, 0);


But it is still not working in kernel.


Any clues? If I have no support for USB-OTG in uboot, what is missing in the kernel to configure it? I see in my dmesg that the module is loaded


Freescale USB OTG Driver loaded, $Revision: 1.55 $


In the kernel (our board.c support file) has this code for OTG:


static void board_usbotg_vbus(bool on)


  if (on)

  gpio_set_value(BOARD_USB_OTG_PWR, 1);


  gpio_set_value(BOARD_USB_OTG_PWR, 0);



static void __init board_init_usb(void)


  int ret = 0;


  imx_otg_base = MX6_IO_ADDRESS(MX6Q_USB_OTG_BASE_ADDR);

  /* disable external charger detect,

  * or it will affect signal quality at dp .


  ret = gpio_request(BOARD_USB_OTG_PWR, "usb-pwr");

  if (ret) {

  pr_err("failed to get GPIO BOARD_USB_OTG_PWR: %d\n",




  gpio_direction_output(BOARD_USB_OTG_PWR, 0);

  mxc_iomux_set_gpr_register(1, 13, 1, 1);





EDIT: note that when fully booted in android, device mode is still working because ADB works fine, it is only host that does not work anymore