Skip to content

Commit 994b570

Browse files
inochisavinodkoul
authored andcommitted
dt-bindings: dmaengine: Add dma multiplexer for CV18XX/SG200X series SoC
The DMA IP of Sophgo CV18XX/SG200X is based on a DW AXI CORE, with an additional channel remap register located in the top system control area. The DMA channel is exclusive to each core. In addition, the DMA multiplexer is a subdevice of system controller, so this binding only contains necessary properties for the multiplexer itself. Add the dmamux binding for CV18XX/SG200X series SoC. Signed-off-by: Inochi Amaoto <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 19272b3 commit 994b570

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/dma/sophgo,cv1800b-dmamux.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Sophgo CV1800/SG200 Series DMA multiplexer
8+
9+
maintainers:
10+
- Inochi Amaoto <[email protected]>
11+
12+
description:
13+
The DMA multiplexer of CV1800 is a subdevice of the system
14+
controller. It support mapping 8 channels, but each channel
15+
can be mapped only once.
16+
17+
allOf:
18+
- $ref: dma-router.yaml#
19+
20+
properties:
21+
compatible:
22+
const: sophgo,cv1800b-dmamux
23+
24+
reg:
25+
items:
26+
- description: DMA channal remapping register
27+
- description: DMA channel interrupt mapping register
28+
29+
'#dma-cells':
30+
const: 2
31+
description:
32+
The first cells is device id. The second one is the cpu id.
33+
34+
dma-masters:
35+
maxItems: 1
36+
37+
required:
38+
- reg
39+
- '#dma-cells'
40+
- dma-masters
41+
42+
additionalProperties: false
43+
44+
examples:
45+
- |
46+
dma-router@154 {
47+
compatible = "sophgo,cv1800b-dmamux";
48+
reg = <0x154 0x8>, <0x298 0x4>;
49+
#dma-cells = <2>;
50+
dma-masters = <&dmac>;
51+
};

0 commit comments

Comments
 (0)