xlnx,opb-uartlite.yaml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. # SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/serial/xlnx,opb-uartlite.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Xilinx Axi Uartlite
  7. maintainers:
  8. - Peter Korsgaard <jacmet@sunsite.dk>
  9. properties:
  10. compatible:
  11. contains:
  12. enum:
  13. - xlnx,xps-uartlite-1.00.a
  14. - xlnx,opb-uartlite-1.00.b
  15. reg:
  16. maxItems: 1
  17. interrupts:
  18. maxItems: 1
  19. port-number:
  20. $ref: /schemas/types.yaml#/definitions/uint32
  21. description: Set Uart port number
  22. clocks:
  23. maxItems: 1
  24. clock-names:
  25. const: s_axi_aclk
  26. current-speed:
  27. $ref: /schemas/types.yaml#/definitions/uint32
  28. description:
  29. The fixed baud rate that the device was configured for.
  30. xlnx,data-bits:
  31. enum: [5, 6, 7, 8]
  32. description:
  33. The fixed number of data bits that the device was configured for.
  34. xlnx,use-parity:
  35. $ref: /schemas/types.yaml#/definitions/uint32
  36. enum: [0, 1]
  37. description:
  38. Whether parity checking was enabled when the device was configured.
  39. xlnx,odd-parity:
  40. $ref: /schemas/types.yaml#/definitions/uint32
  41. enum: [0, 1]
  42. description:
  43. Whether odd parity was configured.
  44. required:
  45. - compatible
  46. - reg
  47. - interrupts
  48. - current-speed
  49. - xlnx,data-bits
  50. - xlnx,use-parity
  51. allOf:
  52. - $ref: serial.yaml#
  53. - if:
  54. properties:
  55. xlnx,use-parity:
  56. const: 1
  57. then:
  58. required:
  59. - xlnx,odd-parity
  60. unevaluatedProperties: false
  61. examples:
  62. - |
  63. serial@800c0000 {
  64. compatible = "xlnx,xps-uartlite-1.00.a";
  65. reg = <0x800c0000 0x10000>;
  66. interrupts = <0x0 0x6e 0x1>;
  67. port-number = <0>;
  68. current-speed = <115200>;
  69. xlnx,data-bits = <8>;
  70. xlnx,use-parity = <0>;
  71. };
  72. ...