Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: staging: iio: cdc: ad7746: add binding documentation for AD7746

Add device tree binding documentation for AD7746 cdc in YAML format.

Signed-off-by: Lucas Stankus <lucas.p.stankus@gmail.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/2c2f4d486a94e0740e112bfac0d9306bdb7ea69c.1619841953.git.lucas.p.stankus@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Lucas Stankus and committed by
Jonathan Cameron
13f212e1 53ebee94

+77
+77
Documentation/devicetree/bindings/iio/cdc/adi,ad7746.yaml
··· 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 + 7 + title: AD7746 24-Bit Capacitance-to-Digital Converter with Temperature Sensor 8 + 9 + maintainers: 10 + - Michael Hennerich <michael.hennerich@analog.com> 11 + 12 + description: | 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 + 18 + properties: 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 + 54 + required: 55 + - compatible 56 + - reg 57 + 58 + additionalProperties: false 59 + 60 + examples: 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 + ...