0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/virtio/mmio.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: virtio memory mapped devices
0008
0009 maintainers:
0010 - Jean-Philippe Brucker <jean-philippe@linaro.org>
0011
0012 description:
0013 See https://www.oasis-open.org/committees/tc_home.php?wg_abbrev=virtio for
0014 more details.
0015
0016 properties:
0017 compatible:
0018 const: virtio,mmio
0019
0020 reg:
0021 maxItems: 1
0022
0023 dma-coherent: true
0024
0025 interrupts:
0026 maxItems: 1
0027
0028 '#iommu-cells':
0029 description: Required when the node corresponds to a virtio-iommu device.
0030 const: 1
0031
0032 iommus:
0033 description: Required for devices making accesses thru an IOMMU.
0034 maxItems: 1
0035
0036 wakeup-source:
0037 type: boolean
0038 description: Required for setting irq of a virtio_mmio device as wakeup source.
0039
0040 required:
0041 - compatible
0042 - reg
0043 - interrupts
0044
0045 additionalProperties:
0046 type: object
0047
0048 examples:
0049 - |
0050 virtio@3000 {
0051 compatible = "virtio,mmio";
0052 reg = <0x3000 0x100>;
0053 interrupts = <41>;
0054
0055 /* Device has endpoint ID 23 */
0056 iommus = <&viommu 23>;
0057 };
0058
0059 viommu: iommu@3100 {
0060 compatible = "virtio,mmio";
0061 reg = <0x3100 0x100>;
0062 interrupts = <42>;
0063
0064 #iommu-cells = <1>;
0065 };
0066
0067 ...