ARM/arm64: dts: renesas: Describe RTS/CTS hardware flow control
Subsystems (2)
Geert Uytterhoeven
maintainercover 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 TorvaldsGeert Uytterhoeven
maintainerPATCH 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
@@ -223,6 +223,7 @@ pinctrl-0 = <&scif0_pins>; pinctrl-names = "default"; + uart-has-rtscts; status = "okay"; };
Signature · 1 line
1.9.1
Geert Uytterhoeven
maintainerPATCH 2/3 ARM: dts: kzm9g: SCIFA4 supports RTS/CTS hardware flow control
In reply to Geert UytterhoevenOn 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
@@ -378,6 +378,7 @@ pinctrl-0 = <&scifa4_pins>; pinctrl-names = "default"; + uart-has-rtscts; status = "okay"; };
Signature · 1 line
1.9.1
Geert Uytterhoeven
maintainerPATCH 3/3 arm64: dts: salvator-x: SCIF1 supports RTS/CTS hardware flow control
In reply to Geert UytterhoevenOn 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
@@ -369,6 +369,7 @@ pinctrl-0 = <&scif1_pins>; pinctrl-names = "default"; + uart-has-rtscts; status = "okay"; };
Signature · 1 line
1.9.1
cover ARM/arm64: dts: renesas: Describe RTS/CTS hardware flow control
In reply to Geert UytterhoevenHi 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.gitThanks!
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 controlarch/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