1# SPDX-License-Identifier: GPL-2.0 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/serial/samsung_uart.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Samsung S3C, S5P, Exynos, and S5L (Apple SoC) SoC UART Controller 8 9maintainers: 10 - Krzysztof Kozlowski <krzk@kernel.org> 11 - Greg Kroah-Hartman <gregkh@linuxfoundation.org> 12 13description: |+ 14 Each Samsung UART should have an alias correctly numbered in the "aliases" 15 node, according to serialN format, where N is the port number (non-negative 16 decimal integer) as specified by User's Manual of respective SoC. 17 18properties: 19 compatible: 20 items: 21 - enum: 22 - apple,s5l-uart 23 - samsung,s3c2410-uart 24 - samsung,s3c2412-uart 25 - samsung,s3c2440-uart 26 - samsung,s3c6400-uart 27 - samsung,s5pv210-uart 28 - samsung,exynos4210-uart 29 - samsung,exynos5433-uart 30 - samsung,exynos850-uart 31 32 reg: 33 maxItems: 1 34 35 reg-io-width: 36 description: | 37 The size (in bytes) of the IO accesses that should be performed 38 on the device. 39 $ref: /schemas/types.yaml#/definitions/uint32 40 enum: [ 1, 4 ] 41 42 clocks: 43 minItems: 2 44 maxItems: 5 45 46 clock-names: 47 description: N = 0 is allowed for SoCs without internal baud clock mux. 48 minItems: 2 49 items: 50 - const: uart 51 - pattern: '^clk_uart_baud[0-3]$' 52 - pattern: '^clk_uart_baud[0-3]$' 53 - pattern: '^clk_uart_baud[0-3]$' 54 - pattern: '^clk_uart_baud[0-3]$' 55 56 dmas: 57 items: 58 - description: DMA controller phandle and request line for RX 59 - description: DMA controller phandle and request line for TX 60 61 dma-names: 62 items: 63 - const: rx 64 - const: tx 65 66 interrupts: 67 description: RX interrupt and optionally TX interrupt. 68 minItems: 1 69 maxItems: 2 70 71 samsung,uart-fifosize: 72 description: The fifo size supported by the UART channel. 73 $ref: /schemas/types.yaml#/definitions/uint32 74 enum: [16, 64, 256] 75 76required: 77 - compatible 78 - clocks 79 - clock-names 80 - interrupts 81 - reg 82 83unevaluatedProperties: false 84 85allOf: 86 - $ref: serial.yaml# 87 88 - if: 89 properties: 90 compatible: 91 contains: 92 enum: 93 - samsung,s3c2410-uart 94 - samsung,s5pv210-uart 95 then: 96 properties: 97 clocks: 98 minItems: 2 99 maxItems: 3 100 clock-names: 101 minItems: 2 102 maxItems: 3 103 items: 104 - const: uart 105 - pattern: '^clk_uart_baud[0-1]$' 106 - pattern: '^clk_uart_baud[0-1]$' 107 108 - if: 109 properties: 110 compatible: 111 contains: 112 enum: 113 - apple,s5l-uart 114 - samsung,exynos4210-uart 115 - samsung,exynos5433-uart 116 then: 117 properties: 118 clocks: 119 minItems: 2 120 maxItems: 2 121 clock-names: 122 minItems: 2 123 maxItems: 2 124 items: 125 - const: uart 126 - const: clk_uart_baud0 127 128examples: 129 - | 130 #include <dt-bindings/clock/samsung,s3c64xx-clock.h> 131 132 uart0: serial@7f005000 { 133 compatible = "samsung,s3c6400-uart"; 134 reg = <0x7f005000 0x100>; 135 interrupt-parent = <&vic1>; 136 interrupts = <5>; 137 clock-names = "uart", "clk_uart_baud2", 138 "clk_uart_baud3"; 139 clocks = <&clocks PCLK_UART0>, <&clocks PCLK_UART0>, 140 <&clocks SCLK_UART>; 141 samsung,uart-fifosize = <16>; 142 }; 143