Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/cdc/adi,ad7150.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Analog device AD7150 and similar capacitance to digital convertors.
0008 
0009 maintainers:
0010   - Jonathan Cameron <jic23@kernel.org>
0011 
0012 properties:
0013   compatible:
0014     enum:
0015       - adi,ad7150
0016       - adi,ad7151
0017       - adi,ad7156
0018 
0019   reg:
0020     maxItems: 1
0021 
0022   vdd-supply: true
0023 
0024   interrupts: true
0025 
0026 allOf:
0027   - if:
0028       properties:
0029         compatible:
0030           contains:
0031             enum:
0032               - adi,ad7150
0033               - adi,ad7156
0034     then:
0035       properties:
0036         interrupts:
0037           minItems: 2
0038           maxItems: 2
0039   - if:
0040       properties:
0041         compatible:
0042           contains:
0043             const: adi,ad7151
0044     then:
0045       properties:
0046         interrupts:
0047           minItems: 1
0048           maxItems: 1
0049 
0050 required:
0051   - compatible
0052   - reg
0053 
0054 additionalProperties: false
0055 
0056 examples:
0057   - |
0058     i2c {
0059         #address-cells = <1>;
0060         #size-cells = <0>;
0061 
0062         cdc@48 {
0063             compatible = "adi,ad7150";
0064             reg = <0x48>;
0065             interrupts = <25 2>, <26 2>;
0066             interrupt-parent = <&gpio>;
0067         };
0068     };
0069 ...