Skip to contentSkip to conversation

ARM/arm64: dts: renesas: Describe RTS/CTS hardware flow control

PATCH New Geert Uytterhoeven 2 participants 5 messages May 4, 2016 – May 5, 2016

Subsystems (2)
lore
Share & tools
lore

Geert Uytterhoeven

author maintainer
#0 lore raw

cover ARM/arm64: dts: renesas: Describe RTS/CTS hardware flow control

Hi Simon, Magnus,

This patch series updates the various Renesas DTSes to describe that some UARTS have dedicated lines for RTS/CTS hardware flow control, and that they are available for use (wired and enabled by pinmux configuration), by adding the "uart-has-rtscts" property to board-specific DTS files where appropriate.

While the actual DT binding updates documenting the "uart-has-rtscts" property for SCIF(A) UARTs ("serial: sh-sci: Update DT binding documentation for dedicated RTS/CTS") hasn't been accepted into tty-next yet, this property is part of the Generic Serial DT Bindings (Documentation/devicetree/bindings/serial/serial.txt), which has been accepted.

Actual enablement of RTS/CTS hardware flow control (through setting the CRTSCTS termios flag from userspace) depends on series "[PATCH v2 00/11]
serial: sh-sci: Hardware Flow Control Updates"
(http://www.spinics.net/lists/linux-serial/msg22535.html).
Note that setting the CRTSCTS flag for a serial port that is being used as the kernel console is a bad idea ;-) You'll have better luck with UARTs on expansion connectors, cfr. the topic/renesas-overlays branch of
https://git.kernel.org/cgit/linux/kernel/git/geert/renesas-drivers.git

Thanks!

Geert Uytterhoeven (3):
ARM: dts: bockw: SCIF0 supports RTS/CTS hardware flow control
ARM: dts: kzm9g: SCIFA4 supports RTS/CTS hardware flow control
arm64: dts: salvator-x: SCIF1 supports RTS/CTS hardware flow control

 arch/arm/boot/dts/r8a7778-bockw.dts                | 1 +
 arch/arm/boot/dts/sh73a0-kzm9g.dts                 | 1 +
 arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 1 +
 3 files changed, 3 insertions(+)
Signature · 12 lines
1.9.1

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds
author maintainer
#1 lore raw

PATCH 1/3 ARM: dts: bockw: SCIF0 supports RTS/CTS hardware flow control

On the BOCK-W development board, the RTS and CTS pins of the console SCIF0 are wired to the "product serial" connector. Reflect this in the DTS by adding the "uart-has-rtscts" property to the scif0 device node.

---
 arch/arm/boot/dts/r8a7778-bockw.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/r8a7778-bockw.dts +1 -0
index e0dab14646488c6b..982a237ea6222a59 100644
@@ -223,6 +223,7 @@
 	pinctrl-0 = <&scif0_pins>;
 	pinctrl-names = "default";
 
+	uart-has-rtscts;
 	status = "okay";
 };
 
Signature · 1 line
1.9.1
author maintainer
#2 lore raw

PATCH 2/3 ARM: dts: kzm9g: SCIFA4 supports RTS/CTS hardware flow control

In reply to Geert Uytterhoeven

On the KZM-A9-GT development board, the RTS and CTS pins of the debug console SCIFA4 are wired to the CP2102 Serial-USB bridge. Reflect this in the DTS by adding the "uart-has-rtscts" property to the scifa4 device node.

---
 arch/arm/boot/dts/sh73a0-kzm9g.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/sh73a0-kzm9g.dts +1 -0
index e6b2ef3785c7542a..b393b1f5bee24574 100644
@@ -378,6 +378,7 @@
 	pinctrl-0 = <&scifa4_pins>;
 	pinctrl-names = "default";
 
+	uart-has-rtscts;
 	status = "okay";
 };
 
Signature · 1 line
1.9.1
author maintainer
#3 lore raw

PATCH 3/3 arm64: dts: salvator-x: SCIF1 supports RTS/CTS hardware flow control

In reply to Geert Uytterhoeven

On the Salvator-X development board, the RTS and CTS pins of debug serial-1 port SCIF1 are wired to the CP2102 Serial-USB bridge. Reflect this in the DTS by adding the "uart-has-rtscts" property to the scif1 device node.

---
 arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts +1 -0
index 5232aad07062198b..c09ead3a29fb72cf 100644
@@ -369,6 +369,7 @@
 	pinctrl-0 = <&scif1_pins>;
 	pinctrl-names = "default";
 
+	uart-has-rtscts;
 	status = "okay";
 };
 
Signature · 1 line
1.9.1
#4 lore raw

cover ARM/arm64: dts: renesas: Describe RTS/CTS hardware flow control

In reply to Geert Uytterhoeven

Hi Geert,

Quoted 8 lines · Geert Uytterhoeven

Hi Simon, Magnus,

This patch series updates the various Renesas DTSes to describe that some UARTS have dedicated lines for RTS/CTS hardware flow control, and that they are available for use (wired and enabled by pinmux configuration), by adding the "uart-has-rtscts" property to board-specific DTS files where appropriate.

Quoted 6 lines

While the actual DT binding updates documenting the "uart-has-rtscts" property for SCIF(A) UARTs ("serial: sh-sci: Update DT binding documentation for dedicated RTS/CTS") hasn't been accepted into tty-next yet, this property is part of the Generic Serial DT Bindings (Documentation/devicetree/bindings/serial/serial.txt), which has been accepted.

On the basis of the binding being present in the generic documentation I have queued up these patches. If that was not your intention please let me know.

Quoted 35 lines

Actual enablement of RTS/CTS hardware flow control (through setting the CRTSCTS termios flag from userspace) depends on series "[PATCH v2 00/11]
serial: sh-sci: Hardware Flow Control Updates"
(http://www.spinics.net/lists/linux-serial/msg22535.html).
Note that setting the CRTSCTS flag for a serial port that is being used as the kernel console is a bad idea ;-) You'll have better luck with UARTs on expansion connectors, cfr. the topic/renesas-overlays branch of
https://git.kernel.org/cgit/linux/kernel/git/geert/renesas-drivers.git

Thanks!

Geert Uytterhoeven (3):
ARM: dts: bockw: SCIF0 supports RTS/CTS hardware flow control
ARM: dts: kzm9g: SCIFA4 supports RTS/CTS hardware flow control
arm64: dts: salvator-x: SCIF1 supports RTS/CTS hardware flow control

 arch/arm/boot/dts/r8a7778-bockw.dts                | 1 +
 arch/arm/boot/dts/sh73a0-kzm9g.dts                 | 1 +
 arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 1 +
 3 files changed, 3 insertions(+)
Signature · 12 lines
1.9.1

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds