xref: /linux/Documentation/devicetree/bindings/iio/adc/sigma-delta-modulator.yaml (revision c8d430db8eec7d4fd13a6bea27b7086a54eda6da)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/adc/sigma-delta-modulator.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Sigma delta modulator
8
9maintainers:
10  - Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
11
12properties:
13  compatible:
14    description: |
15      "sd-modulator" can be used as a generic SD modulator,
16      if the modulator is not specified in the compatible list.
17    enum:
18      - sd-modulator
19      - ads1201
20
21  '#io-backend-cells':
22    const: 0
23
24  '#io-channel-cells':
25    const: 0
26
27  vref-supply:
28    description: Phandle to the vref input analog reference voltage.
29
30dependencies:
31  vref-supply: [ '#io-backend-cells' ]
32
33required:
34  - compatible
35
36anyOf:
37  - required: ['#io-backend-cells']
38  - required: ['#io-channel-cells']
39
40additionalProperties: false
41
42examples:
43  - |
44    // Backend binding example. SD modulator configured as an IIO backend device
45    ads1201_0: adc {
46      compatible = "sd-modulator";
47      vref-supply = <&vdd_adc>;
48      #io-backend-cells = <0>;
49    };
50
51  - |
52    // Legacy binding example. SD modulator configured as an IIO channel provider
53    ads1201_1: adc {
54      compatible = "sd-modulator";
55      #io-channel-cells = <0>;
56    };
57
58...
59