-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dt-bindings: phytium-ddma: Add bindings for Phytium DDMA
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
1 parent
e0b195d
commit 5490d28
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; | ||
}; | ||
... |