Path: blob/master/Documentation/devicetree/bindings/iio/adc/adi,ad4030.yaml
53644 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1# Copyright 2024 Analog Devices Inc.2# Copyright 2024 BayLibre, SAS.3%YAML 1.24---5$id: http://devicetree.org/schemas/iio/adc/adi,ad4030.yaml#6$schema: http://devicetree.org/meta-schemas/core.yaml#78title: Analog Devices AD4030 and AD4630 ADC families910maintainers:11- Michael Hennerich <michael.hennerich@analog.com>12- Nuno Sa <nuno.sa@analog.com>1314description: |15Analog Devices AD4030 single channel and AD4630/AD4632 dual channel precision16SAR ADC families1718* https://www.analog.com/media/en/technical-documentation/data-sheets/ad4030-24-4032-24.pdf19* https://www.analog.com/media/en/technical-documentation/data-sheets/ad4630-24_ad4632-24.pdf20* https://www.analog.com/media/en/technical-documentation/data-sheets/ad4630-16-4632-16.pdf2122properties:23compatible:24enum:25- adi,ad4030-2426- adi,ad4032-2427- adi,ad4630-1628- adi,ad4630-2429- adi,ad4632-1630- adi,ad4632-243132reg:33maxItems: 13435spi-max-frequency:36maximum: 1020408163738spi-rx-bus-width:39maxItems: 240# all lanes must have the same width41oneOf:42- contains:43const: 144- contains:45const: 246- contains:47const: 44849vdd-5v-supply: true50vdd-1v8-supply: true51vio-supply: true5253ref-supply:54description:55Optional External unbuffered reference. Used when refin-supply is not56connected.5758refin-supply:59description:60Internal buffered Reference. Used when ref-supply is not connected.6162cnv-gpios:63description:64The Convert Input (CNV). It initiates the sampling conversions.65maxItems: 16667reset-gpios:68description:69The Reset Input (/RST). Used for asynchronous device reset.70maxItems: 17172interrupts:73description:74The BUSY pin is used to signal that the conversions results are available75to be transferred when in SPI Clocking Mode. This nodes should be76connected to an interrupt that is triggered when the BUSY line goes low.77maxItems: 17879interrupt-names:80const: busy8182required:83- compatible84- reg85- vdd-5v-supply86- vdd-1v8-supply87- vio-supply88- cnv-gpios8990oneOf:91- required:92- ref-supply93- required:94- refin-supply9596unevaluatedProperties: false9798allOf:99- if:100properties:101compatible:102enum:103- adi,ad4030-24104- adi,ad4032-24105then:106properties:107spi-rx-bus-width:108maxItems: 1109110examples:111- |112#include <dt-bindings/gpio/gpio.h>113114spi {115#address-cells = <1>;116#size-cells = <0>;117118adc@0 {119compatible = "adi,ad4030-24";120reg = <0>;121spi-max-frequency = <80000000>;122vdd-5v-supply = <&supply_5V>;123vdd-1v8-supply = <&supply_1_8V>;124vio-supply = <&supply_1_8V>;125ref-supply = <&supply_5V>;126cnv-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;127reset-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;128};129};130- |131#include <dt-bindings/gpio/gpio.h>132133spi {134#address-cells = <1>;135#size-cells = <0>;136137adc@0 {138compatible = "adi,ad4630-24";139reg = <0>;140spi-max-frequency = <80000000>;141spi-rx-bus-width = <4>, <4>;142vdd-5v-supply = <&supply_5V>;143vdd-1v8-supply = <&supply_1_8V>;144vio-supply = <&supply_1_8V>;145ref-supply = <&supply_5V>;146cnv-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;147reset-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;148};149};150151152