MediaTek UART APDMA controller

Schema identifier ($id): "http://devicetree.org/schemas/dma/mediatek,uart-dma.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>", "Long Cheng <long.cheng@mediatek.com>"

The MediaTek UART APDMA controller provides DMA capabilities for the UART peripheral bus.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dma-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt2712-uart-dma", "mediatek,mt6795-uart-dma", "mediatek,mt8173-uart-dma", "mediatek,mt8183-uart-dma", "mediatek,mt8365-uart-dma", "mediatek,mt8516-uart-dma"

Item 2

Exact value (const): "mediatek,mt6577-uart-dma"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt7988-uart-dma", "mediatek,mt8186-uart-dma", "mediatek,mt8188-uart-dma", "mediatek,mt8192-uart-dma", "mediatek,mt8195-uart-dma"

Item 2

Exact value (const): "mediatek,mt6835-uart-dma"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt6991-uart-dma", "mediatek,mt8196-uart-dma"

Item 2

Exact value (const): "mediatek,mt6985-uart-dma"

Rule 4

Allowed values (enum): "mediatek,mt6577-uart-dma", "mediatek,mt6795-uart-dma", "mediatek,mt6835-uart-dma", "mediatek,mt6985-uart-dma"

reg — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 16

interrupts — required here #

TX, RX interrupt lines for each UART APDMA channel

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 16

clocks — not listed as required here #

Must contain one entry for the APDMA main clock

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Exact value (const): "apdma"

#dma-cells — not listed as required here #

Exact value (const): 1

The first cell specifies the UART APDMA channel number

dma-requests — not listed as required here #

Number of virtual channels of the UART APDMA controller

Maximum value (maximum): 16

mediatek,dma-33bits — not listed as required here #

Value type (type): "boolean"

Deprecated (deprecated): true

Enable 33-bits UART APDMA support

Required in this object (required): "compatible", "reg", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Condition (if) #

This rule must not match (not) #

Required in this object (required): "dma-requests"

When the condition matches (then) #

Properties and child nodes (properties) #

interrupts — not listed as required here #

Maximum number of items (maxItems): 8

reg — not listed as required here #

Maximum number of items (maxItems): 8

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/mt2712-clk.h>
soc {
    #address-cells = <2>;
    #size-cells = <2>;

    apdma: dma-controller@11000400 {
        compatible = "mediatek,mt2712-uart-dma",
                     "mediatek,mt6577-uart-dma";
        reg = <0 0x11000400 0 0x80>,
              <0 0x11000480 0 0x80>,
              <0 0x11000500 0 0x80>,
              <0 0x11000580 0 0x80>,
              <0 0x11000600 0 0x80>,
              <0 0x11000680 0 0x80>,
              <0 0x11000700 0 0x80>,
              <0 0x11000780 0 0x80>,
              <0 0x11000800 0 0x80>,
              <0 0x11000880 0 0x80>,
              <0 0x11000900 0 0x80>,
              <0 0x11000980 0 0x80>;
        interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_LOW>,
                     <GIC_SPI 104 IRQ_TYPE_LEVEL_LOW>,
                     <GIC_SPI 105 IRQ_TYPE_LEVEL_LOW>,
                     <GIC_SPI 106 IRQ_TYPE_LEVEL_LOW>,
                     <GIC_SPI 107 IRQ_TYPE_LEVEL_LOW>,
                     <GIC_SPI 108 IRQ_TYPE_LEVEL_LOW>,
                     <GIC_SPI 109 IRQ_TYPE_LEVEL_LOW>,
                     <GIC_SPI 110 IRQ_TYPE_LEVEL_LOW>,
                     <GIC_SPI 111 IRQ_TYPE_LEVEL_LOW>,
                     <GIC_SPI 112 IRQ_TYPE_LEVEL_LOW>,
                     <GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>,
                     <GIC_SPI 114 IRQ_TYPE_LEVEL_LOW>;
        dma-requests = <12>;
        clocks = <&pericfg CLK_PERI_AP_DMA>;
        clock-names = "apdma";
        mediatek,dma-33bits;
        #dma-cells = <1>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page