of-serial.txt 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. * UART (Universal Asynchronous Receiver/Transmitter)
  2. Required properties:
  3. - compatible : one of:
  4. - "ns8250"
  5. - "ns16450"
  6. - "ns16550a"
  7. - "ns16550"
  8. - "ns16750"
  9. - "ns16850"
  10. - "nvidia,tegra20-uart"
  11. - "nxp,lpc3220-uart"
  12. - "ibm,qpace-nwp-serial"
  13. - "altr,16550-FIFO32"
  14. - "altr,16550-FIFO64"
  15. - "altr,16550-FIFO128"
  16. - "fsl,16550-FIFO64"
  17. - "serial" if the port type is unknown.
  18. - reg : offset and length of the register set for the device.
  19. - interrupts : should contain uart interrupt.
  20. - clock-frequency : the input clock frequency for the UART
  21. or
  22. clocks phandle to refer to the clk used as per Documentation/devicetree
  23. /bindings/clock/clock-bindings.txt
  24. Optional properties:
  25. - current-speed : the current active speed of the UART.
  26. - reg-offset : offset to apply to the mapbase from the start of the registers.
  27. - reg-shift : quantity to shift the register offsets by.
  28. - reg-io-width : the size (in bytes) of the IO accesses that should be
  29. performed on the device. There are some systems that require 32-bit
  30. accesses to the UART (e.g. TI davinci).
  31. - used-by-rtas : set to indicate that the port is in use by the OpenFirmware
  32. RTAS and should not be registered.
  33. - no-loopback-test: set to indicate that the port does not implements loopback
  34. test mode
  35. - fifo-size: the fifo size of the UART.
  36. - auto-flow-control: one way to enable automatic flow control support. The
  37. driver is allowed to detect support for the capability even without this
  38. property.
  39. Example:
  40. uart@80230000 {
  41. compatible = "ns8250";
  42. reg = <0x80230000 0x100>;
  43. clock-frequency = <3686400>;
  44. interrupts = <10>;
  45. reg-shift = <2>;
  46. };