Rob Herring | 13542a6 | 2021-06-07 09:48:11 -0500 | [diff] [blame] | 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 | |
Viresh Kumar | ad93f7b | 2021-07-27 10:53:48 +0530 | [diff] [blame] | 39 | additionalProperties: |
| 40 | type: object |
Rob Herring | 13542a6 | 2021-06-07 09:48:11 -0500 | [diff] [blame] | 41 | |
| 42 | examples: |
| 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 | ... |