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: 207ef62cebSEmmanuel Vadot oneOf: 217ef62cebSEmmanuel Vadot - items: 227ef62cebSEmmanuel Vadot - const: samsung,exynosautov9-uart 237ef62cebSEmmanuel Vadot - const: samsung,exynos850-uart 24c66ec88fSEmmanuel Vadot - enum: 252eb4d8dcSEmmanuel Vadot - apple,s5l-uart 26c9ccf3a3SEmmanuel Vadot - axis,artpec8-uart 27c66ec88fSEmmanuel Vadot - samsung,s3c6400-uart 28c66ec88fSEmmanuel Vadot - samsung,s5pv210-uart 29c66ec88fSEmmanuel Vadot - samsung,exynos4210-uart 30c9ccf3a3SEmmanuel 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 enum: [ 1, 4 ] 41c66ec88fSEmmanuel Vadot 42c66ec88fSEmmanuel Vadot clocks: 43c66ec88fSEmmanuel Vadot minItems: 2 44c66ec88fSEmmanuel Vadot maxItems: 5 45c66ec88fSEmmanuel Vadot 46c66ec88fSEmmanuel Vadot clock-names: 47c66ec88fSEmmanuel Vadot description: N = 0 is allowed for SoCs without internal baud clock mux. 48c66ec88fSEmmanuel Vadot minItems: 2 49c66ec88fSEmmanuel Vadot items: 50c66ec88fSEmmanuel Vadot - const: uart 51c66ec88fSEmmanuel Vadot - pattern: '^clk_uart_baud[0-3]$' 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 562eb4d8dcSEmmanuel Vadot dmas: 572eb4d8dcSEmmanuel Vadot items: 582eb4d8dcSEmmanuel Vadot - description: DMA controller phandle and request line for RX 592eb4d8dcSEmmanuel Vadot - description: DMA controller phandle and request line for TX 602eb4d8dcSEmmanuel Vadot 612eb4d8dcSEmmanuel Vadot dma-names: 622eb4d8dcSEmmanuel Vadot items: 632eb4d8dcSEmmanuel Vadot - const: rx 642eb4d8dcSEmmanuel Vadot - const: tx 652eb4d8dcSEmmanuel Vadot 66c66ec88fSEmmanuel Vadot interrupts: 67c66ec88fSEmmanuel Vadot description: RX interrupt and optionally TX interrupt. 68c66ec88fSEmmanuel Vadot minItems: 1 69c66ec88fSEmmanuel Vadot maxItems: 2 70c66ec88fSEmmanuel Vadot 717ef62cebSEmmanuel Vadot power-domains: 727ef62cebSEmmanuel Vadot maxItems: 1 737ef62cebSEmmanuel Vadot 74c66ec88fSEmmanuel Vadot samsung,uart-fifosize: 75c66ec88fSEmmanuel Vadot description: The fifo size supported by the UART channel. 76c66ec88fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 77c66ec88fSEmmanuel Vadot enum: [16, 64, 256] 78c66ec88fSEmmanuel Vadot 79c66ec88fSEmmanuel Vadotrequired: 80c66ec88fSEmmanuel Vadot - compatible 81c66ec88fSEmmanuel Vadot - clocks 82c66ec88fSEmmanuel Vadot - clock-names 83c66ec88fSEmmanuel Vadot - interrupts 84c66ec88fSEmmanuel Vadot - reg 85c66ec88fSEmmanuel 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,s5pv210-uart 95c66ec88fSEmmanuel Vadot then: 96c66ec88fSEmmanuel Vadot properties: 97c66ec88fSEmmanuel Vadot clocks: 98c66ec88fSEmmanuel Vadot minItems: 2 99c66ec88fSEmmanuel Vadot maxItems: 3 100c66ec88fSEmmanuel Vadot clock-names: 101c66ec88fSEmmanuel Vadot minItems: 2 102c66ec88fSEmmanuel Vadot items: 103c66ec88fSEmmanuel Vadot - const: uart 104c66ec88fSEmmanuel Vadot - pattern: '^clk_uart_baud[0-1]$' 105c66ec88fSEmmanuel Vadot - pattern: '^clk_uart_baud[0-1]$' 106c66ec88fSEmmanuel Vadot 107c66ec88fSEmmanuel Vadot - if: 108c66ec88fSEmmanuel Vadot properties: 109c66ec88fSEmmanuel Vadot compatible: 110c66ec88fSEmmanuel Vadot contains: 111c66ec88fSEmmanuel Vadot enum: 1122eb4d8dcSEmmanuel Vadot - apple,s5l-uart 113c9ccf3a3SEmmanuel Vadot - axis,artpec8-uart 114c66ec88fSEmmanuel Vadot - samsung,exynos4210-uart 115c9ccf3a3SEmmanuel Vadot - samsung,exynos5433-uart 116c66ec88fSEmmanuel Vadot then: 117c66ec88fSEmmanuel Vadot properties: 118c66ec88fSEmmanuel Vadot clocks: 119c66ec88fSEmmanuel Vadot maxItems: 2 120c66ec88fSEmmanuel Vadot clock-names: 121c66ec88fSEmmanuel Vadot items: 122c66ec88fSEmmanuel Vadot - const: uart 123c66ec88fSEmmanuel Vadot - const: clk_uart_baud0 124c66ec88fSEmmanuel Vadot 125*84943d6fSEmmanuel VadotunevaluatedProperties: false 126*84943d6fSEmmanuel Vadot 127c66ec88fSEmmanuel Vadotexamples: 128c66ec88fSEmmanuel Vadot - | 129c66ec88fSEmmanuel Vadot #include <dt-bindings/clock/samsung,s3c64xx-clock.h> 130c66ec88fSEmmanuel Vadot 131c66ec88fSEmmanuel Vadot uart0: serial@7f005000 { 132c66ec88fSEmmanuel Vadot compatible = "samsung,s3c6400-uart"; 133c66ec88fSEmmanuel Vadot reg = <0x7f005000 0x100>; 134c66ec88fSEmmanuel Vadot interrupt-parent = <&vic1>; 135c66ec88fSEmmanuel Vadot interrupts = <5>; 136c66ec88fSEmmanuel Vadot clock-names = "uart", "clk_uart_baud2", 137c66ec88fSEmmanuel Vadot "clk_uart_baud3"; 138c66ec88fSEmmanuel Vadot clocks = <&clocks PCLK_UART0>, <&clocks PCLK_UART0>, 139c66ec88fSEmmanuel Vadot <&clocks SCLK_UART>; 140c66ec88fSEmmanuel Vadot samsung,uart-fifosize = <16>; 141c66ec88fSEmmanuel Vadot }; 142