# AD3552R driver

_Peios Kernel / Hardware and drivers / Industrial I/O_

> Device driver for Analog Devices Inc. AD35XXR series of DACs. The module name is ad3552r. With the same module name, two different driver variants are available, the generic spi variant, to be used with any classic SPI controllers, and the…

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

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

Device driver for Analog Devices Inc. AD35XXR series of DACs. The module name is `ad3552r`. With the same module name, two different driver variants are available, the `generic spi` variant, to be used with any classic SPI controllers, and the `hs` (high speed) variant, for an ADI `axi-dac` (IP core) based controller that allows to reach the maximum sample rate supported from the DACs, using the DMA transfer and all the SPI lines available (D/QDSPI).. The high speed driver variant is intended to be used with the `adi-axi-dac` backend support enabled, that is enabled by default when the driver is selected.

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

## Supported devices

- [AD3541R](<https://www.analog.com/en/products/ad3541r.html>)<a id="rst-ad3541r"></a>

- [AD3542R](<https://www.analog.com/en/products/ad3542r.html>)<a id="rst-ad3542r"></a>

- [AD3551R](<https://www.analog.com/en/products/ad3551r.html>)<a id="rst-ad3551r"></a>

- [AD3552R](<https://www.analog.com/en/products/ad3552r.html>)<a id="rst-ad3552r"></a>

<a id="rst-wiring-connections"></a>

## Wiring connections

<a id="rst-generic-spi"></a>

### Generic SPI

Use the classic SPI S_CLK/CS/SDO/SDI connection.

<a id="rst-high-speed-using-axi-dac-backend"></a>

### High speed (using axi-dac backend)



```text
.-----------------.                .-------.
|                 |--- D/QSPI -----|       |
|   DAC IP CORE   |--- SPI S_CLK --|  DAC  |
|                 |--- SPI CS -----|       |
|                 |--- LDAC -------|       |
|                 |--- RESET ------|       |
|_________________|                |_______|
```

<a id="rst-high-speed-features"></a>

## High speed features

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

### Device attributes

The following table shows the ad35xxr related device debug files, found in the specific debugfs path `/sys/kernel/debug/iio/iio:deviceX`.


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


Debugfs device files

</td>
<td>


Description

</td>
</tr>
<tr>
<td>


data_source

</td>
<td>


The used data source, as `normal`, `ramp-16bit`, etc.

</td>
</tr>
<tr>
<td>


data_source_available

</td>
<td>


The available data sources.

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

<a id="rst-usage-examples"></a>

### Usage examples



```bash
root:/sys/bus/iio/devices/iio:device0# cat data_source
normal
root:/sys/bus/iio/devices/iio:device0# echo -n ramp-16bit > data_source
root:/sys/bus/iio/devices/iio:device0# cat data_source
ramp-16bit
```
