Skip to content

Commit

Permalink
dt-bindings: phytium-ddma: Add bindings for Phytium DDMA
Browse files Browse the repository at this point in the history
This patch document provide DT bindings for the Phytium DDMA controller.

Signed-off-by: Li Guohui <[email protected]>
Signed-off-by: Liu Tianyu <[email protected]>
Signed-off-by: Li Mingzhe <[email protected]>
Signed-off-by: Wang Yinfeng <[email protected]>
Signed-off-by: Lan Hengyu <[email protected]>
  • Loading branch information
hhhui-L authored and Avenger-285714 committed May 27, 2024
1 parent e0b195d commit 5490d28
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions Documentation/devicetree/bindings/dma/phytium-ddma.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
title: Phytium DDMA Controller bindings

description:
The Phytium DDMA is a general-purpose direct memory access
controller capable of supporting 8 independent DMA channels.
Each channel can have up to 32 requests.DMA clients connected
to the Phytium DDMA controller must use the format described
in the dma.txt file, using a two-cell specifier for each
channel:
a phandle to the DMA controller plus the following two integer cells:
1. The channel id
2. The request line number

maintainers:
- Huang Jie <[email protected]>

allOf:
- $ref: "dma-controller.yaml#"

properties:
"#dma-cells":
const: 2

compatible:
const: phytium,ddma

reg:
maxItems: 1

interrupts:
maxItems: 1

dma-channels:
minItems: 1
maxItems: 8
description: it indicates that the number of channels are used

required:
- compatible
- reg
- interrupts
- dma-channels

unevaluatedProperties: false

examples:
ddma0: ddma@28003000 {
compatible = "phytium,ddma";
reg = <0x0 0x28003000 0x0 0x1000>;
interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
#dma-cells = <2>;
dma-channels = <8>;
};
...

0 comments on commit 5490d28

Please sign in to comment.