Skip to content

Commit 325bec7

Browse files
jpanisbllag-linaro
authored andcommitted
mfd: tps6594: Add driver for TI TPS6594 PMIC
This patch adds support for TPS6594 PMIC MFD core. It provides communication through the I2C and SPI interfaces, and supports protocols with embedded CRC data fields for safety applications. Signed-off-by: Julien Panis <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent ac9a786 commit 325bec7

File tree

6 files changed

+1890
-0
lines changed

6 files changed

+1890
-0
lines changed

drivers/mfd/Kconfig

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1679,6 +1679,38 @@ config MFD_TPS65912_SPI
16791679
If you say yes here you get support for the TPS65912 series of
16801680
PM chips with SPI interface.
16811681

1682+
config MFD_TPS6594
1683+
tristate
1684+
select MFD_CORE
1685+
select REGMAP
1686+
select REGMAP_IRQ
1687+
1688+
config MFD_TPS6594_I2C
1689+
tristate "TI TPS6594 Power Management chip with I2C"
1690+
select MFD_TPS6594
1691+
select REGMAP_I2C
1692+
select CRC8
1693+
depends on I2C
1694+
help
1695+
If you say yes here you get support for the TPS6594 series of
1696+
PM chips with I2C interface.
1697+
1698+
This driver can also be built as a module. If so, the module
1699+
will be called tps6594-i2c.
1700+
1701+
config MFD_TPS6594_SPI
1702+
tristate "TI TPS6594 Power Management chip with SPI"
1703+
select MFD_TPS6594
1704+
select REGMAP_SPI
1705+
select CRC8
1706+
depends on SPI_MASTER
1707+
help
1708+
If you say yes here you get support for the TPS6594 series of
1709+
PM chips with SPI interface.
1710+
1711+
This driver can also be built as a module. If so, the module
1712+
will be called tps6594-spi.
1713+
16821714
config TWL4030_CORE
16831715
bool "TI TWL4030/TWL5030/TWL6030/TPS659x0 Support"
16841716
depends on I2C=y

drivers/mfd/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ obj-$(CONFIG_MFD_TPS65910) += tps65910.o
9696
obj-$(CONFIG_MFD_TPS65912) += tps65912-core.o
9797
obj-$(CONFIG_MFD_TPS65912_I2C) += tps65912-i2c.o
9898
obj-$(CONFIG_MFD_TPS65912_SPI) += tps65912-spi.o
99+
obj-$(CONFIG_MFD_TPS6594) += tps6594-core.o
100+
obj-$(CONFIG_MFD_TPS6594_I2C) += tps6594-i2c.o
101+
obj-$(CONFIG_MFD_TPS6594_SPI) += tps6594-spi.o
99102
obj-$(CONFIG_MENELAUS) += menelaus.o
100103

101104
obj-$(CONFIG_TWL4030_CORE) += twl-core.o twl4030-irq.o twl6030-irq.o

0 commit comments

Comments
 (0)