Samsung S3C, S5P, Exynos, and S5L (Apple SoC) SoC UART Controller

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

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

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Greg Kroah-Hartman <gregkh@linuxfoundation.org>"

Each Samsung UART should have an alias correctly numbered in the "aliases" node, according to serialN format, where N is the port number (non-negative decimal integer) as specified by User's Manual of respective SoC.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "apple,s5l-uart", "axis,artpec8-uart", "google,gs101-uart", "samsung,s3c6400-uart", "samsung,s5pv210-uart", "samsung,exynos4210-uart", "samsung,exynos5433-uart", "samsung,exynos850-uart", "samsung,exynos8895-uart"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "samsung,exynos2200-uart"

Item 2

Exact value (const): "google,gs101-uart"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "samsung,exynos7-uart", "tesla,fsd-uart"

Item 2

Exact value (const): "samsung,exynos4210-uart"

Rule 4

Array item rules (items)

Item 1

Allowed values (enum): "samsung,exynos7885-uart"

Item 2

Exact value (const): "samsung,exynos5433-uart"

Rule 5

Array item rules (items)

Item 1

Allowed values (enum): "samsung,exynosautov9-uart", "samsung,exynosautov920-uart"

Item 2

Exact value (const): "samsung,exynos850-uart"

Rule 6

Array item rules (items)

Item 1

Allowed values (enum): "axis,artpec9-uart", "samsung,exynos7870-uart", "samsung,exynos8890-uart"

Item 2

Exact value (const): "samsung,exynos8895-uart"

reg — required here #

Maximum number of items (maxItems): 1

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

The size (in bytes) of the IO accesses that should be performed on the device.

Allowed values (enum): 1, 4

clocks — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 5

clock-names — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 5

dmas — not listed as required here #

Array item rules (items) #

Item 1

DMA controller phandle and request line for RX

Item 2

DMA controller phandle and request line for TX

dma-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

interrupts — required here #

RX interrupt and optionally TX interrupt.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

samsung,uart-fifosize — 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): 16, 64, 256

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

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "samsung,s3c6400-uart"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "uart"

Item 2

Exact value (const): "clk_uart_baud2"

Item 3

Exact value (const): "clk_uart_baud3"

When the condition does not match (else) #

Properties and child nodes (properties)

clock-names — not listed as required here

Minimum number of items (minItems): 2

Array item rules (items)

Item 1

Exact value (const): "uart"

Item 2

Exact value (const): "clk_uart_baud0"

Item 3

Exact value (const): "clk_uart_baud1"

Item 4

Exact value (const): "clk_uart_baud2"

Item 5

Exact value (const): "clk_uart_baud3"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "samsung,s5pv210-uart"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "apple,s5l-uart", "axis,artpec8-uart", "samsung,exynos4210-uart", "samsung,exynos5433-uart"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 2

clock-names — not listed as required here

Maximum number of items (maxItems): 2

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "google,gs101-uart", "samsung,exynos8895-uart"

When the condition matches (then) #

Required in this object (required): "samsung,uart-fifosize"

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 2

clock-names — not listed as required here

Maximum number of items (maxItems): 2

Rule 6 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "google,gs101-uart"

When the condition matches (then) #

Properties and child nodes (properties)

reg-io-width — not listed as required here

false — Not permitted by this property rule.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/samsung,s3c64xx-clock.h>

uart0: serial@7f005000 {
    compatible = "samsung,s3c6400-uart";
    reg = <0x7f005000 0x100>;
    interrupt-parent = <&vic1>;
    interrupts = <5>;
    clock-names = "uart", "clk_uart_baud2",
                  "clk_uart_baud3";
    clocks = <&clocks PCLK_UART0>, <&clocks PCLK_UART0>,
             <&clocks SCLK_UART>;
    samsung,uart-fifosize = <16>;
};
#include <dt-bindings/clock/google,gs101.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

serial_0: serial@10a00000 {
  compatible = "google,gs101-uart";
  reg = <0x10a00000 0xc0>;
  clocks = <&cmu_peric0 CLK_GOUT_PERIC0_PERIC0_TOP1_PCLK_0>,
           <&cmu_peric0 CLK_GOUT_PERIC0_PERIC0_TOP1_IPCLK_0>;
  clock-names = "uart", "clk_uart_baud0";
  interrupts = <GIC_SPI 634 IRQ_TYPE_LEVEL_HIGH 0>;
  pinctrl-0 = <&uart0_bus>;
  pinctrl-names = "default";
  samsung,uart-fifosize = <256>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Edit this page