Virtio I2C Adapter

Schema identifier ($id): "http://devicetree.org/schemas/i2c/i2c-virtio.yaml#"

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

Maintainers (maintainers): "Viresh Kumar <viresh.kumar@linaro.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Rule 2 #

Shared schema rule ($ref): /schemas/virtio/virtio-device.yaml#

Virtio I2C device, see /schemas/virtio/virtio-device.yaml for more details.

Properties and child nodes (properties) #

$nodename — not listed as required here #

Exact value (const): "i2c"

compatible — required here #

Exact value (const): "virtio,device22"

Required in this object (required): "compatible"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

virtio@3000 {
    compatible = "virtio,mmio";
    reg = <0x3000 0x100>;
    interrupts = <41>;

    i2c {
        compatible = "virtio,device22";

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

        light-sensor@20 {
            compatible = "dynaimage,al3320a";
            reg = <0x20>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page