rtc: rv3029: update to support DM and sync with Linux 4.17
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tue, 27 Nov 2018 21:53:58 +0000 (22:53 +0100)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 30 Nov 2018 20:56:45 +0000 (21:56 +0100)
commita73610d2c6dbfbc7383ae9d694b1412f57a3f398
treea853e04b11cc48ff40d5c293d57c5ee18154c8c7
parenta3716b5f3f4985eb3bea5d2bc00faf7e5df6f04f
rtc: rv3029: update to support DM and sync with Linux 4.17

The "Flamingo" carrier-board for the RK3399-Q7 has a RV3029 populated
and the application will use the off-module RV3029 RTC including the
battery backed SRAM.

To support this use case, this commit includes the following changes:
 * updates the rv3029 driver to use DM
 * implements the read8/write8 operations

This syncs the implementation with the Linux code (based on 4.17),
porting the trickle-charger support from there (with improvements to
avoid unnecessary EEPROM updates) and adheres to the Linux DTS
binding.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tested-by: Klaus Goger <klaus.goger@theobroma-systems.com>
drivers/rtc/rv3029.c
scripts/config_whitelist.txt