atmel-usart.txt 2.0 KB

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