This patch series adds basic support for ad4134. AD4134 is a very flexible
device that can be configured in many different ways. This series aims to
support the simplest way of interfacing with AD4134 which is called minimum I/O
mode in data sheet. This is essentially usual SPI with the addition of an ODR
(Output Data Rate) GPIO which functions as conversion start signal in minimum
I/O mode.
This set provides just one feature:
- Single-shot ADC sample read.
[PATCH 1] Device tree documentation for AD4134.
[PATCH 2] IIO Linux driver for AD4134.
[PATCH 3] Initial IIO documentation.
Change log v1 -> v2:
[Device tree]
- Dropped adi,control-mode property (can be inferred from the parent bus).
[IIO]
- Squashed the driver into a single file. Dropped unneeded code and simplified.
- Used IWYU to review includes (added missing ones, removed the unneeded).
- Reworked external clock setup.
- Dropped channel dynamic scan_types.
- Factored out register read specific code to into own function to make code more clear.
- Added comments to clarify non-intuitive code snippets.
- Added trailing commas where suggested.
- Made use of USEC_PER_SEC and HZ_PER_MHZ.
- Updated according to other suggestions (mostly code style).
[IIO Docs]
- Now using "~~~~~~~~" to mark fourth level topics.
Link to v1: https://lore.kernel.org/linux-iio/cover.1762777931.git.marcelo.schmitt@analog.com/
With best regards,
Marcelo
Marcelo Schmitt (3):
dt-bindings: iio: adc: Add AD4134
iio: adc: Initial support for AD4134
Docs: iio: Add AD4134
.../bindings/iio/adc/adi,ad4134.yaml | 198 +++++++
Documentation/iio/ad4134.rst | 58 +++
Documentation/iio/index.rst | 1 +
MAINTAINERS | 9 +
drivers/iio/adc/Kconfig | 11 +
drivers/iio/adc/Makefile | 1 +
drivers/iio/adc/ad4134.c | 493 ++++++++++++++++++
7 files changed, 771 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad4134.yaml
create mode 100644 Documentation/iio/ad4134.rst
create mode 100644 drivers/iio/adc/ad4134.c
base-commit: f9e05791642810a0cf6237d39fafd6fec5e0b4bb
--
2.51.0