Documentation/iio/ad7606.rst

Source file repositories/reference/linux-study-clean/Documentation/iio/ad7606.rst

File Facts

System
Linux kernel
Corpus path
Documentation/iio/ad7606.rst
Extension
.rst
Size
6689 bytes
Lines
190
Domain
Support Tooling And Documentation
Bucket
Documentation
Inferred role
Support Tooling And Documentation: documentation
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

.. SPDX-License-Identifier: GPL-2.0-only

=============
AD7606 driver
=============

ADC driver for Analog Devices Inc. AD7606 and similar devices. The module name
is ``ad7606``.

Supported devices
=================

The following chips are supported by this driver:

* `AD7605 <https://www.analog.com/en/products/ad7605.html>`_
* `AD7606 <https://www.analog.com/en/products/ad7606.html>`_
* `AD7606B <https://www.analog.com/en/products/ad7606b.html>`_
* `AD7616 <https://www.analog.com/en/products/ad7616.html>`_

Supported features
==================

SPI wiring modes
----------------

These ADCs can output data on several SDO lines (1/2/4/8). The driver
currently supports only 1 SDO line.

SPI offload wiring
------------------
When used with a SPI offload, the supported wiring configuration is:

.. code-block::

    +-------------+         +-------------+
    |        BUSY |-------->| TRIGGER     |
    |          CS |<--------| CS          |
    |             |         |             |
    |     ADC     |         |     SPI     |
    |             |         |             |
    |         SDI |<--------| SDO         |
    |       DOUTA |-------->| SDI         |
    |        SCLK |<--------| SCLK        |
    |             |         |             |
    |             |         +-------------+
    |      CONVST |<--------| PWM         |
    +-------------+         +-------------+

In this case, the ``pwms`` property is required.
The ``#trigger-source-cells = <1>`` property is also required to connect back
to the SPI offload. The SPI offload will have ``trigger-sources`` property
with a cell to indicate the busy signal:
``<&ad7606 AD4695_TRIGGER_EVENT_BUSY>``.

.. seealso:: `SPI offload support`_


Parallel wiring mode
--------------------

There is also a parallel interface, with 16 lines (that can be reduced to 8 in
byte mode). The parallel interface is selected by declaring the device as
platform in the device tree (with no io-backends node defined, see below).

IIO-backend mode
----------------

This mode allows to reach the best sample rates, but it requires an external
hardware (eg HDL or APU) to handle the low level communication.
The backend mode is enabled when through the definition of the "io-backends"

Annotation

Implementation Notes