Path: blob/master/Documentation/devicetree/bindings/iio/adc/adc.yaml
26309 views
# SPDX-License-Identifier: GPL-2.01%YAML 1.22---3$id: http://devicetree.org/schemas/iio/adc/adc.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: IIO Common Properties for ADC Channels78maintainers:9- Jonathan Cameron <jic23@kernel.org>1011description:12A few properties are defined in a common way ADC channels.1314properties:15$nodename:16pattern: "^channel(@[0-9a-f]+)?$"17description:18A channel index should match reg.1920reg:21maxItems: 12223label:24description: Unique name to identify which channel this is.2526bipolar:27$ref: /schemas/types.yaml#/definitions/flag28description: If provided, the channel is to be used in bipolar mode.2930diff-channels:31$ref: /schemas/types.yaml#/definitions/uint32-array32maxItems: 233minItems: 234description:35Many ADCs have dual Muxes to allow different input pins to be routed36to both the positive and negative inputs of a differential ADC.37The first value specifies the positive input pin, the second38specifies the negative input pin.39There are also some ADCs, where the differential channel has dedicated40positive and negative inputs which can be used to measure differential41voltage levels. For those setups, this property can be configured with42the 'reg' property for both inputs (i.e. diff-channels = <reg reg>).4344single-channel:45$ref: /schemas/types.yaml#/definitions/uint3246description:47When devices combine single-ended and differential channels, allow the48channel for a single element to be specified, independent of reg (as for49differential channels). If this and diff-channels are not present reg50shall be used instead.5152common-mode-channel:53$ref: /schemas/types.yaml#/definitions/uint3254description:55Some ADCs have differential input pins that can be used to measure56single-ended or pseudo-differential inputs. This property can be used57in addition to single-channel to signal software that this channel is58not differential but still specify two inputs.5960The input pair is specified by setting single-channel to the positive61input pin and common-mode-channel to the negative pin.6263settling-time-us:64description:65Time between enabling the channel and first stable readings.6667oversampling-ratio:68$ref: /schemas/types.yaml#/definitions/uint3269description:70Oversampling is used as replacement of or addition to the low-pass filter.71In some cases, the desired filtering characteristics are a function the72device design and can interact with other characteristics such as73settling time.7475anyOf:76- oneOf:77- required:78- reg79- diff-channels80- required:81- reg82- single-channel83- required:84- reg8586additionalProperties: true878889