Marvell Armada-3700 UART

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

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

Maintainers (maintainers): "Pali Rohár <pali@kernel.org>"

Marvell UART is a non standard UART used in some of Marvell EBU SoCs (e.g. Armada-3700).

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "marvell,armada-3700-uart", "marvell,armada-3700-uart-ext"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

UART reference clock used to derive the baud rate. If absent, only fixed baud rate from the bootloader is supported.

interrupts — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

UART sum interrupt

Item 2

UART TX interrupt

Item 3

UART RX interrupt

interrupt-names — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Exact value (const): "marvell,armada-3700-uart-ext"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Maximum number of items (maxItems): 2

interrupt-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "uart-tx"

Item 2

Exact value (const): "uart-rx"

When the condition does not match (else) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 3

interrupt-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "uart-sum"

Item 2

Exact value (const): "uart-tx"

Item 3

Exact value (const): "uart-rx"

Examples (examples) #

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

serial@12000 {
    compatible = "marvell,armada-3700-uart";
    reg = <0x12000 0x18>;
    clocks = <&uartclk 0>;
    interrupts =
        <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
        <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
        <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-names = "uart-sum", "uart-tx", "uart-rx";
};
#include <dt-bindings/interrupt-controller/arm-gic.h>

serial@12200 {
    compatible = "marvell,armada-3700-uart-ext";
    reg = <0x12200 0x30>;
    clocks = <&uartclk 1>;
    interrupts =
        <GIC_SPI 30 IRQ_TYPE_EDGE_RISING>,
        <GIC_SPI 31 IRQ_TYPE_EDGE_RISING>;
    interrupt-names = "uart-tx", "uart-rx";
};

Source notes #

Annotations retained from the schema source

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

Edit this page