atmel-usart.txt 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. * Atmel Universal Synchronous Asynchronous Receiver/Transmitter (USART)
  2. Required properties:
  3. - compatible: Should be "atmel,<chip>-usart" or "atmel,<chip>-dbgu"
  4. The compatible <chip> indicated will be the first SoC to support an
  5. additional mode or an USART new feature.
  6. For the dbgu UART, use "atmel,<chip>-dbgu", "atmel,<chip>-usart"
  7. - reg: Should contain registers location and length
  8. - interrupts: Should contain interrupt
  9. - clock-names: tuple listing input clock names.
  10. Required elements: "usart"
  11. - clocks: phandles to input clocks.
  12. Optional properties:
  13. - atmel,use-dma-rx: use of PDC or DMA for receiving data
  14. - atmel,use-dma-tx: use of PDC or DMA for transmitting data
  15. - {rts,cts,dtr,dsr,rng,dcd}-gpios: specify a GPIO for RTS/CTS/DTR/DSR/RI/DCD line respectively.
  16. It will use specified PIO instead of the peripheral function pin for the USART feature.
  17. If unsure, don't specify this property.
  18. - add dma bindings for dma transfer:
  19. - dmas: DMA specifier, consisting of a phandle to DMA controller node,
  20. memory peripheral interface and USART DMA channel ID, FIFO configuration.
  21. Refer to dma.txt and atmel-dma.txt for details.
  22. - dma-names: "rx" for RX channel, "tx" for TX channel.
  23. - atmel,fifo-size: maximum number of data the RX and TX FIFOs can store for FIFO
  24. capable USARTs.
  25. <chip> compatible description:
  26. - at91rm9200: legacy USART support
  27. - at91sam9260: generic USART implementation for SAM9 SoCs
  28. Example:
  29. - use PDC:
  30. usart0: serial@fff8c000 {
  31. compatible = "atmel,at91sam9260-usart";
  32. reg = <0xfff8c000 0x4000>;
  33. interrupts = <7>;
  34. clocks = <&usart0_clk>;
  35. clock-names = "usart";
  36. atmel,use-dma-rx;
  37. atmel,use-dma-tx;
  38. rts-gpios = <&pioD 15 GPIO_ACTIVE_LOW>;
  39. cts-gpios = <&pioD 16 GPIO_ACTIVE_LOW>;
  40. dtr-gpios = <&pioD 17 GPIO_ACTIVE_LOW>;
  41. dsr-gpios = <&pioD 18 GPIO_ACTIVE_LOW>;
  42. dcd-gpios = <&pioD 20 GPIO_ACTIVE_LOW>;
  43. rng-gpios = <&pioD 19 GPIO_ACTIVE_LOW>;
  44. };
  45. - use DMA:
  46. usart0: serial@f001c000 {
  47. compatible = "atmel,at91sam9260-usart";
  48. reg = <0xf001c000 0x100>;
  49. interrupts = <12 4 5>;
  50. clocks = <&usart0_clk>;
  51. clock-names = "usart";
  52. atmel,use-dma-rx;
  53. atmel,use-dma-tx;
  54. dmas = <&dma0 2 0x3>,
  55. <&dma0 2 0x204>;
  56. dma-names = "tx", "rx";
  57. atmel,fifo-size = <32>;
  58. };