mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 05:17:11 +07:00
7f60830ab1
Convert the SiRF UART driver from using the vendor-specific "sirf,uart-has-rtscts" to the generic "uart-has-rtscts" DT property, as documented by the Generic Serial DT Bindings. The old vendor-specific property is still recognized by the driver for backwards compatibility, but deprecated. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
* CSR SiRFprimaII/atlasVI Universal Synchronous Asynchronous Receiver/Transmitter *
|
|
|
|
Required properties:
|
|
- compatible : Should be "sirf,prima2-uart", "sirf, prima2-usp-uart",
|
|
"sirf,atlas7-uart" or "sirf,atlas7-usp-uart".
|
|
- 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:
|
|
- 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
|
|
|
|
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";
|
|
uart-has-rtscts;
|
|
rts-gpios = <&gpio 15 0>;
|
|
cts-gpios = <&gpio 46 0>;
|
|
};
|