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

dt-bindings:iio:cdc:adi,ad7150 binding doc

Binding covering the ad7150, ad7151 and ad7156 capacitance to digital
convertors. The only difference between these is how many channels they
have (1 or 2)

Whilst it is clearly necessary to provide power to the part, we don't
need to know the voltage or anything so if it is always on, there should
be no need to have it specified in the binding.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: devicetree@vger.kernel.org
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210314181511.531414-24-jic23@kernel.org

+69
+69
Documentation/devicetree/bindings/iio/cdc/adi,ad7150.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/iio/cdc/adi,ad7150.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Analog device AD7150 and similar capacitance to digital convertors. 8 + 9 + maintainers: 10 + - Jonathan Cameron <jic23@kernel.org> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - adi,ad7150 16 + - adi,ad7151 17 + - adi,ad7156 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + vdd-supply: true 23 + 24 + interrupts: true 25 + 26 + allOf: 27 + - if: 28 + properties: 29 + compatible: 30 + contains: 31 + enum: 32 + - adi,ad7150 33 + - adi,ad7156 34 + then: 35 + properties: 36 + interrupts: 37 + minItems: 2 38 + maxItems: 2 39 + - if: 40 + properties: 41 + compatible: 42 + contains: 43 + const: adi,ad7151 44 + then: 45 + properties: 46 + interrupts: 47 + minItems: 1 48 + maxItems: 1 49 + 50 + required: 51 + - compatible 52 + - reg 53 + 54 + additionalProperties: false 55 + 56 + examples: 57 + - | 58 + i2c { 59 + #address-cells = <1>; 60 + #size-cells = <0>; 61 + 62 + cdc@48 { 63 + compatible = "adi,ad7150"; 64 + reg = <0x48>; 65 + interrupts = <25 2>, <26 2>; 66 + interrupt-parent = <&gpio>; 67 + }; 68 + }; 69 + ...