Skip to content

Commit a9fc697

Browse files
committed
mfd: max77840: Add support for MAX77840 PMIC core
Implement basic support for the MAX77840 PMIC core, including initialization, power management, and core functions necessary for submodules. Signed-off-by: joan-na-good <joan.na@analog.com>
1 parent 1cb9da5 commit a9fc697

File tree

5 files changed

+857
-0
lines changed

5 files changed

+857
-0
lines changed

Kconfig.adi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ config KERNEL_ALL_ADI_DRIVERS
9696
imply REGULATOR_MAX77857
9797
imply REGULATOR_MAX77541
9898
imply MFD_MAX77541
99+
imply REGULATOR_MAX77840
100+
imply CHARGER_MAX77840
101+
imply MFD_MAX77840
99102
imply REGULATOR_ADP5055
100103

101104
source "drivers/clk/Kconfig.adi"

drivers/mfd/Kconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,19 @@ config MFD_MAX77714
894894
drivers must be enabled in order to use each functionality of the
895895
device.
896896

897+
config MFD_MAX77840
898+
tristate "Maxim Integrated MAX77840 Charger Support"
899+
depends on I2C=y
900+
select MFD_CORE
901+
select REGMAP_I2C
902+
select REGMAP_IRQ
903+
help
904+
Say yes here to add support for Maxim Integrated MAX77840.
905+
This is a 3A Switch Mode Charger with Fuel Gauge.
906+
This driver provides common support for accessing the device,
907+
additional drivers must be enabled in order to use the functionality
908+
of the device.
909+
897910
config MFD_MAX77843
898911
bool "Maxim Semiconductor MAX77843 PMIC Support"
899912
depends on I2C=y

drivers/mfd/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ obj-$(CONFIG_MFD_MAX77650) += max77650.o
163163
obj-$(CONFIG_MFD_MAX77686) += max77686.o
164164
obj-$(CONFIG_MFD_MAX77693) += max77693.o
165165
obj-$(CONFIG_MFD_MAX77714) += max77714.o
166+
obj-$(CONFIG_MFD_MAX77840) += max77840.o
166167
obj-$(CONFIG_MFD_MAX77843) += max77843.o
167168
obj-$(CONFIG_MFD_MAX8907) += max8907.o
168169
max8925-objs := max8925-core.o max8925-i2c.o

0 commit comments

Comments
 (0)