Skip to content

Commit ef9303f

Browse files
pinchartlvinodkoul
authored andcommitted
dt: bindings: dma: xilinx: dpdma: DT bindings for Xilinx DPDMA
The ZynqMP includes the DisplayPort subsystem with its own DMA engine called DPDMA. The DPDMA IP comes with 6 individual channels (4 for display, 2 for audio). This documentation describes DT bindings of DPDMA. Signed-off-by: Hyun Kwon <[email protected]> Signed-off-by: Michal Simek <[email protected]> Signed-off-by: Laurent Pinchart <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent b3a9e3b commit ef9303f

File tree

3 files changed

+92
-0
lines changed

3 files changed

+92
-0
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/dma/xilinx/xlnx,zynqmp-dpdma.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Xilinx ZynqMP DisplayPort DMA Controller Device Tree Bindings
8+
9+
description: |
10+
These bindings describe the DMA engine included in the Xilinx ZynqMP
11+
DisplayPort Subsystem. The DMA engine supports up to 6 DMA channels (3
12+
channels for a video stream, 1 channel for a graphics stream, and 2 channels
13+
for an audio stream).
14+
15+
maintainers:
16+
- Laurent Pinchart <[email protected]>
17+
18+
allOf:
19+
- $ref: "../dma-controller.yaml#"
20+
21+
properties:
22+
"#dma-cells":
23+
const: 1
24+
description: |
25+
The cell is the DMA channel ID (see dt-bindings/dma/xlnx-zynqmp-dpdma.h
26+
for a list of channel IDs).
27+
28+
compatible:
29+
const: xlnx,zynqmp-dpdma
30+
31+
reg:
32+
maxItems: 1
33+
34+
interrupts:
35+
maxItems: 1
36+
37+
clocks:
38+
description: The AXI clock
39+
maxItems: 1
40+
41+
clock-names:
42+
const: axi_clk
43+
44+
required:
45+
- "#dma-cells"
46+
- compatible
47+
- reg
48+
- interrupts
49+
- clocks
50+
- clock-names
51+
52+
additionalProperties: false
53+
54+
examples:
55+
- |
56+
#include <dt-bindings/interrupt-controller/arm-gic.h>
57+
58+
dma: dma-controller@fd4c0000 {
59+
compatible = "xlnx,zynqmp-dpdma";
60+
reg = <0x0 0xfd4c0000 0x0 0x1000>;
61+
interrupts = <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>;
62+
interrupt-parent = <&gic>;
63+
clocks = <&dpdma_clk>;
64+
clock-names = "axi_clk";
65+
#dma-cells = <1>;
66+
};
67+
68+
...

MAINTAINERS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18852,6 +18852,14 @@ F: Documentation/devicetree/bindings/media/xilinx/
1885218852
F: drivers/media/platform/xilinx/
1885318853
F: include/uapi/linux/xilinx-v4l2-controls.h
1885418854

18855+
XILINX ZYNQMP DPDMA DRIVER
18856+
M: Hyun Kwon <[email protected]>
18857+
M: Laurent Pinchart <[email protected]>
18858+
18859+
S: Supported
18860+
F: Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dpdma.yaml
18861+
F: include/dt-bindings/dma/xlnx-zynqmp-dpdma.h
18862+
1885518863
XILLYBUS DRIVER
1885618864
M: Eli Billauer <[email protected]>
1885718865
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
2+
/*
3+
* Copyright 2019 Laurent Pinchart <[email protected]>
4+
*/
5+
6+
#ifndef __DT_BINDINGS_DMA_XLNX_ZYNQMP_DPDMA_H__
7+
#define __DT_BINDINGS_DMA_XLNX_ZYNQMP_DPDMA_H__
8+
9+
#define ZYNQMP_DPDMA_VIDEO0 0
10+
#define ZYNQMP_DPDMA_VIDEO1 1
11+
#define ZYNQMP_DPDMA_VIDEO2 2
12+
#define ZYNQMP_DPDMA_GRAPHICS 3
13+
#define ZYNQMP_DPDMA_AUDIO0 4
14+
#define ZYNQMP_DPDMA_AUDIO1 5
15+
16+
#endif /* __DT_BINDINGS_DMA_XLNX_ZYNQMP_DPDMA_H__ */

0 commit comments

Comments
 (0)