Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions Documentation/devicetree/bindings/iio/dac/adi,ad5706r.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/iio/dac/adi,ad5706r.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Analog Devices AD5706R 4-Channel Current Output DAC

maintainers:
- Alexis Czezar Torreno <alexisczezar.torreno@analog.com>

description: |
The AD5706R is a 4-channel, 16-bit current output DAC with SPI interface.

properties:
compatible:
const: adi,ad5706r

reg:
maxItems: 1

spi-max-frequency:
maximum: 100000000

clocks:
items:
- description: SPI clock generator

clock-names:
items:
- const: spi_clk

pwms:
items:
- description: SPI engine PWM generator
- description: LDACB PWM control

pwm-names:
items:
- const: spi_engine_pwm_gen
- const: ad5706r_ldacb

dac-resetb-gpios:
maxItems: 1
description: GPIO for DAC reset

dac-shdn-gpios:
maxItems: 1
description: GPIO for DAC shutdown

required:
- compatible
- reg

additionalProperties: false

examples:
- |
spi {
#address-cells = <1>;
#size-cells = <0>;

dac@0 {
compatible = "adi,ad5706r";
reg = <0>;
spi-max-frequency = <10000000>;
clocks = <&clkgen 0>;
clock-names = "spi_clk";
pwms = <&pwm0 0 1000>, <&pwm1 0 1000>;
pwm-names = "spi_engine_pwm_gen", "ad5706r_ldacb";
dac-resetb-gpios = <&gpio0 10 0>;
dac-shdn-gpios = <&gpio0 11 0>;
};
};
...
8 changes: 8 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -1317,6 +1317,14 @@ F: Documentation/iio/ad4695.rst
F: drivers/iio/adc/ad4695.c
F: include/dt-bindings/iio/adc/adc/adi,ad4695.h

ANALOG DEVICES AD5706R DRIVER
M: Alexis Czezar Torreno <alexisczezar.torreno@analog.com>
L: linux-iio@vger.kernel.org
S: Supported
W: https://ez.analog.com/linux-software-drivers
F: Documentation/devicetree/bindings/iio/dac/adi,ad5706r.yaml
F: drivers/iio/dac/ad5706r.c

ANALOG DEVICES INC AD7091R DRIVER
M: Marcelo Schmitt <marcelo.schmitt@analog.com>
L: linux-iio@vger.kernel.org
Expand Down
1 change: 1 addition & 0 deletions drivers/iio/Kconfig.adi
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ config IIO_ALL_ADI_DRIVERS
imply AD5592R_BASE
imply AD5592R
imply AD5593R
imply AD5706R
imply AD5755
imply AD5758
imply AD5761
Expand Down
11 changes: 11 additions & 0 deletions drivers/iio/dac/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,17 @@ config AD5624R_SPI
Say yes here to build support for Analog Devices AD5624R, AD5644R and
AD5664R converters (DAC). This driver uses the common SPI interface.

config AD5706R
tristate "Analog Devices AD5706R DAC driver"
depends on SPI
select IIO_BUFFER
help
Say yes here to build support for Analog Devices AD5706R 4-channel,
16-bit current output DAC.

To compile this driver as a module, choose M here: the
module will be called ad5706r.

config AD9739A
tristate "Analog Devices AD9739A RF DAC spi driver"
depends on SPI
Expand Down
1 change: 1 addition & 0 deletions drivers/iio/dac/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ obj-$(CONFIG_AD5449) += ad5449.o
obj-$(CONFIG_AD5592R_BASE) += ad5592r-base.o
obj-$(CONFIG_AD5592R) += ad5592r.o
obj-$(CONFIG_AD5593R) += ad5593r.o
obj-$(CONFIG_AD5706R) += ad5706r.o
obj-$(CONFIG_AD5755) += ad5755.o
obj-$(CONFIG_AD5758) += ad5758.o
obj-$(CONFIG_AD5761) += ad5761.o
Expand Down
Loading