Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / virtio / mmio.yaml
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
7 title: virtio memory mapped devices
8
9 maintainers:
10   - Jean-Philippe Brucker <jean-philippe@linaro.org>
11
12 description:
13   See https://www.oasis-open.org/committees/tc_home.php?wg_abbrev=virtio for
14   more details.
15
16 properties:
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
34 required:
35   - compatible
36   - reg
37   - interrupts
38
39 additionalProperties: false
40
41 examples:
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 ...