Skip to content

rtc: expand charge support, implement rx8130 charging

Bastian Krause linux-devicetree linux-rtc 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 2 repliesApplied
  2. v18 patches 3 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/8dt-bindings: rtc: let aux-voltage-chargeable supersede trickle-diode-disableDocumentation/devicetree/bindings/rtc/rtc.yaml+10 -01 reply
2/8dt-bindings: rtc: ds1307: let aux-voltage-chargeable supersede trickle-diode-disableDocumentation/devicetree/bindings/rtc/rtc-ds1307.txt+8 -10 replies
3/8dt-bindings: rtc: ds1307: add rx8130 aux-voltage-chargeable supportDocumentation/devicetree/bindings/rtc/rtc-ds1307.txt+1 -10 replies
4/8rtc: ds1307: apply DS13XX_TRICKLE_CHARGER_MAGIC only conditionallydrivers/rtc/rtc-ds1307.c+2 -10 replies
5/8rtc: ds1307: introduce requires_trickle_resistor per chipdrivers/rtc/rtc-ds1307.c+7 -10 replies
6/8rtc: ds1307: store previous charge default per chipdrivers/rtc/rtc-ds1307.c+8 -10 replies
7/8rtc: ds1307: consider aux-voltage-chargeabledrivers/rtc/rtc-ds1307.c+21 -20 replies
8/8rtc: ds1307: enable rx8130's backup battery, make it chargeable optionallydrivers/rtc/rtc-ds1307.c+15 -00 replies

Reviews trailers per patch

3 of 8 patches have a Reviewed-by or Acked-by.

PatchRob Herring
1/8R-b
2/8R-b
3/8R-b
4/8
5/8
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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

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.

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(-)
Signature · 1 line
2.28.0