Virtio device
Schema identifier ($id): "http://devicetree.org/schemas/virtio/virtio-device.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Viresh Kumar <viresh.kumar@linaro.org>"
These bindings are applicable to virtio devices irrespective of the bus they are bound to, like mmio or pci.
Properties and child nodes (properties) #
compatible — required here #
String pattern (pattern): "^virtio,device[0-9a-f]{1,8}$"
Virtio device nodes. "virtio,deviceID", where ID is the virtio device id. The textual representation of ID shall be in lower case hexadecimal with leading zeroes suppressed.
Required in this object (required): "compatible"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Examples (examples) #
virtio@3000 {
compatible = "virtio,mmio";
reg = <0x3000 0x100>;
interrupts = <43>;
i2c {
compatible = "virtio,device22";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 16: We need a select here so we don't match all nodes with 'virtio,mmio'