Skip to content

Commit 5338709

Browse files
andredlag-linaro
authored andcommitted
mfd: sec: Add support for S2MPG10 PMIC
Add support for Samsung's S2MPG10 PMIC, which is a Power Management IC for mobile applications with buck converters, various LDOs, power meters, RTC, clock outputs, and additional GPIOs interfaces. Contrary to existing Samsung S2M series PMICs supported, communication is not via I2C, but via the Samsung ACPM firmware. This commit adds the core driver. Signed-off-by: André Draszik <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 680ef57 commit 5338709

File tree

9 files changed

+1139
-0
lines changed

9 files changed

+1139
-0
lines changed

drivers/mfd/Kconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,6 +1316,23 @@ config MFD_SEC_CORE
13161316
select MFD_CORE
13171317
select REGMAP_IRQ
13181318

1319+
config MFD_SEC_ACPM
1320+
tristate "Samsung Electronics S2MPG1x PMICs"
1321+
depends on EXYNOS_ACPM_PROTOCOL
1322+
depends on OF
1323+
select MFD_SEC_CORE
1324+
help
1325+
Support for the Samsung Electronics PMICs with ACPM interface.
1326+
This is a Power Management IC for mobile applications with buck
1327+
converters, various LDOs, power meters, RTC, clock outputs, and
1328+
additional GPIOs interfaces.
1329+
This driver provides common support for accessing the device;
1330+
additional drivers must be enabled in order to use the functionality
1331+
of the device.
1332+
1333+
To compile this driver as a module, choose M here: the module will be
1334+
called sec-acpm.
1335+
13191336
config MFD_SEC_I2C
13201337
tristate "Samsung Electronics S2MPA/S2MPS1X/S2MPU/S5M series PMICs"
13211338
depends on I2C=y

drivers/mfd/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ obj-$(CONFIG_MFD_RK8XX_I2C) += rk8xx-i2c.o
230230
obj-$(CONFIG_MFD_RK8XX_SPI) += rk8xx-spi.o
231231
obj-$(CONFIG_MFD_RN5T618) += rn5t618.o
232232
obj-$(CONFIG_MFD_SEC_CORE) += sec-core.o sec-irq.o
233+
obj-$(CONFIG_MFD_SEC_ACPM) += sec-acpm.o
233234
obj-$(CONFIG_MFD_SEC_I2C) += sec-i2c.o
234235
obj-$(CONFIG_MFD_SYSCON) += syscon.o
235236
obj-$(CONFIG_MFD_LM3533) += lm3533-core.o lm3533-ctrlbank.o

0 commit comments

Comments
 (0)