<?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: RTC issue - PCF2127 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/RTC-issue-PCF2127/m-p/843039#M129244</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please provide the solution for the above query.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sharmila&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Nov 2018 05:20:13 GMT</pubDate>
    <dc:creator>sharmila_devada</dc:creator>
    <dc:date>2018-11-19T05:20:13Z</dc:date>
    <item>
      <title>RTC issue - PCF2127</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RTC-issue-PCF2127/m-p/843038#M129243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using RTC PCF2127 in our custom board.&amp;nbsp; I am always getting the below error when date setting at the time of booting.&lt;/P&gt;&lt;P&gt;"oscillator stop detected, date/time is not reliable"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the data sheet this error will occur when OSF bit is set. How to clear this bit for first time reading the RTC time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This error will not come when we write the date and try to read the same. The steps which I followed&lt;/P&gt;&lt;P&gt;1. Set current date using&amp;nbsp; "date -s" command&lt;/P&gt;&lt;P&gt;2. hwclock -w&lt;/P&gt;&lt;P&gt;3. hwclock&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue observed : hwclock command is not giving me the date which I have set .&amp;nbsp; Any configuration is required for solving the issue ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide the input for the same&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sharmila&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2018 15:03:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RTC-issue-PCF2127/m-p/843038#M129243</guid>
      <dc:creator>sharmila_devada</dc:creator>
      <dc:date>2018-11-15T15:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: RTC issue - PCF2127</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RTC-issue-PCF2127/m-p/843039#M129244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please provide the solution for the above query.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sharmila&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2018 05:20:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RTC-issue-PCF2127/m-p/843039#M129244</guid>
      <dc:creator>sharmila_devada</dc:creator>
      <dc:date>2018-11-19T05:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: RTC issue - PCF2127</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RTC-issue-PCF2127/m-p/843040#M129245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really apologize for the delay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have&amp;nbsp;the connecting of your RTC?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably is an error with the value of the components. The parts need to be exact since any variance could harm the integrity of the signal, giving a bad read of the time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the below application note, there you could find the schematics&amp;nbsp;of how you need to connect&amp;nbsp;the RTC.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note/AN11266.pdf" title="https://www.nxp.com/docs/en/application-note/AN11266.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN11266.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore,&amp;nbsp;Do you know if your RTC hardware is being seen by the kernel? Probably, the PCF2127 has not been set correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this can help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diego.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2019 23:45:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RTC-issue-PCF2127/m-p/843040#M129245</guid>
      <dc:creator>diegoadrian</dc:creator>
      <dc:date>2019-01-29T23:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: RTC issue - PCF2127</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RTC-issue-PCF2127/m-p/843041#M129246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I face the same issue i'm using 4.1.29 kernel with spi communication&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the log as below&amp;nbsp;&lt;/P&gt;&lt;P&gt;rtc-pcf2127-spi spi4.1: low voltage detected, check/replace RTC battery.&lt;BR /&gt;rtc-pcf2127-spi spi4.1: oscillator stop detected, date/time is not reliable&lt;BR /&gt;rtc-pcf2127-spi spi4.1: rtc core: registered rtc-pcf2127-spi as rtc0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hwclock -r&lt;BR /&gt;rtc-pcf2127-spi spi4.1: low voltage detected, check/replace RTC battery.&lt;BR /&gt;rtc-pcf2127-spi spi4.1: oscillator stop detected, date/time is not reliable&lt;BR /&gt;hwclock: RTC_RD_TIME: Invalid argument&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please provide me the input to solve this issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;sandy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2019 05:42:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RTC-issue-PCF2127/m-p/843041#M129246</guid>
      <dc:creator>sandheepbalasub</dc:creator>
      <dc:date>2019-03-20T05:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: RTC issue - PCF2127</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RTC-issue-PCF2127/m-p/843042#M129247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have faced this issue because of low voltage in RTC battery. After mounting the new RTC battery issue got solved.&lt;/P&gt;&lt;P&gt;For checking the date use below commands&lt;/P&gt;&lt;P&gt;date -s "yyyy-mm-dd h:m:s"&lt;/P&gt;&lt;P&gt;hwclock -w&lt;/P&gt;&lt;P&gt;hwclock -r&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sharmila&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2019 04:32:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RTC-issue-PCF2127/m-p/843042#M129247</guid>
      <dc:creator>sharmila_devada</dc:creator>
      <dc:date>2019-03-21T04:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: RTC issue - PCF2127</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RTC-issue-PCF2127/m-p/843043#M129248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply . In my case battery health is good Vbat 3.05V.&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i set the date and&amp;nbsp;try to write to hwclock i get the below message&amp;nbsp;&lt;/P&gt;&lt;P&gt;root@imx6q-dms-ba16:~# hwclock -w&lt;BR /&gt;rtc-pcf2127-spi spi4.1: low voltage detected, check/replace RTC battery.&lt;BR /&gt;rtc-pcf2127-spi spi4.1: oscillator stop detected, date/time is not reliable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@imx6q-dms-ba16:~# hwclock -r&lt;BR /&gt;rtc-pcf2127-spi spi4.1: low voltage detected, check/replace RTC battery.&lt;BR /&gt;rtc-pcf2127-spi spi4.1: oscillator stop detected, date/time is not reliable&lt;BR /&gt;hwclock: RTC_RD_TIME: Invalid argument&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using SPI communication is there any issue in my dts file&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;ecspi5 {&lt;BR /&gt; fsl,spi-num-chipselects = &amp;lt;2&amp;gt;;&lt;BR /&gt; cs-gpios = &amp;lt;&amp;amp;gpio1 17 0&amp;gt;,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;&amp;amp;gpio2 0 0&amp;gt;;&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ecspi5&amp;gt;;&lt;BR /&gt; status = "okay";&lt;/P&gt;&lt;P&gt;m25_eeprom: m25p80@0 {&lt;BR /&gt; compatible = "atmel,at25";&lt;BR /&gt; spi-max-frequency = &amp;lt;20000000&amp;gt;;&lt;BR /&gt; size = &amp;lt;0x8000&amp;gt;;&lt;BR /&gt; pagesize = &amp;lt;64&amp;gt;;&lt;BR /&gt; reg = &amp;lt;0&amp;gt;;&lt;BR /&gt; address-width = &amp;lt;16&amp;gt;;&lt;BR /&gt; };&lt;BR /&gt; rtc:pcf2127@0{&lt;BR /&gt; #address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt; #size-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt; compatible = "nxp,pcf2127";&lt;BR /&gt; spi-max-frequency = &amp;lt;5000000&amp;gt;;&lt;BR /&gt; interrupt-parent = &amp;lt;&amp;amp;gpio2&amp;gt;;&lt;BR /&gt;interrupts = &amp;lt;7 IRQ_TYPE_LEVEL_LOW&amp;gt;;&lt;BR /&gt; reg = &amp;lt;1&amp;gt;; &lt;BR /&gt; };&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do i go wrong in above?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;sandy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2019 07:05:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RTC-issue-PCF2127/m-p/843043#M129248</guid>
      <dc:creator>sandheepbalasub</dc:creator>
      <dc:date>2019-03-21T07:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: RTC issue - PCF2127</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RTC-issue-PCF2127/m-p/843044#M129249</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 "hwclock: RTC_RD_TIME: Invalid argument" is due to driver is returning -EINVAL when low voltage is detected.&lt;/P&gt;&lt;P&gt;You can try with below step:&lt;/P&gt;&lt;P&gt;Read the control register 1 in&amp;nbsp;pcf2127_rtc_set_time () function and set the STOP bit and write back the new value.&lt;/P&gt;&lt;P&gt;static int pcf2127_rtc_set_time(struct device *dev, struct rtc_time *tm)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;//Add the below lines in the beginning of the function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; regmap_read(pcf2127-&amp;gt;regmap,PCF2127_REG_CTRL1,(unsigned int *)(&amp;amp;read));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; read = read | 0x20 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; regmap_write(pcf2127-&amp;gt;regmap,PCF2127_REG_CTRL1,(unsigned int)(read));&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Sharmila&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2019 07:24:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RTC-issue-PCF2127/m-p/843044#M129249</guid>
      <dc:creator>sharmila_devada</dc:creator>
      <dc:date>2019-03-22T07:24:38Z</dc:date>
    </item>
  </channel>
</rss>

