Analog device AD7150 and similar capacitance to digital converters.

Schema identifier ($id): "http://devicetree.org/schemas/iio/cdc/adi,ad7150.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "adi,ad7150", "adi,ad7151", "adi,ad7156"

reg — required here #

Maximum number of items (maxItems): 1

vdd-supply — not listed as required here #

true — No constraints added by this property rule.

interrupts — not listed as required here #

true — No constraints added by this property rule.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "adi,ad7150", "adi,ad7156"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "adi,ad7151"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    cdc@48 {
        compatible = "adi,ad7150";
        reg = <0x48>;
        interrupts = <25 2>, <26 2>;
        interrupt-parent = <&gpio>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Edit this page