1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/dma/mediatek,uart-dma.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: MediaTek UART APDMA controller
10 - Long Cheng <long.cheng@mediatek.com>
13 The MediaTek UART APDMA controller provides DMA capabilities
14 for the UART peripheral bus.
17 - $ref: "dma-controller.yaml#"
24 - mediatek,mt2712-uart-dma
25 - mediatek,mt8516-uart-dma
26 - const: mediatek,mt6577-uart-dma
28 - mediatek,mt6577-uart-dma
36 TX, RX interrupt lines for each UART APDMA channel
41 description: Must contain one entry for the APDMA main clock
50 The first cell specifies the UART APDMA channel number
54 Number of virtual channels of the UART APDMA controller
59 description: Enable 33-bits UART APDMA support
66 additionalProperties: false
81 #include <dt-bindings/interrupt-controller/arm-gic.h>
82 #include <dt-bindings/clock/mt2712-clk.h>
87 apdma: dma-controller@11000400 {
88 compatible = "mediatek,mt2712-uart-dma",
89 "mediatek,mt6577-uart-dma";
90 reg = <0 0x11000400 0 0x80>,
91 <0 0x11000480 0 0x80>,
92 <0 0x11000500 0 0x80>,
93 <0 0x11000580 0 0x80>,
94 <0 0x11000600 0 0x80>,
95 <0 0x11000680 0 0x80>,
96 <0 0x11000700 0 0x80>,
97 <0 0x11000780 0 0x80>,
98 <0 0x11000800 0 0x80>,
99 <0 0x11000880 0 0x80>,
100 <0 0x11000900 0 0x80>,
101 <0 0x11000980 0 0x80>;
102 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_LOW>,
103 <GIC_SPI 104 IRQ_TYPE_LEVEL_LOW>,
104 <GIC_SPI 105 IRQ_TYPE_LEVEL_LOW>,
105 <GIC_SPI 106 IRQ_TYPE_LEVEL_LOW>,
106 <GIC_SPI 107 IRQ_TYPE_LEVEL_LOW>,
107 <GIC_SPI 108 IRQ_TYPE_LEVEL_LOW>,
108 <GIC_SPI 109 IRQ_TYPE_LEVEL_LOW>,
109 <GIC_SPI 110 IRQ_TYPE_LEVEL_LOW>,
110 <GIC_SPI 111 IRQ_TYPE_LEVEL_LOW>,
111 <GIC_SPI 112 IRQ_TYPE_LEVEL_LOW>,
112 <GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>,
113 <GIC_SPI 114 IRQ_TYPE_LEVEL_LOW>;
115 clocks = <&pericfg CLK_PERI_AP_DMA>;
116 clock-names = "apdma";