xref: /linux/Documentation/devicetree/bindings/iio/adc/adi,ad7298.yaml (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2# Copyright 2019 Analog Devices Inc.
3%YAML 1.2
4---
5$id: http://devicetree.org/schemas/iio/adc/adi,ad7298.yaml#
6$schema: http://devicetree.org/meta-schemas/core.yaml#
7
8title: Analog Devices AD7298 ADC
9
10maintainers:
11  - Michael Hennerich <michael.hennerich@analog.com>
12
13description: |
14  Bindings for the Analog Devices AD7298 ADC device. Datasheet can be
15  found here:
16    https://www.analog.com/en/products/ad7298.html
17
18properties:
19  compatible:
20    const: adi,ad7298
21
22  reg:
23    maxItems: 1
24
25  vref-supply: true
26  vdd-supply: true
27
28required:
29  - compatible
30  - reg
31
32allOf:
33  - $ref: /schemas/spi/spi-peripheral-props.yaml#
34
35unevaluatedProperties: false
36
37examples:
38  - |
39    spi {
40      #address-cells = <1>;
41      #size-cells = <0>;
42
43      adc@0 {
44        compatible = "adi,ad7298";
45        reg = <0>;
46        spi-max-frequency = <5000000>;
47        vref-supply = <&adc_vref>;
48      };
49    };
50...
51