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