[PATCH 0/8] rtc: expand charge support, implement rx8130 charging

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In order to preserve previous RTC charging behavior while allowing to
add new charging configurations this series adds the dt property
aux-voltage-chargeable as a uint enum. It supersedes the
trickle-diode-disable flag.

Then the ds1307 driver's charging infrastructure is generalized:

- support charging on 'aux-voltage-chargeable = <1>'
- keep the previous charge default per chip
- make trickle-resistor-ohms optional for charging
- apply DS13XX_TRICKLE_CHARGER_MAGIC only conditionally

This preparatory work allows to enable Epson's RX8130 backup
battery and make it chargeable when 'aux-voltage-chargeable = <1>' is
given.

I decided to create a new series for this as the patches of previous
efforts changed drastically:

- https://lore.kernel.org/linux-rtc/20190628002151.4925-1-marex@xxxxxxx/
- https://lore.kernel.org/linux-rtc/20190905130336.10651-1-marex@xxxxxxx/
- https://lore.kernel.org/linux-rtc/98fa7181-3ebe-d7c3-cfac-fee841c81e15@xxxxxxxxxxxxxx/T/

Regards,
Bastian

Bastian Krause (8):
  dt-bindings: rtc: let aux-voltage-chargeable supersede
    trickle-diode-disable
  dt-bindings: rtc: ds1307: let aux-voltage-chargeable supersede
    trickle-diode-disable
  dt-bindings: rtc: ds1307: add rx8130 aux-voltage-chargeable support
  rtc: ds1307: apply DS13XX_TRICKLE_CHARGER_MAGIC only conditionally
  rtc: ds1307: introduce requires_trickle_resistor per chip
  rtc: ds1307: store previous charge default per chip
  rtc: ds1307: consider aux-voltage-chargeable
  rtc: ds1307: enable rx8130's backup battery, make it chargeable
    optionally

 .../devicetree/bindings/rtc/rtc-ds1307.txt    |  9 ++-
 .../devicetree/bindings/rtc/rtc.yaml          | 10 ++++
 drivers/rtc/rtc-ds1307.c                      | 58 +++++++++++++++++--
 3 files changed, 71 insertions(+), 6 deletions(-)

-- 
2.28.0




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux