Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/adc/adc.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Generic IIO bindings for ADC channels
0008 
0009 maintainers:
0010   - Jonathan Cameron <jic23@kernel.org>
0011 
0012 description:
0013   A few properties are defined in a common way ADC channels.
0014 
0015 properties:
0016   $nodename:
0017     pattern: "^channel(@[0-9a-f]+)?$"
0018     description:
0019       A channel index should match reg.
0020 
0021   reg:
0022     maxItems: 1
0023 
0024   label:
0025     $ref: /schemas/types.yaml#/definitions/string
0026     description: Unique name to identify which channel this is.
0027 
0028   bipolar:
0029     $ref: /schemas/types.yaml#/definitions/flag
0030     description: If provided, the channel is to be used in bipolar mode.
0031 
0032   diff-channels:
0033     $ref: /schemas/types.yaml#/definitions/uint32-array
0034     maxItems: 2
0035     minItems: 2
0036     description:
0037       Many ADCs have dual Muxes to allow different input pins to be routed
0038       to both the positive and negative inputs of a differential ADC.
0039       The first value specifies the positive input pin, the second
0040       specifies the negative input pin.
0041 
0042   settling-time-us:
0043     description:
0044       Time between enabling the channel and first stable readings.
0045 
0046   oversampling-ratio:
0047     $ref: /schemas/types.yaml#/definitions/uint32
0048     description:
0049       Oversampling is used as replacement of or addition to the low-pass filter.
0050       In some cases, the desired filtering characteristics are a function the
0051       device design and can interact with other characteristics such as
0052       settling time.
0053 
0054 additionalProperties: true