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