Skip to contentSkip to conversation

soc: renesas: Identify R-Car X5H

PATCH Superseded Kuninori Morimoto 1 participant 1 message Jul 8, 2025 Arm/RISC-V/Renesas architecture

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 soc: renesas: Identify R-Car X5H

From: Duy Nguyen <[email protected]>

Add support for identifying the R-Car X5H SoC.

[Kuninori: tidyup for upstreaming]

---
SYSC will be handled via SCP/SCMI on Gen5, it doesn't have SYSC_R8A78000.

 drivers/soc/renesas/Kconfig       |  9 +++++++++
 drivers/soc/renesas/renesas-soc.c | 13 +++++++++++++
 2 files changed, 22 insertions(+)
drivers/soc/renesas/Kconfig +9 -0
index fbc3b69d21a7d..f6bf9afdf8408 100644
@@ -39,6 +39,10 @@ config ARCH_RCAR_GEN4
 	bool
 	select ARCH_RCAR_GEN3
 
+config ARCH_RCAR_GEN5
+	bool
+	select ARCH_RCAR_GEN4
+
 config ARCH_RMOBILE
 	bool
 	select PM
@@ -316,6 +320,11 @@ config ARCH_R8A779H0
 	help
 	  This enables support for the Renesas R-Car V4M SoC.
 
+config ARCH_R8A78000
+	bool "ARM64 Platform support for R-Car X5H"
+	default ARCH_RENESAS
+	select ARCH_RCAR_GEN5
+
 config ARCH_R8A774C0
 	bool "ARM64 Platform support for RZ/G2E"
 	default y if ARCH_RENESAS
drivers/soc/renesas/renesas-soc.c +13 -0
index df2b38417b804..5b78388bafcfe 100644
@@ -36,6 +36,11 @@ static const struct renesas_family fam_rcar_gen4 __initconst __maybe_unused = {
 	.name	= "R-Car Gen4",
 };
 
+static const struct renesas_family fam_rcar_gen5 __initconst __maybe_unused = {
+	.name   = "R-Car Gen5",
+	.reg    = 0xfff00044,		/* PRR (Product Register) */
+};
+
 static const struct renesas_family fam_rmobile __initconst __maybe_unused = {
 	.name	= "R-Mobile",
 	.reg	= 0xe600101c,		/* CCCR (Common Chip Code Register) */
@@ -266,6 +271,11 @@ static const struct renesas_soc soc_rcar_v4m __initconst __maybe_unused = {
 	.id     = 0x5d,
 };
 
+static const struct renesas_soc soc_rcar_x5h __initconst __maybe_unused = {
+	.family = &fam_rcar_gen5,
+	.id     = 0x60,
+};
+
 static const struct renesas_soc soc_shmobile_ag5 __initconst __maybe_unused = {
 	.family	= &fam_shmobile,
 	.id	= 0x37,
@@ -378,6 +388,9 @@ static const struct of_device_id renesas_socs[] __initconst __maybe_unused = {
 #ifdef CONFIG_ARCH_R8A779H0
 	{ .compatible = "renesas,r8a779h0",	.data = &soc_rcar_v4m },
 #endif
+#ifdef CONFIG_ARCH_R8A78000
+	{ .compatible = "renesas,r8a78000",	.data = &soc_rcar_x5h },
+#endif
 #ifdef CONFIG_ARCH_R9A07G043
 #ifdef CONFIG_RISCV
 	{ .compatible = "renesas,r9a07g043",	.data = &soc_rz_five },
Signature · 1 line
2.43.0