atmel-usart.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. Optional properties:
  9. - atmel,use-dma-rx: use of PDC or DMA for receiving data
  10. - atmel,use-dma-tx: use of PDC or DMA for transmitting data
  11. - add dma bindings for dma transfer:
  12. - dmas: DMA specifier, consisting of a phandle to DMA controller node,
  13. memory peripheral interface and USART DMA channel ID, FIFO configuration.
  14. Refer to dma.txt and atmel-dma.txt for details.
  15. - dma-names: "rx" for RX channel, "tx" for TX channel.
  16. <chip> compatible description:
  17. - at91rm9200: legacy USART support
  18. - at91sam9260: generic USART implementation for SAM9 SoCs
  19. Example:
  20. - use PDC:
  21. usart0: serial@fff8c000 {
  22. compatible = "atmel,at91sam9260-usart";
  23. reg = <0xfff8c000 0x4000>;
  24. interrupts = <7>;
  25. atmel,use-dma-rx;
  26. atmel,use-dma-tx;
  27. };
  28. - use DMA:
  29. usart0: serial@f001c000 {
  30. compatible = "atmel,at91sam9260-usart";
  31. reg = <0xf001c000 0x100>;
  32. interrupts = <12 4 5>;
  33. atmel,use-dma-rx;
  34. atmel,use-dma-tx;
  35. dmas = <&dma0 2 0x3>,
  36. <&dma0 2 0x204>;
  37. dma-names = "tx", "rx";
  38. };