8250_omap.yaml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. rs485-rts-active-high: true
  56. power-domains: true
  57. clock-frequency: true
  58. current-speed: true
  59. overrun-throttle-ms: true
  60. wakeup-source: true
  61. pinctrl-0:
  62. description: Default pinctrl state
  63. pinctrl-1:
  64. description: Wakeup pinctrl state
  65. pinctrl-names:
  66. description:
  67. When present should contain at least "default" describing the default pin
  68. states. The second state called "wakeup" describes the pins in their
  69. wakeup configuration required to exit sleep states.
  70. minItems: 1
  71. items:
  72. - const: default
  73. - const: wakeup
  74. required:
  75. - compatible
  76. - reg
  77. - interrupts
  78. unevaluatedProperties: false
  79. if:
  80. properties:
  81. compatible:
  82. contains:
  83. enum:
  84. - ti,omap2-uart
  85. - ti,omap3-uart
  86. - ti,omap4-uart
  87. then:
  88. properties:
  89. ti,hwmods:
  90. items:
  91. - pattern: "^uart([1-9])$"
  92. else:
  93. properties:
  94. ti,hwmods: false
  95. examples:
  96. - |
  97. serial@49042000 {
  98. compatible = "ti,omap3-uart";
  99. reg = <0x49042000 0x400>;
  100. interrupts = <80>;
  101. dmas = <&sdma 81 &sdma 82>;
  102. dma-names = "tx", "rx";
  103. ti,hwmods = "uart4";
  104. clock-frequency = <48000000>;
  105. };