Skip to content

Commit 7ea270b

Browse files
kelvincheungvinodkoul
authored andcommitted
dt-bindings: dma: Add Loongson-1 APB DMA
Add devicetree binding document for Loongson-1 APB DMA. Reviewed-by: Conor Dooley <[email protected]> Reviewed-by: Jiaxun Yang <[email protected]> Signed-off-by: Keguang Zhang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 13113f7 commit 7ea270b

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/dma/loongson,ls1b-apbdma.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Loongson-1 APB DMA Controller
8+
9+
maintainers:
10+
- Keguang Zhang <[email protected]>
11+
12+
description:
13+
Loongson-1 APB DMA controller provides 3 independent channels for
14+
peripherals such as NAND, audio playback and capture.
15+
16+
properties:
17+
compatible:
18+
oneOf:
19+
- const: loongson,ls1b-apbdma
20+
- items:
21+
- enum:
22+
- loongson,ls1a-apbdma
23+
- loongson,ls1c-apbdma
24+
- const: loongson,ls1b-apbdma
25+
26+
reg:
27+
maxItems: 1
28+
29+
interrupts:
30+
items:
31+
- description: NAND interrupt
32+
- description: Audio playback interrupt
33+
- description: Audio capture interrupt
34+
35+
interrupt-names:
36+
items:
37+
- const: ch0
38+
- const: ch1
39+
- const: ch2
40+
41+
'#dma-cells':
42+
const: 1
43+
44+
required:
45+
- compatible
46+
- reg
47+
- interrupts
48+
- interrupt-names
49+
- '#dma-cells'
50+
51+
additionalProperties: false
52+
53+
examples:
54+
- |
55+
#include <dt-bindings/interrupt-controller/irq.h>
56+
dma-controller@1fd01160 {
57+
compatible = "loongson,ls1b-apbdma";
58+
reg = <0x1fd01160 0x4>;
59+
interrupt-parent = <&intc0>;
60+
interrupts = <13 IRQ_TYPE_EDGE_RISING>,
61+
<14 IRQ_TYPE_EDGE_RISING>,
62+
<15 IRQ_TYPE_EDGE_RISING>;
63+
interrupt-names = "ch0", "ch1", "ch2";
64+
#dma-cells = <1>;
65+
};

0 commit comments

Comments
 (0)