First of all I'm not sure if this is the right subforum, so admins feel free to move it...
I have a PCF8523 connected to a Raspberry Pi 2 B. I load the drivers through dtoverlay=i2c-rtc,pcf8523
The drivers are loaded and communication works with hwclock --debug for example, but after boot hwclock -r gives:
Code: Select all
hwclock: The Hardware Clock registers contain values that are either invalid (e.g. 50th day of month) or beyond the range we can handle (e.g. Year 2095).
Digging into the datasheet of the PCF8523 it reads that it's default switching state is disabled, meaning it will only work with VDD power.
See: http://www.nxp.com/documents/data_sheet/PCF8523.pdf page 15
Is this something that is wrong in the driver? Can I do something the set the registers differently to make it switch on power loss?