<?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: ls1043 : USB 3.0 controller in host mode in QorIQ</title>
    <link>https://community.nxp.com/t5/QorIQ/ls1043-USB-3-0-controller-in-host-mode/m-p/646435#M4792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at the Section 35.4.4 of the LS1043a Reference Manual.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Jun 2017 09:06:11 GMT</pubDate>
    <dc:creator>Pavel</dc:creator>
    <dc:date>2017-06-30T09:06:11Z</dc:date>
    <item>
      <title>ls1043 : USB 3.0 controller in host mode</title>
      <link>https://community.nxp.com/t5/QorIQ/ls1043-USB-3-0-controller-in-host-mode/m-p/646429#M4786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello *,&lt;BR /&gt;I try to configure USB 3.0 controller on an ls1043ardb. I use a stack that already working&lt;/P&gt;&lt;P&gt;on x86 real and virtual targets. On these architecture xHCI controller is accessed through PCI.&lt;/P&gt;&lt;P&gt;I try to port this stack on arm-v8 architecture.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Documentation (QorIQ LS1043A Reference Manual, Rev. 2, 11/2016)&lt;BR /&gt;seems pretty poor concerning initialization of DWC3 register set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is something in "35.4.6.1.4.1 Initializing global registers" but it doesn't describe&lt;BR /&gt;the process and values to be set in registers for host mode.&lt;/P&gt;&lt;P&gt;Except u-boot driver or linux kernel driver there is no explanation about&lt;BR /&gt;how this controller works..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the moment, when a device in plugged in USB1 connector linked to USB1 controller&lt;/P&gt;&lt;P&gt;PORTSC_PR bit is written in PORTSC register and an IRQ is received with bits&lt;/P&gt;&lt;P&gt;USBSTS_PCD and USBSTS_EINT set in USBSTS register.&lt;/P&gt;&lt;P&gt;Moreover IP bit is set in IMAN[0] (0 for interrupter 0). So every seems all right except.. event ring.&lt;/P&gt;&lt;P&gt;The problem comes from *event ring* that creates *no* event.. xHCI controller&lt;/P&gt;&lt;P&gt;is supposed to generate a "Port Status Change Event TRB" (See xHCI specification revision 1.1&lt;/P&gt;&lt;P&gt;chapter 6.4.2.3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know where I can find a documentation that explains how to configure&lt;BR /&gt;the USB 3.0 controller as *host only* properly?&lt;/P&gt;&lt;P&gt;I don't find something relevant in OTG chapter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 16:31:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/QorIQ/ls1043-USB-3-0-controller-in-host-mode/m-p/646429#M4786</guid>
      <dc:creator>jjp</dc:creator>
      <dc:date>2017-01-25T16:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: ls1043 : USB 3.0 controller in host mode</title>
      <link>https://community.nxp.com/t5/QorIQ/ls1043-USB-3-0-controller-in-host-mode/m-p/646430#M4787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello *,&lt;BR /&gt;I have a more precise observation concerning behavior of xHCI controller on ls1043.&lt;/P&gt;&lt;P&gt;I simplify my test by keeping u-boot initialization :&lt;BR /&gt; - except by reducing segment number from 3 to 1 and event ring size from 64 to 32&lt;BR /&gt; - all allocated ring buffers are keep between u-boot and my binary&lt;BR /&gt; - registers are kept (operational and runtime)&lt;BR /&gt; - *no reset* is done, just *stop* and *start* controller through R/S bit of USBCMD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Between stop and start sequence, I add these steps :&lt;BR /&gt; - map ERSTBA content to virtual memory *virt_erstba*. It is possible to retrieve&lt;BR /&gt;first segment i.e. ERST[0]&lt;BR /&gt; - map content of first segment that give first event ring address *virt_er*.&lt;BR /&gt; - trigger port reset through PORTSC&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So, I can see event generated in event ring allocated by u-boot in my binary memory space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problems come when I try to write for example the same value in ERSTBA i.e&lt;BR /&gt;ERSTBA = ERSTBA to reset event ring state machine as explain in xHCi specification.&lt;/P&gt;&lt;P&gt;There is no event generated and something seems to be broken in event ring state&lt;BR /&gt;machine.. just by writting same value as previous in ERSTBA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As anyone experiment this problem?&lt;BR /&gt;Is it possible to have some explanations concerning event ring state machine of controller?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I flush cache of region *virt_erstba* and *virt_er* with no success..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 15:17:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/QorIQ/ls1043-USB-3-0-controller-in-host-mode/m-p/646430#M4787</guid>
      <dc:creator>jjp</dc:creator>
      <dc:date>2017-02-10T15:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: ls1043 : USB 3.0 controller in host mode</title>
      <link>https://community.nxp.com/t5/QorIQ/ls1043-USB-3-0-controller-in-host-mode/m-p/646431#M4788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;We do not have Application Note for USB 3.0 eHCI. See attached file. This file contains eHCI driver from SDK 2.0. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;See also documentation for Linux USB API on the following page:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fkernel.readthedocs.io%2Fen%2Fsphinx-samples%2Fcrypto-API.html" rel="nofollow" target="_blank"&gt;https://kernel.readthedocs.io/en/sphinx-samples/crypto-API.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;See recommendation from the Section 2.7 from TI for USB eHCI Host initialization:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.ti.com%2Flit%2Fug%2Fspruhj7%2Fspruhj7.pdf" rel="nofollow" target="_blank"&gt;http://www.ti.com/lit/ug/spruhj7/spruhj7.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;It looks like that Linux USB3 driver porting manual from Renesas also will be helpful:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.tyan.com%2Fmanuals%2FLinuxUSB3DriverPortingManual.pdf" rel="nofollow" target="_blank"&gt;http://www.tyan.com/manuals/LinuxUSB3DriverPortingManual.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Flxr.free-electrons.com%2Fsource%2Fdrivers%2Fusb%2Fhost%2Fxhci.c" rel="nofollow" target="_blank"&gt;http://lxr.free-electrons.com/source/drivers/usb/host/xhci.c&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2017 02:33:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/QorIQ/ls1043-USB-3-0-controller-in-host-mode/m-p/646431#M4788</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2017-02-14T02:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: ls1043 : USB 3.0 controller in host mode</title>
      <link>https://community.nxp.com/t5/QorIQ/ls1043-USB-3-0-controller-in-host-mode/m-p/646432#M4789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello *,&lt;/P&gt;&lt;P&gt;Thanks Pavel for this help.&lt;/P&gt;&lt;P&gt;Right now I have an other concern.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I experiment some robustness problem on ls1043ardb's USB3 controller.&lt;BR /&gt;I find some errata about it from "LS1043A Chip Errata Rev. 2, 11/2016"&lt;BR /&gt;but they seems to have no effect.&lt;BR /&gt;Do you provide more explanation about *USB PHY* programming?&lt;BR /&gt;There are a lot of registers but nothing clear about what there are doing..&lt;/P&gt;&lt;P&gt;I use same USB stack on ls2085a-rdb and it works properly.&lt;BR /&gt;Any hint?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 15:46:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/QorIQ/ls1043-USB-3-0-controller-in-host-mode/m-p/646432#M4789</guid>
      <dc:creator>jjp</dc:creator>
      <dc:date>2017-06-29T15:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: ls1043 : USB 3.0 controller in host mode</title>
      <link>https://community.nxp.com/t5/QorIQ/ls1043-USB-3-0-controller-in-host-mode/m-p/646433#M4790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; background: white;"&gt;Attached file contains USB3 software from SDK 2.0 for the LS1043aRDB board. Use this software as example for USB3 using on the LS1043a board.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 03:47:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/QorIQ/ls1043-USB-3-0-controller-in-host-mode/m-p/646433#M4790</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2017-06-30T03:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: ls1043 : USB 3.0 controller in host mode</title>
      <link>https://community.nxp.com/t5/QorIQ/ls1043-USB-3-0-controller-in-host-mode/m-p/646434#M4791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pavel,&lt;/P&gt;&lt;P&gt;Hmm source code as documentation and application note...&lt;/P&gt;&lt;P&gt;I expect something different [:&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 07:33:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/QorIQ/ls1043-USB-3-0-controller-in-host-mode/m-p/646434#M4791</guid>
      <dc:creator>jjp</dc:creator>
      <dc:date>2017-06-30T07:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: ls1043 : USB 3.0 controller in host mode</title>
      <link>https://community.nxp.com/t5/QorIQ/ls1043-USB-3-0-controller-in-host-mode/m-p/646435#M4792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at the Section 35.4.4 of the LS1043a Reference Manual.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 09:06:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/QorIQ/ls1043-USB-3-0-controller-in-host-mode/m-p/646435#M4792</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2017-06-30T09:06:11Z</dc:date>
    </item>
  </channel>
</rss>

