From nobody Fri Apr 17 21:12:39 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2CC56C433EF for ; Thu, 21 Jul 2022 22:13:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231922AbiGUWNp (ORCPT ); Thu, 21 Jul 2022 18:13:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234217AbiGUWNH (ORCPT ); Thu, 21 Jul 2022 18:13:07 -0400 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0DE4095B32; Thu, 21 Jul 2022 15:12:26 -0700 (PDT) X-IronPort-AV: E=Sophos;i="5.93,183,1654527600"; d="scan'208";a="126944326" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 22 Jul 2022 07:12:25 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 0ACA64011407; Fri, 22 Jul 2022 07:12:22 +0900 (JST) From: Lad Prabhakar To: Geert Uytterhoeven , Magnus Damm , Rob Herring , Krzysztof Kozlowski , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Prabhakar , Biju Das , Lad Prabhakar Subject: [PATCH 1/2] dt-bindings: soc: renesas: renesas,rzg2l-sysc: Document RZ/Five SoC Date: Thu, 21 Jul 2022 23:12:11 +0100 Message-Id: <20220721221212.18491-2-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220721221212.18491-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20220721221212.18491-1-prabhakar.mahadev-lad.rj@bp.renesas.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Document RZ/Five (R9A07G043) SYSC bindings. SYSC block found on the RZ/Five SoC is almost identical to one found on the RZ/G2L (and alike) SoC's. To differentiate RZ/G2UL from RZ/Five, "-rzfive" is included in the compatible string for the RZ/Five SoC as there are no interrupts from the SYSC block to the core. Signed-off-by: Lad Prabhakar --- .../soc/renesas/renesas,rzg2l-sysc.yaml | 56 +++++++++++++------ 1 file changed, 39 insertions(+), 17 deletions(-) diff --git a/Documentation/devicetree/bindings/soc/renesas/renesas,rzg2l-sy= sc.yaml b/Documentation/devicetree/bindings/soc/renesas/renesas,rzg2l-sysc.= yaml index ce2875c89329..bdaf05f8b29b 100644 --- a/Documentation/devicetree/bindings/soc/renesas/renesas,rzg2l-sysc.yaml +++ b/Documentation/devicetree/bindings/soc/renesas/renesas,rzg2l-sysc.yaml @@ -20,35 +20,57 @@ description: properties: compatible: enum: - - renesas,r9a07g043-sysc # RZ/G2UL - - renesas,r9a07g044-sysc # RZ/G2{L,LC} - - renesas,r9a07g054-sysc # RZ/V2L + - renesas,r9a07g043-rzfive-sysc # RZ/Five + - renesas,r9a07g043-sysc # RZ/G2UL + - renesas,r9a07g044-sysc # RZ/G2{L,LC} + - renesas,r9a07g054-sysc # RZ/V2L =20 reg: maxItems: 1 =20 - interrupts: - items: - - description: CA55/CM33 Sleep/Software Standby Mode request interru= pt - - description: CA55 Software Standby Mode release request interrupt - - description: CM33 Software Standby Mode release request interrupt - - description: CA55 ACE Asynchronous Bridge Master/Slave interface d= eny request interrupt + interrupts: true =20 - interrupt-names: - items: - - const: lpm_int - - const: ca55stbydone_int - - const: cm33stbyr_int - - const: ca55_deny + interrupt-names: true =20 required: - compatible - reg - - interrupts - - interrupt-names =20 additionalProperties: false =20 +allOf: + - if: + not: + properties: + compatible: + contains: + enum: + - renesas,r9a07g043-rzfive-sysc + then: + properties: + interrupts: + items: + - description: CA55/CM33 Sleep/Software Standby Mode request i= nterrupt + - description: CA55 Software Standby Mode release request inte= rrupt + - description: CM33 Software Standby Mode release request inte= rrupt + - description: CA55 ACE Asynchronous Bridge Master/Slave inter= face deny request interrupt + + interrupt-names: + items: + - const: lpm_int + - const: ca55stbydone_int + - const: cm33stbyr_int + - const: ca55_deny + + required: + - interrupts + - interrupt-names + + else: + properties: + interrupts: false + interrupt-names: false + examples: - | #include --=20 2.25.1 From nobody Fri Apr 17 21:12:39 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E34C1C43334 for ; Thu, 21 Jul 2022 22:13:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234188AbiGUWNt (ORCPT ); Thu, 21 Jul 2022 18:13:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234244AbiGUWNJ (ORCPT ); Thu, 21 Jul 2022 18:13:09 -0400 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 74F9695C11; Thu, 21 Jul 2022 15:12:30 -0700 (PDT) X-IronPort-AV: E=Sophos;i="5.93,183,1654527600"; d="scan'208";a="126944331" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 22 Jul 2022 07:12:29 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 8B7EA4010DFB; Fri, 22 Jul 2022 07:12:26 +0900 (JST) From: Lad Prabhakar To: Geert Uytterhoeven , Magnus Damm , Rob Herring , Krzysztof Kozlowski , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Prabhakar , Biju Das , Lad Prabhakar Subject: [PATCH 2/2] soc: renesas: Identify RZ/Five SoC Date: Thu, 21 Jul 2022 23:12:12 +0100 Message-Id: <20220721221212.18491-3-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220721221212.18491-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20220721221212.18491-1-prabhakar.mahadev-lad.rj@bp.renesas.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Add support for identifying the (R9A07G043) RZ/Five SoC. Signed-off-by: Lad Prabhakar --- drivers/soc/renesas/Kconfig | 10 ++++++++++ drivers/soc/renesas/renesas-soc.c | 14 ++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/drivers/soc/renesas/Kconfig b/drivers/soc/renesas/Kconfig index 390f52109cb7..2e3508fbae53 100644 --- a/drivers/soc/renesas/Kconfig +++ b/drivers/soc/renesas/Kconfig @@ -333,6 +333,16 @@ config ARCH_R9A09G011 =20 endif # ARM64 =20 +if RISCV + +config ARCH_R9A07G043 + bool "RISCV Platform support for RZ/Five" + select ARCH_RZG2L + help + This enables support for the Renesas RZ/Five SoC. + +endif # RISCV + config RST_RCAR bool "Reset Controller support for R-Car" if COMPILE_TEST =20 diff --git a/drivers/soc/renesas/renesas-soc.c b/drivers/soc/renesas/renesa= s-soc.c index d171f1b635c7..1a31692fc884 100644 --- a/drivers/soc/renesas/renesas-soc.c +++ b/drivers/soc/renesas/renesas-soc.c @@ -50,6 +50,10 @@ static const struct renesas_family fam_rza2 __initconst = __maybe_unused =3D { .name =3D "RZ/A2", }; =20 +static const struct renesas_family fam_rzfive __initconst __maybe_unused = =3D { + .name =3D "RZ/Five", +}; + static const struct renesas_family fam_rzg1 __initconst __maybe_unused =3D= { .name =3D "RZ/G1", .reg =3D 0xff000044, /* PRR (Product Register) */ @@ -102,6 +106,11 @@ static const struct renesas_soc soc_rmobile_a1 __initc= onst __maybe_unused =3D { .id =3D 0x40, }; =20 +static const struct renesas_soc soc_rz_five __initconst __maybe_unused =3D= { + .family =3D &fam_rzfive, + .id =3D 0x847c447, +}; + static const struct renesas_soc soc_rz_g1h __initconst __maybe_unused =3D { .family =3D &fam_rzg1, .id =3D 0x45, @@ -358,8 +367,12 @@ static const struct of_device_id renesas_socs[] __init= const =3D { { .compatible =3D "renesas,r8a779g0", .data =3D &soc_rcar_v4h }, #endif #if defined(CONFIG_ARCH_R9A07G043) +#ifdef CONFIG_RISCV + { .compatible =3D "renesas,r9a07g043", .data =3D &soc_rz_five }, +#else { .compatible =3D "renesas,r9a07g043", .data =3D &soc_rz_g2ul }, #endif +#endif #if defined(CONFIG_ARCH_R9A07G044) { .compatible =3D "renesas,r9a07g044", .data =3D &soc_rz_g2l }, #endif @@ -398,6 +411,7 @@ static const struct renesas_id id_prr __initconst =3D { =20 static const struct of_device_id renesas_ids[] __initconst =3D { { .compatible =3D "renesas,bsid", .data =3D &id_bsid }, + { .compatible =3D "renesas,r9a07g043-rzfive-sysc", .data =3D &id_rzg2l }, { .compatible =3D "renesas,r9a07g043-sysc", .data =3D &id_rzg2l }, { .compatible =3D "renesas,r9a07g044-sysc", .data =3D &id_rzg2l }, { .compatible =3D "renesas,r9a07g054-sysc", .data =3D &id_rzg2l }, --=20 2.25.1