[PATCH mainline-linux 0/4] serial: sh-sci: rsci: Add RS485 support

From: Diogo Ivo

Date: Fri Nov 20 2026 - 10:50:00 EST


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@xxxxxxxxxxx

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

---
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@xxxxxxxxxxx>