renesas,em-uart.yaml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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,em-uart.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Renesas EMMA Mobile UART Interface
  7. maintainers:
  8. - Magnus Damm <magnus.damm@gmail.com>
  9. properties:
  10. compatible:
  11. oneOf:
  12. - items:
  13. - enum:
  14. - renesas,r9a09g011-uart # RZ/V2M
  15. - const: renesas,em-uart # generic EMMA Mobile compatible UART
  16. - items:
  17. - const: renesas,em-uart # generic EMMA Mobile compatible UART
  18. reg:
  19. maxItems: 1
  20. interrupts:
  21. maxItems: 1
  22. clocks:
  23. minItems: 1
  24. items:
  25. - description: UART functional clock
  26. - description: Internal clock to access the registers
  27. clock-names:
  28. minItems: 1
  29. items:
  30. - const: sclk
  31. - const: pclk
  32. required:
  33. - compatible
  34. - reg
  35. - interrupts
  36. - clocks
  37. - clock-names
  38. allOf:
  39. - $ref: serial.yaml#
  40. - if:
  41. properties:
  42. compatible:
  43. contains:
  44. const: renesas,r9a09g011-uart
  45. then:
  46. properties:
  47. clocks:
  48. minItems: 2
  49. clock-names:
  50. minItems: 2
  51. unevaluatedProperties: false
  52. examples:
  53. - |
  54. #include <dt-bindings/interrupt-controller/arm-gic.h>
  55. uart0: serial@e1020000 {
  56. compatible = "renesas,em-uart";
  57. reg = <0xe1020000 0x38>;
  58. interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
  59. clocks = <&usia_u0_sclk>;
  60. clock-names = "sclk";
  61. };