Path: blob/main/sys/contrib/device-tree/Bindings/iio/adc/adi,ad7780.yaml
48406 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: 16465required:66- compatible67- reg6869additionalProperties: false7071examples:72- |73#include <dt-bindings/gpio/gpio.h>74spi {75#address-cells = <1>;76#size-cells = <0>;7778adc@0 {79compatible = "adi,ad7780";80reg = <0>;8182avdd-supply = <&vdd_supply>;83powerdown-gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;84adi,gain-gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;85adi,filter-gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;86};87};888990