xref: /linux/Documentation/devicetree/bindings/dma/marvell,mmp-dma.yaml (revision 6f47c7ae8c7afaf9ad291d39f0d3974f191a7946)
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
7title: Marvell MMP DMA controller
8
9maintainers:
10  - Duje Mihanović <duje.mihanovic@skole.hr>
11
12description:
13  Marvell MMP SoCs may have two types of DMA controllers, peripheral and audio.
14
15properties:
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
41required:
42  - compatible
43  - reg
44  - interrupts
45  - '#dma-cells'
46
47allOf:
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
62unevaluatedProperties: false
63
64examples:
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    };
73