Skip to content

Commit b0fc1e7

Browse files
akemnadebroonie
authored andcommitted
regulator: Add TPS65185 driver
Add a driver for the TPS65185 regulator. Implement handling of the various gpio pins. Because the PWRUP (=enable) pin functionality can be achieved by just using two bits instead, just ensure that it is set to a stable value. Implement the pair of symmetric LDOs as a single regulator because they share a single voltage set register. As the VCOM regulator sits behind that machinery, just define that one as a supply. For simplicity, just add the temperature sensor (depending on external NTC) directly. There is a mechanism to measure some kick-back voltage during a defined EPD operation, to calibrate the VCOM voltage setting and store that non-volatile in the chip to be the power up default setup. That is not implemented yet in the driver, but that also means that there is a non-factory default value in these registers after power-up. Tested-by: Josua Mayer <josua.mayer@jm0.eu> Signed-off-by: Andreas Kemnade <andreas@kemnade.info> Link: https://patch.msgid.link/20260102-tps65185-submit-v3-2-23bda35772f2@kemnade.info Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent da1456e commit b0fc1e7

3 files changed

Lines changed: 466 additions & 0 deletions

File tree

drivers/regulator/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1690,6 +1690,17 @@ config REGULATOR_TPS65132
16901690
This driver supports TPS65132 single inductor - dual output
16911691
power supply specifically designed for display panels.
16921692

1693+
config REGULATOR_TPS65185
1694+
tristate "TI TPS65185 EPD regulator"
1695+
depends on I2C
1696+
select REGMAP_I2C
1697+
help
1698+
This driver supports the TPS65185 voltage regulator chip
1699+
which is used to provide power to Electronic Paper Displays
1700+
so it is found in E-Book readers.
1701+
If HWWON is enabled, it also provides temperature measurement.
1702+
1703+
16931704
config REGULATOR_TPS65217
16941705
tristate "TI TPS65217 Power regulators"
16951706
depends on MFD_TPS65217

drivers/regulator/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ obj-$(CONFIG_REGULATOR_TPS65023) += tps65023-regulator.o
192192
obj-$(CONFIG_REGULATOR_TPS6507X) += tps6507x-regulator.o
193193
obj-$(CONFIG_REGULATOR_TPS65086) += tps65086-regulator.o
194194
obj-$(CONFIG_REGULATOR_TPS65090) += tps65090-regulator.o
195+
obj-$(CONFIG_REGULATOR_TPS65185) += tps65185.o
195196
obj-$(CONFIG_REGULATOR_TPS65217) += tps65217-regulator.o
196197
obj-$(CONFIG_REGULATOR_TPS65218) += tps65218-regulator.o
197198
obj-$(CONFIG_REGULATOR_TPS65219) += tps65219-regulator.o

0 commit comments

Comments
 (0)