-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dt-bindings: serial: uartlite: Convert to json-schema
This converts the existing documentation for the uartlite binding to json-schema. Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Sean Anderson <sean.anderson@seco.com> Link: https://lore.kernel.org/r/20210826192154.3202269-2-sean.anderson@seco.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
- Loading branch information
Sean Anderson
authored and
Greg Kroah-Hartman
committed
Sep 14, 2021
1 parent
538a990
commit f77529d
Showing
2 changed files
with
53 additions
and
23 deletions.
There are no files selected for viewing
23 changes: 0 additions & 23 deletions
23
Documentation/devicetree/bindings/serial/xlnx,opb-uartlite.txt
This file was deleted.
Oops, something went wrong.
53 changes: 53 additions & 0 deletions
53
Documentation/devicetree/bindings/serial/xlnx,opb-uartlite.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/serial/xlnx,opb-uartlite.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Xilinx Axi Uartlite | ||
|
||
maintainers: | ||
- Peter Korsgaard <jacmet@sunsite.dk> | ||
|
||
properties: | ||
compatible: | ||
contains: | ||
enum: | ||
- xlnx,xps-uartlite-1.00.a | ||
- xlnx,opb-uartlite-1.00.b | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
interrupts: | ||
maxItems: 1 | ||
|
||
port-number: | ||
$ref: /schemas/types.yaml#/definitions/uint32 | ||
description: Set Uart port number | ||
|
||
clocks: | ||
maxItems: 1 | ||
|
||
clock-names: | ||
const: s_axi_aclk | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- interrupts | ||
|
||
allOf: | ||
- $ref: /schemas/serial.yaml# | ||
|
||
unevaluatedProperties: false | ||
|
||
examples: | ||
- | | ||
serial@800c0000 { | ||
compatible = "xlnx,xps-uartlite-1.00.a"; | ||
reg = <0x800c0000 0x10000>; | ||
interrupts = <0x0 0x6e 0x1>; | ||
port-number = <0>; | ||
}; | ||
... |