Re: [PATCH 3/3] hwmon: Add Maxim MAX17135 temperature sensor driver
From: Andreas Kemnade
Date: Wed Dec 02 2026 - 15:14:14 EST
On Wed, 2 Dec 2026 11:55:31 -0800
Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
> On 12/2/26 08:43, Michiel van Beers via B4 Relay wrote:
> > From: Michiel van Beers <michielvanbeers@xxxxxxxxx>
> >
> > The MAX17135 E-paper display PMIC has a temperature sensor that measures
> > the die and an external diode. Add a driver for it. The driver binds to
> > the auxiliary device that the regulator driver creates.
> >
> > Reading the external channel fails with -ENODATA while the chip reports
> > the diode as open or shorted.
> >
> > Signed-off-by: Michiel van Beers <michielvanbeers@xxxxxxxxx>
> > ---
> ...
> > +
> > +static const struct hwmon_channel_info * const max17135_hwmon_info[] = {
>
> If this driver isn't dropped (there seems to be a request to implement
> it as iio driver), you might want to consider adding
> HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ),
> here if there is interest to support thermal zones for this chip.
>
I think the decision is taken: comparable chips (FP9931, TPS65185, SY7636)
provide hwmon interface. It would be a mess with any consumer to deal with
different interfaces. TPS65185 (which the Pinenote has) is also hwmon
in mainline, but they have their independently developed driver.
MAX17135 is also used in some i.MX epaper evalboards, so the same
EPDC as the Kobo readers.
So just the in-kernel interface has to be added. It moves up on my
todo list.
Regards,
Andreas