pl011.txt 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. * ARM AMBA Primecell PL011 serial UART
  2. Required properties:
  3. - compatible: must be "arm,primecell", "arm,pl011", "zte,zx296702-uart"
  4. - reg: exactly one register range with length 0x1000
  5. - interrupts: exactly one interrupt specifier
  6. Optional properties:
  7. - pinctrl:
  8. When present, must have one state named "default",
  9. and may contain a second name named "sleep". The former
  10. state sets up pins for ordinary operation whereas
  11. the latter state will put the associated pins to sleep
  12. when the UART is unused
  13. - clocks:
  14. When present, the first clock listed must correspond to
  15. the clock named UARTCLK on the IP block, i.e. the clock
  16. to the external serial line, whereas the second clock
  17. must correspond to the PCLK clocking the internal logic
  18. of the block. Just listing one clock (the first one) is
  19. deprecated.
  20. - clock-names:
  21. When present, the first clock listed must be named
  22. "uartclk" and the second clock listed must be named
  23. "apb_pclk"
  24. - dmas:
  25. When present, may have one or two dma channels.
  26. The first one must be named "rx", the second one
  27. must be named "tx".
  28. - auto-poll:
  29. Enables polling when using RX DMA.
  30. - poll-rate-ms:
  31. Rate at which poll occurs when auto-poll is set,
  32. default 100ms.
  33. - poll-timeout-ms:
  34. Poll timeout when auto-poll is set, default
  35. 3000ms.
  36. See also bindings/arm/primecell.txt
  37. Example:
  38. uart@80120000 {
  39. compatible = "arm,pl011", "arm,primecell";
  40. reg = <0x80120000 0x1000>;
  41. interrupts = <0 11 IRQ_TYPE_LEVEL_HIGH>;
  42. dmas = <&dma 13 0 0x2>, <&dma 13 0 0x0>;
  43. dma-names = "rx", "tx";
  44. clocks = <&foo_clk>, <&bar_clk>;
  45. clock-names = "uartclk", "apb_pclk";
  46. };