MFD: DA9052/53 MFD core module v9 Added SPI support
Subsystems (2)
PATCH 3/6 MFD: DA9052/53 MFD core module v9 Added SPI support
The DA9052/53 is a highly integrated PMIC subsystem with supply domain flexibility to support wide range of high performance application.
It provides voltage regulators, GPIO controller, Touch Screen, RTC, Battery control and other functionality.
This patch is functionally tested on Samsung SMDKV6410.
Signed-off-by David Dajun Chen <[email protected]>
Signed-off-by Ashish Jangam <[email protected]>
--- drivers/mfd/Kconfig | 12 ++++ drivers/mfd/Makefile | 1 + drivers/mfd/da9052-spi.c | 121 +++++++++++++++++++++++++++++++++++++ include/linux/mfd/da9052/da9052.h | 1 + 4 files changed, 135 insertions(+), 0 deletions(-) create mode 100644 drivers/mfd/da9052-spi.c
drivers/mfd/Kconfig +12 -0
@@ -332,6 +332,18 @@ config PMIC_DA9052 bool select MFD_CORE +config MFD_DA9052_SPI + bool "Support Dialog Semiconductor DA9052/53 PMIC variants with SPI" + select REGMAP_SPI + select REGMAP_IRQ + select PMIC_DA9052 + depends on SPI_MASTER=y + help + Support for the Dialog Semiconductor DA9052 PMIC + when controlled using SPI. This driver provides common support + for accessing the device, additional drivers must be enabled in + order to use the functionality of the device. + config MFD_DA9052_I2C bool "Support Dialog Semiconductor DA9052/53 PMIC variants with I2C" select REGMAP_I2C
drivers/mfd/Makefile +1 -0
@@ -69,6 +69,7 @@ obj-$(CONFIG_UCB1400_CORE) += ucb1400_core.o obj-$(CONFIG_PMIC_DA903X) += da903x.o obj-$(CONFIG_PMIC_DA9052) += da9052-core.o +obj-$(CONFIG_MFD_DA9052_SPI) += da9052-spi.o obj-$(CONFIG_MFD_DA9052_I2C) += da9052-i2c.o max8925-objs := max8925-core.o max8925-i2c.o
drivers/mfd/da9052-spi.c new file +121 -0
121 lines not on this page · raw message
include/linux/mfd/da9052/da9052.h +1 -0
@@ -94,6 +94,7 @@ struct da9052 {struct mutex auxadc_lock;struct device *dev; +struct spi_device *spi_dev;struct i2c_client *i2c_client;struct regmap *regmap;
Signature · 1 line
1.7.1
Quoted 2 lines · Ashish Jangam
The DA9052/53 is a highly integrated PMIC subsystem with supply domain flexibility to support wide range of high performance application.
Reviwed-by Mark Brown <[email protected]>
Looks good, though again you should've CCed Samuel. One small thing:
include/linux/mfd/da9052/da9052.h struct da9052 { · line 98
Quoted 4 lines
include/linux/mfd/da9052/da9052.h +1
-0struct device *dev; +struct spi_device *spi_dev;struct i2c_client *i2c_client;
You con't actually use this (or the i2c_client) any more so could just drop them.