Skip to content

Commit 1426dff

Browse files
akemnadesre
authored andcommitted
power: supply: Add support for RN5T618/RC5T619 charger and fuel gauge
Both chips have charger and a fuel gauge. This adds basic support for displaying the state of the battery and the input power, settings are not modified. There are some defaults set via OTP. Charging also starts after plugging USB. Known issues of the fuel gauge: There are drivers in the wild which disable the fuel gauge at shutdown. If a kernel is booted without fuel gauge support, after such a driver has been used, the fuel gauge will stay off and decalibrate. If this driver is used after that, it might display wrong values for charge level. Signed-off-by: Andreas Kemnade <andreas@kemnade.info> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
1 parent 395a725 commit 1426dff

3 files changed

Lines changed: 565 additions & 0 deletions

File tree

‎drivers/power/supply/Kconfig‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,4 +752,12 @@ config CHARGER_WILCO
752752
information can be found in
753753
Documentation/ABI/testing/sysfs-class-power-wilco
754754

755+
config RN5T618_POWER
756+
tristate "RN5T618 charger/fuel gauge support"
757+
depends on MFD_RN5T618
758+
help
759+
Say Y here to have support for RN5T618 PMIC family fuel gauge and charger.
760+
This driver can also be built as a module. If so, the module will be
761+
called rn5t618_power.
762+
755763
endif # POWER_SUPPLY

‎drivers/power/supply/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,4 @@ obj-$(CONFIG_CHARGER_UCS1002) += ucs1002_power.o
9696
obj-$(CONFIG_CHARGER_BD70528) += bd70528-charger.o
9797
obj-$(CONFIG_CHARGER_BD99954) += bd99954-charger.o
9898
obj-$(CONFIG_CHARGER_WILCO) += wilco-charger.o
99+
obj-$(CONFIG_RN5T618_POWER) += rn5t618_power.o

0 commit comments

Comments
 (0)