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.
51 description: refin2 supply can be used as reference for conversion.
55 description: avdd supply can be used as reference for conversion.
66 "^channel@([0-9]|1[0-5])$":
69 Represents the external channels which are connected to the ADC.
70 See Documentation/devicetree/bindings/iio/adc/adc.txt.
75 The channel number. It can have up to 8 channels on ad7124-4
76 and 16 channels on ad7124-8, numbered from 0 to 15.
83 Select the reference source to use when converting on
84 the specific channel. Valid values are:
85 0: REFIN1(+)/REFIN1(−).
86 1: REFIN2(+)/REFIN2(−).
88 If this field is left empty, internal reference is selected.
90 - $ref: /schemas/types.yaml#/definitions/uint32
94 description: see Documentation/devicetree/bindings/iio/adc/adc.txt
100 description: see Documentation/devicetree/bindings/iio/adc/adc.txt
103 adi,buffered-positive:
104 description: Enable buffered mode for positive input.
107 adi,buffered-negative:
108 description: Enable buffered mode for negative input.
118 #address-cells = <1>;
122 compatible = "adi,ad7124-4";
124 spi-max-frequency = <5000000>;
126 interrupt-parent = <&gpio>;
127 refin1-supply = <&adc_vref>;
128 clocks = <&ad7124_mclk>;
129 clock-names = "mclk";
131 #address-cells = <1>;
136 diff-channels = <0 1>;
137 adi,reference-select = <0>;
138 adi,buffered-positive;
144 diff-channels = <2 3>;
145 adi,reference-select = <0>;
146 adi,buffered-positive;
147 adi,buffered-negative;
152 diff-channels = <4 5>;
157 diff-channels = <6 7>;