UART (Universal Asynchronous Receiver/Transmitter)

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

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

Maintainers (maintainers): "devicetree@vger.kernel.org"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Shared schema rule ($ref): /schemas/memory-controllers/mc-peripheral-props.yaml#

Rule 3 #

Condition (if) #

At least one of these rules must match (anyOf)

Rule 1

Required in this object (required): "aspeed,lpc-io-reg"

Rule 2

Required in this object (required): "aspeed,lpc-interrupts"

Rule 3

Required in this object (required): "aspeed,sirq-polarity-sense"

When the condition matches (then) #

Properties and child nodes (properties)

compatible — not listed as required here

Exact value (const): "aspeed,ast2500-vuart"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Exact value (const): "mrvl,mmp-uart"

When the condition matches (then) #

Properties and child nodes (properties)

reg-shift — required here

Exact value (const): 2

Required in this object (required): "reg-shift"

Rule 5 #

Condition (if) #

This rule must not match (not)

Properties and child nodes (properties)

compatible — not listed as required here

Array item rules (items)

Item 1

Allowed values (enum): "ns8250", "ns16450", "ns16550", "ns16550a"

When the condition matches (then) #

Exactly one of these rules must match (oneOf)

Rule 1

Required in this object (required): "clock-frequency"

Rule 2

Required in this object (required): "clocks"

Rule 6 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "nxp,lpc1850-uart"

When the condition matches (then) #

Properties and child nodes (properties)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "uartclk"

Item 2

Exact value (const): "reg"

Rule 7 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "spacemit,k1-uart"

When the condition matches (then) #

Properties and child nodes (properties)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "bus"

Rule 8 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "spacemit,k1-uart", "nxp,lpc1850-uart"

When the condition matches (then) #

Required in this object (required): "clocks", "clock-names"

Properties and child nodes (properties)

clocks — required here

Minimum number of items (minItems): 2

clock-names — required here

Minimum number of items (minItems): 2

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 1

clock-names — not listed as required here

Maximum number of items (maxItems): 1

Properties and child nodes (properties) #

compatible — not listed as required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "ns8250"

Rule 2

Exact value (const): "ns16450"

Rule 3

Exact value (const): "ns16550"

Rule 4

Exact value (const): "ns16550a"

Rule 5

Exact value (const): "ns16850"

Rule 6

Exact value (const): "aspeed,ast2400-vuart"

Rule 7

Exact value (const): "aspeed,ast2500-vuart"

Rule 8

Exact value (const): "intel,xscale-uart"

Rule 9

Exact value (const): "mrvl,pxa-uart"

Rule 10

Exact value (const): "nuvoton,wpcm450-uart"

Rule 11

Exact value (const): "nuvoton,npcm750-uart"

Rule 12

Exact value (const): "nvidia,tegra20-uart"

Rule 13

Exact value (const): "nxp,lpc3220-uart"

Rule 14

Array item rules (items)

Item 1

Allowed values (enum): "exar,xr16l2552", "exar,xr16l2551", "exar,xr16l2550"

Item 2

Exact value (const): "ns8250"

Rule 15

Array item rules (items)

Item 1

Allowed values (enum): "altr,16550-FIFO32", "altr,16550-FIFO64", "altr,16550-FIFO128", "fsl,16550-FIFO64", "andestech,uart16550", "nxp,lpc1850-uart", "opencores,uart16550-rtlsvn105", "ti,da830-uart", "loongson,ls2k0500-uart", "loongson,ls2k1500-uart"

Item 2

Exact value (const): "ns16550a"

Rule 16

Array item rules (items)

Item 1

Allowed values (enum): "ns16750", "fsl,ns16550", "cavium,octeon-3860-uart", "xlnx,xps-uart16550-2.00.b", "ralink,rt2880-uart"

Item 2

Allowed values (enum): "ns16550", "ns16550a"

Rule 17

Array item rules (items)

Item 1

Allowed values (enum): "nuvoton,npcm845-uart"

Item 2

Exact value (const): "nuvoton,npcm750-uart"

Rule 18

Array item rules (items)

Item 1

Allowed values (enum): "ralink,mt7620a-uart", "ralink,rt3052-uart", "ralink,rt3883-uart"

Item 2

Exact value (const): "ralink,rt2880-uart"

Item 3

Allowed values (enum): "ns16550", "ns16550a"

Rule 19

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt7622-btif", "mediatek,mt7623-btif"

Item 2

Exact value (const): "mediatek,mtk-btif"

Rule 20

Array item rules (items)

Item 1

Allowed values (enum): "mrvl,mmp-uart", "spacemit,k1-uart", "spacemit,k3-uart"

Item 2

Exact value (const): "intel,xscale-uart"

Rule 21

Array item rules (items)

Item 1

Allowed values (enum): "nvidia,tegra30-uart", "nvidia,tegra114-uart", "nvidia,tegra124-uart", "nvidia,tegra210-uart", "nvidia,tegra186-uart", "nvidia,tegra194-uart", "nvidia,tegra234-uart"

Item 2

Exact value (const): "nvidia,tegra20-uart"

Rule 22

Array item rules (items)

Item 1

Allowed values (enum): "loongson,ls2k1000-uart"

Item 2

Exact value (const): "loongson,ls2k0500-uart"

Item 3

Exact value (const): "ns16550a"

Rule 23

Array item rules (items)

Item 1

Allowed values (enum): "loongson,ls3a5000-uart", "loongson,ls3a6000-uart", "loongson,ls2k2000-uart"

Item 2

Exact value (const): "loongson,ls2k1500-uart"

Item 3

Exact value (const): "ns16550a"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clock-frequency — not listed as required here #

true — No constraints added by this property rule.

clocks — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

The core function clock

Item 2

An optional bus clock

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "main", "uart"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "bus"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "uartclk"

Item 2

Exact value (const): "reg"

dmas — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

dma-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

resets — not listed as required here #

Maximum number of items (maxItems): 1

current-speed — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

The current active speed of the UART.

reg-offset — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Offset to apply to the mapbase from the start of the registers.

reg-shift — not listed as required here #

Quantity to shift the register offsets by.

reg-io-width — not listed as required here #

The size (in bytes) of the IO accesses that should be performed on the device. There are some systems that require 32-bit accesses to the UART (e.g. TI davinci).

used-by-rtas — not listed as required here #

Value type (type): "boolean"

Set to indicate that the port is in use by the OpenFirmware RTAS and should not be registered.

no-loopback-test — not listed as required here #

Value type (type): "boolean"

Set to indicate that the port does not implement loopback test mode.

fifo-size — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

The fifo size of the UART.

auto-flow-control — not listed as required here #

Value type (type): "boolean"

One way to enable automatic flow control support. The driver is allowed to detect support for the capability even without this property.

tx-threshold — not listed as required here #

Specify the TX FIFO low water indication for parts with programmable TX FIFO thresholds.

overrun-throttle-ms — not listed as required here #

How long to pause uart rx when input overrun is encountered.

rts-gpios — not listed as required here #

true — No constraints added by this property rule.

cts-gpios — not listed as required here #

true — No constraints added by this property rule.

dtr-gpios — not listed as required here #

true — No constraints added by this property rule.

dsr-gpios — not listed as required here #

true — No constraints added by this property rule.

rng-gpios — not listed as required here #

true — No constraints added by this property rule.

dcd-gpios — not listed as required here #

true — No constraints added by this property rule.

aspeed,sirq-polarity-sense — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Phandle to aspeed,ast2500-scu compatible syscon alongside register offset and bit number to identify how the SIRQ polarity should be configured. One possible data source is the LPC/eSPI mode bit. Only applicable to aspeed,ast2500-vuart.

Deprecated (deprecated): true

aspeed,lpc-io-reg — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Maximum number of items (maxItems): 1

The VUART LPC address. Only applicable to aspeed,ast2500-vuart.

aspeed,lpc-interrupts — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

A 2-cell property describing the VUART SIRQ number and SIRQ polarity (IRQ_TYPE_LEVEL_LOW or IRQ_TYPE_LEVEL_HIGH). Only applicable to aspeed,ast2500-vuart.

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

serial@80230000 {
    compatible = "ns8250";
    reg = <0x80230000 0x100>;
    interrupts = <10>;
    reg-shift = <2>;
    clock-frequency = <48000000>;
};
#include <dt-bindings/gpio/gpio.h>
serial@49042000 {
    compatible = "andestech,uart16550", "ns16550a";
    reg = <0x49042000 0x400>;
    interrupts = <80>;
    clock-frequency = <48000000>;
    cts-gpios = <&gpio3 5 GPIO_ACTIVE_LOW>;
    rts-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
    dtr-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
    dsr-gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
    dcd-gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
    rng-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
};
#include <dt-bindings/clock/aspeed-clock.h>
#include <dt-bindings/interrupt-controller/irq.h>
serial@1e787000 {
    compatible = "aspeed,ast2500-vuart";
    reg = <0x1e787000 0x40>;
    reg-shift = <2>;
    interrupts = <8>;
    clocks = <&syscon ASPEED_CLK_APB>;
    no-loopback-test;
    aspeed,lpc-io-reg = <0x3f8>;
    aspeed,lpc-interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
};

Source notes #

Annotations retained from the schema source

Line 1: Copyright 2020 Lubomir Rintel <lkundrak@v3.sk>

Line 139: Deprecated, unless the FIFO really is broken

Line 152: Deprecated, unless the FIFO really is broken

Edit this page