Skip to content

Commit 418af7e

Browse files
kanakshilledargregkh
authored andcommitted
dt-bindings: serial: vt8500-uart: convert to json-schema
Convert the VIA VT8500 and WonderMedia WM8xxx UART Controller to newer DT schema. Created DT schema based on the .txt file which had `compatible`, `reg`, `interrupts` and `clocks` as required properties. Additions to the original binding - changed the file name from vt8500-uart to via,vt8500-uart.yaml - removed unnecessary alias from the example. Signed-off-by: Kanak Shilledar <[email protected]> Acked-by: Alexey Charkov <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent efa6b0a commit 418af7e

File tree

2 files changed

+46
-27
lines changed

2 files changed

+46
-27
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
3+
%YAML 1.2
4+
---
5+
$id: http://devicetree.org/schemas/serial/via,vt8500-uart.yaml#
6+
$schema: http://devicetree.org/meta-schemas/core.yaml#
7+
8+
title: VIA VT8500 and WonderMedia WM8xxx UART Controller
9+
10+
maintainers:
11+
- Alexey Charkov <[email protected]>
12+
13+
allOf:
14+
- $ref: serial.yaml
15+
16+
properties:
17+
compatible:
18+
enum:
19+
- via,vt8500-uart # up to WM8850/WM8950
20+
- wm,wm8880-uart # for WM8880 and later
21+
22+
clocks:
23+
maxItems: 1
24+
25+
interrupts:
26+
maxItems: 1
27+
28+
reg:
29+
maxItems: 1
30+
31+
required:
32+
- compatible
33+
- clocks
34+
- interrupts
35+
- reg
36+
37+
unevaluatedProperties: false
38+
39+
examples:
40+
- |
41+
serial@d8200000 {
42+
compatible = "via,vt8500-uart";
43+
reg = <0xd8200000 0x1040>;
44+
interrupts = <32>;
45+
clocks = <&clkuart0>;
46+
};

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

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)