<?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: i.MX6 wakeup difficulties</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-wakeup-difficulties/m-p/466102#M73422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sebastien&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can try to add active level parameter, like &lt;CODE&gt; GPIO_ACTIVE_xx on&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi?h=imx_4.1.15_1.0.0_ga" title="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi?h=imx_4.1.15_1.0.0_ga"&gt;linux-2.6-imx.git - Freescale i.MX Linux Tree&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Mar 2016 10:41:59 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2016-03-31T10:41:59Z</dc:date>
    <item>
      <title>i.MX6 wakeup difficulties</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-wakeup-difficulties/m-p/466101#M73421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a custom board based on a i.MX6Quad. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm able to put into suspend mode the processor and to wakeup it by sending a character on the serial connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I want wake up the processor through a specific GPIO. For that, I added this code on my device tree (This code allows the GPIO1 21 to wake up the processor) : &lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14594140314135093 jive_text_macro" data-renderedposition="238_50_798_208" jivemacro_uid="_14594140314135093"&gt;&lt;P&gt;/* Allows the gpio21 to wakeup&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; * the system in suspend to RAM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; * mode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; */&lt;/P&gt;&lt;P&gt;&amp;nbsp; gpio-keys {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; compatible = "gpio-keys";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; wakeup {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label = "wakeup gpio";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gpios = &amp;lt;&amp;amp;gpio1 21 0&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; linux,code = &amp;lt;29&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gpio-key,wakeup;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&amp;nbsp; };&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, the processor go correctly in suspend mode but &lt;STRONG&gt;immediatly after&lt;/STRONG&gt;, the processor is wake up without a signal change on the gpio. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Questions : &lt;/P&gt;&lt;P&gt;1) How I can know the real reason of the wake up ?&lt;/P&gt;&lt;P&gt;2) I understand that the irq line is shared for the GPIO1 15 to 32. So, if a interrupt appears on the GPIO1 16 for example, my processor will be wake up ? If it's the case, what is the solution to permit only &lt;STRONG&gt;ONE &lt;/STRONG&gt;GPIO to wake up the processor ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sébastien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 09:03:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-wakeup-difficulties/m-p/466101#M73421</guid>
      <dc:creator>sebastienraille</dc:creator>
      <dc:date>2016-03-31T09:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 wakeup difficulties</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-wakeup-difficulties/m-p/466102#M73422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sebastien&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can try to add active level parameter, like &lt;CODE&gt; GPIO_ACTIVE_xx on&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi?h=imx_4.1.15_1.0.0_ga" title="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi?h=imx_4.1.15_1.0.0_ga"&gt;linux-2.6-imx.git - Freescale i.MX Linux Tree&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 10:41:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-wakeup-difficulties/m-p/466102#M73422</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-03-31T10:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 wakeup difficulties</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-wakeup-difficulties/m-p/466103#M73423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with your suggestion but I have again the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sebastien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 12:17:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-wakeup-difficulties/m-p/466103#M73423</guid>
      <dc:creator>sebastienraille</dc:creator>
      <dc:date>2016-03-31T12:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 wakeup difficulties</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-wakeup-difficulties/m-p/466104#M73424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might want to make your label all one word, say "&lt;SPAN&gt;&lt;SPAN class=""&gt;wakeup-gpio" rather than "wakeup&amp;nbsp;gpio", the find the specific IRQ :-&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;find /proc/irq -name &lt;SPAN&gt;&lt;SPAN class=""&gt;wakeup-gpio&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which should result in for example&lt;/P&gt;&lt;P&gt;/proc/irq/176/&lt;SPAN&gt;&lt;SPAN class=""&gt;wakeup-gpio&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above says wakeup-gpio is on interrupt 176, perhaps that interrupt isn't capable of wakeup? Find one that is and then force the interrupt assignment in the device tree definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the very same problem by the way and I am currently trying to figure it out, at the moment I'm thinking the problem is either the interrupt being assigned isn't capable of wakeup from suspend OR the pin/gpio isn't capable OR the IOMUXC initialisation of the pin (e.g&amp;nbsp;( iMX6QDL_PAD_DISP0_DAT15__GPIO5_IO09&amp;nbsp;&amp;nbsp; &amp;nbsp;0x0b0b1 ) )&amp;nbsp; has the wrong settings to trigger the interrupt but I have nothing to prove this. If you have made progress then please update your thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 09:20:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-wakeup-difficulties/m-p/466104#M73424</guid>
      <dc:creator>carlsherratt</dc:creator>
      <dc:date>2016-09-08T09:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 wakeup difficulties</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-wakeup-difficulties/m-p/1268820#M173275</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I had the same problem with CAN. I could wakeup with UART, but CAN didn't work as expected.&lt;/P&gt;&lt;P&gt;I used a new kernel and the problem fixed:&lt;/P&gt;&lt;P&gt;$ git clone &lt;A href="https://source.codeaurora.org/external/imx/linux-imx/" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;$ git checkout -b 4.19 remotes/origin/imx_4.19.35_1.1.0&lt;/P&gt;&lt;P&gt;$ make imx_v7_defconfig&lt;BR /&gt;$ make -j$(nproc) zImage&lt;BR /&gt;$ make imx6q-apalis-ixora-v1.1.dtb&lt;BR /&gt;$ make -j$(nproc) modules&lt;/P&gt;&lt;P&gt;Now I can put Linux into sleep and wake it up by sending a CAN frame to it:&lt;/P&gt;&lt;P&gt;Enable CAN wakeup feature:&lt;/P&gt;&lt;P&gt;$ cd /sys/devices/soc0/soc/2000000.aips-bus/2094000.flexcan/power&lt;/P&gt;&lt;P&gt;$ echo enabled &amp;gt; wakeup&lt;/P&gt;&lt;P&gt;Put Linux into sleep:&lt;/P&gt;&lt;P&gt;$ echo mem &amp;gt; /sys/power/state&lt;/P&gt;&lt;P&gt;Now, by using another board to send a CAN frame, I can wake up Linux&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May be you can try a new kernel to see if the problem goes away&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 10:45:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-wakeup-difficulties/m-p/1268820#M173275</guid>
      <dc:creator>akbar123</dc:creator>
      <dc:date>2021-04-27T10:45:32Z</dc:date>
    </item>
  </channel>
</rss>

