Maxime Ripard | b37e353 | 2019-07-20 11:26:05 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/dma/dma-common.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: DMA Engine Generic Binding |
| 8 | |
| 9 | maintainers: |
| 10 | - Vinod Koul <vkoul@kernel.org> |
| 11 | |
| 12 | description: |
| 13 | Generic binding to provide a way for a driver using DMA Engine to |
| 14 | retrieve the DMA request or channel information that goes from a |
| 15 | hardware device to a DMA controller. |
| 16 | |
| 17 | select: false |
| 18 | |
| 19 | properties: |
| 20 | "#dma-cells": |
| 21 | minimum: 1 |
| 22 | # Should be enough |
| 23 | maximum: 255 |
| 24 | description: |
| 25 | Used to provide DMA controller specific information. |
| 26 | |
Yoshihiro Shimoda | 3725633 | 2019-08-28 19:30:23 +0900 | [diff] [blame] | 27 | dma-channel-mask: |
Maxime Ripard | b37e353 | 2019-07-20 11:26:05 +0200 | [diff] [blame] | 28 | $ref: /schemas/types.yaml#definitions/uint32 |
| 29 | description: |
| 30 | Bitmask of available DMA channels in ascending order that are |
| 31 | not reserved by firmware and are available to the |
| 32 | kernel. i.e. first channel corresponds to LSB. |
| 33 | |
| 34 | dma-channels: |
| 35 | $ref: /schemas/types.yaml#definitions/uint32 |
| 36 | description: |
| 37 | Number of DMA channels supported by the controller. |
| 38 | |
| 39 | dma-requests: |
| 40 | $ref: /schemas/types.yaml#definitions/uint32 |
| 41 | description: |
| 42 | Number of DMA request signals supported by the controller. |
| 43 | |
| 44 | required: |
| 45 | - "#dma-cells" |