Skip to content

Commit 6259530

Browse files
robherringgregkh
authored andcommitted
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 <[email protected]> Signed-off-by: "Rob Herring (Arm)" <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 2446bd6 commit 6259530

File tree

2 files changed

+51
-25
lines changed

2 files changed

+51
-25
lines changed

Documentation/devicetree/bindings/serial/arc-uart.txt

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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 <[email protected]>
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+
};

0 commit comments

Comments
 (0)