[PATCH 0/3] iio: adc: stm32: add mdf support for stm32mp2

From: Olivier Moysan

Date: Thu Oct 01 2026 - 11:12:31 EST


This series adds support for the STM32 Multi-function Digital Filter (MDF)
found on STM32MP2 SoCs. MDF filters bitstreams from external sigma-delta
modulators and PDM microphones into samples for IIO and ASoC consumers.

The first patch documents the MDF core, serial interfaces, filters and
their connections in the devicetree binding.

The second patch adds the core, serial interface and filter drivers.
It supports IIO voltage channels for external sigma-delta modulators,
with direct reads or DMA buffering, and PDM microphone capture through
a cyclic DMA buffer. It also provides CIC filter configuration,
synchronization and filter interleaving.

The lastest patches add an ASoC DAI for PDM microphone capture.

Olivier Moysan (3):
dt-bindings: iio: adc: add bindings for stm32 mdf filter
iio: adc: add stm32 mdf support
ASoC: stm32: add mdf dai support

.../bindings/iio/adc/st,stm32-mdf-adc.yaml | 383 +++
drivers/iio/adc/Kconfig | 27 +
drivers/iio/adc/Makefile | 3 +
drivers/iio/adc/stm32-mdf-adc.c | 2078 +++++++++++++++++
drivers/iio/adc/stm32-mdf-core.c | 857 +++++++
drivers/iio/adc/stm32-mdf-serial.c | 309 +++
drivers/iio/adc/stm32-mdf.h | 312 +++
include/linux/iio/adc/stm32-mdf-adc.h | 19 +
sound/soc/stm/Kconfig | 15 +
sound/soc/stm/Makefile | 3 +
sound/soc/stm/stm32_amdf.c | 376 +++
11 files changed, 4382 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/adc/st,stm32-mdf-adc.yaml
create mode 100644 drivers/iio/adc/stm32-mdf-adc.c
create mode 100644 drivers/iio/adc/stm32-mdf-core.c
create mode 100644 drivers/iio/adc/stm32-mdf-serial.c
create mode 100644 drivers/iio/adc/stm32-mdf.h
create mode 100644 include/linux/iio/adc/stm32-mdf-adc.h
create mode 100644 sound/soc/stm/stm32_amdf.c


base-commit: 9ee8306121495d2a25aa5d1bfd519f2748786b83
--
2.43.0