MediaTek Universal Asynchronous Receiver/Transmitter (UART)

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

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

Maintainers (maintainers): "Matthias Brugger <matthias.bgg@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): serial.yaml#

The MediaTek UART is based on the basic 8250 UART and compatible with 16550A, with enhancements for high speed baud rates and support for DMA.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

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

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt2701-uart", "mediatek,mt2712-uart", "mediatek,mt6572-uart", "mediatek,mt6580-uart", "mediatek,mt6582-uart", "mediatek,mt6589-uart", "mediatek,mt6755-uart", "mediatek,mt6765-uart", "mediatek,mt6779-uart", "mediatek,mt6795-uart", "mediatek,mt6797-uart", "mediatek,mt6893-uart", "mediatek,mt7622-uart", "mediatek,mt7623-uart", "mediatek,mt7629-uart", "mediatek,mt7981-uart", "mediatek,mt7986-uart", "mediatek,mt7988-uart", "mediatek,mt8127-uart", "mediatek,mt8135-uart", "mediatek,mt8173-uart", "mediatek,mt8183-uart", "mediatek,mt8186-uart", "mediatek,mt8188-uart", "mediatek,mt8192-uart", "mediatek,mt8195-uart", "mediatek,mt8365-uart", "mediatek,mt8516-uart"

Item 2

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

reg — required here #

The base address of the UART register bank

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

The clock the baudrate is derived from

Item 2

The bus clock for register accesses

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "baud"

Item 2

Exact value (const): "bus"

dmas — not listed as required here #

Array item rules (items) #

Item 1

phandle to TX DMA

Item 2

phandle to RX DMA

dma-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

interrupts — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

interrupt-names — not listed as required here #

The UART interrupt and optionally the RX in-band wakeup interrupt.

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "uart"

Item 2

Exact value (const): "wakeup"

pinctrl-0 — not listed as required here #

true — No constraints added by this property rule.

pinctrl-1 — not listed as required here #

true — No constraints added by this property rule.

pinctrl-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "default"

Item 2

Exact value (const): "sleep"

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

serial@11006000 {
    compatible = "mediatek,mt6589-uart", "mediatek,mt6577-uart";
    reg = <0x11006000 0x400>;
    interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_LOW>,
                 <GIC_SPI 52 IRQ_TYPE_EDGE_FALLING>;
    interrupt-names = "uart", "wakeup";
    clocks = <&uart_clk>, <&bus_clk>;
    clock-names = "baud", "bus";
    pinctrl-0 = <&uart_pin>;
    pinctrl-1 = <&uart_pin_sleep>;
    pinctrl-names = "default", "sleep";
};

Source notes #

Annotations retained from the schema source

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

Edit this page