xref: /freebsd/sys/contrib/device-tree/Bindings/iio/cdc/adi,ad7746.yaml (revision 02e9120893770924227138ba49df1edb3896112a)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/cdc/adi,ad7746.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: AD7746 24-Bit Capacitance-to-Digital Converter with Temperature Sensor
8
9maintainers:
10  - Michael Hennerich <michael.hennerich@analog.com>
11
12description: |
13  AD7746 24-Bit Capacitance-to-Digital Converter with Temperature Sensor
14
15  Specifications about the part can be found at:
16  https://www.analog.com/media/en/technical-documentation/data-sheets/ad7291.pdf
17
18properties:
19  compatible:
20    enum:
21      - adi,ad7745
22      - adi,ad7746
23      - adi,ad7747
24
25  reg:
26    maxItems: 1
27
28  adi,excitation-vdd-permille:
29    description: |
30      Set VDD per mille to be used as the excitation voltage.
31    $ref: /schemas/types.yaml#/definitions/uint32
32    enum: [125, 250, 375, 500]
33
34  adi,exca-output-en:
35    description: Enables the EXCA pin as the excitation output.
36    type: boolean
37
38  adi,exca-output-invert:
39    description: |
40      Inverts the excitation output in the EXCA pin.
41      Normally only one of the EXCX pins would be inverted, check the following
42      application notes for more details
43      https://www.analog.com/media/en/technical-documentation/application-notes/AN-1585.pdf
44    type: boolean
45
46  adi,excb-output-en:
47    description: Enables the EXCB pin as the excitation output.
48    type: boolean
49
50  adi,excb-output-invert:
51    description: Inverts the excitation output in the EXCB pin.
52    type: boolean
53
54required:
55  - compatible
56  - reg
57
58additionalProperties: false
59
60examples:
61  - |
62    i2c {
63      #address-cells = <1>;
64      #size-cells = <0>;
65
66      ad7746: cdc@48 {
67        compatible = "adi,ad7746";
68        reg = <0x48>;
69        adi,excitation-vdd-permille = <125>;
70
71        adi,exca-output-en;
72        adi,exca-output-invert;
73        adi,excb-output-en;
74        adi,excb-output-invert;
75      };
76    };
77...
78