1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/virtio/mmio.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: virtio memory mapped devices
8
9maintainers:
10  - Jean-Philippe Brucker <jean-philippe@linaro.org>
11
12description:
13  See https://www.oasis-open.org/committees/tc_home.php?wg_abbrev=virtio for
14  more details.
15
16properties:
17  compatible:
18    const: virtio,mmio
19
20  reg:
21    maxItems: 1
22
23  interrupts:
24    maxItems: 1
25
26  '#iommu-cells':
27    description: Required when the node corresponds to a virtio-iommu device.
28    const: 1
29
30  iommus:
31    description: Required for devices making accesses thru an IOMMU.
32    maxItems: 1
33
34required:
35  - compatible
36  - reg
37  - interrupts
38
39additionalProperties: false
40
41examples:
42  - |
43    virtio@3000 {
44        compatible = "virtio,mmio";
45        reg = <0x3000 0x100>;
46        interrupts = <41>;
47
48        /* Device has endpoint ID 23 */
49        iommus = <&viommu 23>;
50    };
51
52    viommu: iommu@3100 {
53        compatible = "virtio,mmio";
54        reg = <0x3100 0x100>;
55        interrupts = <42>;
56
57        #iommu-cells = <1>;
58    };
59
60...
61