amlogic,meson-uart.yaml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. # Copyright 2019 BayLibre, SAS
  3. %YAML 1.2
  4. ---
  5. $id: http://devicetree.org/schemas/serial/amlogic,meson-uart.yaml#
  6. $schema: http://devicetree.org/meta-schemas/core.yaml#
  7. title: Amlogic Meson SoC UART Serial Interface
  8. maintainers:
  9. - Neil Armstrong <neil.armstrong@linaro.org>
  10. description: |
  11. The Amlogic Meson SoC UART Serial Interface is present on a large range
  12. of SoCs, and can be present either in the "Always-On" power domain or the
  13. "Everything-Else" power domain.
  14. The particularity of the "Always-On" Serial Interface is that the hardware
  15. is active since power-on and does not need any clock gating and is usable
  16. as very early serial console.
  17. allOf:
  18. - $ref: serial.yaml#
  19. properties:
  20. compatible:
  21. oneOf:
  22. - description: Always-on power domain UART controller
  23. items:
  24. - enum:
  25. - amlogic,meson6-uart
  26. - amlogic,meson8-uart
  27. - amlogic,meson8b-uart
  28. - amlogic,meson-gx-uart
  29. - amlogic,meson-s4-uart
  30. - amlogic,meson-a1-uart
  31. - const: amlogic,meson-ao-uart
  32. - description: Always-on power domain UART controller on G12A SoCs
  33. items:
  34. - const: amlogic,meson-g12a-uart
  35. - const: amlogic,meson-gx-uart
  36. - const: amlogic,meson-ao-uart
  37. - description: Everything-Else power domain UART controller
  38. enum:
  39. - amlogic,meson6-uart
  40. - amlogic,meson8-uart
  41. - amlogic,meson8b-uart
  42. - amlogic,meson-gx-uart
  43. - amlogic,meson-s4-uart
  44. - amlogic,meson-a1-uart
  45. - description: Everything-Else power domain UART controller on G12A SoCs
  46. items:
  47. - const: amlogic,meson-g12a-uart
  48. - const: amlogic,meson-gx-uart
  49. - description: UART controller on S4 compatible SoCs
  50. items:
  51. - enum:
  52. - amlogic,a4-uart
  53. - amlogic,t7-uart
  54. - const: amlogic,meson-s4-uart
  55. reg:
  56. maxItems: 1
  57. interrupts:
  58. maxItems: 1
  59. clocks:
  60. items:
  61. - description: external xtal clock identifier
  62. - description: the bus core clock, either the clk81 clock or the gate clock
  63. - description: the source of the baudrate generator, can be either the xtal or the pclk
  64. clock-names:
  65. items:
  66. - const: xtal
  67. - const: pclk
  68. - const: baud
  69. fifo-size:
  70. description: The fifo size supported by the UART channel.
  71. $ref: /schemas/types.yaml#/definitions/uint32
  72. enum: [64, 128]
  73. required:
  74. - compatible
  75. - reg
  76. - interrupts
  77. - clocks
  78. - clock-names
  79. unevaluatedProperties: false
  80. examples:
  81. - |
  82. serial@84c0 {
  83. compatible = "amlogic,meson-gx-uart";
  84. reg = <0x84c0 0x14>;
  85. interrupts = <26>;
  86. clocks = <&xtal>, <&pclk>, <&xtal>;
  87. clock-names = "xtal", "pclk", "baud";
  88. };