Spreadtrum serial UART

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

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

Maintainers (maintainers): "Orson Zhai <orsonzhai@gmail.com>", "Baolin Wang <baolin.wang7@gmail.com>", "Chunyan Zhang <zhang.lyra@gmail.com>"

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): "sprd,ums9632-uart"

Item 2

Exact value (const): "sprd,sc9632-uart"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "sprd,sc9860-uart", "sprd,sc9863a-uart", "sprd,ums512-uart", "sprd,ums9620-uart"

Item 2

Exact value (const): "sprd,sc9836-uart"

Rule 3

Allowed values (enum): "sprd,sc9632-uart", "sprd,sc9836-uart"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

clock-names — not listed as required here #

"enable" for UART module enable clock, "uart" for UART clock, "source" for UART source (parent) clock.

Array item rules (items) #

Item 1

Exact value (const): "enable"

Item 2

Exact value (const): "uart"

Item 3

Exact value (const): "source"

dmas — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

dma-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

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.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
serial@0 {
  compatible = "sprd,sc9860-uart", "sprd,sc9836-uart";
  reg = <0x0 0x100>;
  interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
  dma-names = "rx", "tx";
  dmas = <&ap_dma 19>, <&ap_dma 20>;
  clock-names = "enable", "uart", "source";
  clocks = <&clk_ap_apb_gates 9>, <&clk_uart0>, <&ext_26m>;
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright 2019 Unisoc Inc.

Edit this page