renesas,scifb.yaml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/serial/renesas,scifb.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Renesas Serial Communications Interface with FIFO B (SCIFB)
  7. maintainers:
  8. - Geert Uytterhoeven <geert+renesas@glider.be>
  9. allOf:
  10. - $ref: serial.yaml#
  11. properties:
  12. compatible:
  13. oneOf:
  14. - items:
  15. - enum:
  16. - renesas,scifb-r8a73a4 # R-Mobile APE6
  17. - renesas,scifb-r8a7740 # R-Mobile A1
  18. - renesas,scifb-sh73a0 # SH-Mobile AG5
  19. - const: renesas,scifb # generic SCIFB compatible UART
  20. - items:
  21. - enum:
  22. - renesas,scifb-r8a7742 # RZ/G1H
  23. - renesas,scifb-r8a7743 # RZ/G1M
  24. - renesas,scifb-r8a7744 # RZ/G1N
  25. - renesas,scifb-r8a7745 # RZ/G1E
  26. - renesas,scifb-r8a7790 # R-Car H2
  27. - renesas,scifb-r8a7791 # R-Car M2-W
  28. - renesas,scifb-r8a7793 # R-Car M2-N
  29. - renesas,scifb-r8a7794 # R-Car E2
  30. - const: renesas,rcar-gen2-scifb # R-Car Gen2 and RZ/G1
  31. - const: renesas,scifb # generic SCIFB compatible UART
  32. reg:
  33. maxItems: 1
  34. interrupts:
  35. maxItems: 1
  36. clocks:
  37. maxItems: 1
  38. clock-names:
  39. enum:
  40. - fck # UART functional clock
  41. power-domains:
  42. maxItems: 1
  43. resets:
  44. maxItems: 1
  45. dmas:
  46. minItems: 2
  47. maxItems: 4
  48. description:
  49. Must contain a list of pairs of references to DMA specifiers, one for
  50. transmission, and one for reception.
  51. dma-names:
  52. minItems: 2
  53. maxItems: 4
  54. items:
  55. enum:
  56. - tx
  57. - rx
  58. required:
  59. - compatible
  60. - reg
  61. - interrupts
  62. - clocks
  63. - clock-names
  64. - power-domains
  65. if:
  66. properties:
  67. compatible:
  68. contains:
  69. enum:
  70. - renesas,rcar-gen2-scifb
  71. then:
  72. required:
  73. - resets
  74. unevaluatedProperties: false
  75. examples:
  76. - |
  77. #include <dt-bindings/clock/r8a7740-clock.h>
  78. #include <dt-bindings/interrupt-controller/arm-gic.h>
  79. scifb: serial@e6c30000 {
  80. compatible = "renesas,scifb-r8a7740", "renesas,scifb";
  81. reg = <0xe6c30000 0x100>;
  82. interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
  83. clocks = <&mstp2_clks R8A7740_CLK_SCIFB>;
  84. clock-names = "fck";
  85. power-domains = <&pd_a3sp>;
  86. };