Path: blob/master/Documentation/devicetree/bindings/iio/dac/adi,ad3552r.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1# Copyright 2020 Analog Devices Inc.2%YAML 1.23---4$id: http://devicetree.org/schemas/iio/dac/adi,ad3552r.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#67title: Analog Devices AD2552R DAC device driver89maintainers:10- Nuno Sá <nuno.sa@analog.com>1112description: |13Bindings for the Analog Devices AD3552R DAC device and similar.14Datasheet can be found here:15https://www.analog.com/media/en/technical-documentation/data-sheets/ad3541r.pdf16https://www.analog.com/media/en/technical-documentation/data-sheets/ad3542r.pdf17https://www.analog.com/media/en/technical-documentation/data-sheets/ad3551r.pdf18https://www.analog.com/media/en/technical-documentation/data-sheets/ad3552r.pdf1920properties:21compatible:22enum:23- adi,ad3541r24- adi,ad3542r25- adi,ad3551r26- adi,ad3552r2728reg:29maxItems: 13031spi-max-frequency:32maximum: 660000003334reset-gpios:35maxItems: 13637ldac-gpios:38description: |39LDAC pin to be used as a hardware trigger to update the DAC channels.40maxItems: 14142vref-supply:43description:44The regulator to use as an external reference. If it does not exists the45internal reference will be used. External reference must be 2.5V4647adi,vref-out-en:48description: Vref I/O driven by internal vref to 2.5V. If not set, Vref pin49will be floating.50type: boolean5152adi,sdo-drive-strength:53description: |54Configure SDIO0 and SDIO1 strength levels:55- 0: low SDO drive strength.56- 1: medium low SDO drive strength.57- 2: medium high SDO drive strength.58- 3: high SDO drive strength59$ref: /schemas/types.yaml#/definitions/uint3260enum: [0, 1, 2, 3]6162io-backends:63description: The iio backend reference.64Device can be optionally connected to the "axi-ad3552r IP" fpga-based65QSPI + DDR (Double Data Rate) controller to reach high speed transfers.66maxItems: 16768'#address-cells':69const: 17071'#size-cells':72const: 07374patternProperties:75"^channel@([0-1])$":76type: object77description: Configurations of the DAC Channels7879additionalProperties: false8081properties:82reg:83description: Channel number84enum: [0, 1]8586adi,output-range-microvolt: true8788custom-output-range-config:89type: object90additionalProperties: false91description: Configuration of custom range when92adi,output-range-microvolt is not present.93The formulas for calculation the output voltages are94Vout_fs = 2.5 + [(GainN + Offset/1024) * 2.5 * Rfbx * 1.03]95Vout_zs = 2.5 - [(GainP + Offset/1024) * 2.5 * Rfbx * 1.03]9697properties:98adi,gain-offset:99description: Gain offset used in the above formula100$ref: /schemas/types.yaml#/definitions/int32101maximum: 511102minimum: -511103104adi,gain-scaling-p:105description: GainP = 1 / ( 2 ^ adi,gain-scaling-p)106$ref: /schemas/types.yaml#/definitions/uint32107enum: [0, 1, 2, 3]108109adi,gain-scaling-n:110description: GainN = 1 / ( 2 ^ adi,gain-scaling-n)111$ref: /schemas/types.yaml#/definitions/uint32112enum: [0, 1, 2, 3]113114adi,rfb-ohms:115description: Feedback Resistor116117required:118- adi,gain-offset119- adi,gain-scaling-p120- adi,gain-scaling-n121- adi,rfb-ohms122123required:124- reg125126oneOf:127# If adi,output-range-microvolt is missing,128# custom-output-range-config must be used129- required:130- adi,output-range-microvolt131132- required:133- custom-output-range-config134135allOf:136- $ref: /schemas/spi/spi-peripheral-props.yaml#137- if:138properties:139compatible:140contains:141enum:142- adi,ad3541r143- adi,ad3542r144then:145patternProperties:146"^channel@([0-1])$":147type: object148properties:149adi,output-range-microvolt:150description: |151Voltage output range of the channel as <minimum, maximum>152Required connections:153Rfb1x for: 0 to 2.5 V; 0 to 3V; 0 to 5 V;154Rfb2x for: 0 to 10 V; -2.5 to 7.5V; -5 to 5 V;155oneOf:156- items:157- const: 0158- enum: [2500000, 3000000, 5000000, 10000000]159- items:160- const: -2500000161- const: 7500000162- items:163- const: -5000000164- const: 5000000165166required:167- adi,output-range-microvolt168169- if:170properties:171compatible:172contains:173enum:174- adi,ad3551r175- adi,ad3552r176then:177patternProperties:178"^channel@([0-1])$":179type: object180properties:181adi,output-range-microvolt:182description: |183Voltage output range of the channel as <minimum, maximum>184Required connections:185Rfb1x for: 0 to 2.5 V; 0 to 5 V;186Rfb2x for: 0 to 10 V; -5 to 5 V;187Rfb4x for: -10 to 10V188oneOf:189- items:190- const: 0191- enum: [2500000, 5000000, 10000000]192- items:193- const: -5000000194- const: 5000000195- items:196- const: -10000000197- const: 10000000198199- if:200properties:201compatible:202contains:203enum:204- adi,ad3541r205- adi,ad3551r206then:207properties:208channel@1: false209channel@0:210properties:211reg:212const: 0213214required:215- compatible216- reg217- spi-max-frequency218219unevaluatedProperties: false220221examples:222- |223spi {224#address-cells = <1>;225#size-cells = <0>;226ad3552r@0 {227compatible = "adi,ad3552r";228reg = <0>;229spi-max-frequency = <20000000>;230#address-cells = <1>;231#size-cells = <0>;232channel@0 {233reg = <0>;234adi,output-range-microvolt = <0 10000000>;235};236channel@1 {237reg = <1>;238custom-output-range-config {239adi,gain-offset = <5>;240adi,gain-scaling-p = <1>;241adi,gain-scaling-n = <2>;242adi,rfb-ohms = <1>;243};244};245};246};247...248249250