Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: serial: Convert snps,arc-uart to DT schema

Convert the Synopsys ARC UART binding to DT schema. Drop the "aliases"
portion which is not relevant to this schema.

Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: "Rob Herring (Arm)" <robh@kernel.org>
Link: https://lore.kernel.org/r/20250507154909.1602497-1-robh@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Rob Herring (Arm) and committed by
Greg Kroah-Hartman
6259530c 2446bd69

+51 -25
-25
Documentation/devicetree/bindings/serial/arc-uart.txt
··· 1 - * Synopsys ARC UART : Non standard UART used in some of the ARC FPGA boards 2 - 3 - Required properties: 4 - - compatible : "snps,arc-uart" 5 - - reg : offset and length of the register set for the device. 6 - - interrupts : device interrupt 7 - - clock-frequency : the input clock frequency for the UART 8 - - current-speed : baud rate for UART 9 - 10 - e.g. 11 - 12 - arcuart0: serial@c0fc1000 { 13 - compatible = "snps,arc-uart"; 14 - reg = <0xc0fc1000 0x100>; 15 - interrupts = <5>; 16 - clock-frequency = <80000000>; 17 - current-speed = <115200>; 18 - }; 19 - 20 - Note: Each port should have an alias correctly numbered in "aliases" node. 21 - 22 - e.g. 23 - aliases { 24 - serial0 = &arcuart0; 25 - };
+51
Documentation/devicetree/bindings/serial/snps,arc-uart.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/serial/snps,arc-uart.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Synopsys ARC UART 8 + 9 + maintainers: 10 + - Vineet Gupta <vgupta@kernel.org> 11 + 12 + description: 13 + Synopsys ARC UART is a non-standard UART used in some of the ARC FPGA boards. 14 + 15 + allOf: 16 + - $ref: /schemas/serial/serial.yaml# 17 + 18 + properties: 19 + compatible: 20 + const: snps,arc-uart 21 + 22 + reg: 23 + maxItems: 1 24 + 25 + interrupts: 26 + maxItems: 1 27 + 28 + clock-frequency: 29 + description: the input clock frequency for the UART 30 + 31 + current-speed: 32 + description: baud rate for UART 33 + 34 + required: 35 + - compatible 36 + - reg 37 + - interrupts 38 + - clock-frequency 39 + - current-speed 40 + 41 + unevaluatedProperties: false 42 + 43 + examples: 44 + - | 45 + serial@c0fc1000 { 46 + compatible = "snps,arc-uart"; 47 + reg = <0xc0fc1000 0x100>; 48 + interrupts = <5>; 49 + clock-frequency = <80000000>; 50 + current-speed = <115200>; 51 + };