xref: /freebsd/sys/contrib/device-tree/Bindings/iio/cdc/adi,ad7150.yaml (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
12eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
22eb4d8dcSEmmanuel Vadot%YAML 1.2
32eb4d8dcSEmmanuel Vadot---
42eb4d8dcSEmmanuel Vadot$id: http://devicetree.org/schemas/iio/cdc/adi,ad7150.yaml#
52eb4d8dcSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
62eb4d8dcSEmmanuel Vadot
7*aa1a8ff2SEmmanuel Vadottitle: Analog device AD7150 and similar capacitance to digital converters.
82eb4d8dcSEmmanuel Vadot
92eb4d8dcSEmmanuel Vadotmaintainers:
102eb4d8dcSEmmanuel Vadot  - Jonathan Cameron <jic23@kernel.org>
112eb4d8dcSEmmanuel Vadot
122eb4d8dcSEmmanuel Vadotproperties:
132eb4d8dcSEmmanuel Vadot  compatible:
142eb4d8dcSEmmanuel Vadot    enum:
152eb4d8dcSEmmanuel Vadot      - adi,ad7150
162eb4d8dcSEmmanuel Vadot      - adi,ad7151
172eb4d8dcSEmmanuel Vadot      - adi,ad7156
182eb4d8dcSEmmanuel Vadot
192eb4d8dcSEmmanuel Vadot  reg:
202eb4d8dcSEmmanuel Vadot    maxItems: 1
212eb4d8dcSEmmanuel Vadot
222eb4d8dcSEmmanuel Vadot  vdd-supply: true
232eb4d8dcSEmmanuel Vadot
242eb4d8dcSEmmanuel Vadot  interrupts: true
252eb4d8dcSEmmanuel Vadot
262eb4d8dcSEmmanuel VadotallOf:
272eb4d8dcSEmmanuel Vadot  - if:
282eb4d8dcSEmmanuel Vadot      properties:
292eb4d8dcSEmmanuel Vadot        compatible:
302eb4d8dcSEmmanuel Vadot          contains:
312eb4d8dcSEmmanuel Vadot            enum:
322eb4d8dcSEmmanuel Vadot              - adi,ad7150
332eb4d8dcSEmmanuel Vadot              - adi,ad7156
342eb4d8dcSEmmanuel Vadot    then:
352eb4d8dcSEmmanuel Vadot      properties:
362eb4d8dcSEmmanuel Vadot        interrupts:
372eb4d8dcSEmmanuel Vadot          minItems: 2
382eb4d8dcSEmmanuel Vadot          maxItems: 2
392eb4d8dcSEmmanuel Vadot  - if:
402eb4d8dcSEmmanuel Vadot      properties:
412eb4d8dcSEmmanuel Vadot        compatible:
422eb4d8dcSEmmanuel Vadot          contains:
432eb4d8dcSEmmanuel Vadot            const: adi,ad7151
442eb4d8dcSEmmanuel Vadot    then:
452eb4d8dcSEmmanuel Vadot      properties:
462eb4d8dcSEmmanuel Vadot        interrupts:
472eb4d8dcSEmmanuel Vadot          minItems: 1
482eb4d8dcSEmmanuel Vadot          maxItems: 1
492eb4d8dcSEmmanuel Vadot
502eb4d8dcSEmmanuel Vadotrequired:
512eb4d8dcSEmmanuel Vadot  - compatible
522eb4d8dcSEmmanuel Vadot  - reg
532eb4d8dcSEmmanuel Vadot
542eb4d8dcSEmmanuel VadotadditionalProperties: false
552eb4d8dcSEmmanuel Vadot
562eb4d8dcSEmmanuel Vadotexamples:
572eb4d8dcSEmmanuel Vadot  - |
582eb4d8dcSEmmanuel Vadot    i2c {
592eb4d8dcSEmmanuel Vadot        #address-cells = <1>;
602eb4d8dcSEmmanuel Vadot        #size-cells = <0>;
612eb4d8dcSEmmanuel Vadot
622eb4d8dcSEmmanuel Vadot        cdc@48 {
632eb4d8dcSEmmanuel Vadot            compatible = "adi,ad7150";
642eb4d8dcSEmmanuel Vadot            reg = <0x48>;
652eb4d8dcSEmmanuel Vadot            interrupts = <25 2>, <26 2>;
662eb4d8dcSEmmanuel Vadot            interrupt-parent = <&gpio>;
672eb4d8dcSEmmanuel Vadot        };
682eb4d8dcSEmmanuel Vadot    };
692eb4d8dcSEmmanuel Vadot...
70