Path: blob/master/Documentation/devicetree/bindings/iio/adc/adi,ad7091r5.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/adc/adi,ad7091r5.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Analog Devices AD7091R-2/-4/-5/-8 Multi-Channel 12-Bit ADCs78maintainers:9- Michael Hennerich <michael.hennerich@analog.com>10- Marcelo Schmitt <marcelo.schmitt@analog.com>1112description: |13Analog Devices AD7091R5 4-Channel 12-Bit ADC supporting I2C interface14https://www.analog.com/media/en/technical-documentation/data-sheets/ad7091r-5.pdf15Analog Devices AD7091R-2/AD7091R-4/AD7091R-8 2-/4-/8-Channel 12-Bit ADCs16supporting SPI interface17https://www.analog.com/media/en/technical-documentation/data-sheets/AD7091R-2_7091R-4_7091R-8.pdf1819properties:20compatible:21enum:22- adi,ad7091r223- adi,ad7091r424- adi,ad7091r525- adi,ad7091r82627reg:28maxItems: 12930vdd-supply:31description:32Provide VDD power to the sensor (VDD range is from 2.7V to 5.25V).3334vdrive-supply:35description:36Determines the voltage level at which the interface logic will operate.37The V_drive voltage range is from 1.8V to 5.25V and must not exceed VDD by38more than 0.3V.3940vref-supply:41description:42Phandle to the vref power supply4344convst-gpios:45description:46GPIO connected to the CONVST pin.47This logic input is used to initiate conversions on the analog48input channels.49maxItems: 15051reset-gpios:52maxItems: 15354interrupts:55description:56Interrupt for signaling when conversion results exceed the high limit for57ADC readings or fall below the low limit for them. Interrupt source must58be attached to ALERT/BUSY/GPO0 pin.59maxItems: 16061required:62- compatible63- reg6465allOf:66- $ref: /schemas/spi/spi-peripheral-props.yaml#6768# AD7091R-2 does not have ALERT/BUSY/GPO pin69- if:70properties:71compatible:72contains:73enum:74- adi,ad7091r275then:76properties:77interrupts: false7879- if:80properties:81compatible:82contains:83enum:84- adi,ad7091r285- adi,ad7091r486- adi,ad7091r887then:88required:89- convst-gpios9091unevaluatedProperties: false9293examples:94- |95#include <dt-bindings/gpio/gpio.h>96#include <dt-bindings/interrupt-controller/irq.h>97i2c {98#address-cells = <1>;99#size-cells = <0>;100101adc@2f {102compatible = "adi,ad7091r5";103reg = <0x2f>;104105interrupts = <25 IRQ_TYPE_EDGE_FALLING>;106interrupt-parent = <&gpio>;107};108};109- |110#include <dt-bindings/gpio/gpio.h>111#include <dt-bindings/interrupt-controller/irq.h>112spi {113#address-cells = <1>;114#size-cells = <0>;115116adc@0 {117compatible = "adi,ad7091r8";118reg = <0x0>;119spi-max-frequency = <1000000>;120vref-supply = <&adc_vref>;121convst-gpios = <&gpio 25 GPIO_ACTIVE_LOW>;122reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>;123interrupts = <22 IRQ_TYPE_EDGE_FALLING>;124interrupt-parent = <&gpio>;125};126};127...128129130