2021-08-26 19:21:51 +00:00
|
|
|
# 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
|
|
|
|
|
2021-08-26 19:21:52 +00:00
|
|
|
current-speed:
|
|
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
|
|
description:
|
|
|
|
The fixed baud rate that the device was configured for.
|
|
|
|
|
|
|
|
xlnx,data-bits:
|
|
|
|
enum: [5, 6, 7, 8]
|
|
|
|
description:
|
|
|
|
The fixed number of data bits that the device was configured for.
|
|
|
|
|
|
|
|
xlnx,use-parity:
|
|
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
|
|
enum: [0, 1]
|
|
|
|
description:
|
|
|
|
Whether parity checking was enabled when the device was configured.
|
|
|
|
|
|
|
|
xlnx,odd-parity:
|
|
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
|
|
enum: [0, 1]
|
|
|
|
description:
|
|
|
|
Whether odd parity was configured.
|
|
|
|
|
2021-08-26 19:21:51 +00:00
|
|
|
required:
|
|
|
|
- compatible
|
|
|
|
- reg
|
|
|
|
- interrupts
|
2021-08-26 19:21:52 +00:00
|
|
|
- current-speed
|
|
|
|
- xlnx,data-bits
|
|
|
|
- xlnx,use-parity
|
2021-08-26 19:21:51 +00:00
|
|
|
|
|
|
|
allOf:
|
2023-01-24 09:19:08 +00:00
|
|
|
- $ref: serial.yaml#
|
2021-08-26 19:21:52 +00:00
|
|
|
- if:
|
|
|
|
properties:
|
|
|
|
xlnx,use-parity:
|
2022-11-11 21:28:38 +00:00
|
|
|
const: 1
|
2021-08-26 19:21:52 +00:00
|
|
|
then:
|
|
|
|
required:
|
|
|
|
- xlnx,odd-parity
|
2021-08-26 19:21:51 +00:00
|
|
|
|
|
|
|
unevaluatedProperties: false
|
|
|
|
|
|
|
|
examples:
|
|
|
|
- |
|
2023-01-24 09:19:16 +00:00
|
|
|
serial@800c0000 {
|
2021-08-26 19:21:51 +00:00
|
|
|
compatible = "xlnx,xps-uartlite-1.00.a";
|
|
|
|
reg = <0x800c0000 0x10000>;
|
|
|
|
interrupts = <0x0 0x6e 0x1>;
|
|
|
|
port-number = <0>;
|
2021-08-26 19:21:52 +00:00
|
|
|
current-speed = <115200>;
|
|
|
|
xlnx,data-bits = <8>;
|
|
|
|
xlnx,use-parity = <0>;
|
2023-01-24 09:19:16 +00:00
|
|
|
};
|
2021-08-26 19:21:51 +00:00
|
|
|
...
|