Path: blob/master/Documentation/devicetree/bindings/iio/adc/adi,max11410.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1# Copyright 2022 Analog Devices Inc.2%YAML 1.23---4$id: http://devicetree.org/schemas/iio/adc/adi,max11410.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#67title: Analog Devices MAX11410 ADC device driver89maintainers:10- Ibrahim Tilki <Ibrahim.Tilki@analog.com>1112description: |13Bindings for the Analog Devices MAX11410 ADC device. Datasheet can be14found here:15https://datasheets.maximintegrated.com/en/ds/MAX11410.pdf1617properties:18compatible:19enum:20- adi,max114102122reg:23maxItems: 12425interrupts:26minItems: 127maxItems: 22829interrupt-names:30description: Name of the gpio pin of max11410 used for IRQ31minItems: 132items:33- enum: [gpio0, gpio1]34- const: gpio13536'#address-cells':37const: 13839'#size-cells':40const: 04142avdd-supply:43description: Optional avdd supply. Used as reference when no explicit reference supplied.4445vref0p-supply:46description: vref0p supply can be used as reference for conversion.4748vref1p-supply:49description: vref1p supply can be used as reference for conversion.5051vref2p-supply:52description: vref2p supply can be used as reference for conversion.5354vref0n-supply:55description: vref0n supply can be used as reference for conversion.5657vref1n-supply:58description: vref1n supply can be used as reference for conversion.5960vref2n-supply:61description: vref2n supply can be used as reference for conversion.6263spi-max-frequency:64maximum: 80000006566patternProperties:67"^channel(@[0-9])?$":68$ref: adc.yaml69type: object70description: Represents the external channels which are connected to the ADC.7172properties:73reg:74description: The channel number in single-ended mode.75minimum: 076maximum: 97778adi,reference:79description: |80Select the reference source to use when converting on81the specific channel. Valid values are:820: VREF0P/VREF0N831: VREF1P/VREF1N842: VREF2P/VREF2N853: AVDD/AGND864: VREF0P/AGND875: VREF1P/AGND886: VREF2P/AGND89If this field is left empty, AVDD/AGND is selected.90$ref: /schemas/types.yaml#/definitions/uint3291enum: [0, 1, 2, 3, 4, 5, 6]92default: 39394adi,input-mode:95description: |96Select signal path of input channels. Valid values are:970: Buffered, low-power, unity-gain path (default)981: Bypass path992: PGA path100$ref: /schemas/types.yaml#/definitions/uint32101enum: [0, 1, 2]102default: 0103104diff-channels: true105106bipolar: true107108settling-time-us: true109110adi,buffered-vrefp:111description: Enable buffered mode for positive reference.112type: boolean113114adi,buffered-vrefn:115description: Enable buffered mode for negative reference.116type: boolean117118required:119- reg120121additionalProperties: false122123required:124- compatible125- reg126127allOf:128- $ref: /schemas/spi/spi-peripheral-props.yaml#129130unevaluatedProperties: false131132examples:133- |134#include <dt-bindings/interrupt-controller/irq.h>135spi {136#address-cells = <1>;137#size-cells = <0>;138139adc@0 {140reg = <0>;141compatible = "adi,max11410";142spi-max-frequency = <8000000>;143144interrupt-parent = <&gpio>;145interrupts = <25 IRQ_TYPE_EDGE_FALLING>;146interrupt-names = "gpio1";147148avdd-supply = <&adc_avdd>;149150vref1p-supply = <&adc_vref1p>;151vref1n-supply = <&adc_vref1n>;152153#address-cells = <1>;154#size-cells = <0>;155156channel@0 {157reg = <0>;158};159160channel@1 {161reg = <1>;162diff-channels = <2 3>;163adi,reference = <1>;164bipolar;165settling-time-us = <100000>;166};167168channel@2 {169reg = <2>;170diff-channels = <7 9>;171adi,reference = <5>;172adi,input-mode = <2>;173settling-time-us = <50000>;174};175};176};177178179