Path: blob/main/sys/contrib/device-tree/Bindings/iio/adc/adc.yaml
48406 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.3940single-channel:41$ref: /schemas/types.yaml#/definitions/uint3242description:43When devices combine single-ended and differential channels, allow the44channel for a single element to be specified, independent of reg (as for45differential channels). If this and diff-channels are not present reg46shall be used instead.4748common-mode-channel:49$ref: /schemas/types.yaml#/definitions/uint3250description:51Some ADCs have differential input pins that can be used to measure52single-ended or pseudo-differential inputs. This property can be used53in addition to single-channel to signal software that this channel is54not differential but still specify two inputs.5556The input pair is specified by setting single-channel to the positive57input pin and common-mode-channel to the negative pin.5859settling-time-us:60description:61Time between enabling the channel and first stable readings.6263oversampling-ratio:64$ref: /schemas/types.yaml#/definitions/uint3265description:66Oversampling is used as replacement of or addition to the low-pass filter.67In some cases, the desired filtering characteristics are a function the68device design and can interact with other characteristics such as69settling time.7071anyOf:72- oneOf:73- required:74- reg75- diff-channels76- required:77- reg78- single-channel79- required:80- reg8182additionalProperties: true838485