<?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: LS1046A can not detect USB device on u-boot in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/LS1046A-can-not-detect-USB-device-on-u-boot/m-p/1561077#M11447</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/187611"&gt;@__OTL__&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The USB PHY frequency (SCFG_USB_REFCLK_SELCRn) should be programmed in the PBI phase such that the USB PHY comes out of reset before SYSTEM_READY. Refer to 'Initialization on USB reset' mentioned in the LS1046A reference manual.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Mrudang&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2022 06:24:13 GMT</pubDate>
    <dc:creator>mrudangshelat-13</dc:creator>
    <dc:date>2022-11-29T06:24:13Z</dc:date>
    <item>
      <title>LS1046A can not detect USB device on u-boot</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1046A-can-not-detect-USB-device-on-u-boot/m-p/1559948#M11444</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am working on our custom board of LS1046A.&lt;/P&gt;&lt;P&gt;usb start can not drive USB_DRVVBUS or detect any device (when set the DRVVBUS as a GPIO and drive it high)&lt;/P&gt;&lt;P&gt;There is no power fault error on USB_PWRFAULT.&lt;/P&gt;&lt;PRE&gt;=&amp;gt; gpio set 125&lt;BR /&gt;gpio: pin 125 (gpio 125) value is 1&lt;BR /&gt;=&amp;gt; usb start&lt;BR /&gt;starting USB...&lt;BR /&gt;Bus usb@2f00000: Register 200017f NbrPorts 2&lt;BR /&gt;Starting the controller&lt;BR /&gt;USB XHCI 1.00&lt;BR /&gt;Bus usb@3000000: Register 200017f NbrPorts 2&lt;BR /&gt;Starting the controller&lt;BR /&gt;USB XHCI 1.00&lt;BR /&gt;Bus usb@3100000: Register 200017f NbrPorts 2&lt;BR /&gt;Starting the controller&lt;BR /&gt;USB XHCI 1.00&lt;BR /&gt;scanning bus usb@2f00000 for devices... 1 USB Device(s) found&lt;BR /&gt;scanning bus usb@3000000 for devices... 1 USB Device(s) found&lt;BR /&gt;scanning bus usb@3100000 for devices... 1 USB Device(s) found&lt;BR /&gt;scanning usb for storage devices... 0 Storage Device(s) found&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to read the&amp;nbsp;SCFG_USB_REFCLK_SELCR and found its reset is asserted :&lt;/P&gt;&lt;PRE&gt;=&amp;gt; md 01570418 1&lt;BR /&gt;01570418: 9e000080 ....&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After maually deassertting the reset, the USB device can be detected normally&lt;/P&gt;&lt;PRE&gt;=&amp;gt; md 01570418 1&lt;BR /&gt;01570418: 9e000000 ....&lt;BR /&gt;=&amp;gt; usb reset&lt;BR /&gt;resetting USB...&lt;BR /&gt;Bus usb@2f00000: Register 200017f NbrPorts 2&lt;BR /&gt;Starting the controller&lt;BR /&gt;USB XHCI 1.00&lt;BR /&gt;Bus usb@3000000: Register 200017f NbrPorts 2&lt;BR /&gt;Starting the controller&lt;BR /&gt;USB XHCI 1.00&lt;BR /&gt;Bus usb@3100000: Register 200017f NbrPorts 2&lt;BR /&gt;Starting the controller&lt;BR /&gt;USB XHCI 1.00&lt;BR /&gt;scanning bus usb@2f00000 for devices... 2 USB Device(s) found&lt;BR /&gt;scanning bus usb@3000000 for devices... 1 USB Device(s) found&lt;BR /&gt;scanning bus usb@3100000 for devices... 1 USB Device(s) found&lt;BR /&gt;scanning usb for storage devices... 1 Storage Device(s) found&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you tell me how on what case the usb reset is asserted?&lt;/P&gt;&lt;P&gt;Does "usb start" is not enough?&lt;/P&gt;&lt;P&gt;What else should I do to enable usb instead of writing register directly?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The usb related configuration :&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CONFIG_USB=y&lt;BR /&gt;CONFIG_DM_USB=y&lt;BR /&gt;CONFIG_USB_XHCI_HCD=y&lt;BR /&gt;CONFIG_USB_XHCI_DWC3=y&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you give me any ideas, please.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 11:45:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1046A-can-not-detect-USB-device-on-u-boot/m-p/1559948#M11444</guid>
      <dc:creator>__OTL__</dc:creator>
      <dc:date>2022-11-25T11:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: LS1046A can not detect USB device on u-boot</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1046A-can-not-detect-USB-device-on-u-boot/m-p/1559952#M11445</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;After maually deassertting the reset, the USB device can be detected normally&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;I mean use this command&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;mw 01570418 9e000000&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 11:58:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1046A-can-not-detect-USB-device-on-u-boot/m-p/1559952#M11445</guid>
      <dc:creator>__OTL__</dc:creator>
      <dc:date>2022-11-25T11:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: LS1046A can not detect USB device on u-boot</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1046A-can-not-detect-USB-device-on-u-boot/m-p/1561077#M11447</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/187611"&gt;@__OTL__&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The USB PHY frequency (SCFG_USB_REFCLK_SELCRn) should be programmed in the PBI phase such that the USB PHY comes out of reset before SYSTEM_READY. Refer to 'Initialization on USB reset' mentioned in the LS1046A reference manual.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Mrudang&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 06:24:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1046A-can-not-detect-USB-device-on-u-boot/m-p/1561077#M11447</guid>
      <dc:creator>mrudangshelat-13</dc:creator>
      <dc:date>2022-11-29T06:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: LS1046A can not detect USB device on u-boot</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1046A-can-not-detect-USB-device-on-u-boot/m-p/1561319#M11448</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Mrudang&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;I successed to do this after adding&lt;/P&gt;&lt;PRE&gt;CCSR Write to 0x570418, data=0x0000009e&lt;/PRE&gt;&lt;P&gt;to PBI Data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I have to say this is so hard to be noticed...&lt;/P&gt;&lt;P&gt;I wish you could also add a note in the LSDKUG Driver Chapter.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 12:03:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1046A-can-not-detect-USB-device-on-u-boot/m-p/1561319#M11448</guid>
      <dc:creator>__OTL__</dc:creator>
      <dc:date>2022-11-29T12:03:17Z</dc:date>
    </item>
  </channel>
</rss>

