The issue about PCF85063 drver on linux

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

The issue about PCF85063 drver on linux

7,755件の閲覧回数
arknights
Contributor I

Hi,

I use linux-4.14 official driver: rtc-pcf85063.c and add it to dts.

I can operate pcf85063 register directly through i2c.

But when I use driver, it has error:

[    7.453848] rtc-pcf85063 0-0051: Power loss detected, invalid time
[    7.460208] rtc-pcf85063 0-0051: rtc core: registered rtc-pcf85063 as rtc0

Then I check drive code:

/ if the clock has lost its power it makes no sense to use its time /
if (regs[0] & PCF85063_REG_SC_OS) {
       dev_warn(&client->dev, "Power loss detected, invalid time\n");
       return -EINVAL;
}

So, what should i do?

0 件の賞賛
返信
2 返答(返信)

7,746件の閲覧回数
JozefKozon
NXP TechSupport
NXP TechSupport

Hi Arknights,

please see this link for a similar issue: https://community.nxp.com/t5/i-MX-Processors/RTC-issue-pca8565/m-p/916395

Do you have used a supercapacitor or a battery as a back-up supply?

With Best Regards,

Jozef

0 件の賞賛
返信

7,742件の閲覧回数
arknights
Contributor I

Hi Jozef,

Yes, we use a supercapacitor.
After our device power off, the supercapacitor power supply for rtc, time in rtc continue run.

Add attachment is our circuit diagram.

Thanks

0 件の賞賛
返信