Skip to content

Commit 00b7c4d

Browse files
committed
power: supply: Add support for MAX77840 charger, charger-detect and fuel gauge
This patch adds driver support for the MAX77840 charger, charger-detect, and fuel gauge functionalities, enabling proper battery management and monitoring on supported platforms. Signed-off-by: joan-na-good <joan.na@analog.com>
1 parent a9fc697 commit 00b7c4d

File tree

8 files changed

+2416
-0
lines changed

8 files changed

+2416
-0
lines changed

drivers/power/supply/Kconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,19 @@ config CHARGER_MAX77693
552552
help
553553
Say Y to enable support for the Maxim MAX77693 battery charger.
554554

555+
config CHARGER_MAX77840
556+
tristate "Maxim Integrated MAX77840 Charger with Fuel Gauge"
557+
depends on MFD_MAX77840
558+
help
559+
Say Y here to enable support for the Maxim Integrated MAX77840 charger
560+
with integrated fuel gauge functionality. This driver provides support
561+
for battery charging, battery capacity monitoring, and handles various
562+
charger-related interrupts such as charging state changes or faults.
563+
564+
The MAX77840 communicates over the I2C bus and is typically part of a
565+
PMIC used in portable devices. This driver interfaces with the Linux
566+
power supply subsystem.
567+
555568
config CHARGER_MAX77976
556569
tristate "Maxim MAX77976 battery charger driver"
557570
depends on I2C

drivers/power/supply/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ obj-$(CONFIG_CHARGER_MAX14577) += max14577_charger.o
7777
obj-$(CONFIG_CHARGER_DETECTOR_MAX14656) += max14656_charger_detector.o
7878
obj-$(CONFIG_CHARGER_MAX77650) += max77650-charger.o
7979
obj-$(CONFIG_CHARGER_MAX77693) += max77693_charger.o
80+
obj-$(CONFIG_CHARGER_MAX77840) += max77840-charger.o max77840-charger-detect.o max77840-battery.o
8081
obj-$(CONFIG_CHARGER_MAX77976) += max77976_charger.o
8182
obj-$(CONFIG_CHARGER_MAX8997) += max8997_charger.o
8283
obj-$(CONFIG_CHARGER_MAX8998) += max8998_charger.o

0 commit comments

Comments
 (0)