From: Bastian Krause <bst@pengutronix.de>
To: linux-rtc@vger.kernel.org
Cc: devicetree@vger.kernel.org,
Alessandro Zummo <a.zummo@towertech.it>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Rob Herring <robh+dt@kernel.org>,
Arnaud Ebalard <arno@natisbad.org>, Marek Vasut <marex@denx.de>,
kernel@pengutronix.de, Bastian Krause <bst@pengutronix.de>
Subject: [PATCH 0/8] rtc: expand charge support, implement rx8130 charging
Date: Mon, 7 Sep 2020 16:27:19 +0200 [thread overview]
Message-ID: <20200907142727.26472-1-bst@pengutronix.de> (raw)
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@denx.de/
- https://lore.kernel.org/linux-rtc/20190905130336.10651-1-marex@denx.de/
- https://lore.kernel.org/linux-rtc/98fa7181-3ebe-d7c3-cfac-fee841c81e15@pengutronix.de/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
next reply other threads:[~2020-09-07 16:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-07 14:27 Bastian Krause [this message]
2020-09-07 14:27 ` [PATCH 1/8] dt-bindings: rtc: let aux-voltage-chargeable supersede trickle-diode-disable Bastian Krause
2020-09-08 20:22 ` Rob Herring
2020-09-07 14:27 ` [PATCH 2/8] dt-bindings: rtc: ds1307: " Bastian Krause
2020-09-15 16:00 ` Rob Herring
2020-09-07 14:27 ` [PATCH 3/8] dt-bindings: rtc: ds1307: add rx8130 aux-voltage-chargeable support Bastian Krause
2020-09-15 16:00 ` Rob Herring
2020-09-07 14:27 ` [PATCH 4/8] rtc: ds1307: apply DS13XX_TRICKLE_CHARGER_MAGIC only conditionally Bastian Krause
2020-09-07 14:27 ` [PATCH 5/8] rtc: ds1307: introduce requires_trickle_resistor per chip Bastian Krause
2020-09-07 14:27 ` [PATCH 6/8] rtc: ds1307: store previous charge default " Bastian Krause
2020-09-07 14:27 ` [PATCH 7/8] rtc: ds1307: consider aux-voltage-chargeable Bastian Krause
2020-09-07 14:27 ` [PATCH 8/8] rtc: ds1307: enable rx8130's backup battery, make it chargeable optionally Bastian Krause
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200907142727.26472-1-bst@pengutronix.de \
--to=bst@pengutronix.de \
--cc=a.zummo@towertech.it \
--cc=alexandre.belloni@bootlin.com \
--cc=arno@natisbad.org \
--cc=devicetree@vger.kernel.org \
--cc=kernel@pengutronix.de \
--cc=linux-rtc@vger.kernel.org \
--cc=marex@denx.de \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).