<?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: Accessing ls1021a-twr SNVS RTC in linux  in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/Accessing-ls1021a-twr-SNVS-RTC-in-linux/m-p/474553#M760</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or, the problem could be stalls due to the fact that there is no 32KHz clock on the BB_RTC pin on this LS1021aTWR dev board.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Feb 2016 21:48:17 GMT</pubDate>
    <dc:creator>jasonhendrix</dc:creator>
    <dc:date>2016-02-22T21:48:17Z</dc:date>
    <item>
      <title>Accessing ls1021a-twr SNVS RTC in linux</title>
      <link>https://community.nxp.com/t5/Layerscape/Accessing-ls1021a-twr-SNVS-RTC-in-linux/m-p/474549#M756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; our custom board will use the on-board battery backed RTC on the LS1020a processor.&amp;nbsp; In the meantime, I'm trying to use that (on-chip) RTC on the LS1021ATWR dev board.&amp;nbsp; Eventually I would like to configure it as RTC0 and link it to hwclock.&amp;nbsp; I can't seem to get my system to link the driver and the device (if the device is even recognized).&lt;/P&gt;&lt;P&gt;Can anyone help me configure Linux to use the on-chip LP RTC as RTC0?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Here is what I've done:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I enabled the snvs_rtc in the config file (using menuconfig)&lt;/LI&gt;&lt;LI&gt;I added data to the device tree files ls1021a.dtsi and ls1021atwr.dts&lt;/LI&gt;&lt;LI&gt;Build, load, run&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To &lt;SPAN style="text-decoration: underline;"&gt; ls1021a.dtsi&lt;/SPAN&gt; I added the following node under "soc":&lt;/P&gt;&lt;P&gt;sec_mon: sec_mon@1e90000 {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compatible = "fsl,sec-v4.0-mon";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #address-cells = &amp;lt;1&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #size_cells = &amp;lt;1&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ranges = &amp;lt;0 0x01e90000 0x10000&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; interrupts = &amp;lt;GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH&amp;gt;, &amp;lt;GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; snvs_rtc: snvc_rtc_lp@34 {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compatible = "fsl, sec-v4.0-mon-rtc-lp";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reg = &amp;lt;0x34 0x58&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To &lt;SPAN style="text-decoration: underline;"&gt;ls1021atwr.dts&lt;/SPAN&gt; I added the following node at the end of the file:&lt;/P&gt;&lt;P&gt;&amp;amp;svns_rtc {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status = "okay";&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Now, when I load and run, I see:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;/proc/device-tree/soc/sec_mon@1e90000/snvs_rtc_lp@34&lt;/LI&gt;&lt;LI&gt;/sys/bus/platform/drivers/snvs_rtc (containing only bind, unbind, uevent)&lt;/LI&gt;&lt;LI&gt;/sys/bus/platfrom/devices/sec_mon.3&lt;/LI&gt;&lt;LI&gt;/sys/devices/soc.2/sec_mon.3&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;But, the driver doesn't seem to be bound to the device.&amp;nbsp; I actually tried:&lt;/P&gt;&lt;P&gt;echo -n "sec_mon.3" &amp;gt; /sys/bus/platform/drivers/snvs_rtc/bind&lt;/P&gt;&lt;P&gt;but the OS returned "No such device"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some things I think might be wrong:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;device tree configuration not correct - should I put it under soc, as I did?&lt;/LI&gt;&lt;LI&gt;In some support posts for this RTC on the imx6 platform, there is some discussion of having to blow a fuse.&amp;nbsp; Is that required on this chip?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Feb 2016 05:07:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Accessing-ls1021a-twr-SNVS-RTC-in-linux/m-p/474549#M756</guid>
      <dc:creator>jasonhendrix</dc:creator>
      <dc:date>2016-02-20T05:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing ls1021a-twr SNVS RTC in linux</title>
      <link>https://community.nxp.com/t5/Layerscape/Accessing-ls1021a-twr-SNVS-RTC-in-linux/m-p/474550#M757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The feature you are trying to use is not officially supported by the SDK. You can try following the instructions given&lt;/P&gt;&lt;P&gt;in Chapter 27 of i.MX Linux Reference Manual.&amp;nbsp; There is, however, no guarantee that it will work as you expect.&lt;/P&gt;&lt;P&gt;If it does not, debug your kernel.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Platon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Platon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Feb 2016 07:40:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Accessing-ls1021a-twr-SNVS-RTC-in-linux/m-p/474550#M757</guid>
      <dc:creator>bpe</dc:creator>
      <dc:date>2016-02-20T07:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing ls1021a-twr SNVS RTC in linux</title>
      <link>https://community.nxp.com/t5/Layerscape/Accessing-ls1021a-twr-SNVS-RTC-in-linux/m-p/474551#M758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've made some progress - I now see "1e90034.snvs_rtc_lp " in /sys/bus/platform/devices.&amp;nbsp; It's still not bound to the snvs_rtc driver, but it's progress.&amp;nbsp; Here's the .dts tree entry:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sec_mon: sec_mon@1e90000 {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compatible = "fsl,sec-v4.0-mon", "simple-bus";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #address-cells = &amp;lt;1&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #size-cells = &amp;lt;1&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ranges = &amp;lt;0 0 0x01e90000 0x10000&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; interrupts = &amp;lt;GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH&amp;gt;, &amp;lt;GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; snvs_rtc: snvs_rtc_lp@34 {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compatible = "fsl,sec-v4.0-mon-rtc-lp";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reg = &amp;lt;0x34 0x58&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 07:45:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Accessing-ls1021a-twr-SNVS-RTC-in-linux/m-p/474551#M758</guid>
      <dc:creator>jasonhendrix</dc:creator>
      <dc:date>2016-02-22T07:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing ls1021a-twr SNVS RTC in linux</title>
      <link>https://community.nxp.com/t5/Layerscape/Accessing-ls1021a-twr-SNVS-RTC-in-linux/m-p/474552#M759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've made more progress, getting the driver bound to the device (it even shows up as RTC0!).&amp;nbsp; The required change from my previous post was to move the "interrupts = ..." line from the sec_mon parent node into the snvs_rtc child node.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the problem is that the system crashes, I assume when the alarm interrupt fires or is supposed to fire.&amp;nbsp; The interrupts I've configured are mapped to the SEC_MON, without a real SEC_MON driver, we may not be able to handle interrupts properly.&amp;nbsp; Does anyone have any suggestions for SVNS_RTC interrupt values for the LS1021A?&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 20:59:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Accessing-ls1021a-twr-SNVS-RTC-in-linux/m-p/474552#M759</guid>
      <dc:creator>jasonhendrix</dc:creator>
      <dc:date>2016-02-22T20:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing ls1021a-twr SNVS RTC in linux</title>
      <link>https://community.nxp.com/t5/Layerscape/Accessing-ls1021a-twr-SNVS-RTC-in-linux/m-p/474553#M760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or, the problem could be stalls due to the fact that there is no 32KHz clock on the BB_RTC pin on this LS1021aTWR dev board.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 21:48:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Accessing-ls1021a-twr-SNVS-RTC-in-linux/m-p/474553#M760</guid>
      <dc:creator>jasonhendrix</dc:creator>
      <dc:date>2016-02-22T21:48:17Z</dc:date>
    </item>
  </channel>
</rss>

