%YAML 1.2
---
$id: http://devicetree.org/schemas/gunyah/swiotlb.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: SWIOTLB device

description: |+
  Configuration properties for swiotlb device. This device
  represents memory that needs to be used for bouncing
  buffers. The memory typically represents area that is shared
  with another guest OS.

properties:
  reg: true
  dma_base:
    $ref: '/schemas/types.yaml#/definitions/uint64'
    description:
      Constant offset that is added to the DMA address returned by
      swiotlb_map() API.

required:
  - reg
  - dma_base

example:
  - |
    swiotlb {
	reg = <0x0 0xdff00000 0x0 100000>;
	dma_base = <0x0>;
    };
