0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/cdc/adi,ad7746.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: AD7746 24-Bit Capacitance-to-Digital Converter with Temperature Sensor
0008
0009 maintainers:
0010 - Michael Hennerich <michael.hennerich@analog.com>
0011
0012 description: |
0013 AD7746 24-Bit Capacitance-to-Digital Converter with Temperature Sensor
0014
0015 Specifications about the part can be found at:
0016 https://www.analog.com/media/en/technical-documentation/data-sheets/ad7291.pdf
0017
0018 properties:
0019 compatible:
0020 enum:
0021 - adi,ad7745
0022 - adi,ad7746
0023 - adi,ad7747
0024
0025 reg:
0026 maxItems: 1
0027
0028 adi,excitation-vdd-permille:
0029 description: |
0030 Set VDD per mille to be used as the excitation voltage.
0031 $ref: /schemas/types.yaml#/definitions/uint32
0032 enum: [125, 250, 375, 500]
0033
0034 adi,exca-output-en:
0035 description: Enables the EXCA pin as the excitation output.
0036 type: boolean
0037
0038 adi,exca-output-invert:
0039 description: |
0040 Inverts the excitation output in the EXCA pin.
0041 Normally only one of the EXCX pins would be inverted, check the following
0042 application notes for more details
0043 https://www.analog.com/media/en/technical-documentation/application-notes/AN-1585.pdf
0044 type: boolean
0045
0046 adi,excb-output-en:
0047 description: Enables the EXCB pin as the excitation output.
0048 type: boolean
0049
0050 adi,excb-output-invert:
0051 description: Inverts the excitation output in the EXCB pin.
0052 type: boolean
0053
0054 required:
0055 - compatible
0056 - reg
0057
0058 additionalProperties: false
0059
0060 examples:
0061 - |
0062 i2c {
0063 #address-cells = <1>;
0064 #size-cells = <0>;
0065
0066 ad7746: cdc@48 {
0067 compatible = "adi,ad7746";
0068 reg = <0x48>;
0069 adi,excitation-vdd-permille = <125>;
0070
0071 adi,exca-output-en;
0072 adi,exca-output-invert;
0073 adi,excb-output-en;
0074 adi,excb-output-invert;
0075 };
0076 };
0077 ...