Tom Rini | 53633a8 | 2024-02-29 12:33:36 -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/iommu/xen,grant-dma.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Xen specific IOMMU for virtualized devices (e.g. virtio) |
| 8 | |
| 9 | maintainers: |
| 10 | - Stefano Stabellini <sstabellini@kernel.org> |
| 11 | |
| 12 | description: |
| 13 | The Xen IOMMU represents the Xen grant table interface. Grant mappings |
| 14 | are to be used with devices connected to the Xen IOMMU using the "iommus" |
| 15 | property, which also specifies the ID of the backend domain. |
| 16 | The binding is required to restrict memory access using Xen grant mappings. |
| 17 | |
| 18 | properties: |
| 19 | compatible: |
| 20 | const: xen,grant-dma |
| 21 | |
| 22 | '#iommu-cells': |
| 23 | const: 1 |
| 24 | description: |
| 25 | The single cell is the domid (domain ID) of the domain where the backend |
| 26 | is running. |
| 27 | |
| 28 | required: |
| 29 | - compatible |
| 30 | - "#iommu-cells" |
| 31 | |
| 32 | additionalProperties: false |
| 33 | |
| 34 | examples: |
| 35 | - | |
| 36 | iommu { |
| 37 | compatible = "xen,grant-dma"; |
| 38 | #iommu-cells = <1>; |
| 39 | }; |