1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/iio/dac/adi,ad5592r.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Analog Devices AD5592R/AD5593R DAC/ADC
10 - Michael Hennerich <michael.hennerich@analog.com>
36 description: If not set internal 2.5V reference used.
42 description: Marks the device node as a GPIO controller.
47 The first cell is the GPIO number and the second cell specifies
48 GPIO flags, as defined in <dt-bindings/gpio/gpio.h>.
69 additionalProperties: false
74 description: Child node to describe a channel
81 $ref: /schemas/types.yaml#/definitions/uint32
84 Mode or function of this channel.
85 Macros specifying the valid values can be found in
86 <dt-bindings/iio/adi,ad5592r.h>.
88 The following values are currently supported:
89 * CH_MODE_UNUSED (the pin is unused)
90 * CH_MODE_ADC (the pin is ADC input)
91 * CH_MODE_DAC (the pin is DAC output)
92 * CH_MODE_DAC_AND_ADC (the pin is DAC output but can be monitored
93 by an ADC, since there is no disadvantage this should be
94 considered as the preferred DAC mode)
95 * CH_MODE_GPIO (the pin is registered with GPIOLIB)
98 $ref: /schemas/types.yaml#/definitions/uint32
101 State of this channel when unused or the device gets removed.
102 Macros specifying the valid values can be found in
103 <dt-bindings/iio/adi,ad5592r.h>.
104 * CH_OFFSTATE_PULLDOWN (the pin is pulled down)
105 * CH_OFFSTATE_OUT_LOW (the pin is output low)
106 * CH_OFFSTATE_OUT_HIGH (the pin is output high)
107 * CH_OFFSTATE_OUT_TRISTATE (the pin is tristated output)
113 additionalProperties: false
117 #include <dt-bindings/iio/adi,ad5592r.h>
119 #address-cells = <1>;
123 compatible = "adi,ad5592r";
125 #address-cells = <1>;
129 spi-max-frequency = <1000000>;
132 vref-supply = <&vref>;
133 reset-gpios = <&gpio0 86 0>;
138 adi,mode = <CH_MODE_DAC>;
142 adi,mode = <CH_MODE_ADC>;
146 adi,mode = <CH_MODE_DAC_AND_ADC>;
150 adi,mode = <CH_MODE_DAC_AND_ADC>;
151 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
155 adi,mode = <CH_MODE_UNUSED>;
156 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
160 adi,mode = <CH_MODE_GPIO>;
161 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
165 adi,mode = <CH_MODE_GPIO>;
166 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
170 adi,mode = <CH_MODE_GPIO>;
171 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
175 compatible = "adi,ad5593r";
177 #address-cells = <1>;
184 adi,mode = <CH_MODE_DAC>;
185 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
189 adi,mode = <CH_MODE_ADC>;
190 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
194 adi,mode = <CH_MODE_DAC_AND_ADC>;
195 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
199 adi,mode = <CH_MODE_GPIO>;
200 adi,off-state = <CH_OFFSTATE_PULLDOWN>;