0001 # SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/serial/xlnx,opb-uartlite.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Xilinx Axi Uartlite
0008
0009 maintainers:
0010 - Peter Korsgaard <jacmet@sunsite.dk>
0011
0012 properties:
0013 compatible:
0014 contains:
0015 enum:
0016 - xlnx,xps-uartlite-1.00.a
0017 - xlnx,opb-uartlite-1.00.b
0018
0019 reg:
0020 maxItems: 1
0021
0022 interrupts:
0023 maxItems: 1
0024
0025 port-number:
0026 $ref: /schemas/types.yaml#/definitions/uint32
0027 description: Set Uart port number
0028
0029 clocks:
0030 maxItems: 1
0031
0032 clock-names:
0033 const: s_axi_aclk
0034
0035 current-speed:
0036 $ref: /schemas/types.yaml#/definitions/uint32
0037 description:
0038 The fixed baud rate that the device was configured for.
0039
0040 xlnx,data-bits:
0041 enum: [5, 6, 7, 8]
0042 description:
0043 The fixed number of data bits that the device was configured for.
0044
0045 xlnx,use-parity:
0046 $ref: /schemas/types.yaml#/definitions/uint32
0047 enum: [0, 1]
0048 description:
0049 Whether parity checking was enabled when the device was configured.
0050
0051 xlnx,odd-parity:
0052 $ref: /schemas/types.yaml#/definitions/uint32
0053 enum: [0, 1]
0054 description:
0055 Whether odd parity was configured.
0056
0057 required:
0058 - compatible
0059 - reg
0060 - interrupts
0061 - current-speed
0062 - xlnx,data-bits
0063 - xlnx,use-parity
0064
0065 allOf:
0066 - $ref: /schemas/serial.yaml#
0067 - if:
0068 properties:
0069 xlnx,use-parity:
0070 contains:
0071 const: 1
0072 then:
0073 required:
0074 - xlnx,odd-parity
0075
0076 unevaluatedProperties: false
0077
0078 examples:
0079 - |
0080 serial@800c0000 {
0081 compatible = "xlnx,xps-uartlite-1.00.a";
0082 reg = <0x800c0000 0x10000>;
0083 interrupts = <0x0 0x6e 0x1>;
0084 port-number = <0>;
0085 current-speed = <115200>;
0086 xlnx,data-bits = <8>;
0087 xlnx,use-parity = <0>;
0088 };
0089 ...