0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/dma/dma-common.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: DMA Engine Generic Binding
0008
0009 maintainers:
0010 - Vinod Koul <vkoul@kernel.org>
0011
0012 description:
0013 Generic binding to provide a way for a driver using DMA Engine to
0014 retrieve the DMA request or channel information that goes from a
0015 hardware device to a DMA controller.
0016
0017 select: false
0018
0019 properties:
0020 "#dma-cells":
0021 minimum: 1
0022 # Should be enough
0023 maximum: 255
0024 description:
0025 Used to provide DMA controller specific information.
0026
0027 dma-channel-mask:
0028 description:
0029 Bitmask of available DMA channels in ascending order that are
0030 not reserved by firmware and are available to the
0031 kernel. i.e. first channel corresponds to LSB.
0032 The first item in the array is for channels 0-31, the second is for
0033 channels 32-63, etc.
0034 $ref: /schemas/types.yaml#/definitions/uint32-array
0035 items:
0036 minItems: 1
0037 # Should be enough
0038 maxItems: 255
0039
0040 dma-channels:
0041 $ref: /schemas/types.yaml#/definitions/uint32
0042 description:
0043 Number of DMA channels supported by the controller.
0044
0045 dma-requests:
0046 $ref: /schemas/types.yaml#/definitions/uint32
0047 description:
0048 Number of DMA request signals supported by the controller.
0049
0050 required:
0051 - "#dma-cells"
0052
0053 additionalProperties: true