brcm,bcm7271-uart.yaml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/serial/brcm,bcm7271-uart.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Broadcom 8250 based serial port
  7. maintainers:
  8. - Al Cooper <alcooperx@gmail.com>
  9. allOf:
  10. - $ref: serial.yaml#
  11. description: |+
  12. The Broadcom UART is based on the basic 8250 UART but with
  13. enhancements for more accurate high speed baud rates and support
  14. for DMA.
  15. properties:
  16. compatible:
  17. items:
  18. - enum:
  19. - brcm,bcm7271-uart
  20. - brcm,bcm7278-uart
  21. reg:
  22. minItems: 1
  23. maxItems: 5
  24. reg-names:
  25. description: The UART register block and optionally the DMA register blocks.
  26. oneOf:
  27. - items:
  28. - const: uart
  29. - items:
  30. - const: uart
  31. - const: dma_arb
  32. - const: dma_rx
  33. - const: dma_tx
  34. - const: dma_intr2
  35. clocks:
  36. maxItems: 1
  37. clock-names:
  38. const: sw_baud
  39. interrupts:
  40. minItems: 1
  41. maxItems: 2
  42. interrupt-names:
  43. description: The UART interrupt and optionally the DMA interrupt.
  44. minItems: 1
  45. items:
  46. - const: uart
  47. - const: dma
  48. required:
  49. - compatible
  50. - reg
  51. - reg-names
  52. - clocks
  53. - clock-names
  54. - interrupts
  55. - interrupt-names
  56. unevaluatedProperties: false
  57. examples:
  58. - |
  59. serial@840d000 {
  60. compatible = "brcm,bcm7271-uart";
  61. reg = <0x840d000 0x20>;
  62. reg-names = "uart";
  63. interrupts = <0x0 0x62 0x4>;
  64. interrupt-names = "uart";
  65. clocks = <&scmi_clk 190>;
  66. clock-names = "sw_baud";
  67. };
  68. serial@840e000 {
  69. compatible = "brcm,bcm7271-uart";
  70. reg = <0x840e000 0x20>,
  71. <0x840e080 0x8>,
  72. <0x840e100 0xa8>,
  73. <0x840e200 0x4c>,
  74. <0x840e300 0x30>;
  75. reg-names = "uart", "dma_arb", "dma_rx", "dma_tx", "dma_intr2";
  76. interrupts = <0x0 0x62 0x4>, <0x0 0x75 0x4>;
  77. interrupt-names = "uart", "dma";
  78. clocks = <&scmi_clk 190>;
  79. clock-names = "sw_baud";
  80. };