1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 # Copyright 2019 Analog Devices Inc.
5 $id: http://devicetree.org/schemas/bindings/iio/adc/adi,ad7124.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Analog Devices AD7124 ADC device driver
11 - Stefan Popa <stefan.popa@analog.com>
14 Bindings for the Analog Devices AD7124 ADC device. Datasheet can be
16 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7124-8.pdf
25 description: SPI chip select number for the device
30 description: phandle to the master clock (mclk)
37 description: IRQ line for the ADC
47 description: refin1 supply can be used as reference for conversion.
50 description: refin2 supply can be used as reference for conversion.
53 description: avdd supply can be used as reference for conversion.
63 "^channel@([0-9]|1[0-5])$":
66 Represents the external channels which are connected to the ADC.
67 See Documentation/devicetree/bindings/iio/adc/adc.txt.
72 The channel number. It can have up to 8 channels on ad7124-4
73 and 16 channels on ad7124-8, numbered from 0 to 15.
80 Select the reference source to use when converting on
81 the specific channel. Valid values are:
82 0: REFIN1(+)/REFIN1(−).
83 1: REFIN2(+)/REFIN2(−).
85 If this field is left empty, internal reference is selected.
87 - $ref: /schemas/types.yaml#/definitions/uint32
91 description: see Documentation/devicetree/bindings/iio/adc/adc.txt
97 description: see Documentation/devicetree/bindings/iio/adc/adc.txt
100 adi,buffered-positive:
101 description: Enable buffered mode for positive input.
104 adi,buffered-negative:
105 description: Enable buffered mode for negative input.
115 #address-cells = <1>;
119 compatible = "adi,ad7124-4";
121 spi-max-frequency = <5000000>;
123 interrupt-parent = <&gpio>;
124 refin1-supply = <&adc_vref>;
125 clocks = <&ad7124_mclk>;
126 clock-names = "mclk";
128 #address-cells = <1>;
133 diff-channels = <0 1>;
134 adi,reference-select = <0>;
135 adi,buffered-positive;
141 diff-channels = <2 3>;
142 adi,reference-select = <0>;
143 adi,buffered-positive;
144 adi,buffered-negative;
149 diff-channels = <4 5>;
154 diff-channels = <6 7>;