Re: [PATCH v2 2/2] regulator: Add TPS65185 driver

From: Josua Mayer
Date: Sat Dec 27 2025 - 11:34:28 EST


Am 27.12.25 um 11:20 schrieb Andreas Kemnade:

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.

Signed-off-by: Andreas Kemnade <andreas@xxxxxxxxxxxx>
---
drivers/regulator/Kconfig | 11 ++
drivers/regulator/Makefile | 1 +
drivers/regulator/tps65185.c | 454 +++++++++++++++++++++++++++++++++++++++++++
3 files changed, 466 insertions(+)

Tested on Kobo Aura (N514).

Tested-by: Josua Mayer <josua.mayer@xxxxxx>