Path: blob/master/Documentation/devicetree/bindings/iio/dac/adi,ltc2664.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/dac/adi,ltc2664.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Analog Devices LTC2664 DAC78maintainers:9- Michael Hennerich <michael.hennerich@analog.com>10- Kim Seer Paller <kimseer.paller@analog.com>1112description: |13Analog Devices LTC2664 4 channel, 12-/16-Bit, +-10V DAC14https://www.analog.com/media/en/technical-documentation/data-sheets/2664fa.pdf1516properties:17compatible:18enum:19- adi,ltc26642021reg:22maxItems: 12324spi-max-frequency:25maximum: 500000002627vcc-supply:28description: Analog Supply Voltage Input.2930v-pos-supply:31description: Positive Supply Voltage Input.3233v-neg-supply:34description: Negative Supply Voltage Input.3536iovcc-supply:37description: Digital Input/Output Supply Voltage.3839ref-supply:40description:41Reference Input/Output. The voltage at the REF pin sets the full-scale42range of all channels. If not provided the internal reference is used and43also provided on the VREF pin.4445reset-gpios:46description:47Active-low Asynchronous Clear Input. A logic low at this level-triggered48input clears the part to the reset code and range determined by the49hardwired option chosen using the MSPAN pins. The control registers are50cleared to zero.51maxItems: 15253adi,manual-span-operation-config:54description:55This property must mimic the MSPAN pin configurations. By tying the MSPAN56pins (MSP2, MSP1 and MSP0) to GND and/or VCC, any output range can be57hardware-configured with different mid-scale or zero-scale reset options.58The hardware configuration is latched during power on reset for proper59operation.600 - MPS2=GND, MPS1=GND, MSP0=GND (+-10V, reset to 0V)611 - MPS2=GND, MPS1=GND, MSP0=VCC (+-5V, reset to 0V)622 - MPS2=GND, MPS1=VCC, MSP0=GND (+-2.5V, reset to 0V)633 - MPS2=GND, MPS1=VCC, MSP0=VCC (0V to 10, reset to 0V)644 - MPS2=VCC, MPS1=GND, MSP0=GND (0V to 10V, reset to 5V)655 - MPS2=VCC, MPS1=GND, MSP0=VCC (0V to 5V, reset to 0V)666 - MPS2=VCC, MPS1=VCC, MSP0=GND (0V to 5V, reset to 2.5V)677 - MPS2=VCC, MPS1=VCC, MSP0=VCC (0V to 5V, reset to 0V, enables SoftSpan)68$ref: /schemas/types.yaml#/definitions/uint3269enum: [0, 1, 2, 3, 4, 5, 6, 7]70default: 77172io-channels:73description:74ADC channel to monitor voltages and temperature at the MUXOUT pin.75maxItems: 17677'#address-cells':78const: 17980'#size-cells':81const: 08283patternProperties:84"^channel@[0-3]$":85$ref: dac.yaml86type: object87additionalProperties: false8889properties:90reg:91description: The channel number representing the DAC output channel.92maximum: 39394adi,toggle-mode:95description:96Set the channel as a toggle enabled channel. Toggle operation enables97fast switching of a DAC output between two different DAC codes without98any SPI transaction.99type: boolean100101output-range-microvolt:102description:103This property is only allowed when SoftSpan is enabled. If not present,104[0, 5000000] is the default output range.105oneOf:106- items:107- const: 0108- enum: [5000000, 10000000]109- items:110- const: -5000000111- const: 5000000112- items:113- const: -10000000114- const: 10000000115- items:116- const: -2500000117- const: 2500000118119required:120- reg121122allOf:123- if:124not:125properties:126adi,manual-span-operation-config:127const: 7128then:129patternProperties:130"^channel@[0-3]$":131properties:132output-range-microvolt: false133134required:135- compatible136- reg137- spi-max-frequency138- vcc-supply139- iovcc-supply140- v-pos-supply141- v-neg-supply142143allOf:144- $ref: /schemas/spi/spi-peripheral-props.yaml#145146unevaluatedProperties: false147148examples:149- |150spi {151#address-cells = <1>;152#size-cells = <0>;153dac@0 {154compatible = "adi,ltc2664";155reg = <0>;156spi-max-frequency = <10000000>;157158vcc-supply = <&vcc>;159iovcc-supply = <&vcc>;160ref-supply = <&vref>;161v-pos-supply = <&vpos>;162v-neg-supply = <&vneg>;163164io-channels = <&adc 0>;165166#address-cells = <1>;167#size-cells = <0>;168channel@0 {169reg = <0>;170adi,toggle-mode;171output-range-microvolt = <(-10000000) 10000000>;172};173174channel@1 {175reg = <1>;176output-range-microvolt= <0 10000000>;177};178};179};180...181182183