1 Analog Devices AD5592R/AD5593R DAC/ADC device driver
3 Required properties for the AD5592R:
4 - compatible: Must be "adi,ad5592r"
5 - reg: SPI chip select number for the device
6 - spi-max-frequency: Max SPI frequency to use (< 30000000)
7 - spi-cpol: The AD5592R requires inverse clock polarity (CPOL) mode
9 Required properties for the AD5593R:
10 - compatible: Must be "adi,ad5593r"
11 - reg: I2C address of the device
13 Required properties for all supported chips:
14 - #address-cells: Should be 1.
15 - #size-cells: Should be 0.
17 Each child node represents one channel and has the following
19 * reg: Pin on which this channel is connected to.
20 * adi,mode: Mode or function of this channel.
21 Macros specifying the valid values
22 can be found in <dt-bindings/iio/adi,ad5592r.h>.
24 The following values are currently supported:
25 * CH_MODE_UNUSED (the pin is unused)
26 * CH_MODE_ADC (the pin is ADC input)
27 * CH_MODE_DAC (the pin is DAC output)
28 * CH_MODE_DAC_AND_ADC (the pin is DAC output
29 but can be monitored by an ADC, since
30 there is no disadvantage this
31 this should be considered as the
33 * CH_MODE_GPIO (the pin is registered
36 * adi,off-state: State of this channel when unused or the
37 device gets removed. Macros specifying the
38 valid values can be found in
39 <dt-bindings/iio/adi,ad5592r.h>.
41 * CH_OFFSTATE_PULLDOWN (the pin is pulled down)
42 * CH_OFFSTATE_OUT_LOW (the pin is output low)
43 * CH_OFFSTATE_OUT_HIGH (the pin is output high)
44 * CH_OFFSTATE_OUT_TRISTATE (the pin is
49 - vref-supply: Phandle to the external reference voltage supply. This should
50 only be set if there is an external reference voltage connected to the VREF
51 pin. If the property is not set the internal 2.5V reference is used.
52 - reset-gpios : GPIO spec for the RESET pin. If specified, it will be
53 asserted during driver probe.
54 - gpio-controller: Marks the device node as a GPIO controller.
55 - #gpio-cells: Should be 2. The first cell is the GPIO number and the second
56 cell specifies GPIO flags, as defined in <dt-bindings/gpio/gpio.h>.
60 #include <dt-bindings/iio/adi,ad5592r.h>
62 vref: regulator-vref {
63 compatible = "regulator-fixed";
64 regulator-name = "vref-ad559x";
65 regulator-min-microvolt = <3300000>;
66 regulator-max-microvolt = <3300000>;
74 compatible = "adi,ad5592r";
77 spi-max-frequency = <1000000>;
80 vref-supply = <&vref>; /* optional */
81 reset-gpios = <&gpio0 86 0>; /* optional */
86 adi,mode = <CH_MODE_DAC>;
90 adi,mode = <CH_MODE_ADC>;
94 adi,mode = <CH_MODE_DAC_AND_ADC>;
98 adi,mode = <CH_MODE_DAC_AND_ADC>;
99 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
103 adi,mode = <CH_MODE_UNUSED>;
104 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
108 adi,mode = <CH_MODE_GPIO>;
109 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
113 adi,mode = <CH_MODE_GPIO>;
114 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
118 adi,mode = <CH_MODE_GPIO>;
119 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
125 #include <dt-bindings/iio/adi,ad5592r.h>
129 #address-cells = <1>;
131 compatible = "adi,ad5593r";
137 adi,mode = <CH_MODE_DAC>;
138 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
142 adi,mode = <CH_MODE_ADC>;
143 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
147 adi,mode = <CH_MODE_DAC_AND_ADC>;
148 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
152 adi,mode = <CH_MODE_GPIO>;
153 adi,off-state = <CH_OFFSTATE_PULLDOWN>;