1b37e3534SMaxime Ripard# SPDX-License-Identifier: GPL-2.0
2b37e3534SMaxime Ripard%YAML 1.2
3b37e3534SMaxime Ripard---
4b37e3534SMaxime Ripard$id: http://devicetree.org/schemas/dma/dma-common.yaml#
5b37e3534SMaxime Ripard$schema: http://devicetree.org/meta-schemas/core.yaml#
6b37e3534SMaxime Ripard
7*ab040c42SKrzysztof Kozlowskititle: DMA Engine Common Properties
8b37e3534SMaxime Ripard
9b37e3534SMaxime Ripardmaintainers:
10b37e3534SMaxime Ripard  - Vinod Koul <vkoul@kernel.org>
11b37e3534SMaxime Ripard
12b37e3534SMaxime Riparddescription:
13b37e3534SMaxime Ripard  Generic binding to provide a way for a driver using DMA Engine to
14b37e3534SMaxime Ripard  retrieve the DMA request or channel information that goes from a
15b37e3534SMaxime Ripard  hardware device to a DMA controller.
16b37e3534SMaxime Ripard
17b37e3534SMaxime Ripardselect: false
18b37e3534SMaxime Ripard
19b37e3534SMaxime Ripardproperties:
20b37e3534SMaxime Ripard  "#dma-cells":
21b37e3534SMaxime Ripard    minimum: 1
22b37e3534SMaxime Ripard    # Should be enough
23b37e3534SMaxime Ripard    maximum: 255
24b37e3534SMaxime Ripard    description:
25b37e3534SMaxime Ripard      Used to provide DMA controller specific information.
26b37e3534SMaxime Ripard
2737256335SYoshihiro Shimoda  dma-channel-mask:
28b37e3534SMaxime Ripard    description:
29b37e3534SMaxime Ripard      Bitmask of available DMA channels in ascending order that are
30b37e3534SMaxime Ripard      not reserved by firmware and are available to the
31b37e3534SMaxime Ripard      kernel. i.e. first channel corresponds to LSB.
324868d87cSPeter Ujfalusi      The first item in the array is for channels 0-31, the second is for
334868d87cSPeter Ujfalusi      channels 32-63, etc.
343d21a460SRob Herring    $ref: /schemas/types.yaml#/definitions/uint32-array
354868d87cSPeter Ujfalusi    items:
364868d87cSPeter Ujfalusi      minItems: 1
374868d87cSPeter Ujfalusi      # Should be enough
384868d87cSPeter Ujfalusi      maxItems: 255
39b37e3534SMaxime Ripard
40b37e3534SMaxime Ripard  dma-channels:
41d69c6dddSRob Herring    $ref: /schemas/types.yaml#/definitions/uint32
42b37e3534SMaxime Ripard    description:
43b37e3534SMaxime Ripard      Number of DMA channels supported by the controller.
44b37e3534SMaxime Ripard
45b37e3534SMaxime Ripard  dma-requests:
46d69c6dddSRob Herring    $ref: /schemas/types.yaml#/definitions/uint32
47b37e3534SMaxime Ripard    description:
48b37e3534SMaxime Ripard      Number of DMA request signals supported by the controller.
49b37e3534SMaxime Ripard
50b37e3534SMaxime Ripardrequired:
51b37e3534SMaxime Ripard  - "#dma-cells"
526a0e321eSRob Herring
536a0e321eSRob HerringadditionalProperties: true
54