[PATCH 2/2] serial: sh-sci: Add support for RZ/T2N RSCI
From: Biju Das
Date: Sat Dec 05 2026 - 11:56:39 EST
From: Biju Das <biju.das.jz@xxxxxxxxxxxxxx>
The RSCI IP on the RZ/T2N (R9A07G076) SoC is similar to that on the
RZ/T2H (R9A09G077) SoC, but its serial clock is connected to a CPG mux
that selects between the PLL1/PLL4 dividers and an external clock input.
The driver can determine from the clock frequency it obtains whether the
external clock is in use, so no extra DT property is needed to describe
that.
Because of this difference, a separate compatible is required. Add the
OF match entry and earlycon declaration for RZ/T2N, reusing the RZ/T2H
RSCI data.
Signed-off-by: Biju Das <biju.das.jz@xxxxxxxxxxxxxx>
---
drivers/tty/serial/rsci.c | 1 +
drivers/tty/serial/sh-sci.c | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/drivers/tty/serial/rsci.c b/drivers/tty/serial/rsci.c
index 0391111db8ae..07921da8df17 100644
--- a/drivers/tty/serial/rsci.c
+++ b/drivers/tty/serial/rsci.c
@@ -727,6 +727,7 @@ static int __init rsci_rzt2h_early_console_setup(struct earlycon_device *device,
return scix_early_console_setup(device, &of_rsci_rzt2h_data);
}
+OF_EARLYCON_DECLARE(rsci, "renesas,r9a07g076-rsci", rsci_rzt2h_early_console_setup);
OF_EARLYCON_DECLARE(rsci, "renesas,r9a08g046-rsci", rsci_rzg3l_early_console_setup);
OF_EARLYCON_DECLARE(rsci, "renesas,r9a09g047-rsci", rsci_rzg3e_early_console_setup);
OF_EARLYCON_DECLARE(rsci, "renesas,r9a09g077-rsci", rsci_rzt2h_early_console_setup);
diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c
index 73639b974c27..3056955ade59 100644
--- a/drivers/tty/serial/sh-sci.c
+++ b/drivers/tty/serial/sh-sci.c
@@ -3692,6 +3692,10 @@ static const struct of_device_id of_sci_match[] __maybe_unused = {
.data = &of_sci_scif_rzv2h,
},
#ifdef CONFIG_SERIAL_RSCI
+ {
+ .compatible = "renesas,r9a07g076-rsci",
+ .data = &of_rsci_rzt2h_data,
+ },
{
.compatible = "renesas,r9a08g046-rsci",
.data = &of_rsci_rzg3l_data,
--
2.43.0