Devicetree
 help / color / mirror / Atom feed
* [PATCH mainline-linux 0/4] serial: sh-sci: rsci: Add RS485 support
@ 2026-11-20 15:49 Diogo Ivo
  2026-11-20 15:49 ` [PATCH mainline-linux 1/4] tty: serial: sh-sci: set the RSCI RX FIFO trigger to half the FIFO Diogo Ivo
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Diogo Ivo @ 2026-11-20 15:49 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby, Biju Das, Wolfram Sang,
	Thierry Bultel, Geert Uytterhoeven, Lad Prabhakar, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Magnus Damm
  Cc: linux-kernel, linux-serial, devicetree, linux-renesas-soc,
	Diogo Ivo, Cosmin Tanislav, stable

This series adds hardware RS485 support to the Renesas RSCI serial
driver, along with an RX FIFO trigger fix needed to prevent overruns,
and enables optional RS485 operation on the RZ/G3L SMARC EVK:

 - Patch 1 lowers the RSCI RX FIFO trigger level to half the FIFO size
   (8 of 16 for RSCI_PORT_SCIF16 and 16 of 32 for RSCI_PORT_SCIF32) to
   prevent receive overruns at 115200 baud on RZ/G3L and 1152000 baud on
   RZ/T2H.
 - Patch 2 documents the standard RS485 properties in the renesas,rsci
   Device Tree binding by referencing rs485.yaml#.
 - Patch 3 adds hardware RS485 support to the RSCI driver via the
   Driver Control Register (DCR) and CCR3.DEN bit, configuring the DE
   signal polarity (DCR.DEPOL) and assertion/negation delays (DCR.DEAST
   and DCR.DENGT), and handling half-duplex echo suppression in software
   when SER_RS485_RX_DURING_TX is not set.
 - Patch 4 adds an RS485_ENABLE macro (disabled by default) to the
   RZ/G3L SMARC EVK Device Tree to configure RSCI2 for RS485 operation.

This series depends on:
 - "Fix transmit handling on SCI/RSCI ports" [1]

[1] https://lore.kernel.org/r/20261117-g2ul_sci-v5-0-30b58ea18923@renesas.com

Signed-off-by: Diogo Ivo <diogo.ivo.sx@renesas.com>

---
Cosmin Tanislav (1):
      tty: serial: sh-sci: set the RSCI RX FIFO trigger to half the FIFO

Diogo Ivo (3):
      dt-bindings: serial: renesas,rsci: Document RS485 properties
      serial: sh-sci: rsci: Add RS485 support
      arm64: dts: renesas: r9a08g046l48-smarc: Add RS485 support on RSCI2

 .../devicetree/bindings/serial/renesas,rsci.yaml   |  1 +
 arch/arm64/boot/dts/renesas/r9a08g046l48-smarc.dts | 11 +++
 drivers/tty/serial/rsci.c                          | 89 ++++++++++++++++++++++
 drivers/tty/serial/sh-sci-common.h                 |  3 +
 drivers/tty/serial/sh-sci.c                        | 20 ++++-
 5 files changed, 122 insertions(+), 2 deletions(-)
---
base-commit: f2b455e5f155a969e576a1ad019a2225b514da2c
change-id: 20261106-divo-ssgrlpcsrc-2996-rs485-cecfa3248bec

Best regards,
--  
Diogo Ivo <diogo.ivo.sx@renesas.com>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-11-20 16:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-20 15:49 [PATCH mainline-linux 0/4] serial: sh-sci: rsci: Add RS485 support Diogo Ivo
2026-11-20 15:49 ` [PATCH mainline-linux 1/4] tty: serial: sh-sci: set the RSCI RX FIFO trigger to half the FIFO Diogo Ivo
2026-11-20 16:11   ` Greg Kroah-Hartman
2026-11-20 15:49 ` [PATCH mainline-linux 2/4] dt-bindings: serial: renesas,rsci: Document RS485 properties Diogo Ivo
2026-11-20 15:49 ` [PATCH mainline-linux 3/4] serial: sh-sci: rsci: Add RS485 support Diogo Ivo
2026-11-20 15:49 ` [PATCH mainline-linux 4/4] arm64: dts: renesas: r9a08g046l48-smarc: Add RS485 support on RSCI2 Diogo Ivo
2026-11-20 16:03   ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox