<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Problem with USB OTG in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Problem-with-USB-OTG/m-p/296418#M36781</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On my Sabre-SD (with imx6q) USB OTG is working well, on a customized board with imx6dl usb otg is not working (all other things including usbh1 are working well)!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My configs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define MX6DL_ICORE_USB_OTG_PWR IMX_GPIO_NR(4, 15)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MX6DL_PAD_KEY_ROW4__GPIO_4_15,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;MX6DL_PAD_KEY_COL4__USBOH3_USBOTG_OC,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;MX6DL_PAD_GPIO_1__USBOTG_ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;//USB OTG-----------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;static void imx6q_icore_usbotg_vbus(bool on)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(on)gpio_set_value(MX6DL_ICORE_USB_OTG_PWR,1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; else gpio_set_value(MX6DL_ICORE_USB_OTG_PWR,0);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static void __init imx6q_icore_init_usb(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; int ret=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; imx_otg_base=MX6_IO_ADDRESS(MX6Q_USB_OTG_BASE_ADDR);&lt;/P&gt;&lt;P&gt;&amp;nbsp; ret=gpio_request(MX6DL_ICORE_USB_OTG_PWR,"usb-pwr");&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(ret){&lt;/P&gt;&lt;P&gt;&amp;nbsp; pr_err("failed to get GPIO MX6DL_ICORE_USB_OTG_PWR: %d\n",ret);&lt;/P&gt;&lt;P&gt;&amp;nbsp; return;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; gpio_direction_output(MX6DL_ICORE_USB_OTG_PWR,0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; //mxc_iomux_set_gpr_register(1,13,1,1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; mx6_set_otghost_vbus_func(imx6q_icore_usbotg_vbus);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;imx6q_icore_init_usb();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Has anybody an idea?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks in advance, tom&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 May 2014 07:03:38 GMT</pubDate>
    <dc:creator>hitom</dc:creator>
    <dc:date>2014-05-13T07:03:38Z</dc:date>
    <item>
      <title>Problem with USB OTG</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-with-USB-OTG/m-p/296418#M36781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On my Sabre-SD (with imx6q) USB OTG is working well, on a customized board with imx6dl usb otg is not working (all other things including usbh1 are working well)!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My configs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define MX6DL_ICORE_USB_OTG_PWR IMX_GPIO_NR(4, 15)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MX6DL_PAD_KEY_ROW4__GPIO_4_15,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;MX6DL_PAD_KEY_COL4__USBOH3_USBOTG_OC,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;MX6DL_PAD_GPIO_1__USBOTG_ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;//USB OTG-----------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;static void imx6q_icore_usbotg_vbus(bool on)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(on)gpio_set_value(MX6DL_ICORE_USB_OTG_PWR,1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; else gpio_set_value(MX6DL_ICORE_USB_OTG_PWR,0);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static void __init imx6q_icore_init_usb(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; int ret=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; imx_otg_base=MX6_IO_ADDRESS(MX6Q_USB_OTG_BASE_ADDR);&lt;/P&gt;&lt;P&gt;&amp;nbsp; ret=gpio_request(MX6DL_ICORE_USB_OTG_PWR,"usb-pwr");&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(ret){&lt;/P&gt;&lt;P&gt;&amp;nbsp; pr_err("failed to get GPIO MX6DL_ICORE_USB_OTG_PWR: %d\n",ret);&lt;/P&gt;&lt;P&gt;&amp;nbsp; return;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; gpio_direction_output(MX6DL_ICORE_USB_OTG_PWR,0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; //mxc_iomux_set_gpr_register(1,13,1,1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; mx6_set_otghost_vbus_func(imx6q_icore_usbotg_vbus);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;imx6q_icore_init_usb();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Has anybody an idea?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks in advance, tom&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 07:03:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-with-USB-OTG/m-p/296418#M36781</guid>
      <dc:creator>hitom</dc:creator>
      <dc:date>2014-05-13T07:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with USB OTG</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-with-USB-OTG/m-p/296419#M36782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why comment our this line?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;//mxc_iomux_set_gpr_register(1,13,1,1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Since your use GPIO1 as OTG ID input. This line is necessary.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp; It should be same as MX6Q, I doubt your otg can work properly if this line is out.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 08:28:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-with-USB-OTG/m-p/296419#M36782</guid>
      <dc:creator>raymondwang</dc:creator>
      <dc:date>2014-05-13T08:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with USB OTG</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-with-USB-OTG/m-p/296420#M36783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the GPR1 of the DL this Bit does not exist, but I have tried it also with this line!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 08:51:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-with-USB-OTG/m-p/296420#M36783</guid>
      <dc:creator>hitom</dc:creator>
      <dc:date>2014-05-13T08:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with USB OTG</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-with-USB-OTG/m-p/296421#M36784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why? My 6DL RM has this bit definition. My RM version is Rev .1, 04/2013.&lt;/P&gt;&lt;P&gt; Thinking about your OTG issue. Please verify your OTG controller can get your VBUS and ID status properly.&lt;/P&gt;&lt;P&gt;You can confirm it with following command:&lt;/P&gt;&lt;P&gt;#cat /proc/driver/isp1504_otg&lt;/P&gt;&lt;P&gt;This command will print OTG Status register and OTG FSM state (a session valid,id state ,etc).&lt;/P&gt;&lt;P&gt;e.g If you connect a usb default deviec role cable to PC. VBUS shoud be supplied from PC, and b_session_valid&lt;/P&gt;&lt;P&gt;should 1, id state should be 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This these states don't conform with your real state, your should check your hardware connection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 09:39:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-with-USB-OTG/m-p/296421#M36784</guid>
      <dc:creator>raymondwang</dc:creator>
      <dc:date>2014-05-13T09:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with USB OTG</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-with-USB-OTG/m-p/296422#M36785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;First of all thank you for your support!!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You are right the bit exist in the new RM!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@freescale ~$ cat /proc/driver/isp1504_otg&lt;/P&gt;&lt;P&gt;Freescale USB OTG Driver&lt;/P&gt;&lt;P&gt;fsl_usb2_otg version: $Revision: 1.55 $&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OTGSC reg: 01201120&lt;/P&gt;&lt;P&gt;PORTSC reg: 1cd01000&lt;/P&gt;&lt;P&gt;USBMODE reg: 00000013&lt;/P&gt;&lt;P&gt;USBCMD reg: 00010004&lt;/P&gt;&lt;P&gt;USBSTS reg: 00001088&lt;/P&gt;&lt;P&gt;OTG state: UNDEFINED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a_bus_req: 1&lt;/P&gt;&lt;P&gt;b_bus_req: 0&lt;/P&gt;&lt;P&gt;a_bus_resume: 0&lt;/P&gt;&lt;P&gt;a_bus_suspend:0&lt;/P&gt;&lt;P&gt;a_conn: 0&lt;/P&gt;&lt;P&gt;a_sess_vld: 0&lt;/P&gt;&lt;P&gt;a_srp_det: 0&lt;/P&gt;&lt;P&gt;a_vbus_vld: 0&lt;/P&gt;&lt;P&gt;b_bus_resume: 0&lt;/P&gt;&lt;P&gt;b_bus_suspend: 0&lt;/P&gt;&lt;P&gt;b_conn: 0&lt;/P&gt;&lt;P&gt;b_se0_srp: 0&lt;/P&gt;&lt;P&gt;b_sess_end: 0&lt;/P&gt;&lt;P&gt;b_sess_vld: 0&lt;/P&gt;&lt;P&gt;id: 1&lt;/P&gt;&lt;P&gt;root@freescale ~$&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also checked the hardware for many times, also compared to the running sabresd-board!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 12:31:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-with-USB-OTG/m-p/296422#M36785</guid>
      <dc:creator>hitom</dc:creator>
      <dc:date>2014-05-13T12:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with USB OTG</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-with-USB-OTG/m-p/296423#M36786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check your OTG status register：&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;OTGSC reg: 01201120&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Mine is &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;OTGSC reg: 09002d20&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Check your VBus.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 01:54:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-with-USB-OTG/m-p/296423#M36786</guid>
      <dc:creator>raymondwang</dc:creator>
      <dc:date>2014-05-14T01:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with USB OTG</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-with-USB-OTG/m-p/296424#M36787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;Had your issue got resolved? If yes, we are going to close the discussion in 3 days. If you still need help, please feel free to reply with an update to this discussion.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yixing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 06:07:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-with-USB-OTG/m-p/296424#M36787</guid>
      <dc:creator>YixingKong</dc:creator>
      <dc:date>2014-06-26T06:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with USB OTG</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-with-USB-OTG/m-p/296425#M36788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;This discussion is closed since no activity. If you still need help, please feel free to reply with an update to this discussion, or create another discussion.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yixing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 03:42:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-with-USB-OTG/m-p/296425#M36788</guid>
      <dc:creator>YixingKong</dc:creator>
      <dc:date>2014-07-14T03:42:54Z</dc:date>
    </item>
  </channel>
</rss>

