iio: adc: stm32-dfsdm: add id registers support
authorOlivier Moysan <olivier.moysan@foss.st.com>
Thu, 5 Jan 2023 12:53:30 +0000 (13:53 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 8 Jan 2023 13:11:03 +0000 (13:11 +0000)
commitbfcae956d9b50ea0e221cefc171604c569017d7e
tree2686e6cb31dddb21915626021046758a9c261904
parent14e5b7ab196e6f18f76191cae4a4f6b41c0bfadd
iio: adc: stm32-dfsdm: add id registers support

Add support of identification registers to STM32 DFSDM
to allow hardware capabilities discovery and configuration check.
The number of filters and channels, are read from registers,
when they are available.

Signed-off-by: Olivier Moysan <olivier.moysan@foss.st.com>
Link: https://lore.kernel.org/r/20230105125331.328275-1-olivier.moysan@foss.st.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/stm32-dfsdm-core.c
drivers/iio/adc/stm32-dfsdm.h