virtio memory mapped devices

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

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

Maintainers (maintainers): "Jean-Philippe Brucker <jean-philippe@linaro.org>"

See https://www.oasis-open.org/committees/tc_home.php?wg_abbrev=virtio for more details.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "virtio,mmio"

reg — required here #

Maximum number of items (maxItems): 1

dma-coherent — not listed as required here #

true — No constraints added by this property rule.

interrupts — required here #

Maximum number of items (maxItems): 1

#iommu-cells — not listed as required here #

Required when the node corresponds to a virtio-iommu device.

Exact value (const): 1

iommus — not listed as required here #

Required for devices making accesses thru an IOMMU.

Maximum number of items (maxItems): 1

wakeup-source — not listed as required here #

Value type (type): "boolean"

Required for setting irq of a virtio_mmio device as wakeup source.

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

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

Value type (type): "object"

Examples (examples) #

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

    /* Device has endpoint ID 23 */
    iommus = <&viommu 23>;
};

viommu: iommu@3100 {
    compatible = "virtio,mmio";
    reg = <0x3100 0x100>;
    interrupts = <42>;

    #iommu-cells = <1>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page