xref: /linux/Documentation/devicetree/bindings/dma/fsl,mxs-dma.yaml (revision 566ab427f827b0256d3e8ce0235d088e6a9c28bd)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/dma/fsl,mxs-dma.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Freescale Direct Memory Access (DMA) Controller from i.MX23/i.MX28
8
9maintainers:
10  - Marek Vasut <marex@denx.de>
11
12allOf:
13  - $ref: dma-controller.yaml#
14  - if:
15      properties:
16        compatible:
17          contains:
18            const: fsl,imx8qxp-dma-apbh
19    then:
20      required:
21        - power-domains
22    else:
23      properties:
24        power-domains: false
25
26properties:
27  compatible:
28    oneOf:
29      - items:
30          - enum:
31              - fsl,imx6q-dma-apbh
32              - fsl,imx6sx-dma-apbh
33              - fsl,imx7d-dma-apbh
34              - fsl,imx8qxp-dma-apbh
35          - const: fsl,imx28-dma-apbh
36      - enum:
37          - fsl,imx23-dma-apbh
38          - fsl,imx23-dma-apbx
39          - fsl,imx28-dma-apbh
40          - fsl,imx28-dma-apbx
41  reg:
42    maxItems: 1
43
44  clocks:
45    maxItems: 1
46
47  interrupts:
48    minItems: 4
49    maxItems: 16
50
51  "#dma-cells":
52    const: 1
53
54  dma-channels:
55    enum: [4, 8, 16]
56
57  power-domains:
58    maxItems: 1
59
60required:
61  - compatible
62  - reg
63  - "#dma-cells"
64  - dma-channels
65  - interrupts
66
67additionalProperties: false
68
69examples:
70  - |
71    interrupt-parent = <&irqc>;
72
73    dma-controller@80004000 {
74      compatible = "fsl,imx28-dma-apbh";
75      reg = <0x80004000 0x2000>;
76      interrupts = <82 83 84 85
77                    88 88 88 88
78                    88 88 88 88
79                    87 86 0 0>;
80      #dma-cells = <1>;
81      dma-channels = <16>;
82    };
83
84    dma-controller@80024000 {
85      compatible = "fsl,imx28-dma-apbx";
86      reg = <0x80024000 0x2000>;
87      interrupts = <78 79 66 0
88                    80 81 68 69
89                    70 71 72 73
90                    74 75 76 77>;
91      #dma-cells = <1>;
92      dma-channels = <16>;
93    };
94
95...
96