Path: blob/main/sys/contrib/device-tree/Bindings/iio/adc/adi,ad7768-1.yaml
48406 views
# SPDX-License-Identifier: GPL-2.01%YAML 1.22---3$id: http://devicetree.org/schemas/iio/adc/adi,ad7768-1.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Analog Devices AD7768-1 ADC device driver78maintainers:9- Michael Hennerich <michael.hennerich@analog.com>1011description: |12Datasheet at:13https://www.analog.com/media/en/technical-documentation/data-sheets/ad7768-1.pdf1415properties:16compatible:17const: adi,ad7768-11819reg:20maxItems: 12122clocks:23maxItems: 12425clock-names:26const: mclk2728interrupts:29maxItems: 13031'#address-cells':32const: 13334'#size-cells':35const: 03637vref-supply:38description:39ADC reference voltage supply4041adi,sync-in-gpios:42maxItems: 143description:44Enables synchronization of multiple devices that require simultaneous45sampling. A pulse is always required if the configuration is changed46in any way, for example if the filter decimation rate changes.47As the line is active low, it should be marked GPIO_ACTIVE_LOW.4849reset-gpios:50maxItems: 15152spi-cpol: true5354spi-cpha: true5556"#io-channel-cells":57const: 15859required:60- compatible61- reg62- clocks63- clock-names64- vref-supply65- spi-cpol66- spi-cpha67- adi,sync-in-gpios6869patternProperties:70"^channel@([0-9]|1[0-5])$":71type: object72description: |73Represents the external channels which are connected to the device.7475properties:76reg:77maxItems: 178description: |79The channel number.8081label:82description: |83Unique name to identify which channel this is.84required:85- reg86additionalProperties: false8788allOf:89- $ref: /schemas/spi/spi-peripheral-props.yaml#9091unevaluatedProperties: false9293examples:94- |95#include <dt-bindings/interrupt-controller/irq.h>96#include <dt-bindings/gpio/gpio.h>97spi {98#address-cells = <1>;99#size-cells = <0>;100101adc@0 {102compatible = "adi,ad7768-1";103reg = <0>;104spi-max-frequency = <2000000>;105spi-cpol;106spi-cpha;107vref-supply = <&adc_vref>;108interrupts = <25 IRQ_TYPE_EDGE_RISING>;109interrupt-parent = <&gpio>;110adi,sync-in-gpios = <&gpio 22 GPIO_ACTIVE_LOW>;111reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>;112clocks = <&ad7768_mclk>;113clock-names = "mclk";114115#address-cells = <1>;116#size-cells = <0>;117118channel@0 {119reg = <0>;120label = "channel_0";121};122};123};124...125126127