Skip to content

Commit d236327

Browse files
LegoLivesMattervinodkoul
authored andcommitted
dt-bindings: mmp-dma: convert to YAML
Convert the Marvell MMP DMA binding to YAML. The TXT binding mentions that the controller may have one IRQ per DMA channel. Examples of this were dropped in the YAML binding because of dt_binding_check complaints (either too many interrupt cells or interrupts) and the fact that this is not used in any of the in-tree device trees. Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20240131-pxa-dma-yaml-v2-2-9611d0af0edc@skole.hr Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 93bdff7 commit d236327

2 files changed

Lines changed: 72 additions & 81 deletions

File tree

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/dma/marvell,mmp-dma.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Marvell MMP DMA controller
8+
9+
maintainers:
10+
- Duje Mihanović <duje.mihanovic@skole.hr>
11+
12+
description:
13+
Marvell MMP SoCs may have two types of DMA controllers, peripheral and audio.
14+
15+
properties:
16+
compatible:
17+
enum:
18+
- marvell,pdma-1.0
19+
- marvell,adma-1.0
20+
- marvell,pxa910-squ
21+
22+
reg:
23+
maxItems: 1
24+
25+
interrupts:
26+
description:
27+
Interrupt lines for the controller, may be shared or one per DMA channel
28+
minItems: 1
29+
30+
asram:
31+
description:
32+
A phandle to the SRAM pool
33+
$ref: /schemas/types.yaml#/definitions/phandle
34+
35+
'#dma-channels':
36+
deprecated: true
37+
38+
'#dma-requests':
39+
deprecated: true
40+
41+
required:
42+
- compatible
43+
- reg
44+
- interrupts
45+
- '#dma-cells'
46+
47+
allOf:
48+
- $ref: dma-controller.yaml#
49+
- if:
50+
properties:
51+
compatible:
52+
contains:
53+
enum:
54+
- marvell,pdma-1.0
55+
then:
56+
properties:
57+
asram: false
58+
else:
59+
required:
60+
- asram
61+
62+
unevaluatedProperties: false
63+
64+
examples:
65+
- |
66+
dma-controller@d4000000 {
67+
compatible = "marvell,pdma-1.0";
68+
reg = <0xd4000000 0x10000>;
69+
interrupts = <47>;
70+
#dma-cells = <2>;
71+
dma-channels = <16>;
72+
};

Documentation/devicetree/bindings/dma/mmp-dma.txt

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)