xref: /freebsd/sys/contrib/device-tree/Bindings/serial/xlnx,opb-uartlite.yaml (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
18cc087a1SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
28cc087a1SEmmanuel Vadot%YAML 1.2
38cc087a1SEmmanuel Vadot---
48cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/serial/xlnx,opb-uartlite.yaml#
58cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
68cc087a1SEmmanuel Vadot
78cc087a1SEmmanuel Vadottitle: Xilinx Axi Uartlite
88cc087a1SEmmanuel Vadot
98cc087a1SEmmanuel Vadotmaintainers:
108cc087a1SEmmanuel Vadot  - Peter Korsgaard <jacmet@sunsite.dk>
118cc087a1SEmmanuel Vadot
128cc087a1SEmmanuel Vadotproperties:
138cc087a1SEmmanuel Vadot  compatible:
148cc087a1SEmmanuel Vadot    contains:
158cc087a1SEmmanuel Vadot      enum:
168cc087a1SEmmanuel Vadot        - xlnx,xps-uartlite-1.00.a
178cc087a1SEmmanuel Vadot        - xlnx,opb-uartlite-1.00.b
188cc087a1SEmmanuel Vadot
198cc087a1SEmmanuel Vadot  reg:
208cc087a1SEmmanuel Vadot    maxItems: 1
218cc087a1SEmmanuel Vadot
228cc087a1SEmmanuel Vadot  interrupts:
238cc087a1SEmmanuel Vadot    maxItems: 1
248cc087a1SEmmanuel Vadot
258cc087a1SEmmanuel Vadot  port-number:
268cc087a1SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
278cc087a1SEmmanuel Vadot    description: Set Uart port number
288cc087a1SEmmanuel Vadot
298cc087a1SEmmanuel Vadot  clocks:
308cc087a1SEmmanuel Vadot    maxItems: 1
318cc087a1SEmmanuel Vadot
328cc087a1SEmmanuel Vadot  clock-names:
338cc087a1SEmmanuel Vadot    const: s_axi_aclk
348cc087a1SEmmanuel Vadot
358cc087a1SEmmanuel Vadot  current-speed:
368cc087a1SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
378cc087a1SEmmanuel Vadot    description:
388cc087a1SEmmanuel Vadot      The fixed baud rate that the device was configured for.
398cc087a1SEmmanuel Vadot
408cc087a1SEmmanuel Vadot  xlnx,data-bits:
418cc087a1SEmmanuel Vadot    enum: [5, 6, 7, 8]
428cc087a1SEmmanuel Vadot    description:
438cc087a1SEmmanuel Vadot      The fixed number of data bits that the device was configured for.
448cc087a1SEmmanuel Vadot
458cc087a1SEmmanuel Vadot  xlnx,use-parity:
468cc087a1SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
478cc087a1SEmmanuel Vadot    enum: [0, 1]
488cc087a1SEmmanuel Vadot    description:
498cc087a1SEmmanuel Vadot      Whether parity checking was enabled when the device was configured.
508cc087a1SEmmanuel Vadot
518cc087a1SEmmanuel Vadot  xlnx,odd-parity:
528cc087a1SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
538cc087a1SEmmanuel Vadot    enum: [0, 1]
548cc087a1SEmmanuel Vadot    description:
558cc087a1SEmmanuel Vadot      Whether odd parity was configured.
568cc087a1SEmmanuel Vadot
578cc087a1SEmmanuel Vadotrequired:
588cc087a1SEmmanuel Vadot  - compatible
598cc087a1SEmmanuel Vadot  - reg
608cc087a1SEmmanuel Vadot  - interrupts
618cc087a1SEmmanuel Vadot  - current-speed
628cc087a1SEmmanuel Vadot  - xlnx,data-bits
638cc087a1SEmmanuel Vadot  - xlnx,use-parity
648cc087a1SEmmanuel Vadot
658cc087a1SEmmanuel VadotallOf:
66*cb7aa33aSEmmanuel Vadot  - $ref: serial.yaml#
678cc087a1SEmmanuel Vadot  - if:
688cc087a1SEmmanuel Vadot      properties:
698cc087a1SEmmanuel Vadot        xlnx,use-parity:
708cc087a1SEmmanuel Vadot          const: 1
718cc087a1SEmmanuel Vadot    then:
728cc087a1SEmmanuel Vadot      required:
738cc087a1SEmmanuel Vadot        - xlnx,odd-parity
748cc087a1SEmmanuel Vadot
758cc087a1SEmmanuel VadotunevaluatedProperties: false
768cc087a1SEmmanuel Vadot
778cc087a1SEmmanuel Vadotexamples:
788cc087a1SEmmanuel Vadot  - |
798cc087a1SEmmanuel Vadot    serial@800c0000 {
808cc087a1SEmmanuel Vadot        compatible = "xlnx,xps-uartlite-1.00.a";
818cc087a1SEmmanuel Vadot        reg = <0x800c0000 0x10000>;
828cc087a1SEmmanuel Vadot        interrupts = <0x0 0x6e 0x1>;
838cc087a1SEmmanuel Vadot        port-number = <0>;
848cc087a1SEmmanuel Vadot        current-speed = <115200>;
858cc087a1SEmmanuel Vadot        xlnx,data-bits = <8>;
868cc087a1SEmmanuel Vadot        xlnx,use-parity = <0>;
878cc087a1SEmmanuel Vadot    };
888cc087a1SEmmanuel Vadot...
89