rtc: ds1307: enable rx8130's backup battery, make it chargeable optionally
authorBastian Krause <bst@pengutronix.de>
Thu, 17 Sep 2020 18:32:46 +0000 (20:32 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 24 Sep 2020 07:56:04 +0000 (09:56 +0200)
commit0026f1604c9ba1ae8108d4977da0366c283552bc
tree1d408e8a6b338d0b955626ad1222359851b34edc
parent0874734e09af5cc05439dbe2c8ff704f14d679f5
rtc: ds1307: enable rx8130's backup battery, make it chargeable optionally

The ds1307 charger infrastructure now allows to add a rx8130 charger
setup that..

- does not depend on trickle-resistor-ohms
- does not use DS13XX_TRICKLE_CHARGER_MAGIC trickle-charge select (TCS)
  bits
- keeps previous no-charge behavior for device trees without
  aux-voltage-chargeable

Make that happen.

Signed-off-by: Bastian Krause <bst@pengutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20200917183246.19446-9-bst@pengutronix.de
drivers/rtc/rtc-ds1307.c