summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/iio/adc/sigma-delta-modulator.yaml
blob: c3a116427dc3be79cfca3d2b93c4eaef7d0f0425 (plain)
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
51
52
53
54
55
56
57
58
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/iio/adc/sigma-delta-modulator.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Sigma delta modulator

maintainers:
  - Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>

properties:
  compatible:
    description: |
      "sd-modulator" can be used as a generic SD modulator,
      if the modulator is not specified in the compatible list.
    enum:
      - sd-modulator
      - ads1201

  '#io-backend-cells':
    const: 0

  '#io-channel-cells':
    const: 0

  vref-supply:
    description: Phandle to the vref input analog reference voltage.

dependencies:
  vref-supply: [ '#io-backend-cells' ]

required:
  - compatible

anyOf:
  - required: ['#io-backend-cells']
  - required: ['#io-channel-cells']

additionalProperties: false

examples:
  - |
    // Backend binding example. SD modulator configured as an IIO backend device
    ads1201_0: adc {
      compatible = "sd-modulator";
      vref-supply = <&vdd_adc>;
      #io-backend-cells = <0>;
    };

  - |
    // Legacy binding example. SD modulator configured as an IIO channel provider
    ads1201_1: adc {
      compatible = "sd-modulator";
      #io-channel-cells = <0>;
    };

...