2013-08-14 22:52:16 +00:00
|
|
|
* CSR SiRFprimaII/atlasVI Universal Synchronous Asynchronous Receiver/Transmitter *
|
|
|
|
|
|
|
|
Required properties:
|
2014-11-11 12:44:58 +00:00
|
|
|
- compatible : Should be "sirf,prima2-uart", "sirf, prima2-usp-uart",
|
2015-04-20 08:10:22 +00:00
|
|
|
"sirf,atlas7-uart" or "sirf,atlas7-usp-uart".
|
2013-08-14 22:52:16 +00:00
|
|
|
- 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:
|
2016-04-22 15:22:24 +00:00
|
|
|
- uart-has-rtscts: we have hardware flow controller pins in hardware
|
|
|
|
- rts-gpios: RTS pin for USP-based UART if uart-has-rtscts is true
|
|
|
|
- cts-gpios: CTS pin for USP-based UART if uart-has-rtscts is true
|
2013-08-14 22:52:16 +00:00
|
|
|
|
|
|
|
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";
|
2016-04-22 15:22:24 +00:00
|
|
|
uart-has-rtscts;
|
2013-08-14 22:52:16 +00:00
|
|
|
rts-gpios = <&gpio 15 0>;
|
|
|
|
cts-gpios = <&gpio 46 0>;
|
|
|
|
};
|