[PATCH 0/4] Add support for the LTM8054 voltage regulator

Romain Gantois posted 4 patches 2 weeks, 2 days ago
There is a newer version of this series
.../bindings/regulator/lltc,ltm8054.yaml           |  77 +++++++
MAINTAINERS                                        |   6 +
drivers/iio/inkern.c                               |  99 +++++++++
drivers/regulator/Kconfig                          |   9 +
drivers/regulator/Makefile                         |   1 +
drivers/regulator/ltm8054-regulator.c              | 229 +++++++++++++++++++++
include/linux/iio/consumer.h                       |  17 ++
7 files changed, 438 insertions(+)
[PATCH 0/4] Add support for the LTM8054 voltage regulator
Posted by Romain Gantois 2 weeks, 2 days ago
Hello everyone,

This series adds initial support of the Linear Technology LTM8054 voltage
regulator. The driver supports a fixed voltage and a tunable output current
limit using a DAC-controlled pin.

I'd say that the only unusual part of this series is the usage of the IIO
consumer API in a regulator driver. I think this makes sense here, since
the regulator driver has to access a DAC to read/set the output current
limit.

Since the regulator driver writes microvolts and the IIO consumer API takes
millivolts, the reads and writes to the CTL DAC have to be scaled by a
factor of 1000. Scaled reads are already supported in IIO, but scaled
writes are not, which is why I've implemented them in patch 2/4.

Please let me know what you think.

Thanks,

Romain

Signed-off-by: Romain Gantois <romain.gantois@bootlin.com>
---
Romain Gantois (4):
      regulator: dt-bindings: Add Linear Technology LTM8054 regulator
      iio: add processed write API
      regulator: Support the LTM8054 voltage regulator
      regulator: ltm8054: Support output current limit control

 .../bindings/regulator/lltc,ltm8054.yaml           |  77 +++++++
 MAINTAINERS                                        |   6 +
 drivers/iio/inkern.c                               |  99 +++++++++
 drivers/regulator/Kconfig                          |   9 +
 drivers/regulator/Makefile                         |   1 +
 drivers/regulator/ltm8054-regulator.c              | 229 +++++++++++++++++++++
 include/linux/iio/consumer.h                       |  17 ++
 7 files changed, 438 insertions(+)
---
base-commit: f87c2b34768828c4ff535ba7d50dd938838caab9
change-id: 20250728-ltm8054-driver-11cfa4741065

Best regards,
-- 
Romain Gantois <romain.gantois@bootlin.com>