<?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: Wakeup from USB on i.MX6S in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Wakeup-from-USB-on-i-MX6S/m-p/752745#M117170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ralf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please refer to sect.39.2.4 USB Wakeup Usage&lt;/P&gt;&lt;P&gt;atatched Linux Manual, use software described on&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.nxp.com%2Fsupport%2Fdeveloper-resources%2Frun-time-software%2Fi.mx-developer-resources%2Fi.mx-6series-i.mx-7series-software-and-development-tool-resources%3AIMX_SW" rel="nofollow" target="_blank"&gt;https://www.nxp.com/support/developer-resources/run-time-software/i.mx-developer-resources/i.mx-6series-i.mx-7series-software-and-development-tool-resources:IMX_SW&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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>Mon, 19 Feb 2018 23:27:02 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2018-02-19T23:27:02Z</dc:date>
    <item>
      <title>Wakeup from USB on i.MX6S</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Wakeup-from-USB-on-i-MX6S/m-p/752744#M117169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new to this community, so HI EVERYONE :smileyhappy:.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; background-color: #ffffff; font-size: 14px;"&gt;I am working on an i.MX6S (Solo, without X or Lite) attached to a module attached to a carrier board. It's running Yocto 2.2.3.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN&gt;I am trying to wake it up from one of the available standby states (freeze/mem/standby) by plugging in an USB Device.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; background-color: #ffffff; font-size: 14px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN&gt;To do so, I have tried to simply enable all available wakeup devices by executing &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN&gt;"&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN style="color: #3366ff;"&gt;for i in $(find /sys/devices/soc0/ -name wakeup);do echo enabled &amp;gt; $i;done&lt;/SPAN&gt;", which should enable&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: #3366ff;"&gt;find /sys/devices/soc0/ -name wakeup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt;/sys/devices/soc0/gpio-keys/power/wakeup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt;/sys/devices/soc0/soc/1ffc000.pcie/pci0000:00/0000:00:00.0/power/wakeup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt;/sys/devices/soc0/soc/2000000.aips-bus/20c9000.usbphy/power/wakeup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt;/sys/devices/soc0/soc/2000000.aips-bus/2000000.spba-bus/2020000.serial/tty/ttymxc0/power/wakeup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt;/sys/devices/soc0/soc/2000000.aips-bus/20ca000.usbphy/power/wakeup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt;/sys/devices/soc0/soc/2100000.aips-bus/21f4000.serial/tty/ttymxc4/power/wakeup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt;/sys/devices/soc0/soc/2100000.aips-bus/21ec000.serial/tty/ttymxc2/power/wakeup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt;/sys/devices/soc0/soc/2100000.aips-bus/21e8000.serial/tty/ttymxc1/power/wakeup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt;/sys/devices/soc0/soc/2100000.aips-bus/21f0000.serial/tty/ttymxc3/power/wakeup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt;/sys/devices/soc0/soc/2100000.aips-bus/2184200.usb/power/wakeup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt;/sys/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/power/wakeup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt;/sys/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/power/wakeup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt;/sys/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/power/wakeup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt;/sys/devices/soc0/soc/2100000.aips-bus/2184000.usb/power/wakeup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt;/sys/devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0/power/wakeup&lt;/SPAN&gt;" (first one&amp;nbsp;has already been enabled by default, it's the board's wake button)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the method I've found in several documents** about wakeup on linux in general or, more specific,&amp;nbsp;on Yocto on i.MX6.&lt;/P&gt;&lt;P&gt;But for some reason, it doesn't wake up from freeze or standby when I plug in/out an usb stick or keyboard or press a button on that keybard whose additional wakeup devices I've enabled previously (it adds some on connect).&lt;/P&gt;&lt;P&gt;For "mem"&amp;nbsp;the behaviour is strange: As long as "&lt;SPAN style="color: #ff6600;"&gt;/sys/devices/soc0/soc/2100000.aips-bus/2184200.usb/power/wakeup&lt;/SPAN&gt;" is enabled, the board doesn't go asleep (for a noteworthy time). The LEDs just flicker and no "&lt;SPAN style="color: #ff6600;"&gt;Suspended for&amp;nbsp;*.* seconds&lt;/SPAN&gt;" message is given. Also if no external usb devices are connected.&lt;/P&gt;&lt;P&gt;Wakeup_on_serial_Input on the other hand works as expected after "&lt;SPAN style="color: #3366ff;"&gt;echo enabled &amp;gt;&amp;nbsp;/sys/devices/soc0/soc/2000000.aips-bus/2000000.spba-bus/2020000.serial/tty/ttymxc0/power/wakeup&lt;/SPAN&gt;", from freeze/mem/standby.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea what's my mistake or what is wrong and how I can make&amp;nbsp;&lt;SPAN style="color: #555555; background-color: #ffffff; font-size: 14px;"&gt;Wakeup_On_USB_Device_Plug_In work?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; background-color: #ffffff; font-size: 14px;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; background-color: #ffffff; font-size: 14px;"&gt;Ralf&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;** The most promising documents were&amp;nbsp;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/thread/446856#comments" title="https://community.nxp.com/thread/446856#comments"&gt;https://community.nxp.com/thread/446856#comments&lt;/A&gt;&amp;nbsp;including an i.MX Reference Manual and testing scripts for wake on usb that do the same as I do, and &lt;A class="link-titled" href="https://www.spinics.net/lists/linux-usb/msg135935.html" title="https://www.spinics.net/lists/linux-usb/msg135935.html"&gt;Wakeup from USB on mx6 — Linux USB&lt;/A&gt;&amp;nbsp;, a technician of our board/module supplier sent to me. Both basically describe to echo-pipe "enabled" into the wakeup files of several devices.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2018 09:55:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Wakeup-from-USB-on-i-MX6S/m-p/752744#M117169</guid>
      <dc:creator>ralf2</dc:creator>
      <dc:date>2018-02-19T09:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Wakeup from USB on i.MX6S</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Wakeup-from-USB-on-i-MX6S/m-p/752745#M117170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ralf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please refer to sect.39.2.4 USB Wakeup Usage&lt;/P&gt;&lt;P&gt;atatched Linux Manual, use software described on&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.nxp.com%2Fsupport%2Fdeveloper-resources%2Frun-time-software%2Fi.mx-developer-resources%2Fi.mx-6series-i.mx-7series-software-and-development-tool-resources%3AIMX_SW" rel="nofollow" target="_blank"&gt;https://www.nxp.com/support/developer-resources/run-time-software/i.mx-developer-resources/i.mx-6series-i.mx-7series-software-and-development-tool-resources:IMX_SW&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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>Mon, 19 Feb 2018 23:27:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Wakeup-from-USB-on-i-MX6S/m-p/752745#M117170</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-02-19T23:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Wakeup from USB on i.MX6S</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Wakeup-from-USB-on-i-MX6S/m-p/752746#M117171</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;I've tried this, for some reason it doesn't work on my board(s)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1st attempt&lt;/STRONG&gt; (VBUS and ID only):&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: #3366ff;"&gt;echo enabled &amp;gt; /sys/bus/platform/devices/20c9000.usbphy/power/wakeup &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;echo enabled &amp;gt; /sys/bus/platform/devices/2184000.usb/power/wakeup &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;echo enabled &amp;gt; /sys/bus/platform/devices/ci_hdrc.0/power/wakeup&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;echo mem &amp;gt; /sys/power/state&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;*plug in usb-keyboard* --&amp;gt; no reaction&lt;/P&gt;&lt;P&gt;power off, reboot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2nd attempt&lt;/STRONG&gt; (remote and connect/disconnect wakeup only):&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: #3366ff;"&gt;echo enabled &amp;gt; /sys/bus/usb/devices/usb1/power/wakeup &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;echo enabled &amp;gt; /sys/bus/usb/devices/1-1/power/wakeup&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;echo mem &amp;gt; /sys/power/state&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;*plug in usb-keyboard* --&amp;gt; no reaction&lt;/P&gt;&lt;P&gt;power off, reboot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3rd attempt&lt;/STRONG&gt; (both):&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: #3366ff;"&gt;echo enabled &amp;gt; /sys/bus/platform/devices/20c9000.usbphy/power/wakeup&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;echo enabled &amp;gt; /sys/bus/platform/devices/2184000.usb/power/wakeup&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;echo enabled &amp;gt; /sys/bus/platform/devices/ci_hdrc.0/power/wakeup&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;echo enabled &amp;gt; /sys/bus/usb/devices/usb1/power/wakeup&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;echo enabled &amp;gt; /sys/bus/usb/devices/1-1/power/wakeup&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;echo mem &amp;gt; /sys/power/state&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;*plug in usb-keyboard* --&amp;gt; no reaction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 12:13:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Wakeup-from-USB-on-i-MX6S/m-p/752746#M117171</guid>
      <dc:creator>ralf2</dc:creator>
      <dc:date>2018-02-20T12:13:55Z</dc:date>
    </item>
  </channel>
</rss>

