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:
40  type: object
41
42examples:
43  - |
44    virtio@3000 {
45        compatible = "virtio,mmio";
46        reg = <0x3000 0x100>;
47        interrupts = <41>;
48
49        /* Device has endpoint ID 23 */
50        iommus = <&viommu 23>;
51    };
52
53    viommu: iommu@3100 {
54        compatible = "virtio,mmio";
55        reg = <0x3100 0x100>;
56        interrupts = <42>;
57
58        #iommu-cells = <1>;
59    };
60
61...
62