Skip to content

Commit 2e43816

Browse files
actorrenojic23
authored andcommitted
dt-bindings: iio: dac: Add ADI AD5706R
Add device tree binding documentation for the Analog Devices AD5706R 4-channel 16-bit current output digital-to-analog converter. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Signed-off-by: Alexis Czezar Torreno <alexisczezar.torreno@analog.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
1 parent c09f950 commit 2e43816

2 files changed

Lines changed: 112 additions & 0 deletions

File tree

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/iio/dac/adi,ad5706r.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Analog Devices AD5706R 4-Channel Current Output DAC
8+
9+
maintainers:
10+
- Alexis Czezar Torreno <alexisczezar.torreno@analog.com>
11+
12+
description: |
13+
The AD5706R is a 4-channel, 16-bit resolution, current output
14+
digital-to-analog converter (DAC) with programmable output current
15+
ranges (50mA, 150mA, 200mA, 300mA), an integrated 2.5V voltage
16+
reference, and load DAC, A/B toggle, and dither functions.
17+
18+
Datasheet:
19+
https://www.analog.com/en/products/ad5706r.html
20+
21+
properties:
22+
compatible:
23+
enum:
24+
- adi,ad5706r
25+
26+
reg:
27+
maxItems: 1
28+
29+
avdd-supply:
30+
description: Analog power supply (2.9V to 3.6V).
31+
32+
iovdd-supply:
33+
description: Logic power supply (1.14V to 1.89V).
34+
35+
pvdd0-supply:
36+
description: Power supply for IDAC0 channel (1.65V to AVDD).
37+
38+
pvdd1-supply:
39+
description: Power supply for IDAC1 channel (1.65V to AVDD).
40+
41+
pvdd2-supply:
42+
description: Power supply for IDAC2 channel (1.65V to AVDD).
43+
44+
pvdd3-supply:
45+
description: Power supply for IDAC3 channel (1.65V to AVDD).
46+
47+
vref-supply:
48+
description:
49+
Optional external 2.5V voltage reference. If not provided, the
50+
internal 2.5V reference is used.
51+
52+
pwms:
53+
maxItems: 1
54+
description:
55+
Optional PWM connected to the LDAC/TGP/DCK pin for hardware
56+
triggered DAC updates, toggle, or dither clock generation.
57+
58+
reset-gpios:
59+
maxItems: 1
60+
description:
61+
GPIO connected to the active low RESET pin. If not provided,
62+
software reset is used.
63+
64+
enable-gpios:
65+
maxItems: 1
66+
description:
67+
GPIO connected to the active low OUT_EN pin. Controls whether
68+
the current outputs are enabled or in high-Z/ground state.
69+
70+
required:
71+
- compatible
72+
- reg
73+
- avdd-supply
74+
- iovdd-supply
75+
76+
allOf:
77+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
78+
79+
unevaluatedProperties: false
80+
81+
examples:
82+
- |
83+
#include <dt-bindings/gpio/gpio.h>
84+
85+
spi {
86+
#address-cells = <1>;
87+
#size-cells = <0>;
88+
89+
dac@0 {
90+
compatible = "adi,ad5706r";
91+
reg = <0>;
92+
avdd-supply = <&avdd>;
93+
iovdd-supply = <&iovdd>;
94+
pvdd0-supply = <&pvdd>;
95+
pvdd1-supply = <&pvdd>;
96+
pvdd2-supply = <&pvdd>;
97+
pvdd3-supply = <&pvdd>;
98+
vref-supply = <&vref>;
99+
spi-max-frequency = <50000000>;
100+
pwms = <&pwm0 0 1000000 0>;
101+
reset-gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
102+
enable-gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
103+
};
104+
};
105+
...

MAINTAINERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,6 +1498,13 @@ W: https://ez.analog.com/linux-software-drivers
14981498
F: Documentation/devicetree/bindings/iio/adc/adi,ad4851.yaml
14991499
F: drivers/iio/adc/ad4851.c
15001500

1501+
ANALOG DEVICES INC AD5706R DRIVER
1502+
M: Alexis Czezar Torreno <alexisczezar.torreno@analog.com>
1503+
L: linux-iio@vger.kernel.org
1504+
S: Supported
1505+
W: https://ez.analog.com/linux-software-drivers
1506+
F: Documentation/devicetree/bindings/iio/dac/adi,ad5706r.yaml
1507+
15011508
ANALOG DEVICES INC AD7091R DRIVER
15021509
M: Marcelo Schmitt <marcelo.schmitt@analog.com>
15031510
L: linux-iio@vger.kernel.org

0 commit comments

Comments
 (0)