xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/adi,ad7292.yaml (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/iio/adc/adi,ad7292.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: Analog Devices AD7292 10-Bit Monitor and Control System
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Marcelo Schmitt <marcelo.schmitt1@gmail.com>
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel Vadotdescription: |
13c66ec88fSEmmanuel Vadot  Analog Devices AD7292 10-Bit Monitor and Control System with ADC, DACs,
14c66ec88fSEmmanuel Vadot  Temperature Sensor, and GPIOs
15c66ec88fSEmmanuel Vadot
16c66ec88fSEmmanuel Vadot  Specifications about the part can be found at:
17c66ec88fSEmmanuel Vadot    https://www.analog.com/media/en/technical-documentation/data-sheets/ad7292.pdf
18c66ec88fSEmmanuel Vadot
19c66ec88fSEmmanuel Vadotproperties:
20c66ec88fSEmmanuel Vadot  compatible:
21c66ec88fSEmmanuel Vadot    enum:
22c66ec88fSEmmanuel Vadot      - adi,ad7292
23c66ec88fSEmmanuel Vadot
24c66ec88fSEmmanuel Vadot  reg:
25c66ec88fSEmmanuel Vadot    maxItems: 1
26c66ec88fSEmmanuel Vadot
27c66ec88fSEmmanuel Vadot  vref-supply:
28c66ec88fSEmmanuel Vadot    description: |
29c66ec88fSEmmanuel Vadot      The regulator supply for ADC and DAC reference voltage.
30c66ec88fSEmmanuel Vadot
31c66ec88fSEmmanuel Vadot  spi-cpha: true
32c66ec88fSEmmanuel Vadot
33c66ec88fSEmmanuel Vadot  '#address-cells':
34c66ec88fSEmmanuel Vadot    const: 1
35c66ec88fSEmmanuel Vadot
36c66ec88fSEmmanuel Vadot  '#size-cells':
37c66ec88fSEmmanuel Vadot    const: 0
38c66ec88fSEmmanuel Vadot
39c66ec88fSEmmanuel Vadotrequired:
40c66ec88fSEmmanuel Vadot  - compatible
41c66ec88fSEmmanuel Vadot  - reg
42c66ec88fSEmmanuel Vadot  - spi-cpha
43c66ec88fSEmmanuel Vadot
44c66ec88fSEmmanuel VadotpatternProperties:
45c66ec88fSEmmanuel Vadot  "^channel@[0-7]$":
46cb7aa33aSEmmanuel Vadot    $ref: adc.yaml
47c66ec88fSEmmanuel Vadot    type: object
48c66ec88fSEmmanuel Vadot    description: |
49c66ec88fSEmmanuel Vadot      Represents the external channels which are connected to the ADC.
50c66ec88fSEmmanuel Vadot
51c66ec88fSEmmanuel Vadot    properties:
52c66ec88fSEmmanuel Vadot      reg:
53c66ec88fSEmmanuel Vadot        description: |
54c66ec88fSEmmanuel Vadot          The channel number. It can have up to 8 channels numbered from 0 to 7.
55c66ec88fSEmmanuel Vadot        items:
56c66ec88fSEmmanuel Vadot          - minimum: 0
57c66ec88fSEmmanuel Vadot            maximum: 7
58c66ec88fSEmmanuel Vadot
595def4c47SEmmanuel Vadot      diff-channels: true
60c66ec88fSEmmanuel Vadot
61c66ec88fSEmmanuel Vadot    required:
62c66ec88fSEmmanuel Vadot      - reg
63c66ec88fSEmmanuel Vadot
64*aa1a8ff2SEmmanuel Vadot    additionalProperties: false
655def4c47SEmmanuel Vadot
667ef62cebSEmmanuel VadotallOf:
677ef62cebSEmmanuel Vadot  - $ref: /schemas/spi/spi-peripheral-props.yaml#
687ef62cebSEmmanuel Vadot
697ef62cebSEmmanuel VadotunevaluatedProperties: false
706be33864SEmmanuel Vadot
71c66ec88fSEmmanuel Vadotexamples:
72c66ec88fSEmmanuel Vadot  - |
73c66ec88fSEmmanuel Vadot    spi {
74c66ec88fSEmmanuel Vadot      #address-cells = <1>;
75c66ec88fSEmmanuel Vadot      #size-cells = <0>;
76c66ec88fSEmmanuel Vadot
77c66ec88fSEmmanuel Vadot      ad7292: adc@0 {
78c66ec88fSEmmanuel Vadot        compatible = "adi,ad7292";
79c66ec88fSEmmanuel Vadot        reg = <0>;
80c66ec88fSEmmanuel Vadot        spi-max-frequency = <25000000>;
81c66ec88fSEmmanuel Vadot        vref-supply = <&adc_vref>;
82c66ec88fSEmmanuel Vadot        spi-cpha;
83c66ec88fSEmmanuel Vadot
84c66ec88fSEmmanuel Vadot        #address-cells = <1>;
85c66ec88fSEmmanuel Vadot        #size-cells = <0>;
86c66ec88fSEmmanuel Vadot
87c66ec88fSEmmanuel Vadot        channel@0 {
88c66ec88fSEmmanuel Vadot          reg = <0>;
89c66ec88fSEmmanuel Vadot          diff-channels = <0 1>;
90c66ec88fSEmmanuel Vadot        };
91c66ec88fSEmmanuel Vadot        channel@2 {
92c66ec88fSEmmanuel Vadot          reg = <2>;
93c66ec88fSEmmanuel Vadot        };
94c66ec88fSEmmanuel Vadot        channel@3 {
95c66ec88fSEmmanuel Vadot          reg = <3>;
96c66ec88fSEmmanuel Vadot        };
97c66ec88fSEmmanuel Vadot        channel@4 {
98c66ec88fSEmmanuel Vadot          reg = <4>;
99c66ec88fSEmmanuel Vadot        };
100c66ec88fSEmmanuel Vadot        channel@5 {
101c66ec88fSEmmanuel Vadot          reg = <5>;
102c66ec88fSEmmanuel Vadot        };
103c66ec88fSEmmanuel Vadot        channel@6 {
104c66ec88fSEmmanuel Vadot          reg = <6>;
105c66ec88fSEmmanuel Vadot        };
106c66ec88fSEmmanuel Vadot        channel@7 {
107c66ec88fSEmmanuel Vadot          reg = <7>;
108c66ec88fSEmmanuel Vadot        };
109c66ec88fSEmmanuel Vadot      };
110c66ec88fSEmmanuel Vadot    };
111