mbox series

[0/2] Add Richtek RT9467 5A Battery Charger support

Message ID cover.1664475743.git.chiaen_wu@richtek.com (mailing list archive)
Headers show
Series Add Richtek RT9467 5A Battery Charger support | expand

Message

ChiaEn Wu Sept. 29, 2022, 10:37 a.m. UTC
From: ChiaEn Wu <chiaen_wu@richtek.com>

This patch set is to add Richtek RT9467 5A Battery Charger support.

RT9467 is a switch-mode single cell Li-Ion/Li-Polymer battery charger
for portable applications.

It integrates a synchronous PWM controller, power MOSFETs,
input current sensing and regulation, high-accuracy voltage regulation,
and charge termination. The charge current is regulated through
integrated sensing resistors.

The RT9467 also features USB On-The-Go (OTG) support. It also integrates
D+/D- pin for USB host/charging port detection.

This charger driver is based on a 'linear_ranger' queued patch which adds
'LINEAR_RANGE_IDX' macro for declaring the linear_range struct simply.
https://lore.kernel.org/all/20220920161218.dkkfvfomrruebahi@mercury.elektranox.org/

Thank you,
ChiaEn Wu

ChiaEn Wu (2):
  dt-bindings: power: supply: Add Richtek RT9467 battery charger
  power: supply: rt9467: Add Richtek RT9467 charger driver

 .../power/supply/richtek,rt9467-charger.yaml       |   83 ++
 drivers/power/supply/Kconfig                       |   19 +
 drivers/power/supply/Makefile                      |    1 +
 drivers/power/supply/rt9467-charger.c              | 1239 ++++++++++++++++++++
 4 files changed, 1342 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/power/supply/richtek,rt9467-charger.yaml
 create mode 100644 drivers/power/supply/rt9467-charger.c