1*b2d2a78aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*b2d2a78aSEmmanuel Vadot%YAML 1.2 3*b2d2a78aSEmmanuel Vadot--- 4*b2d2a78aSEmmanuel Vadot$id: http://devicetree.org/schemas/iio/dac/adi,ltc2672.yaml# 5*b2d2a78aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*b2d2a78aSEmmanuel Vadot 7*b2d2a78aSEmmanuel Vadottitle: Analog Devices LTC2672 DAC 8*b2d2a78aSEmmanuel Vadot 9*b2d2a78aSEmmanuel Vadotmaintainers: 10*b2d2a78aSEmmanuel Vadot - Michael Hennerich <michael.hennerich@analog.com> 11*b2d2a78aSEmmanuel Vadot - Kim Seer Paller <kimseer.paller@analog.com> 12*b2d2a78aSEmmanuel Vadot 13*b2d2a78aSEmmanuel Vadotdescription: | 14*b2d2a78aSEmmanuel Vadot Analog Devices LTC2672 5 channel, 12-/16-Bit, 300mA DAC 15*b2d2a78aSEmmanuel Vadot https://www.analog.com/media/en/technical-documentation/data-sheets/ltc2672.pdf 16*b2d2a78aSEmmanuel Vadot 17*b2d2a78aSEmmanuel Vadotproperties: 18*b2d2a78aSEmmanuel Vadot compatible: 19*b2d2a78aSEmmanuel Vadot enum: 20*b2d2a78aSEmmanuel Vadot - adi,ltc2672 21*b2d2a78aSEmmanuel Vadot 22*b2d2a78aSEmmanuel Vadot reg: 23*b2d2a78aSEmmanuel Vadot maxItems: 1 24*b2d2a78aSEmmanuel Vadot 25*b2d2a78aSEmmanuel Vadot spi-max-frequency: 26*b2d2a78aSEmmanuel Vadot maximum: 50000000 27*b2d2a78aSEmmanuel Vadot 28*b2d2a78aSEmmanuel Vadot vcc-supply: 29*b2d2a78aSEmmanuel Vadot description: Analog Supply Voltage Input. 30*b2d2a78aSEmmanuel Vadot 31*b2d2a78aSEmmanuel Vadot v-neg-supply: 32*b2d2a78aSEmmanuel Vadot description: Negative Supply Voltage Input. 33*b2d2a78aSEmmanuel Vadot 34*b2d2a78aSEmmanuel Vadot vdd0-supply: 35*b2d2a78aSEmmanuel Vadot description: Positive Supply Voltage Input for DAC OUT0. 36*b2d2a78aSEmmanuel Vadot 37*b2d2a78aSEmmanuel Vadot vdd1-supply: 38*b2d2a78aSEmmanuel Vadot description: Positive Supply Voltage Input for DAC OUT1. 39*b2d2a78aSEmmanuel Vadot 40*b2d2a78aSEmmanuel Vadot vdd2-supply: 41*b2d2a78aSEmmanuel Vadot description: Positive Supply Voltage Input for DAC OUT2. 42*b2d2a78aSEmmanuel Vadot 43*b2d2a78aSEmmanuel Vadot vdd3-supply: 44*b2d2a78aSEmmanuel Vadot description: Positive Supply Voltage Input for DAC OUT3. 45*b2d2a78aSEmmanuel Vadot 46*b2d2a78aSEmmanuel Vadot vdd4-supply: 47*b2d2a78aSEmmanuel Vadot description: Positive Supply Voltage Input for DAC OUT4. 48*b2d2a78aSEmmanuel Vadot 49*b2d2a78aSEmmanuel Vadot iovcc-supply: 50*b2d2a78aSEmmanuel Vadot description: Digital Input/Output Supply Voltage. 51*b2d2a78aSEmmanuel Vadot 52*b2d2a78aSEmmanuel Vadot ref-supply: 53*b2d2a78aSEmmanuel Vadot description: 54*b2d2a78aSEmmanuel Vadot Reference Input/Output. The voltage at the REF pin sets the full-scale 55*b2d2a78aSEmmanuel Vadot range of all channels. If not provided the internal reference is used and 56*b2d2a78aSEmmanuel Vadot also provided on the VREF pin. 57*b2d2a78aSEmmanuel Vadot 58*b2d2a78aSEmmanuel Vadot reset-gpios: 59*b2d2a78aSEmmanuel Vadot description: 60*b2d2a78aSEmmanuel Vadot Active Low Asynchronous Clear Input. A logic low at this level triggered 61*b2d2a78aSEmmanuel Vadot input clears the device to the default reset code and output range, which 62*b2d2a78aSEmmanuel Vadot is zero-scale with the outputs off. The control registers are cleared to 63*b2d2a78aSEmmanuel Vadot zero. 64*b2d2a78aSEmmanuel Vadot maxItems: 1 65*b2d2a78aSEmmanuel Vadot 66*b2d2a78aSEmmanuel Vadot adi,rfsadj-ohms: 67*b2d2a78aSEmmanuel Vadot description: 68*b2d2a78aSEmmanuel Vadot If FSADJ is tied to VCC, an internal RFSADJ (20 kΩ) is selected, which 69*b2d2a78aSEmmanuel Vadot results in nominal output ranges. When an external resistor of 19 kΩ to 70*b2d2a78aSEmmanuel Vadot 41 kΩ can be used instead by connecting the resistor between FSADJ and GND 71*b2d2a78aSEmmanuel Vadot it controls the scaling of the ranges, and the internal resistor is 72*b2d2a78aSEmmanuel Vadot automatically disconnected. 73*b2d2a78aSEmmanuel Vadot minimum: 19000 74*b2d2a78aSEmmanuel Vadot maximum: 41000 75*b2d2a78aSEmmanuel Vadot default: 20000 76*b2d2a78aSEmmanuel Vadot 77*b2d2a78aSEmmanuel Vadot io-channels: 78*b2d2a78aSEmmanuel Vadot description: 79*b2d2a78aSEmmanuel Vadot ADC channel to monitor voltages and currents at the MUX pin. 80*b2d2a78aSEmmanuel Vadot maxItems: 1 81*b2d2a78aSEmmanuel Vadot 82*b2d2a78aSEmmanuel Vadot '#address-cells': 83*b2d2a78aSEmmanuel Vadot const: 1 84*b2d2a78aSEmmanuel Vadot 85*b2d2a78aSEmmanuel Vadot '#size-cells': 86*b2d2a78aSEmmanuel Vadot const: 0 87*b2d2a78aSEmmanuel Vadot 88*b2d2a78aSEmmanuel VadotpatternProperties: 89*b2d2a78aSEmmanuel Vadot "^channel@[0-4]$": 90*b2d2a78aSEmmanuel Vadot $ref: dac.yaml 91*b2d2a78aSEmmanuel Vadot type: object 92*b2d2a78aSEmmanuel Vadot additionalProperties: false 93*b2d2a78aSEmmanuel Vadot 94*b2d2a78aSEmmanuel Vadot properties: 95*b2d2a78aSEmmanuel Vadot reg: 96*b2d2a78aSEmmanuel Vadot description: The channel number representing the DAC output channel. 97*b2d2a78aSEmmanuel Vadot maximum: 4 98*b2d2a78aSEmmanuel Vadot 99*b2d2a78aSEmmanuel Vadot adi,toggle-mode: 100*b2d2a78aSEmmanuel Vadot description: 101*b2d2a78aSEmmanuel Vadot Set the channel as a toggle enabled channel. Toggle operation enables 102*b2d2a78aSEmmanuel Vadot fast switching of a DAC output between two different DAC codes without 103*b2d2a78aSEmmanuel Vadot any SPI transaction. 104*b2d2a78aSEmmanuel Vadot type: boolean 105*b2d2a78aSEmmanuel Vadot 106*b2d2a78aSEmmanuel Vadot output-range-microamp: 107*b2d2a78aSEmmanuel Vadot items: 108*b2d2a78aSEmmanuel Vadot - const: 0 109*b2d2a78aSEmmanuel Vadot - enum: [3125000, 6250000, 12500000, 25000000, 50000000, 100000000, 110*b2d2a78aSEmmanuel Vadot 200000000, 300000000] 111*b2d2a78aSEmmanuel Vadot 112*b2d2a78aSEmmanuel Vadot required: 113*b2d2a78aSEmmanuel Vadot - reg 114*b2d2a78aSEmmanuel Vadot - output-range-microamp 115*b2d2a78aSEmmanuel Vadot 116*b2d2a78aSEmmanuel Vadotrequired: 117*b2d2a78aSEmmanuel Vadot - compatible 118*b2d2a78aSEmmanuel Vadot - reg 119*b2d2a78aSEmmanuel Vadot - spi-max-frequency 120*b2d2a78aSEmmanuel Vadot - vcc-supply 121*b2d2a78aSEmmanuel Vadot - iovcc-supply 122*b2d2a78aSEmmanuel Vadot - v-neg-supply 123*b2d2a78aSEmmanuel Vadot 124*b2d2a78aSEmmanuel VadotallOf: 125*b2d2a78aSEmmanuel Vadot - $ref: /schemas/spi/spi-peripheral-props.yaml# 126*b2d2a78aSEmmanuel Vadot 127*b2d2a78aSEmmanuel VadotadditionalProperties: false 128*b2d2a78aSEmmanuel Vadot 129*b2d2a78aSEmmanuel Vadotexamples: 130*b2d2a78aSEmmanuel Vadot - | 131*b2d2a78aSEmmanuel Vadot spi { 132*b2d2a78aSEmmanuel Vadot #address-cells = <1>; 133*b2d2a78aSEmmanuel Vadot #size-cells = <0>; 134*b2d2a78aSEmmanuel Vadot dac@0 { 135*b2d2a78aSEmmanuel Vadot compatible = "adi,ltc2672"; 136*b2d2a78aSEmmanuel Vadot reg = <0>; 137*b2d2a78aSEmmanuel Vadot spi-max-frequency = <10000000>; 138*b2d2a78aSEmmanuel Vadot 139*b2d2a78aSEmmanuel Vadot vcc-supply = <&vcc>; 140*b2d2a78aSEmmanuel Vadot iovcc-supply = <&vcc>; 141*b2d2a78aSEmmanuel Vadot ref-supply = <&vref>; 142*b2d2a78aSEmmanuel Vadot v-neg-supply = <&vneg>; 143*b2d2a78aSEmmanuel Vadot 144*b2d2a78aSEmmanuel Vadot io-channels = <&adc 0>; 145*b2d2a78aSEmmanuel Vadot 146*b2d2a78aSEmmanuel Vadot #address-cells = <1>; 147*b2d2a78aSEmmanuel Vadot #size-cells = <0>; 148*b2d2a78aSEmmanuel Vadot channel@0 { 149*b2d2a78aSEmmanuel Vadot reg = <0>; 150*b2d2a78aSEmmanuel Vadot adi,toggle-mode; 151*b2d2a78aSEmmanuel Vadot output-range-microamp = <0 3125000>; 152*b2d2a78aSEmmanuel Vadot }; 153*b2d2a78aSEmmanuel Vadot 154*b2d2a78aSEmmanuel Vadot channel@1 { 155*b2d2a78aSEmmanuel Vadot reg = <1>; 156*b2d2a78aSEmmanuel Vadot output-range-microamp = <0 6250000>; 157*b2d2a78aSEmmanuel Vadot }; 158*b2d2a78aSEmmanuel Vadot }; 159*b2d2a78aSEmmanuel Vadot }; 160*b2d2a78aSEmmanuel Vadot... 161