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 and Exynos 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 - samsung,s3c2410-uart 23 - samsung,s3c2412-uart 24 - samsung,s3c2440-uart 25 - samsung,s3c6400-uart 26 - samsung,s5pv210-uart 27 - samsung,exynos4210-uart 28 29 reg: 30 maxItems: 1 31 32 reg-io-width: 33 description: | 34 The size (in bytes) of the IO accesses that should be performed 35 on the device. 36 allOf: 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 72allOf: 73 - if: 74 properties: 75 compatible: 76 contains: 77 enum: 78 - samsung,s3c2410-uart 79 - samsung,s5pv210-uart 80 then: 81 properties: 82 clocks: 83 minItems: 2 84 maxItems: 3 85 clock-names: 86 minItems: 2 87 maxItems: 3 88 items: 89 - const: uart 90 - pattern: '^clk_uart_baud[0-1]$' 91 - pattern: '^clk_uart_baud[0-1]$' 92 93 - if: 94 properties: 95 compatible: 96 contains: 97 enum: 98 - samsung,exynos4210-uart 99 then: 100 properties: 101 clocks: 102 minItems: 2 103 maxItems: 2 104 clock-names: 105 minItems: 2 106 maxItems: 2 107 items: 108 - const: uart 109 - const: clk_uart_baud0 110 111examples: 112 - | 113 #include <dt-bindings/clock/samsung,s3c64xx-clock.h> 114 115 uart0: serial@7f005000 { 116 compatible = "samsung,s3c6400-uart"; 117 reg = <0x7f005000 0x100>; 118 interrupt-parent = <&vic1>; 119 interrupts = <5>; 120 clock-names = "uart", "clk_uart_baud2", 121 "clk_uart_baud3"; 122 clocks = <&clocks PCLK_UART0>, <&clocks PCLK_UART0>, 123 <&clocks SCLK_UART>; 124 samsung,uart-fifosize = <16>; 125 }; 126