0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 # Copyright 2019 Analog Devices Inc.
0003 %YAML 1.2
0004 ---
0005 $id: http://devicetree.org/schemas/iio/adc/adi,ad7192.yaml#
0006 $schema: http://devicetree.org/meta-schemas/core.yaml#
0007
0008 title: Analog Devices AD7192 ADC device driver
0009
0010 maintainers:
0011 - Michael Hennerich <michael.hennerich@analog.com>
0012
0013 description: |
0014 Bindings for the Analog Devices AD7192 ADC device. Datasheet can be
0015 found here:
0016 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7192.pdf
0017
0018 properties:
0019 compatible:
0020 enum:
0021 - adi,ad7190
0022 - adi,ad7192
0023 - adi,ad7193
0024 - adi,ad7195
0025
0026 reg:
0027 maxItems: 1
0028
0029 spi-cpol: true
0030
0031 spi-cpha: true
0032
0033 spi-max-frequency: true
0034
0035 clocks:
0036 maxItems: 1
0037 description: phandle to the master clock (mclk)
0038
0039 clock-names:
0040 items:
0041 - const: mclk
0042
0043 interrupts:
0044 maxItems: 1
0045
0046 dvdd-supply:
0047 description: DVdd voltage supply
0048
0049 avdd-supply:
0050 description: AVdd voltage supply
0051
0052 adi,rejection-60-Hz-enable:
0053 description: |
0054 This bit enables a notch at 60 Hz when the first notch of the sinc
0055 filter is at 50 Hz. When REJ60 is set, a filter notch is placed at
0056 60 Hz when the sinc filter first notch is at 50 Hz. This allows
0057 simultaneous 50 Hz/ 60 Hz rejection.
0058 type: boolean
0059
0060 adi,refin2-pins-enable:
0061 description: |
0062 External reference applied between the P1/REFIN2(+) and P0/REFIN2(−) pins.
0063 type: boolean
0064
0065 adi,buffer-enable:
0066 description: |
0067 Enables the buffer on the analog inputs. If cleared, the analog inputs
0068 are unbuffered, lowering the power consumption of the device. If this
0069 bit is set, the analog inputs are buffered, allowing the user to place
0070 source impedances on the front end without contributing gain errors to
0071 the system.
0072 type: boolean
0073
0074 adi,burnout-currents-enable:
0075 description: |
0076 When this bit is set to 1, the 500 nA current sources in the signal
0077 path are enabled. When BURN = 0, the burnout currents are disabled.
0078 The burnout currents can be enabled only when the buffer is active
0079 and when chop is disabled.
0080 type: boolean
0081
0082 bipolar:
0083 description: see Documentation/devicetree/bindings/iio/adc/adc.yaml
0084 type: boolean
0085
0086 required:
0087 - compatible
0088 - reg
0089 - clocks
0090 - clock-names
0091 - interrupts
0092 - dvdd-supply
0093 - avdd-supply
0094 - spi-cpol
0095 - spi-cpha
0096
0097 additionalProperties: false
0098
0099 examples:
0100 - |
0101 spi0 {
0102 #address-cells = <1>;
0103 #size-cells = <0>;
0104
0105 adc@0 {
0106 compatible = "adi,ad7192";
0107 reg = <0>;
0108 spi-max-frequency = <1000000>;
0109 spi-cpol;
0110 spi-cpha;
0111 clocks = <&ad7192_mclk>;
0112 clock-names = "mclk";
0113 interrupts = <25 0x2>;
0114 interrupt-parent = <&gpio>;
0115 dvdd-supply = <&dvdd>;
0116 avdd-supply = <&avdd>;
0117
0118 adi,refin2-pins-enable;
0119 adi,rejection-60-Hz-enable;
0120 adi,buffer-enable;
0121 adi,burnout-currents-enable;
0122 };
0123 };