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 30 reg: 31 maxItems: 1 32 33 reg-io-width: 34 description: | 35 The size (in bytes) of the IO accesses that should be performed 36 on the device. 37 $ref: /schemas/types.yaml#/definitions/uint32 38 enum: [ 1, 4 ] 39 40 clocks: 41 minItems: 2 42 maxItems: 5 43 44 clock-names: 45 description: N = 0 is allowed for SoCs without internal baud clock mux. 46 minItems: 2 47 maxItems: 5 48 items: 49 - const: uart 50 - pattern: '^clk_uart_baud[0-3]$' 51 - pattern: '^clk_uart_baud[0-3]$' 52 - pattern: '^clk_uart_baud[0-3]$' 53 - pattern: '^clk_uart_baud[0-3]$' 54 55 interrupts: 56 description: RX interrupt and optionally TX interrupt. 57 minItems: 1 58 maxItems: 2 59 60 samsung,uart-fifosize: 61 description: The fifo size supported by the UART channel. 62 $ref: /schemas/types.yaml#/definitions/uint32 63 enum: [16, 64, 256] 64 65required: 66 - compatible 67 - clocks 68 - clock-names 69 - interrupts 70 - reg 71 72additionalProperties: false 73 74allOf: 75 - if: 76 properties: 77 compatible: 78 contains: 79 enum: 80 - samsung,s3c2410-uart 81 - samsung,s5pv210-uart 82 then: 83 properties: 84 clocks: 85 minItems: 2 86 maxItems: 3 87 clock-names: 88 minItems: 2 89 maxItems: 3 90 items: 91 - const: uart 92 - pattern: '^clk_uart_baud[0-1]$' 93 - pattern: '^clk_uart_baud[0-1]$' 94 95 - if: 96 properties: 97 compatible: 98 contains: 99 enum: 100 - apple,s5l-uart 101 - samsung,exynos4210-uart 102 then: 103 properties: 104 clocks: 105 minItems: 2 106 maxItems: 2 107 clock-names: 108 minItems: 2 109 maxItems: 2 110 items: 111 - const: uart 112 - const: clk_uart_baud0 113 114examples: 115 - | 116 #include <dt-bindings/clock/samsung,s3c64xx-clock.h> 117 118 uart0: serial@7f005000 { 119 compatible = "samsung,s3c6400-uart"; 120 reg = <0x7f005000 0x100>; 121 interrupt-parent = <&vic1>; 122 interrupts = <5>; 123 clock-names = "uart", "clk_uart_baud2", 124 "clk_uart_baud3"; 125 clocks = <&clocks PCLK_UART0>, <&clocks PCLK_UART0>, 126 <&clocks SCLK_UART>; 127 samsung,uart-fifosize = <16>; 128 }; 129