1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 # Copyright 2020 Analog Devices Inc.
5 $id: http://devicetree.org/schemas/iio/dac/adi,ad3552r.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Analog Devices AD2552R DAC device driver
11 - Nuno Sá <nuno.sa@analog.com>
14 Bindings for the Analog Devices AD3552R DAC device and similar.
15 Datasheet can be found here:
16 https://www.analog.com/media/en/technical-documentation/data-sheets/ad3542r.pdf
17 https://www.analog.com/media/en/technical-documentation/data-sheets/ad3552r.pdf
36 LDAC pin to be used as a hardware trigger to update the DAC channels.
41 The regulator to use as an external reference. If it does not exists the
42 internal reference will be used. External reference must be 2.5V
45 description: Vref I/O driven by internal vref to 2.5V. If not set, Vref pin
49 adi,sdo-drive-strength:
51 Configure SDIO0 and SDIO1 strength levels:
52 - 0: low SDO drive strength.
53 - 1: medium low SDO drive strength.
54 - 2: medium high SDO drive strength.
55 - 3: high SDO drive strength
56 $ref: /schemas/types.yaml#/definitions/uint32
68 description: Configurations of the DAC Channels
70 additionalProperties: false
74 description: Channel number
77 adi,output-range-microvolt: true
79 custom-output-range-config:
81 additionalProperties: false
82 description: Configuration of custom range when
83 adi,output-range-microvolt is not present.
84 The formulas for calculation the output voltages are
85 Vout_fs = 2.5 + [(GainN + Offset/1024) * 2.5 * Rfbx * 1.03]
86 Vout_zs = 2.5 - [(GainP + Offset/1024) * 2.5 * Rfbx * 1.03]
90 description: Gain offset used in the above formula
91 $ref: /schemas/types.yaml#/definitions/int32
95 adi,gain-scaling-p-inv-log2:
96 description: GainP = 1 / ( 2 ^ adi,gain-scaling-p-inv-log2)
97 $ref: /schemas/types.yaml#/definitions/uint32
100 adi,gain-scaling-n-inv-log2:
101 description: GainN = 1 / ( 2 ^ adi,gain-scaling-n-inv-log2)
102 $ref: /schemas/types.yaml#/definitions/uint32
106 description: Feedback Resistor
110 - adi,gain-scaling-p-inv-log2
111 - adi,gain-scaling-n-inv-log2
118 # If adi,output-range-microvolt is missing,
119 # custom-output-range-config must be used
121 - adi,output-range-microvolt
124 - custom-output-range-config
137 adi,output-range-microvolt:
139 Voltage output range of the channel as <minimum, maximum>
140 Required connections:
141 Rfb1x for: 0 to 2.5 V; 0 to 3V; 0 to 5 V;
142 Rfb2x for: 0 to 10 V; 2.5 to 7.5V; -5 to 5 V;
146 - enum: [2500000, 3000000, 5000000, 10000000]
155 - adi,output-range-microvolt
167 adi,output-range-microvolt:
169 Voltage output range of the channel as <minimum, maximum>
170 Required connections:
171 Rfb1x for: 0 to 2.5 V; 0 to 5 V;
172 Rfb2x for: 0 to 10 V; -5 to 5 V;
173 Rfb4x for: -10 to 10V
177 - enum: [2500000, 5000000, 10000000]
190 additionalProperties: false
195 #address-cells = <1>;
198 compatible = "adi,ad3552r";
200 spi-max-frequency = <20000000>;
201 #address-cells = <1>;
205 adi,output-range-microvolt = <0 10000000>;
209 custom-output-range-config {
210 adi,gain-offset = <5>;
211 adi,gain-scaling-p-inv-log2 = <1>;
212 adi,gain-scaling-n-inv-log2 = <2>;