^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) * CSR SiRFprimaII/atlasVI Universal Synchronous Asynchronous Receiver/Transmitter *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) - compatible : Should be "sirf,prima2-uart", "sirf, prima2-usp-uart",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) "sirf,atlas7-uart" or "sirf,atlas7-usp-uart".
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) - reg : Offset and length of the register set for the device
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) - interrupts : Should contain uart interrupt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) - fifosize : Should define hardware rx/tx fifo size
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) - clocks : Should contain uart clock number
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) Optional properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) - uart-has-rtscts: we have hardware flow controller pins in hardware
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) - rts-gpios: RTS pin for USP-based UART if uart-has-rtscts is true
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) - cts-gpios: CTS pin for USP-based UART if uart-has-rtscts is true
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) uart0: uart@b0050000 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) cell-index = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) compatible = "sirf,prima2-uart";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) reg = <0xb0050000 0x1000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) interrupts = <17>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) fifosize = <128>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) clocks = <&clks 13>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) On the board-specific dts, we can put rts-gpios and cts-gpios like
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) usp@b0090000 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) compatible = "sirf,prima2-usp-uart";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) uart-has-rtscts;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) rts-gpios = <&gpio 15 0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) cts-gpios = <&gpio 46 0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) };