Skip to content

regulator: Add Maxim MAX17135 E-paper PMIC driver

Michiel van Beers b4-sent linux-devicetree linux-doc linux-hwmon lkml sashiko-reviews 1 version In review

Get series with b4
b4 am [email protected] change-id 20261202-max17135-0e9cb4752f8f

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3regulator: dt-bindings: Add Maxim MAX17135Documentation/devicetree/bindings/regulator/maxim,max17135.yaml+155 -00 replies
2/3regulator: Add Maxim MAX17135 driverMAINTAINERS drivers/regulator/Kconfig drivers/regulator/Makefile +2 more+684 -01 reply
3/3hwmon: Add Maxim MAX17135 temperature sensor driverDocumentation/hwmon/index.rst Documentation/hwmon/max17135.rst MAINTAINERS +3 more+187 -04 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchGuenter Roeck
1/3
2/3
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] regulator: Add Maxim MAX17135 E-paper PMIC driver

This series adds support for the Maxim MAX17135, a power management IC for E-paper displays. It provides the source and gate driver rails, a VCOM amplifier and a temperature sensor. My use case is the Onyx Boox Leaf e-reader (SDM636). The board devicetree is not upstream yet.

The layout follows the TPS65185, FP9931 and SY7636A drivers. Patch 1 adds the binding, patch 2 the regulator driver and patch 3 the hwmon driver, which needs the header that patch 2 adds.

The chip keeps VCOM and the sequencing delays in a non-volatile memory that survives only a few writes. The driver never writes it; both are only set through the volatile registers.

Testing:
- Onyx Boox Leaf, 7.2.y kernel (sdm660-mainline) with this series and two local patches: devm_kzalloc() instead of devm_kzalloc_obj(), which 7.2 lacks, and a board specific supply and preset check. 14 display updates, one of them after a suspend to idle and resume, all drew correctly. The die temperature reads 22.5 to 25.5 degrees C.
- dt_binding_check, arm64 build with W=1 and sparse, x86_64 build with W=1 and CONFIG_OF disabled, htmldocs: no warnings.

Not tested, as this board does not use them: switching with the EN and CEN GPIOs, and setting VCOM and the delays from the devicetree. The power good timeout and fault paths did not trigger.

AI disclosure: I prepared this series with Claude Code (Anthropic, Claude Fable 5.2). It drafted the binding, the drivers and the commit messages from the datasheet and my requirements. The builds and tests above were run under my supervision; I checked the display in the hardware tests, reviewed every line, and take responsibility for the patches.

---
Michiel van Beers (3):
regulator: dt-bindings: Add Maxim MAX17135
regulator: Add Maxim MAX17135 driver
hwmon: Add Maxim MAX17135 temperature sensor driver

 .../bindings/regulator/maxim,max17135.yaml         | 155 +++++
 Documentation/hwmon/index.rst                      |   1 +
 Documentation/hwmon/max17135.rst                   |  37 ++
 MAINTAINERS                                        |  10 +
 drivers/hwmon/Kconfig                              |  11 +
 drivers/hwmon/Makefile                             |   1 +
 drivers/hwmon/max17135-hwmon.c                     | 135 +++++
 drivers/regulator/Kconfig                          |  14 +
 drivers/regulator/Makefile                         |   1 +
 drivers/regulator/max17135.c                       | 643 +++++++++++++++++++++
 include/linux/regulator/max17135.h                 |  18 +
 11 files changed, 1026 insertions(+)

---
base-commit: b042f5dd8365861242946476b0e298bb95a32927
change-id: 20261202-max17135-0e9cb4752f8f

Best regards,

Signature · 1 line
Michiel van Beers <[email protected]>