[PATCH v2 0/4] iio: adc: Add support for MAX8907 ADC cell

From: Svyatoslav Ryhel

Date: Sun Nov 15 2026 - 04:11:38 EST


The MAX8907 PMIC has a dedicated ADC cell, which provides 8 ADC channels
with information about different parts of the power system, including the
battery, charger/plug, jack and thermal readings.

This patchset has 2 dependencies:

- patch 1 of the series requires this patch
("regulator: dt-bindings: maxim,max8907: Convert to DT schema")
https://lore.kernel.org/lkml/20261027114634.79706-2-clamor95@xxxxxxxxx/

- patch 4 of the series requires this patch
("leds: Add driver for MAX8907 LED cell")
https://lore.kernel.org/lkml/20261027115006.86032-1-clamor95@xxxxxxxxx/
Or to be sspecific, part that adds max8907-leds to max8907_cells

---
Changes in v2:
- remove unused register fields
- add prefixes to used register bits and macros
- default reference values indexed off the enum
- swap data array to __be16
- set bulk read size with sizeof
- return directly last regmap_update_bits in the max8907_adc_init()
- added comment for iio_device_set_parent()
- MAX8907_MASK_RST_CFG_INT_REF_EN > MAX8907_MASK_INT_REF_EN
- dropped kernel.h
---

Svyatoslav Ryhel (4):
regulator: dt-bindings: maxim,max8907: Document io-channel-cells
property
mfd: max8907: Add ADC client support
iio: adc: Add support for MAX8907 ADC cell
mfd: max8907: Add ADC cell

.../bindings/regulator/maxim,max8907.yaml | 3 +
drivers/iio/adc/Kconfig | 10 ++
drivers/iio/adc/Makefile | 1 +
drivers/iio/adc/max8907-adc.c | 169 ++++++++++++++++++
drivers/mfd/max8907.c | 75 ++++++++
include/linux/mfd/max8907.h | 53 ++++++
6 files changed, 311 insertions(+)
create mode 100644 drivers/iio/adc/max8907-adc.c

--
2.53.0