Path: blob/master/Documentation/devicetree/bindings/dma/mediatek,uart-dma.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/dma/mediatek,uart-dma.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: MediaTek UART APDMA controller78maintainers:9- Long Cheng <long.cheng@mediatek.com>1011description: |12The MediaTek UART APDMA controller provides DMA capabilities13for the UART peripheral bus.1415allOf:16- $ref: dma-controller.yaml#1718properties:19compatible:20oneOf:21- items:22- enum:23- mediatek,mt2712-uart-dma24- mediatek,mt6795-uart-dma25- mediatek,mt8365-uart-dma26- mediatek,mt8516-uart-dma27- const: mediatek,mt6577-uart-dma28- enum:29- mediatek,mt6577-uart-dma3031reg:32minItems: 133maxItems: 163435interrupts:36description: |37TX, RX interrupt lines for each UART APDMA channel38minItems: 139maxItems: 164041clocks:42description: Must contain one entry for the APDMA main clock43maxItems: 14445clock-names:46const: apdma4748"#dma-cells":49const: 150description: |51The first cell specifies the UART APDMA channel number5253dma-requests:54description: |55Number of virtual channels of the UART APDMA controller56maximum: 165758mediatek,dma-33bits:59type: boolean60description: Enable 33-bits UART APDMA support6162required:63- compatible64- reg65- interrupts6667additionalProperties: false6869if:70not:71required:72- dma-requests73then:74properties:75interrupts:76maxItems: 877reg:78maxItems: 87980examples:81- |82#include <dt-bindings/interrupt-controller/arm-gic.h>83#include <dt-bindings/clock/mt2712-clk.h>84soc {85#address-cells = <2>;86#size-cells = <2>;8788apdma: dma-controller@11000400 {89compatible = "mediatek,mt2712-uart-dma",90"mediatek,mt6577-uart-dma";91reg = <0 0x11000400 0 0x80>,92<0 0x11000480 0 0x80>,93<0 0x11000500 0 0x80>,94<0 0x11000580 0 0x80>,95<0 0x11000600 0 0x80>,96<0 0x11000680 0 0x80>,97<0 0x11000700 0 0x80>,98<0 0x11000780 0 0x80>,99<0 0x11000800 0 0x80>,100<0 0x11000880 0 0x80>,101<0 0x11000900 0 0x80>,102<0 0x11000980 0 0x80>;103interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_LOW>,104<GIC_SPI 104 IRQ_TYPE_LEVEL_LOW>,105<GIC_SPI 105 IRQ_TYPE_LEVEL_LOW>,106<GIC_SPI 106 IRQ_TYPE_LEVEL_LOW>,107<GIC_SPI 107 IRQ_TYPE_LEVEL_LOW>,108<GIC_SPI 108 IRQ_TYPE_LEVEL_LOW>,109<GIC_SPI 109 IRQ_TYPE_LEVEL_LOW>,110<GIC_SPI 110 IRQ_TYPE_LEVEL_LOW>,111<GIC_SPI 111 IRQ_TYPE_LEVEL_LOW>,112<GIC_SPI 112 IRQ_TYPE_LEVEL_LOW>,113<GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>,114<GIC_SPI 114 IRQ_TYPE_LEVEL_LOW>;115dma-requests = <12>;116clocks = <&pericfg CLK_PERI_AP_DMA>;117clock-names = "apdma";118mediatek,dma-33bits;119#dma-cells = <1>;120};121};122123...124125126