Add support for the ROHM BD79105 ADC
(and do some minor simplifications to the ad7476 driver while at it).
The first 2 patches were originally sent as an RFC:
https://lore.kernel.org/all/cover.1754041258.git.mazziesaccount@gmail.com/
Revision history:
v1 => v2:
- Two new patches:
5/10 "Limit the scope of the chip_info" and
6/10 "Drop convstart chan_spec"
Please, let me know if you think some of the changes should be
squashed.
- Multiple fixes as suggested during v1 review. More accurate
changelog included in individual patches
Simplification RFC => ROHM BD79105 support series v1:
- Use spi_get_device_match_data()
- Fix uV to mV conversion
- Rewording of commit message
- Added patches 3 to 8.
Matti Vaittinen (10):
iio: adc: ad7476: Simplify chip type detection
iio: adc: ad7476: Simplify scale handling
iio: adc: ad7476: Use mV for internal reference
iio: adc: ad7476: Use correct channel for bit info
iio: adc: ad7476: Limit the scope of the chip_info
iio: adc: ad7476: Drop convstart chan_spec
iio: adc: ad7476: Conditionally call convstart
dt-bindings: iio: adc: ad7476: Add ROHM bd79105
iio: adc: ad7476: Support ROHM BD79105
MAINTAINERS: A driver for simple 1-channel SPI ADCs
.../bindings/iio/adc/adi,ad7476.yaml | 54 ++
MAINTAINERS | 5 +
drivers/iio/adc/ad7476.c | 462 +++++++++---------
3 files changed, 290 insertions(+), 231 deletions(-)
base-commit: 93ef68672bb353838cdf8314be8765c05768916b
--
2.50.1