<?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: Low power RTC alarm on IMX6ul in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Low-power-RTC-alarm-on-IMX6ul/m-p/649607#M99383</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply Guy.&lt;/P&gt;&lt;P&gt;1) Turning off wifi module doesn't work. The RTC wake up fails in this case also. So&amp;nbsp;&lt;SPAN&gt;RTC&lt;/SPAN&gt; wake up works only if I don't turn&amp;nbsp;ON wifi at all.&lt;/P&gt;&lt;P&gt;2) The chip can be powered on using ON/OFF pin when RTC power-on doesn't work.&lt;/P&gt;&lt;P&gt;Thus it definitely looks like RTC related and somehow connected SPI issue. RTC works perfectly fine if wifi is not turned on and that's why it is pretty strange.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Mar 2018 05:30:48 GMT</pubDate>
    <dc:creator>pratyushtomar</dc:creator>
    <dc:date>2018-03-20T05:30:48Z</dc:date>
    <item>
      <title>Low power RTC alarm on IMX6ul</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Low-power-RTC-alarm-on-IMX6ul/m-p/649597#M99373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to power up the IMX6ul using a low power RTC alarm?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the Reference Manual, the RTC alarm is only mentioned on the High Power RTC (SNVS_HP section).&amp;nbsp; This section states that "this alarm cannot wake up the entire system if it is powered off".&lt;/P&gt;&lt;P&gt;However, the svns resisters section includes a SNVS_LP Time Alarm register, and it look like the Linux device driver do set it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I program the IMX6UL to start from a power down (only SNVS_LP power domain powered) on a predefined time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 16:38:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Low-power-RTC-alarm-on-IMX6ul/m-p/649597#M99373</guid>
      <dc:creator>sguy</dc:creator>
      <dc:date>2016-12-29T16:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Low power RTC alarm on IMX6ul</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Low-power-RTC-alarm-on-IMX6ul/m-p/649598#M99374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;Can I program the IMX6UL to start from a power down (only SNVS_LP power domain powered) on a predefined time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seems yes, as signal PMIC_ON_REQ (which turns on/off pmic)&amp;nbsp; is powered by SNVS power domain&lt;/P&gt;&lt;P&gt;as described in Figure 46-2&amp;nbsp; SNVS Power Domains,&amp;nbsp;Figure 49-1 Chip reset scheme under PMU control,&lt;/P&gt;&lt;P&gt;Figure 49-3 Chip on/off state flow diagram&amp;nbsp; i.MX6UL Reference Manual (rev.1&amp;nbsp; 4/2016)&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fcache.freescale.com%2Ffiles%2F32bit%2Fdoc%2Fref_manual%2FIMX6ULRM.pdf" rel="nofollow" target="_blank"&gt;http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6ULRM.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;From sect.7.3.3.2 Time counter alarm Security Reference Manual for the i.MX 6UltraLite Applications Processor&lt;/P&gt;&lt;P&gt;(could be provided through creating service request):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SNVS_LP has its own 32-bit LP Time Alarm register. As illustrated in Figure 7-7, this&lt;BR /&gt;register generates an SRTC time alarm once the secure real time clock's 32 most&lt;BR /&gt;significant bits match with the LP Time Alarm register. The time alarm can generate an&lt;BR /&gt;interrupt to alert the host processor and can wake the host processor from one of its lowpower&lt;BR /&gt;modes. This alarm can also wake up the entire system in the power-down mode by&lt;BR /&gt;asserting the wake-up external output signal.&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>Fri, 30 Dec 2016 03:24:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Low-power-RTC-alarm-on-IMX6ul/m-p/649598#M99374</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-12-30T03:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Low power RTC alarm on IMX6ul</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Low-power-RTC-alarm-on-IMX6ul/m-p/649599#M99375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My next question is how do I get this to work from Linux.&lt;/P&gt;&lt;P&gt;I tried the command&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;# echo +120 &amp;gt; /sys/class/rtc/rtc0/wakealarm &amp;amp;&amp;amp; shutdown -h now&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;which, to my understanding, should shutdown the system, then after around 2 minutes, bring it up again.&lt;/P&gt;&lt;P&gt;On my system, it failed to power on the device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Linux driver on "drivers/rtc/rtc-snvs.c", appears to write the LP time alarm registered you mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Jan 2017 08:41:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Low-power-RTC-alarm-on-IMX6ul/m-p/649599#M99375</guid>
      <dc:creator>sguy</dc:creator>
      <dc:date>2017-01-01T08:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Low power RTC alarm on IMX6ul</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Low-power-RTC-alarm-on-IMX6ul/m-p/649600#M99376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;some examples can be found in imx-test package (../mxc_rtc)&lt;BR /&gt;&lt;A href="https://community.nxp.com/www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-test-5.7.tar.gz" target="test_blank"&gt;www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-test-5.7.tar.gz&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 03:51:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Low-power-RTC-alarm-on-IMX6ul/m-p/649600#M99376</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-01-03T03:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Low power RTC alarm on IMX6ul</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Low-power-RTC-alarm-on-IMX6ul/m-p/649601#M99377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Those examples don't include the use case I'm looking for.&lt;/P&gt;&lt;P&gt;They do include waking up from sleep modes, but don't include waking from power off state (in which only the SNVS_LP power domain is powered).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 09:06:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Low-power-RTC-alarm-on-IMX6ul/m-p/649601#M99377</guid>
      <dc:creator>sguy</dc:creator>
      <dc:date>2017-01-03T09:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Low power RTC alarm on IMX6ul</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Low-power-RTC-alarm-on-IMX6ul/m-p/649602#M99378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one can use these examples as starting point for developing own application.&lt;/P&gt;&lt;P&gt;Also NXP has service for helping customers developing new drivers,&amp;nbsp; NXP Professional Services:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fsupport%2Fnxp-professional-services%3APROFESSIONAL-SERVICE" rel="nofollow" target="_blank"&gt;http://www.nxp.com/support/nxp-professional-services:PROFESSIONAL-SERVICE&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 08:47:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Low-power-RTC-alarm-on-IMX6ul/m-p/649602#M99378</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-01-04T08:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Low power RTC alarm on IMX6ul</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Low-power-RTC-alarm-on-IMX6ul/m-p/649603#M99379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guy,&lt;/P&gt;&lt;P&gt;Did you find any way to wake up from shutdown by setting RTC alarm.&amp;nbsp; Earlier I was using&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;"Linux imx6ulevk 4.1.15-1.1.1+gd5d7c02" and after changing&amp;nbsp;&lt;/SPAN&gt;mask value from 0x61 to 0x6b for&amp;nbsp;snvs_poweroff: snvs-poweroff&amp;nbsp; in imx6ul.dtsi the wake up from shutdown was working after setting RTC alarm. But after upgrading kernel to&amp;nbsp;"Linux imx6ulevk 4.1.15-1.2.0+g77f6154" this mask value is not working. Can you help me out if you have any solution for this?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 05:47:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Low-power-RTC-alarm-on-IMX6ul/m-p/649603#M99379</guid>
      <dc:creator>pratyushtomar</dc:creator>
      <dc:date>2018-02-23T05:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Low power RTC alarm on IMX6ul</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Low-power-RTC-alarm-on-IMX6ul/m-p/649604#M99380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The solution was the following patches to the Linux kernel:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.spinics.net/lists/arm-kernel/msg558753.html" title="https://www.spinics.net/lists/arm-kernel/msg558753.html"&gt;[PATCH] rtc: snvs: add a missing write sync — ARM, OMAP, Xscale Linux Kernel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.spinics.net/lists/arm-kernel/msg561152.html" title="https://www.spinics.net/lists/arm-kernel/msg561152.html"&gt;[PATCH 0/2] imx: Fix power-up on RTC alarm — ARM, OMAP, Xscale Linux Kernel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Those patches were accepted to the upstream kernel. I'm not sure if/when NXP picked them to their kernel fork.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also find those patches on my github repo:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/mobiwize/linux-2.6-imx/commits/imx-rel_imx_4.1.15_2.0.0_ga-var02" title="https://github.com/mobiwize/linux-2.6-imx/commits/imx-rel_imx_4.1.15_2.0.0_ga-var02"&gt;Commits · mobiwize/linux-2.6-imx · GitHub&lt;/A&gt; (last three patches on the linked branch)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Feb 2018 08:19:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Low-power-RTC-alarm-on-IMX6ul/m-p/649604#M99380</guid>
      <dc:creator>sguy</dc:creator>
      <dc:date>2018-02-25T08:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Low power RTC alarm on IMX6ul</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Low-power-RTC-alarm-on-IMX6ul/m-p/649605#M99381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Hi Guy I applied the patches and rtc wakeup is working fine but in some cases it fails. I am using ATWILC3000 wifi module on my board. If I urn on wifi after booting then rtc wakeup from shutdown doesn't work even if I turn off wifi after shutdown. While if I don't turn on wifi anytime after booting then rtc wakeup from shutdown work perfectly fine every time. The wifi is connected to board with SPI. What can be the reason for such behaviour?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 12:21:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Low-power-RTC-alarm-on-IMX6ul/m-p/649605#M99381</guid>
      <dc:creator>pratyushtomar</dc:creator>
      <dc:date>2018-03-19T12:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Low power RTC alarm on IMX6ul</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Low-power-RTC-alarm-on-IMX6ul/m-p/649606#M99382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have any experience with this WIFI module, so I can only guess.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Two thing that I would try:&lt;/P&gt;&lt;OL style="margin-top: 0cm;"&gt;&lt;LI style="margin-left: 0cm;"&gt;Turn off the WIFI module before the shutdown. Maybe the SPI communication during the shutdown is responsible for the behavior.&lt;/LI&gt;&lt;LI style="margin-left: 0cm;"&gt;When the RTC power-on doesn't work, try to power on the chip using the ONOFF pin. This will help you to determine if the issue is related only to the RTC boot, or is a part of a general boot issue.&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 14:09:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Low-power-RTC-alarm-on-IMX6ul/m-p/649606#M99382</guid>
      <dc:creator>sguy</dc:creator>
      <dc:date>2018-03-19T14:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Low power RTC alarm on IMX6ul</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Low-power-RTC-alarm-on-IMX6ul/m-p/649607#M99383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply Guy.&lt;/P&gt;&lt;P&gt;1) Turning off wifi module doesn't work. The RTC wake up fails in this case also. So&amp;nbsp;&lt;SPAN&gt;RTC&lt;/SPAN&gt; wake up works only if I don't turn&amp;nbsp;ON wifi at all.&lt;/P&gt;&lt;P&gt;2) The chip can be powered on using ON/OFF pin when RTC power-on doesn't work.&lt;/P&gt;&lt;P&gt;Thus it definitely looks like RTC related and somehow connected SPI issue. RTC works perfectly fine if wifi is not turned on and that's why it is pretty strange.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 05:30:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Low-power-RTC-alarm-on-IMX6ul/m-p/649607#M99383</guid>
      <dc:creator>pratyushtomar</dc:creator>
      <dc:date>2018-03-20T05:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Low power RTC alarm on IMX6ul</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Low-power-RTC-alarm-on-IMX6ul/m-p/649608#M99384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I needed the modification (0x61 to 0x6b) suggested by @&lt;SPAN class=""&gt;Pratyush Tomar&lt;/SPAN&gt; &lt;SPAN class=""&gt;for this to work.&amp;nbsp; Patches described by Guy were already integrated to kernel 4.9-1.0.x&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 19:12:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Low-power-RTC-alarm-on-IMX6ul/m-p/649608#M99384</guid>
      <dc:creator>nickbedbury</dc:creator>
      <dc:date>2018-03-29T19:12:49Z</dc:date>
    </item>
  </channel>
</rss>

