1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/iio/adc/adi,ad7606.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Analog Devices AD7606 Simultaneous Sampling ADC
10 - Michael Hennerich <michael.hennerich@analog.com>
13 Analog Devices AD7606 Simultaneous Sampling ADC
14 https://www.analog.com/media/en/technical-documentation/data-sheets/ad7606_7606-6_7606-4.pdf
15 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7606B.pdf
16 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7616.pdf
35 spi-max-frequency: true
42 adi,conversion-start-gpios:
44 Must be the device tree identifier of the CONVST pin.
45 This logic input is used to initiate conversions on the analog
46 input channels. As the line is active high, it should be marked
52 Must be the device tree identifier of the RESET pin. If specified,
53 it will be asserted during driver probe. As the line is active high,
54 it should be marked GPIO_ACTIVE_HIGH.
59 Must be the device tree identifier of the STBY pin. This pin is used
60 to place the AD7606 into one of two power-down modes, Standby mode or
61 Shutdown mode. As the line is active low, it should be marked
67 Must be the device tree identifier of the FRSTDATA pin.
68 The FRSTDATA output indicates when the first channel, V1, is
69 being read back on either the parallel, byte or serial interface.
70 As the line is active high, it should be marked GPIO_ACTIVE_HIGH.
75 Must be the device tree identifier of the RANGE pin. The polarity on
76 this pin determines the input range of the analog input channels. If
77 this pin is tied to a logic high, the analog input range is ±10V for
78 all channels. If this pin is tied to a logic low, the analog input range
79 is ±5V for all channels. As the line is active high, it should be marked
83 adi,oversampling-ratio-gpios:
85 Must be the device tree identifier of the over-sampling
86 mode pins. As the line is active high, it should be marked
92 Software mode of operation, so far available only for ad7616 and ad7606b.
93 It is enabled when all three oversampling mode pins are connected to
94 high level. The device is configured by the corresponding registers. If the
95 adi,oversampling-ratio-gpios property is defined, then the driver will set the
96 oversampling gpios to high. Otherwise, it is assumed that the pins are hardwired
106 - adi,conversion-start-gpios
108 additionalProperties: false
112 #include <dt-bindings/gpio/gpio.h>
113 #include <dt-bindings/interrupt-controller/irq.h>
115 #address-cells = <1>;
119 compatible = "adi,ad7606-8";
121 spi-max-frequency = <1000000>;
125 avcc-supply = <&adc_vref>;
127 interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
128 interrupt-parent = <&gpio>;
130 adi,conversion-start-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
131 reset-gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
132 adi,first-data-gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
133 adi,oversampling-ratio-gpios = <&gpio 18 GPIO_ACTIVE_HIGH>,
134 <&gpio 23 GPIO_ACTIVE_HIGH>,
135 <&gpio 26 GPIO_ACTIVE_HIGH>;
136 standby-gpios = <&gpio 24 GPIO_ACTIVE_LOW>;