xref: /freebsd/sys/contrib/device-tree/Bindings/iio/dac/dac.yaml (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1*b2d2a78aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*b2d2a78aSEmmanuel Vadot%YAML 1.2
3*b2d2a78aSEmmanuel Vadot---
4*b2d2a78aSEmmanuel Vadot$id: http://devicetree.org/schemas/iio/dac/dac.yaml#
5*b2d2a78aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*b2d2a78aSEmmanuel Vadot
7*b2d2a78aSEmmanuel Vadottitle: IIO Common Properties for DAC Channels
8*b2d2a78aSEmmanuel Vadot
9*b2d2a78aSEmmanuel Vadotmaintainers:
10*b2d2a78aSEmmanuel Vadot  - Jonathan Cameron <jic23@kernel.org>
11*b2d2a78aSEmmanuel Vadot
12*b2d2a78aSEmmanuel Vadotdescription:
13*b2d2a78aSEmmanuel Vadot  A few properties are defined in a common way for DAC channels.
14*b2d2a78aSEmmanuel Vadot
15*b2d2a78aSEmmanuel Vadotproperties:
16*b2d2a78aSEmmanuel Vadot  $nodename:
17*b2d2a78aSEmmanuel Vadot    pattern: "^channel(@[0-9a-f]+)?$"
18*b2d2a78aSEmmanuel Vadot    description:
19*b2d2a78aSEmmanuel Vadot      A channel index should match reg.
20*b2d2a78aSEmmanuel Vadot
21*b2d2a78aSEmmanuel Vadot  reg:
22*b2d2a78aSEmmanuel Vadot    maxItems: 1
23*b2d2a78aSEmmanuel Vadot
24*b2d2a78aSEmmanuel Vadot  label:
25*b2d2a78aSEmmanuel Vadot    description: Unique name to identify which channel this is.
26*b2d2a78aSEmmanuel Vadot
27*b2d2a78aSEmmanuel Vadot  output-range-microamp:
28*b2d2a78aSEmmanuel Vadot    maxItems: 2
29*b2d2a78aSEmmanuel Vadot    minItems: 2
30*b2d2a78aSEmmanuel Vadot    description:
31*b2d2a78aSEmmanuel Vadot      Specify the channel output full scale range in microamperes.
32*b2d2a78aSEmmanuel Vadot
33*b2d2a78aSEmmanuel Vadot  output-range-microvolt:
34*b2d2a78aSEmmanuel Vadot    maxItems: 2
35*b2d2a78aSEmmanuel Vadot    minItems: 2
36*b2d2a78aSEmmanuel Vadot    description:
37*b2d2a78aSEmmanuel Vadot      Specify the channel output full scale range in microvolts.
38*b2d2a78aSEmmanuel Vadot
39*b2d2a78aSEmmanuel VadotanyOf:
40*b2d2a78aSEmmanuel Vadot  - oneOf:
41*b2d2a78aSEmmanuel Vadot      - required:
42*b2d2a78aSEmmanuel Vadot          - reg
43*b2d2a78aSEmmanuel Vadot          - output-range-microamp
44*b2d2a78aSEmmanuel Vadot      - required:
45*b2d2a78aSEmmanuel Vadot          - reg
46*b2d2a78aSEmmanuel Vadot          - output-range-microvolt
47*b2d2a78aSEmmanuel Vadot  - required:
48*b2d2a78aSEmmanuel Vadot      - reg
49*b2d2a78aSEmmanuel Vadot
50*b2d2a78aSEmmanuel VadotadditionalProperties: true
51