Documentation / devicetree / bindings / iio / dac / dac.yaml


Based on kernel version 6.12.4. Page generated on 2024-12-12 21:01 EST.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/iio/dac/dac.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: IIO Common Properties for DAC Channels

maintainers:
  - Jonathan Cameron <jic23@kernel.org>

description:
  A few properties are defined in a common way for DAC channels.

properties:
  $nodename:
    pattern: "^channel(@[0-9a-f]+)?$"
    description:
      A channel index should match reg.

  reg:
    maxItems: 1

  label:
    description: Unique name to identify which channel this is.

  output-range-microamp:
    maxItems: 2
    minItems: 2
    description:
      Specify the channel output full scale range in microamperes.

  output-range-microvolt:
    maxItems: 2
    minItems: 2
    description:
      Specify the channel output full scale range in microvolts.

anyOf:
  - oneOf:
      - required:
          - reg
          - output-range-microamp
      - required:
          - reg
          - output-range-microvolt
  - required:
      - reg

additionalProperties: true