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