8250_omap.yaml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/serial/8250_omap.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: 8250 compliant UARTs on TI's OMAP2+ and K3 SoCs
  7. maintainers:
  8. - Vignesh Raghavendra <vigneshr@ti.com>
  9. allOf:
  10. - $ref: /schemas/serial/serial.yaml#
  11. - $ref: /schemas/serial/rs485.yaml#
  12. properties:
  13. compatible:
  14. oneOf:
  15. - enum:
  16. - ti,am3352-uart
  17. - ti,am4372-uart
  18. - ti,am654-uart
  19. - ti,dra742-uart
  20. - ti,omap2-uart
  21. - ti,omap3-uart
  22. - ti,omap4-uart
  23. - items:
  24. - enum:
  25. - ti,am64-uart
  26. - ti,j721e-uart
  27. - const: ti,am654-uart
  28. ti,hwmods:
  29. description:
  30. Must be "uart<n>", n being the instance number (1-based)
  31. This property is applicable only on legacy platforms mainly omap2/3
  32. and ti81xx and should not be used on other platforms.
  33. $ref: /schemas/types.yaml#/definitions/string
  34. deprecated: true
  35. dmas:
  36. minItems: 1
  37. maxItems: 2
  38. dma-names:
  39. items:
  40. - const: tx
  41. - const: rx
  42. reg:
  43. maxItems: 1
  44. interrupts:
  45. minItems: 1
  46. maxItems: 2
  47. description:
  48. First entry is module IRQ required for normal IO operation.
  49. Second entry is optional and corresponds to system wakeup IRQ
  50. where supported.
  51. clocks:
  52. maxItems: 1
  53. clock-names:
  54. const: fclk
  55. rts-gpios: true
  56. cts-gpios: true
  57. dtr-gpios: true
  58. dsr-gpios: true
  59. rng-gpios: true
  60. dcd-gpios: true
  61. rs485-rts-active-high: true
  62. rts-gpio: true
  63. power-domains: true
  64. clock-frequency: true
  65. current-speed: true
  66. overrun-throttle-ms: true
  67. wakeup-source: true
  68. required:
  69. - compatible
  70. - reg
  71. - interrupts
  72. unevaluatedProperties: false
  73. if:
  74. properties:
  75. compatible:
  76. contains:
  77. enum:
  78. - ti,omap2-uart
  79. - ti,omap3-uart
  80. - ti,omap4-uart
  81. then:
  82. properties:
  83. ti,hwmods:
  84. items:
  85. - pattern: "^uart([1-9])$"
  86. else:
  87. properties:
  88. ti,hwmods: false
  89. examples:
  90. - |
  91. serial@49042000 {
  92. compatible = "ti,omap3-uart";
  93. reg = <0x49042000 0x400>;
  94. interrupts = <80>;
  95. dmas = <&sdma 81 &sdma 82>;
  96. dma-names = "tx", "rx";
  97. ti,hwmods = "uart4";
  98. clock-frequency = <48000000>;
  99. };