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 7title: Analog device AD7150 and similar capacitance to digital converters. 8 9maintainers: 10 - Jonathan Cameron <jic23@kernel.org> 11 12properties: 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 26allOf: 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 50required: 51 - compatible 52 - reg 53 54additionalProperties: false 55 56examples: 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... 70