xref: /linux/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml (revision ada971cbdc37bd1f0f9b6d7373c24b67e14c5c13)
1dd587a7fSMarcelo Schmitt# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2d898f9acSMarcelo Schmitt%YAML 1.2
3d898f9acSMarcelo Schmitt---
4d898f9acSMarcelo Schmitt$id: http://devicetree.org/schemas/iio/adc/adi,ad7292.yaml#
5d898f9acSMarcelo Schmitt$schema: http://devicetree.org/meta-schemas/core.yaml#
6d898f9acSMarcelo Schmitt
7d898f9acSMarcelo Schmitttitle: Analog Devices AD7292 10-Bit Monitor and Control System
8d898f9acSMarcelo Schmitt
9d898f9acSMarcelo Schmittmaintainers:
10d898f9acSMarcelo Schmitt  - Marcelo Schmitt <marcelo.schmitt1@gmail.com>
11d898f9acSMarcelo Schmitt
12d898f9acSMarcelo Schmittdescription: |
13d898f9acSMarcelo Schmitt  Analog Devices AD7292 10-Bit Monitor and Control System with ADC, DACs,
14d898f9acSMarcelo Schmitt  Temperature Sensor, and GPIOs
15d898f9acSMarcelo Schmitt
16d898f9acSMarcelo Schmitt  Specifications about the part can be found at:
17d898f9acSMarcelo Schmitt    https://www.analog.com/media/en/technical-documentation/data-sheets/ad7292.pdf
18d898f9acSMarcelo Schmitt
19d898f9acSMarcelo Schmittproperties:
20d898f9acSMarcelo Schmitt  compatible:
21d898f9acSMarcelo Schmitt    enum:
22d898f9acSMarcelo Schmitt      - adi,ad7292
23d898f9acSMarcelo Schmitt
24d898f9acSMarcelo Schmitt  reg:
25d898f9acSMarcelo Schmitt    maxItems: 1
26d898f9acSMarcelo Schmitt
27d898f9acSMarcelo Schmitt  vref-supply:
28d898f9acSMarcelo Schmitt    description: |
29d898f9acSMarcelo Schmitt      The regulator supply for ADC and DAC reference voltage.
30d898f9acSMarcelo Schmitt
31d898f9acSMarcelo Schmitt  spi-cpha: true
32d898f9acSMarcelo Schmitt
33d898f9acSMarcelo Schmitt  '#address-cells':
34d898f9acSMarcelo Schmitt    const: 1
35d898f9acSMarcelo Schmitt
36d898f9acSMarcelo Schmitt  '#size-cells':
37d898f9acSMarcelo Schmitt    const: 0
38d898f9acSMarcelo Schmitt
39d898f9acSMarcelo Schmittrequired:
40d898f9acSMarcelo Schmitt  - compatible
41d898f9acSMarcelo Schmitt  - reg
42d898f9acSMarcelo Schmitt  - spi-cpha
43d898f9acSMarcelo Schmitt
44d898f9acSMarcelo SchmittpatternProperties:
45d898f9acSMarcelo Schmitt  "^channel@[0-7]$":
46d898f9acSMarcelo Schmitt    type: object
47d898f9acSMarcelo Schmitt    description: |
48d898f9acSMarcelo Schmitt      Represents the external channels which are connected to the ADC.
49d898f9acSMarcelo Schmitt      See Documentation/devicetree/bindings/iio/adc/adc.txt.
50d898f9acSMarcelo Schmitt
51d898f9acSMarcelo Schmitt    properties:
52d898f9acSMarcelo Schmitt      reg:
53d898f9acSMarcelo Schmitt        description: |
54d898f9acSMarcelo Schmitt          The channel number. It can have up to 8 channels numbered from 0 to 7.
55d898f9acSMarcelo Schmitt        items:
56*ada971cbSMarcelo Schmitt          - minimum: 0
57d898f9acSMarcelo Schmitt            maximum: 7
58d898f9acSMarcelo Schmitt
59d898f9acSMarcelo Schmitt      diff-channels:
60d898f9acSMarcelo Schmitt        description: see Documentation/devicetree/bindings/iio/adc/adc.txt
61d898f9acSMarcelo Schmitt        maxItems: 1
62d898f9acSMarcelo Schmitt
63d898f9acSMarcelo Schmitt    required:
64d898f9acSMarcelo Schmitt      - reg
65d898f9acSMarcelo Schmitt
66d898f9acSMarcelo Schmittexamples:
67d898f9acSMarcelo Schmitt  - |
68d898f9acSMarcelo Schmitt    spi {
69d898f9acSMarcelo Schmitt      #address-cells = <1>;
70d898f9acSMarcelo Schmitt      #size-cells = <0>;
71d898f9acSMarcelo Schmitt
72d898f9acSMarcelo Schmitt      ad7292: adc@0 {
73d898f9acSMarcelo Schmitt        compatible = "adi,ad7292";
74d898f9acSMarcelo Schmitt        reg = <0>;
75d898f9acSMarcelo Schmitt        spi-max-frequency = <25000000>;
76d898f9acSMarcelo Schmitt        vref-supply = <&adc_vref>;
77d898f9acSMarcelo Schmitt        spi-cpha;
78d898f9acSMarcelo Schmitt
79d898f9acSMarcelo Schmitt        #address-cells = <1>;
80d898f9acSMarcelo Schmitt        #size-cells = <0>;
81d898f9acSMarcelo Schmitt
82d898f9acSMarcelo Schmitt        channel@0 {
83d898f9acSMarcelo Schmitt          reg = <0>;
84d898f9acSMarcelo Schmitt          diff-channels = <0 1>;
85d898f9acSMarcelo Schmitt        };
86d898f9acSMarcelo Schmitt        channel@2 {
87d898f9acSMarcelo Schmitt          reg = <2>;
88d898f9acSMarcelo Schmitt        };
89d898f9acSMarcelo Schmitt        channel@3 {
90d898f9acSMarcelo Schmitt          reg = <3>;
91d898f9acSMarcelo Schmitt        };
92d898f9acSMarcelo Schmitt        channel@4 {
93d898f9acSMarcelo Schmitt          reg = <4>;
94d898f9acSMarcelo Schmitt        };
95d898f9acSMarcelo Schmitt        channel@5 {
96d898f9acSMarcelo Schmitt          reg = <5>;
97d898f9acSMarcelo Schmitt        };
98d898f9acSMarcelo Schmitt        channel@6 {
99d898f9acSMarcelo Schmitt          reg = <6>;
100d898f9acSMarcelo Schmitt        };
101d898f9acSMarcelo Schmitt        channel@7 {
102d898f9acSMarcelo Schmitt          reg = <7>;
103d898f9acSMarcelo Schmitt        };
104d898f9acSMarcelo Schmitt      };
105d898f9acSMarcelo Schmitt    };
106