Path: blob/master/Documentation/devicetree/bindings/iio/adc/adi,ad7780.yaml
26309 views
# SPDX-License-Identifier: GPL-2.01%YAML 1.22---3$id: http://devicetree.org/schemas/iio/adc/adi,ad7780.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Analog Devices AD7170/AD7171/AD7780/AD7781 analog to digital converters78maintainers:9- Michael Hennerich <michael.hennerich@analog.com>1011description: |12The ad7780 is a sigma-delta analog to digital converter. This driver provides13reading voltage values and status bits from both the ad778x and ad717x series.14Its interface also allows writing on the FILTER and GAIN GPIO pins on the15ad778x.1617Specifications on the converters can be found at:18AD7170:19https://www.analog.com/media/en/technical-documentation/data-sheets/AD7170.pdf20AD7171:21https://www.analog.com/media/en/technical-documentation/data-sheets/AD7171.pdf22AD7780:23https://www.analog.com/media/en/technical-documentation/data-sheets/ad7780.pdf24AD7781:25https://www.analog.com/media/en/technical-documentation/data-sheets/AD7781.pdf2627properties:28compatible:29enum:30- adi,ad717031- adi,ad717132- adi,ad778033- adi,ad77813435reg:36maxItems: 13738avdd-supply:39description:40The regulator supply for the ADC reference voltage.4142powerdown-gpios:43description:44Must be the device tree identifier of the PDRST pin. If45specified, it will be asserted during driver probe. As the46line is active high, it should be marked GPIO_ACTIVE_HIGH.47maxItems: 14849adi,gain-gpios:50description:51Must be the device tree identifier of the GAIN pin. Only for52the ad778x chips. If specified, it will be asserted during53driver probe. As the line is active low, it should be marked54GPIO_ACTIVE_LOW.55maxItems: 15657adi,filter-gpios:58description:59Must be the device tree identifier of the FILTER pin. Only60for the ad778x chips. If specified, it will be asserted61during driver probe. As the line is active low, it should be62marked GPIO_ACTIVE_LOW.63maxItems: 16465rdy-gpios:66description:67GPIO reading the R̅D̅Y̅ line. Having such a GPIO is technically optional but68highly recommended because DOUT/R̅D̅Y̅ toggles during SPI transfers (in its69DOUT aka MISO role) and so usually triggers a spurious interrupt. The70distinction between such a spurious event and a real one can only be done71by reading such a GPIO. (There is a register telling the same72information, but accessing that one needs a SPI transfer which then73triggers another interrupt event.)74maxItems: 17576required:77- compatible78- reg7980additionalProperties: false8182examples:83- |84#include <dt-bindings/gpio/gpio.h>85spi {86#address-cells = <1>;87#size-cells = <0>;8889adc@0 {90compatible = "adi,ad7780";91reg = <0>;9293avdd-supply = <&vdd_supply>;94powerdown-gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;95adi,gain-gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;96adi,filter-gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;97};98};99100101