summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/serial/sirf-uart.txt
blob: 3acdd969edf14a1252cabc988cf0df38785ae768 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
* CSR SiRFprimaII/atlasVI Universal Synchronous Asynchronous Receiver/Transmitter *

Required properties:
- compatible : Should be "sirf,prima2-uart", "sirf, prima2-usp-uart",
		"sirf,marco-uart" or "sirf,marco-bt-uart" which means
		uart located in BT module and used for BT.
- reg : Offset and length of the register set for the device
- interrupts : Should contain uart interrupt
- fifosize : Should define hardware rx/tx fifo size
- clocks : Should contain uart clock number

Optional properties:
- sirf,uart-has-rtscts: we have hardware flow controller pins in hardware
- rts-gpios: RTS pin for USP-based UART if sirf,uart-has-rtscts is true
- cts-gpios: CTS pin for USP-based UART if sirf,uart-has-rtscts is true

Example:

uart0: uart@b0050000 {
	cell-index = <0>;
	compatible = "sirf,prima2-uart";
	reg = <0xb0050000 0x1000>;
	interrupts = <17>;
	fifosize = <128>;
	clocks = <&clks 13>;
};

On the board-specific dts, we can put rts-gpios and cts-gpios like

usp@b0090000 {
	compatible = "sirf,prima2-usp-uart";
	sirf,uart-has-rtscts;
	rts-gpios = <&gpio 15 0>;
	cts-gpios = <&gpio 46 0>;
};

for uart use in BT module,
uart6: uart@11000000 {
	cell-index = <6>;
	compatible = "sirf,marco-bt-uart", "sirf,marco-uart";
	reg = <0x11000000 0x1000>;
	interrupts = <0 100 0>;
	clocks = <&clks 138>, <&clks 140>, <&clks 141>;
	clock-names = "uart", "general", "noc";
	fifosize = <128>;
	status = "disabled";
}