Skip to content

Commit 39ce725

Browse files
docularxuvinodkoul
authored andcommitted
dt-bindings: dma: Add SpacemiT K1 PDMA controller
Add device tree binding documentation for the SpacemiT K1 PDMA controller. Signed-off-by: Guodong Xu <guodong@riscstar.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20250822-working_dma_0701_v2-v5-1-f5c0eda734cc@riscstar.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent d5df661 commit 39ce725

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-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/spacemit,k1-pdma.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: SpacemiT K1 PDMA Controller
8+
9+
maintainers:
10+
- Guodong Xu <guodong@riscstar.com>
11+
12+
allOf:
13+
- $ref: dma-controller.yaml#
14+
15+
properties:
16+
compatible:
17+
const: spacemit,k1-pdma
18+
19+
reg:
20+
maxItems: 1
21+
22+
interrupts:
23+
description: Shared interrupt for all DMA channels
24+
maxItems: 1
25+
26+
clocks:
27+
maxItems: 1
28+
29+
resets:
30+
maxItems: 1
31+
32+
dma-channels:
33+
maximum: 16
34+
35+
'#dma-cells':
36+
const: 1
37+
description:
38+
The DMA request number for the peripheral device.
39+
40+
required:
41+
- compatible
42+
- reg
43+
- interrupts
44+
- clocks
45+
- resets
46+
- dma-channels
47+
- '#dma-cells'
48+
49+
unevaluatedProperties: false
50+
51+
examples:
52+
- |
53+
#include <dt-bindings/clock/spacemit,k1-syscon.h>
54+
55+
soc {
56+
#address-cells = <2>;
57+
#size-cells = <2>;
58+
59+
dma-controller@d4000000 {
60+
compatible = "spacemit,k1-pdma";
61+
reg = <0x0 0xd4000000 0x0 0x4000>;
62+
interrupts = <72>;
63+
clocks = <&syscon_apmu CLK_DMA>;
64+
resets = <&syscon_apmu RESET_DMA>;
65+
dma-channels = <16>;
66+
#dma-cells = <1>;
67+
};
68+
};

0 commit comments

Comments
 (0)