Amlogic Meson SoC UART Serial Interface

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

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

Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"

The Amlogic Meson SoC UART Serial Interface is present on a large range of SoCs, and can be present either in the "Always-On" power domain or the "Everything-Else" power domain.

The particularity of the "Always-On" Serial Interface is that the hardware is active since power-on and does not need any clock gating and is usable as very early serial console.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Always-on power domain UART controller

Array item rules (items)

Item 1

Allowed values (enum): "amlogic,meson6-uart", "amlogic,meson8-uart", "amlogic,meson8b-uart", "amlogic,meson-gx-uart", "amlogic,meson-s4-uart", "amlogic,meson-a1-uart"

Item 2

Exact value (const): "amlogic,meson-ao-uart"

Rule 2

Always-on power domain UART controller on G12A SoCs

Array item rules (items)

Item 1

Exact value (const): "amlogic,meson-g12a-uart"

Item 2

Exact value (const): "amlogic,meson-gx-uart"

Item 3

Exact value (const): "amlogic,meson-ao-uart"

Rule 3

Everything-Else power domain UART controller

Allowed values (enum): "amlogic,meson6-uart", "amlogic,meson8-uart", "amlogic,meson8b-uart", "amlogic,meson-gx-uart", "amlogic,meson-s4-uart", "amlogic,meson-a1-uart"

Rule 4

Everything-Else power domain UART controller on G12A SoCs

Array item rules (items)

Item 1

Exact value (const): "amlogic,meson-g12a-uart"

Item 2

Exact value (const): "amlogic,meson-gx-uart"

Rule 5

UART controller on S4 compatible SoCs

Array item rules (items)

Item 1

Allowed values (enum): "amlogic,a4-uart", "amlogic,s6-uart", "amlogic,s7-uart", "amlogic,s7d-uart", "amlogic,t7-uart"

Item 2

Exact value (const): "amlogic,meson-s4-uart"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

external xtal clock identifier

Item 2

the bus core clock, either the clk81 clock or the gate clock

Item 3

the source of the baudrate generator, can be either the xtal or the pclk

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "xtal"

Item 2

Exact value (const): "pclk"

Item 3

Exact value (const): "baud"

fifo-size — not listed as required here #

The fifo size supported by the UART channel.

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

Allowed values (enum): 64, 128

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

serial@84c0 {
    compatible = "amlogic,meson-gx-uart";
    reg = <0x84c0 0x14>;
    interrupts = <26>;
    clocks = <&xtal>, <&pclk>, <&xtal>;
    clock-names = "xtal", "pclk", "baud";
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright 2019 BayLibre, SAS

Edit this page