Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/adc/adi,ad7780.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Analog Devices AD7170/AD7171/AD7780/AD7781 analog to digital converters
0008 
0009 maintainers:
0010   - Michael Hennerich <michael.hennerich@analog.com>
0011 
0012 description: |
0013   The ad7780 is a sigma-delta analog to digital converter. This driver provides
0014   reading voltage values and status bits from both the ad778x and ad717x series.
0015   Its interface also allows writing on the FILTER and GAIN GPIO pins on the
0016   ad778x.
0017 
0018   Specifications on the converters can be found at:
0019     AD7170:
0020       https://www.analog.com/media/en/technical-documentation/data-sheets/AD7170.pdf
0021     AD7171:
0022       https://www.analog.com/media/en/technical-documentation/data-sheets/AD7171.pdf
0023     AD7780:
0024       https://www.analog.com/media/en/technical-documentation/data-sheets/ad7780.pdf
0025     AD7781:
0026       https://www.analog.com/media/en/technical-documentation/data-sheets/AD7781.pdf
0027 
0028 properties:
0029   compatible:
0030     enum:
0031       - adi,ad7170
0032       - adi,ad7171
0033       - adi,ad7780
0034       - adi,ad7781
0035 
0036   reg:
0037     maxItems: 1
0038 
0039   avdd-supply:
0040     description:
0041       The regulator supply for the ADC reference voltage.
0042 
0043   powerdown-gpios:
0044     description:
0045       Must be the device tree identifier of the PDRST pin. If
0046       specified, it will be asserted during driver probe. As the
0047       line is active high, it should be marked GPIO_ACTIVE_HIGH.
0048     maxItems: 1
0049 
0050   adi,gain-gpios:
0051     description:
0052       Must be the device tree identifier of the GAIN pin. Only for
0053       the ad778x chips. If specified, it will be asserted during
0054       driver probe. As the line is active low, it should be marked
0055       GPIO_ACTIVE_LOW.
0056     maxItems: 1
0057 
0058   adi,filter-gpios:
0059     description:
0060       Must be the device tree identifier of the FILTER pin. Only
0061       for the ad778x chips. If specified, it will be asserted
0062       during driver probe. As the line is active low, it should be
0063       marked GPIO_ACTIVE_LOW.
0064     maxItems: 1
0065 
0066 required:
0067   - compatible
0068   - reg
0069 
0070 additionalProperties: false
0071 
0072 examples:
0073   - |
0074     #include <dt-bindings/gpio/gpio.h>
0075     spi0 {
0076         #address-cells = <1>;
0077         #size-cells = <0>;
0078 
0079         adc@0 {
0080             compatible = "adi,ad7780";
0081             reg = <0>;
0082 
0083             avdd-supply      = <&vdd_supply>;
0084             powerdown-gpios  = <&gpio0 12 GPIO_ACTIVE_HIGH>;
0085             adi,gain-gpios   = <&gpio1  5 GPIO_ACTIVE_LOW>;
0086             adi,filter-gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
0087         };
0088     };