ingenic,uart.yaml 2.3 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/ingenic,uart.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Ingenic SoCs UART controller
  7. maintainers:
  8. - Paul Cercueil <paul@crapouillou.net>
  9. allOf:
  10. - $ref: serial.yaml#
  11. properties:
  12. $nodename:
  13. pattern: "^serial@[0-9a-f]+$"
  14. compatible:
  15. oneOf:
  16. - enum:
  17. - ingenic,jz4740-uart
  18. - ingenic,jz4750-uart
  19. - ingenic,jz4760-uart
  20. - ingenic,jz4780-uart
  21. - ingenic,x1000-uart
  22. - items:
  23. - enum:
  24. - ingenic,jz4770-uart
  25. - ingenic,jz4775-uart
  26. - const: ingenic,jz4760-uart
  27. - items:
  28. - const: ingenic,jz4725b-uart
  29. - const: ingenic,jz4740-uart
  30. - items:
  31. - const: ingenic,jz4755-uart
  32. - const: ingenic,jz4750-uart
  33. reg:
  34. maxItems: 1
  35. interrupts:
  36. maxItems: 1
  37. clocks:
  38. items:
  39. - description: Baud clock
  40. - description: UART module clock
  41. clock-names:
  42. items:
  43. - const: baud
  44. - const: module
  45. dmas:
  46. items:
  47. - description: DMA controller phandle and request line for RX
  48. - description: DMA controller phandle and request line for TX
  49. dma-names:
  50. items:
  51. - const: rx
  52. - const: tx
  53. required:
  54. - compatible
  55. - reg
  56. - interrupts
  57. - clocks
  58. - clock-names
  59. - dmas
  60. - dma-names
  61. unevaluatedProperties: false
  62. examples:
  63. - |
  64. #include <dt-bindings/clock/ingenic,jz4780-cgu.h>
  65. #include <dt-bindings/dma/jz4780-dma.h>
  66. #include <dt-bindings/gpio/gpio.h>
  67. serial@10032000 {
  68. compatible = "ingenic,jz4780-uart";
  69. reg = <0x10032000 0x100>;
  70. interrupt-parent = <&intc>;
  71. interrupts = <49>;
  72. clocks = <&ext>, <&cgu JZ4780_CLK_UART2>;
  73. clock-names = "baud", "module";
  74. dmas = <&dma JZ4780_DMA_UART2_RX 0xffffffff>,
  75. <&dma JZ4780_DMA_UART2_TX 0xffffffff>;
  76. dma-names = "rx", "tx";
  77. bluetooth {
  78. compatible = "brcm,bcm4330-bt";
  79. reset-gpios = <&gpf 8 GPIO_ACTIVE_HIGH>;
  80. vbat-supply = <&wlan0_power>;
  81. device-wakeup-gpios = <&gpf 5 GPIO_ACTIVE_HIGH>;
  82. host-wakeup-gpios = <&gpf 6 GPIO_ACTIVE_HIGH>;
  83. shutdown-gpios = <&gpf 4 GPIO_ACTIVE_LOW>;
  84. };
  85. };