qcom,msm-uartdm.txt 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. * MSM Serial UARTDM
  2. The MSM serial UARTDM hardware is designed for high-speed use cases where the
  3. transmit and/or receive channels can be offloaded to a dma-engine. From a
  4. software perspective it's mostly compatible with the MSM serial UART except
  5. that it supports reading and writing multiple characters at a time.
  6. Required properties:
  7. - compatible: Should contain at least "qcom,msm-uartdm".
  8. A more specific property should be specified as follows depending
  9. on the version:
  10. "qcom,msm-uartdm-v1.1"
  11. "qcom,msm-uartdm-v1.2"
  12. "qcom,msm-uartdm-v1.3"
  13. "qcom,msm-uartdm-v1.4"
  14. - reg: Should contain UART register locations and lengths. The first
  15. register shall specify the main control registers. An optional second
  16. register location shall specify the GSBI control region.
  17. "qcom,msm-uartdm-v1.3" is the only compatible value that might
  18. need the GSBI control region.
  19. - interrupts: Should contain UART interrupt.
  20. - clocks: Should contain the core clock and the AHB clock.
  21. - clock-names: Should be "core" for the core clock and "iface" for the
  22. AHB clock.
  23. Optional properties:
  24. - dmas: Should contain dma specifiers for transmit and receive channels
  25. - dma-names: Should contain "tx" for transmit and "rx" for receive channels
  26. - qcom,tx-crci: Identificator <u32> for Client Rate Control Interface to be
  27. used with TX DMA channel. Required when using DMA for transmission
  28. with UARTDM v1.3 and bellow.
  29. - qcom,rx-crci: Identificator <u32> for Client Rate Control Interface to be
  30. used with RX DMA channel. Required when using DMA for reception
  31. with UARTDM v1.3 and bellow.
  32. Note: Aliases may be defined to ensure the correct ordering of the UARTs.
  33. The alias serialN will result in the UART being assigned port N. If any
  34. serialN alias exists, then an alias must exist for each enabled UART. The
  35. serialN aliases should be in a .dts file instead of in a .dtsi file.
  36. Examples:
  37. - A uartdm v1.4 device with dma capabilities.
  38. serial@f991e000 {
  39. compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
  40. reg = <0xf991e000 0x1000>;
  41. interrupts = <0 108 0x0>;
  42. clocks = <&blsp1_uart2_apps_cxc>, <&blsp1_ahb_cxc>;
  43. clock-names = "core", "iface";
  44. dmas = <&dma0 0>, <&dma0 1>;
  45. dma-names = "tx", "rx";
  46. };
  47. - A uartdm v1.3 device without dma capabilities and part of a GSBI complex.
  48. serial@19c40000 {
  49. compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
  50. reg = <0x19c40000 0x1000>,
  51. <0x19c00000 0x1000>;
  52. interrupts = <0 195 0x0>;
  53. clocks = <&gsbi5_uart_cxc>, <&gsbi5_ahb_cxc>;
  54. clock-names = "core", "iface";
  55. };
  56. - serialN alias.
  57. aliases {
  58. serial0 = &uarta;
  59. serial1 = &uartc;
  60. serial2 = &uartb;
  61. };
  62. uarta: serial@12490000 {
  63. status = "ok";
  64. };
  65. uartb: serial@16340000 {
  66. status = "ok";
  67. };
  68. uartc: serial@1a240000 {
  69. status = "ok";
  70. };