<?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 Re: i.mx6 USB OTG host mode in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-USB-OTG-host-mode/m-p/465537#M73290</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It actually was easier than i first believed, since USB_OTG_ID pin is unused, i can controll PUS of the pin in the PAD_CTL register&lt;/P&gt;&lt;P&gt;Activating Pull down and device will be detected as host when power is applied to USB&lt;/P&gt;&lt;P&gt;Activating pull up and usb acts as device!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Bo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Feb 2016 13:47:08 GMT</pubDate>
    <dc:creator>bobosv</dc:creator>
    <dc:date>2016-02-17T13:47:08Z</dc:date>
    <item>
      <title>i.mx6 USB OTG host mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-USB-OTG-host-mode/m-p/465532#M73285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to use the i.mx6 USB OTG port at host mode only&lt;/P&gt;&lt;P&gt;Is it possible to do so by changing the register USBMODE[1:0] to 0x03 (HOST CONTROLLER) only and not switching the USBOTG_ID pin to GND?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,ZC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 07:03:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-USB-OTG-host-mode/m-p/465532#M73285</guid>
      <dc:creator>zc_tee</dc:creator>
      <dc:date>2015-12-07T07:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6 USB OTG host mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-USB-OTG-host-mode/m-p/465533#M73286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ZC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in general yes, for host only mode one can make just&lt;/P&gt;&lt;P&gt;software moficiations in driver, to ignore USBOTG_ID state.&lt;/P&gt;&lt;P&gt;Just for reference one can look at attached host codes from sdk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 09:04:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-USB-OTG-host-mode/m-p/465533#M73286</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-12-07T09:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6 USB OTG host mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-USB-OTG-host-mode/m-p/465534#M73287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;May i know which version of sdk is the code extract from?&lt;/P&gt;&lt;P&gt;I am using linux 3.0.101, but i do not see any similiar coding around.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After doing some seaching, i found out that in /driver/usb/otg/fsl_otg.c, there is a part of code in function usb_otg_start:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (le32_to_cpu(p_otg-&amp;gt;dr_mem_map-&amp;gt;otgsc) &amp;amp; OTGSC_STS_USB_ID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_otg-&amp;gt;fsm.id = 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_otg-&amp;gt;fsm.id = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems like this part of code checks for the ID STATUS bit in the USB OTGSC register.&lt;/P&gt;&lt;P&gt;I tried to force the p_otg-&amp;gt;fsm.id to 0 without checking for this status bit, and it works (i plugged in my thumb drive and the USB OTG port success in enumerate the port)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, may i know will there be any unexpected behaviour by just changing this part of code and do not check for the ID bit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ZC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 09:23:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-USB-OTG-host-mode/m-p/465534#M73287</guid>
      <dc:creator>zc_tee</dc:creator>
      <dc:date>2015-12-07T09:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6 USB OTG host mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-USB-OTG-host-mode/m-p/465535#M73288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ZC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these codes are from former baremetal sdk, not more supported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 09:40:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-USB-OTG-host-mode/m-p/465535#M73288</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-12-07T09:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6 USB OTG host mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-USB-OTG-host-mode/m-p/465536#M73289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Got curious of your reply!&lt;/P&gt;&lt;P&gt;I have a design without the ID pin, and as such USB OTG will not be able to work, as it relies on the ID pin and it's interrupt!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We would however want be able to select host or device!Is it possible to select USB Host or USB device from linux userspace?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Bo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 09:03:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-USB-OTG-host-mode/m-p/465536#M73289</guid>
      <dc:creator>bobosv</dc:creator>
      <dc:date>2016-02-17T09:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6 USB OTG host mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-USB-OTG-host-mode/m-p/465537#M73290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It actually was easier than i first believed, since USB_OTG_ID pin is unused, i can controll PUS of the pin in the PAD_CTL register&lt;/P&gt;&lt;P&gt;Activating Pull down and device will be detected as host when power is applied to USB&lt;/P&gt;&lt;P&gt;Activating pull up and usb acts as device!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Bo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 13:47:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-USB-OTG-host-mode/m-p/465537#M73290</guid>
      <dc:creator>bobosv</dc:creator>
      <dc:date>2016-02-17T13:47:08Z</dc:date>
    </item>
  </channel>
</rss>

