blob: 1928a3e83cd0413262de68c036242cb0b92b08fa [file] [log] [blame]
Jamie Iles61ab1a92011-06-27 13:32:33 +01001* UART (Universal Asynchronous Receiver/Transmitter)
2
3Required properties:
4- compatible : one of:
5 - "ns8250"
6 - "ns16450"
7 - "ns16550a"
8 - "ns16550"
9 - "ns16750"
10 - "ns16850"
Grant Likely2e39e5b2011-07-05 23:42:36 -060011 - "nvidia,tegra20-uart"
Roland Stiggee4305f02012-06-11 21:57:14 +020012 - "nxp,lpc3220-uart"
Jamie Iles61ab1a92011-06-27 13:32:33 +010013 - "ibm,qpace-nwp-serial"
Ley Foon Tane06c93c2013-03-07 10:28:37 +080014 - "altr,16550-FIFO32"
15 - "altr,16550-FIFO64"
16 - "altr,16550-FIFO128"
Jamie Iles61ab1a92011-06-27 13:32:33 +010017 - "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.
Murali Karicheriab72fa52012-10-22 11:58:02 -040020- 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
Jamie Iles61ab1a92011-06-27 13:32:33 +010024
25Optional properties:
26- current-speed : the current active speed of the UART.
27- reg-offset : offset to apply to the mapbase from the start of the registers.
28- reg-shift : quantity to shift the register offsets by.
Jamie Iles74237342011-06-27 13:32:34 +010029- reg-io-width : the size (in bytes) of the IO accesses that should be
30 performed on the device. There are some systems that require 32-bit
31 accesses to the UART (e.g. TI davinci).
Jamie Iles61ab1a92011-06-27 13:32:33 +010032- used-by-rtas : set to indicate that the port is in use by the OpenFirmware
33 RTAS and should not be registered.
Gabor Juhosfde8be22012-07-17 17:08:31 +010034- no-loopback-test: set to indicate that the port does not implements loopback
35 test mode
Heikki Krogerus9f1ca062013-03-25 13:34:45 +020036- fifo-size: the fifo size of the UART.
Heikki Krogerusb0b8c842013-03-25 15:51:15 +020037- auto-flow-control: one way to enable automatic flow control support. The
38 driver is allowed to detect support for the capability even without this
39 property.
Jamie Iles61ab1a92011-06-27 13:32:33 +010040
41Example:
42
43 uart@80230000 {
44 compatible = "ns8250";
45 reg = <0x80230000 0x100>;
46 clock-frequency = <3686400>;
47 interrupts = <10>;
48 reg-shift = <2>;
49 };