<?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>i.MX ProcessorsのトピックRe: BSVIS interrupt not generated on USB hotplug on custom board based on imx8m mini</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/BSVIS-interrupt-not-generated-on-USB-hotplug-on-custom-board/m-p/1572299#M198995</link>
    <description>&lt;P&gt;BSVIS detects that VBUS valid or not, you should check the VBUS signal using scope when you hotplug. The defalut valid VBUS is 4.75V.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qmiller_0-1671518070759.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/204963iD8928B2A279CC6AC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Qmiller_0-1671518070759.png" alt="Qmiller_0-1671518070759.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;BSVIS is a flag of&amp;nbsp;&amp;nbsp;&lt;SPAN class="fontstyle0"&gt;VBUS Detect comparator.&amp;nbsp; The Session Valid threshold is &amp;gt; 0.8V and &amp;lt; 2.0V on this USB PHY.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qmiller_1-1671518461523.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/204964iD0E5FC92FBC8A0E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Qmiller_1-1671518461523.png" alt="Qmiller_1-1671518461523.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Dec 2022 06:46:27 GMT</pubDate>
    <dc:creator>Zhiming_Liu</dc:creator>
    <dc:date>2022-12-20T06:46:27Z</dc:date>
    <item>
      <title>BSVIS interrupt not generated on USB hotplug on custom board based on imx8m mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/BSVIS-interrupt-not-generated-on-USB-hotplug-on-custom-board/m-p/1566726#M198511</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We are having a custom board based on I.MX 8M mini. We want to have the usb charger detection functionality to limit the current drawn from a max charger IC.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We are facing some issues during the detection. We are testing the detection in various scenarios and the&amp;nbsp; details are as mentioned below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. USB is connected before booting the kernel:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The detection of the host charger connected is happening fine when the cable is connected to the charger before kernel boots up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;USB is not connected before booting the kernel and then hotplugged:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The detection is also happening fine when the cable is not connected to the charger and on ,kernel bootup the cable is hotplugged. We observe that in this case the&amp;nbsp;&lt;STRONG&gt;BSVIS[USBx_nOTGSC[19]]&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;interrupt which indicates that "VBus has either risen above or fallen below the B session valid threshold" is set&amp;nbsp;&amp;nbsp;and hence it is enabling the vbus comparator, entering the&amp;nbsp;"usb_gadget_vbus_connect" function in kernel/drivers/usb/gadget/udc/core.c and also completing the detection process.&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;USB is connected before booting the kernel and then again hotplugged:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In this case the "BSVIS"[USBx_nOTGSC[19] register bit] is&lt;STRONG&gt;&amp;nbsp;not getting set&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;and hence not indicating that there is a change in vbus connected and its not entering the detection process.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We are stuck with this issue and require your help in understanding the reason for the interrupt not getting generated and also how can we reinitiate the detection process on hotplug.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks and Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Bhavani S&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 09:17:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/BSVIS-interrupt-not-generated-on-USB-hotplug-on-custom-board/m-p/1566726#M198511</guid>
      <dc:creator>BHAVANI_S</dc:creator>
      <dc:date>2022-12-08T09:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: BSVIS interrupt not generated on USB hotplug on custom board based on imx8m mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/BSVIS-interrupt-not-generated-on-USB-hotplug-on-custom-board/m-p/1572299#M198995</link>
      <description>&lt;P&gt;BSVIS detects that VBUS valid or not, you should check the VBUS signal using scope when you hotplug. The defalut valid VBUS is 4.75V.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qmiller_0-1671518070759.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/204963iD8928B2A279CC6AC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Qmiller_0-1671518070759.png" alt="Qmiller_0-1671518070759.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;BSVIS is a flag of&amp;nbsp;&amp;nbsp;&lt;SPAN class="fontstyle0"&gt;VBUS Detect comparator.&amp;nbsp; The Session Valid threshold is &amp;gt; 0.8V and &amp;lt; 2.0V on this USB PHY.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qmiller_1-1671518461523.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/204964iD0E5FC92FBC8A0E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Qmiller_1-1671518461523.png" alt="Qmiller_1-1671518461523.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 06:46:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/BSVIS-interrupt-not-generated-on-USB-hotplug-on-custom-board/m-p/1572299#M198995</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2022-12-20T06:46:27Z</dc:date>
    </item>
  </channel>
</rss>

