From: Michiel van Beers <michielvanbeers@gmail.com>
To: Michiel van Beers <michielvanbeers@gmail.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Guenter Roeck <linux@roeck-us.net>,
Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>,
Randy Dunlap <rdunlap@infradead.org>
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org,
Andreas Kemnade <andreas@kemnade.info>,
Pablo Mazzini <pmazzini@gmail.com>
Subject: [PATCH 0/3] regulator: Add Maxim MAX17135 E-paper PMIC driver
Date: Wed, 02 Dec 2026 17:43:37 +0100 [thread overview]
Message-ID: <20261202-max17135-v1-0-beae6b70d575@gmail.com> (raw)
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,
--
Michiel van Beers <michielvanbeers@gmail.com>
WARNING: multiple messages have this Message-ID (diff)
From: Michiel van Beers via B4 Relay <devnull+michielvanbeers.gmail.com@kernel.org>
To: Michiel van Beers <michielvanbeers@gmail.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Guenter Roeck <linux@roeck-us.net>,
Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>,
Randy Dunlap <rdunlap@infradead.org>
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org,
Andreas Kemnade <andreas@kemnade.info>,
Pablo Mazzini <pmazzini@gmail.com>
Subject: [PATCH 0/3] regulator: Add Maxim MAX17135 E-paper PMIC driver
Date: Wed, 02 Dec 2026 17:43:37 +0100 [thread overview]
Message-ID: <20261202-max17135-v1-0-beae6b70d575@gmail.com> (raw)
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,
--
Michiel van Beers <michielvanbeers@gmail.com>
next reply other threads:[~2026-12-02 16:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 16:43 Michiel van Beers [this message]
2026-12-02 16:43 ` [PATCH 0/3] regulator: Add Maxim MAX17135 E-paper PMIC driver Michiel van Beers via B4 Relay
2026-12-02 16:43 ` [PATCH 1/3] regulator: dt-bindings: Add Maxim MAX17135 Michiel van Beers
2026-12-02 16:43 ` Michiel van Beers via B4 Relay
2026-12-02 16:43 ` [PATCH 2/3] regulator: Add Maxim MAX17135 driver Michiel van Beers
2026-12-02 16:43 ` Michiel van Beers via B4 Relay
2026-12-02 16:54 ` sashiko-bot
2026-12-02 16:43 ` [PATCH 3/3] hwmon: Add Maxim MAX17135 temperature sensor driver Michiel van Beers
2026-12-02 16:43 ` Michiel van Beers via B4 Relay
2026-12-02 17:36 ` Andreas Kemnade
2026-12-02 16:54 ` [PATCH 0/3] regulator: Add Maxim MAX17135 E-paper PMIC driver sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261202-max17135-v1-0-beae6b70d575@gmail.com \
--to=michielvanbeers@gmail.com \
--cc=andreas@kemnade.info \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=pmazzini@gmail.com \
--cc=rdunlap@infradead.org \
--cc=robh@kernel.org \
--cc=skhan@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.