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