mvebu-uart.txt 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. * Marvell UART : Non standard UART used in some of Marvell EBU SoCs
  2. e.g., Armada-3700.
  3. Required properties:
  4. - compatible:
  5. - "marvell,armada-3700-uart" for the standard variant of the UART
  6. (32 bytes FIFO, no DMA, level interrupts, 8-bit access to the
  7. FIFO, baudrate limited to 230400).
  8. - "marvell,armada-3700-uart-ext" for the extended variant of the
  9. UART (128 bytes FIFO, DMA, front interrupts, 8-bit or 32-bit
  10. accesses to the FIFO, baudrate unlimited by the dividers).
  11. - reg: offset and length of the register set for the device.
  12. - clocks: UART reference clock used to derive the baudrate. If no clock
  13. is provided (possible only with the "marvell,armada-3700-uart"
  14. compatible string for backward compatibility), it will only work
  15. if the baudrate was initialized by the bootloader and no baudrate
  16. change will then be possible.
  17. - interrupts:
  18. - Must contain three elements for the standard variant of the IP
  19. (marvell,armada-3700-uart): "uart-sum", "uart-tx" and "uart-rx",
  20. respectively the UART sum interrupt, the UART TX interrupt and
  21. UART RX interrupt. A corresponding interrupt-names property must
  22. be defined.
  23. - Must contain two elements for the extended variant of the IP
  24. (marvell,armada-3700-uart-ext): "uart-tx" and "uart-rx",
  25. respectively the UART TX interrupt and the UART RX interrupt. A
  26. corresponding interrupt-names property must be defined.
  27. - For backward compatibility reasons, a single element interrupts
  28. property is also supported for the standard variant of the IP,
  29. containing only the UART sum interrupt. This form is deprecated
  30. and should no longer be used.
  31. Example:
  32. uart0: serial@12000 {
  33. compatible = "marvell,armada-3700-uart";
  34. reg = <0x12000 0x200>;
  35. clocks = <&xtalclk>;
  36. interrupts =
  37. <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
  38. <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
  39. <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
  40. interrupt-names = "uart-sum", "uart-tx", "uart-rx";
  41. };
  42. uart1: serial@12200 {
  43. compatible = "marvell,armada-3700-uart-ext";
  44. reg = <0x12200 0x30>;
  45. clocks = <&xtalclk>;
  46. interrupts =
  47. <GIC_SPI 30 IRQ_TYPE_EDGE_RISING>,
  48. <GIC_SPI 31 IRQ_TYPE_EDGE_RISING>;
  49. interrupt-names = "uart-tx", "uart-rx";
  50. };