# AD7625 driver

_Peios Kernel / Hardware and drivers / Industrial I/O_

> ADC driver for Analog Devices Inc. AD7625, AD7626, AD7960, and AD7961 devices. The module name is ad7625.

<a id="rst-ad7625-driver"></a>

<!-- SPDX-License-Identifier: GPL-2.0-only -->

ADC driver for Analog Devices Inc. AD7625, AD7626, AD7960, and AD7961 devices. The module name is `ad7625`.

<a id="rst-supported-devices"></a>

## Supported devices

The following chips are supported by this driver:

- [AD7625](<https://www.analog.com/AD7625>)<a id="rst-ad7625"></a>

- [AD7626](<https://www.analog.com/AD7626>)<a id="rst-ad7626"></a>

- [AD7960](<https://www.analog.com/AD7960>)<a id="rst-ad7960"></a>

- [AD7961](<https://www.analog.com/AD7961>)<a id="rst-ad7961"></a>

The driver requires use of the Pulsar LVDS HDL project:

- [Pulsar LVDS HDL](<http://analogdevicesinc.github.io/hdl/projects/pulsar_lvds/index.html>)<a id="rst-pulsar-lvds-hdl"></a>

To trigger conversions and enable subsequent data transfer, the devices require coupled PWM signals with a phase offset.

<a id="rst-supported-features"></a>

## Supported features

<a id="rst-conversion-control-modes"></a>

### Conversion control modes

The driver currently supports one of two possible LVDS conversion control methods.

<a id="rst-echoed-clock-interface-mode"></a>

#### Echoed-Clock interface mode



```text
                                      +----------------+
           +xxxxxxxxxxxxxxxxxxxxxxxxxx| CNV            |
           X                          |                |
           v                          |    HOST        |
+----------------------------+        |                |
|      CNV+/CNV-   DCO+/DCO- |xxxxxxx>| CLK_IN         |
|                            |        |                |
|                            |        |                |
|       AD7625         D+/D- |xxxxxxx>| DATA_IN        |
|                            |        |                |
|                            |        |                |
|                  CLK+/CLK- |<xxxxxxx| CLK & CLK_GATE |
+----------------------------+        |                |
                                      +----------------+
```

<a id="rst-reference-voltage"></a>

### Reference voltage

Three possible reference voltage sources are supported:

- Internal reference (only available on AD7625 and AD7626)

- External reference and internal buffer

- External reference

The source is determined by the device tree. If `ref-supply` is present, then the external reference is used. If `refin-supply` is present, then the internal buffer is used. If neither is present, then the internal reference is used.

<a id="rst-unimplemented-features"></a>

### Unimplemented features

- Self-clocked mode

<a id="rst-device-attributes"></a>

## Device attributes

The AD762x is a fully-differential ADC and has the following attributes:


<table>
<thead>
<tr>
<th>


Attribute

</th>
<th>


Description

</th>
</tr>
</thead>
<tbody>
<tr>
<td>


`scale`

</td>
<td>


Scale factor to convert raw value from buffered reads to mV.

</td>
</tr>
</tbody>
</table>

<a id="rst-device-buffers"></a>

## Device buffers

This driver supports IIO triggered buffers.

See [Industrial IIO device buffers](</kernel/hardware/iio/iio-devbuf.md>) for more information.
