Support ROHM BD79111 ADC/GPIO
The ROHM BD79111 is a 12-bit, 16 channel SAR ADC / GPIO IC. Or, a "Signal
Monitor Hub IC" as data-sheet describes it. The key difference compared
to already supported BD79112 is the reduced number of channels (16,
BD79112 had 32) and halved sampling rate (500 KSPS when BD79112
data-sheet stated 1 MSPS).
Revision history:
v2 => v3:
dt-bindings:
- No changes
driver:
- move 'Return -ENODATA instead of -ENODEV when no SPI match data is
found' -fix to the patch 2/3, which introduces the SPI match data
usage.
- Fix double semicolon and drop the unused macro.
- Suffle comment wording as was requested by Andy.
v1 => v2:
dt-bindings:
- Don't drop the 'root-level' additionalProperties: false
driver + Kconfig:
- Styling as suggested by Andy / Jonathan
- Split to two patches as suggested by Andy
- Return -ENODATA instead of -ENODEV when no SPI match data is found
Matti Vaittinen (3):
dt-bindings: iio: Support ROHM BD79111
iio: adc: rohm-bd79112: Add chip info structure
iio: adc: rohm-bd79112: Support ROHM BD79111
.../bindings/iio/adc/rohm,bd79112.yaml | 29 ++++-
drivers/iio/adc/Kconfig | 10 +-
drivers/iio/adc/rohm-bd79112.c | 112 ++++++++++++++----
3 files changed, 120 insertions(+), 31 deletions(-)
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
--
2.56.1