<?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: IMX93 USB OTG VBUS Error in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX93-USB-OTG-VBUS-Error/m-p/1899375#M225877</link>
    <description>&lt;P&gt;A switch controled the USB data bus flow between USB type-A (host) and micro USB (device).&lt;/P&gt;&lt;P&gt;The USB_ID pin only passed through from i.MX93 to micro USB.&lt;/P&gt;&lt;P&gt;For the testing step, maybe I can try the peripheral mode first to connect the PC as device&amp;nbsp; successfully.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jul 2024 09:00:22 GMT</pubDate>
    <dc:creator>AlanWen</dc:creator>
    <dc:date>2024-07-04T09:00:22Z</dc:date>
    <item>
      <title>IMX93 USB OTG VBUS Error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX93-USB-OTG-VBUS-Error/m-p/1899163#M225865</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to configure my custom i.MX93 board to switch USB roles from host mode to peripheral. As the custom board setting, USB type-A is for host and a micro USB is for devcie (peripheral).&lt;/P&gt;&lt;P&gt;I'm currently running a custom Linux build based on imx-6.6.3 yocto project&lt;/P&gt;&lt;P&gt;As I modprobe the module g_mass_storage and&amp;nbsp;setup the usb role from host to device, there are some error messages occurred.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@imx93evk:~# echo host &amp;gt; /sys/bus/platform/devices/ci_hdrc.0/usb_role/ci_hdrc.0-role-switch/role
[   79.667113] ci_hdrc ci_hdrc.0: EHCI Host Controller
root@imx93evk:~# [   79.672827] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 2
[   79.700263] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[   79.706898] hub 2-0:1.0: USB hub found
[   79.713134] hub 2-0:1.0: 1 port detected

root@imx93evk:~# lsusb
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@imx93evk:~# modprobe g_mass_storage file=/dev/mmcblk0 removable=1
[  118.913030] Mass Storage Function, version: 2009/09/11
[  118.918280] LUN: removable file: (no medium)
[  118.922669] LUN: removable file: /dev/mmcblk0
[  118.927056] Number of LUNs=1
[  118.930068] g_mass_storage gadget.0: Mass Storage Gadget, version: 2009/09/11
[  118.937246] g_mass_storage gadget.0: userspace failed to provide iSerialNumber
[  118.944532] g_mass_storage gadget.0: g_mass_storage ready
root@imx93evk:~# echo device &amp;gt; /sys/bus/platform/devices/ci_hdrc.0/usb_role/ci_hdrc.0-role-switch/role
[  126.608591] ci_hdrc ci_hdrc.0: remove, state 4
[  126.613071] usb usb2: USB disconnect, device number 1
[  126.620568] ci_hdrc ci_hdrc.0: USB bus 2 deregistered
[  126.626743] usbmisc_imx 4c100200.usbmisc: vbus is error
root@imx93evk:~# [  126.636382] usbmisc_imx 4c100200.usbmisc: Error occurs during detection: -22&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my kernel device tree setup:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;amp;usbotg1 {
	dr_mode = "otg";
	hnp-disable;
	srp-disable;
	adp-disable;
	usb-role-switch;
	role-switch-default-mode = "host";
	disable-over-current;
	samsung,picophy-pre-emp-curr-control = &amp;lt;3&amp;gt;;
	samsung,picophy-dc-vol-level-adjust = &amp;lt;7&amp;gt;;
	status = "okay";
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you help me figure out my issue ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sincerely.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 06:01:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX93-USB-OTG-VBUS-Error/m-p/1899163#M225865</guid>
      <dc:creator>AlanWen</dc:creator>
      <dc:date>2024-07-04T06:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: IMX93 USB OTG VBUS Error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX93-USB-OTG-VBUS-Error/m-p/1899360#M225876</link>
      <description>&lt;P&gt;How about your hardware design for the usb1 only support host or dual role?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 08:52:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX93-USB-OTG-VBUS-Error/m-p/1899360#M225876</guid>
      <dc:creator>Rita_Wang</dc:creator>
      <dc:date>2024-07-04T08:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: IMX93 USB OTG VBUS Error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX93-USB-OTG-VBUS-Error/m-p/1899375#M225877</link>
      <description>&lt;P&gt;A switch controled the USB data bus flow between USB type-A (host) and micro USB (device).&lt;/P&gt;&lt;P&gt;The USB_ID pin only passed through from i.MX93 to micro USB.&lt;/P&gt;&lt;P&gt;For the testing step, maybe I can try the peripheral mode first to connect the PC as device&amp;nbsp; successfully.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 09:00:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX93-USB-OTG-VBUS-Error/m-p/1899375#M225877</guid>
      <dc:creator>AlanWen</dc:creator>
      <dc:date>2024-07-04T09:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: IMX93 USB OTG VBUS Error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX93-USB-OTG-VBUS-Error/m-p/1901695#M225974</link>
      <description>&lt;P&gt;Yes, you can try it. If still not work, let us know.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 04:21:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX93-USB-OTG-VBUS-Error/m-p/1901695#M225974</guid>
      <dc:creator>Rita_Wang</dc:creator>
      <dc:date>2024-07-08T04:21:40Z</dc:date>
    </item>
  </channel>
</rss>

