From nobody Mon Feb 9 06:49:27 2026 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F13DC2E1758; Sun, 19 Oct 2025 09:21:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.160.252.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760865687; cv=none; b=NcxxDw0KSxF/t3LdVO5MrTPMlvE+EnpD2JDwo4MVvGBD0dQCP67CC6VV/0dalnbQ7AT/Ukpglewp5vJ10OxbojgX1uFatjpD9PBfBAFhm5I7XDqPy+QFzJrWDlP1mR3GErP+y+IWVAVCGn07hDdlgxOE5+ulfVvbqF06FmlEKds= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760865687; c=relaxed/simple; bh=ZJ8J/vC3cADxPyE1txKIQl0FLVRW1yDOQd1VecaW6PI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VNxjVHXJ5M8DqPnwAISoixhVgz8q8JR7BfqzusgUuGSOutYkZGwYUKKv2vCrkHTlRmJNveYHU5b0bF3mPO1Opk5IqFGEnBM5UqeFB6cxx5N8sF1Uwv3H8vXPwjzG/d2DRRSFe+mEWHpN0e17xUYY+BkoXWEuGXG8wE2PQ9lGNUs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; arc=none smtp.client-ip=210.160.252.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com X-CSE-ConnectionGUID: 6zgvx57ATemuihGNR93/oQ== X-CSE-MsgGUID: GqCo1ju1TeqAcruSU0ahlg== Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 19 Oct 2025 18:21:18 +0900 Received: from vm01.adwin.renesas.com (unknown [10.226.92.5]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 9E30B416123C; Sun, 19 Oct 2025 18:21:13 +0900 (JST) From: Ovidiu Panait To: claudiu.beznea.uj@bp.renesas.com, alexandre.belloni@bootlin.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, geert+renesas@glider.be, magnus.damm@gmail.com, mturquette@baylibre.com, sboyd@kernel.org, p.zabel@pengutronix.de Cc: linux-rtc@vger.kernel.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 1/6] clk: renesas: r9a09g057: Add clock and reset entries for RTC Date: Sun, 19 Oct 2025 09:21:01 +0000 Message-ID: <20251019092106.5737-2-ovidiu.panait.rb@renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251019092106.5737-1-ovidiu.panait.rb@renesas.com> References: <20251019092106.5737-1-ovidiu.panait.rb@renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add module clock and reset entries for the RTC module on the Renesas RZ/V2H (R9A09G057) SoC. Signed-off-by: Ovidiu Panait --- drivers/clk/renesas/r9a09g057-cpg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/clk/renesas/r9a09g057-cpg.c b/drivers/clk/renesas/r9a0= 9g057-cpg.c index c9c117c6782c..100cd56c323e 100644 --- a/drivers/clk/renesas/r9a09g057-cpg.c +++ b/drivers/clk/renesas/r9a09g057-cpg.c @@ -241,6 +241,8 @@ static const struct rzv2h_mod_clk r9a09g057_mod_clks[] = __initconst =3D { BUS_MSTOP(5, BIT(13))), DEF_MOD("wdt_3_clk_loco", CLK_QEXTAL, 5, 2, 2, 18, BUS_MSTOP(5, BIT(13))), + DEF_MOD("rtc_0_clk_rtc", CLK_PLLCM33_DIV16, 5, 3, 2, 19, + BUS_MSTOP(3, BIT(11) | BIT(12))), DEF_MOD("rspi_0_pclk", CLK_PLLCLN_DIV8, 5, 4, 2, 20, BUS_MSTOP(11, BIT(0))), DEF_MOD("rspi_0_pclk_sfr", CLK_PLLCLN_DIV8, 5, 5, 2, 21, @@ -411,6 +413,8 @@ static const struct rzv2h_reset r9a09g057_resets[] __in= itconst =3D { DEF_RST(7, 6, 3, 7), /* WDT_1_RESET */ DEF_RST(7, 7, 3, 8), /* WDT_2_RESET */ DEF_RST(7, 8, 3, 9), /* WDT_3_RESET */ + DEF_RST(7, 9, 3, 10), /* RTC_0_RST_RTC */ + DEF_RST(7, 10, 3, 11), /* RTC_0_RST_RTC_V */ DEF_RST(7, 11, 3, 12), /* RSPI_0_PRESETN */ DEF_RST(7, 12, 3, 13), /* RSPI_0_TRESETN */ DEF_RST(7, 13, 3, 14), /* RSPI_1_PRESETN */ --=20 2.51.0 From nobody Mon Feb 9 06:49:27 2026 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 024272E06E4; Sun, 19 Oct 2025 09:21:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.160.252.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760865690; cv=none; b=qq0K3LMYXhw6qZeHpYV3mSig83d6MnQKTaZJnqkV5c/p6+g8i5m5/iWDJPJGWuEtXyH5livpAjDddS3TvXzPaRyl/2PFlHxk0x7yITngm40XYKJbhMEu1c/vDg19DmMOBXfhMvJ0WieM19AVfyMDulkeMYvgjpdYT6X9R8DFzmk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760865690; c=relaxed/simple; bh=Q9kDYSoPbFF62KFfxS3E7WYBeOeSXy6UVimjBbt94qQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GWXtXTdUt4csz1y9VssBQ163zDKAAcQVNB1KHYJCK8Ut8Xq0OH23wiqmWm5gZDNYcl6GzvJZYJvpTjsb2+XgXzt3aktlTNEtJG6mF0G6WhtX25yog2PwvtW0uKLLhOVD0BhefBjXya16E/s7xIQbanM+clx8H9gFl9i63PSh/MQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; arc=none smtp.client-ip=210.160.252.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com X-CSE-ConnectionGUID: XfI5M+1RSkS65je0rvCtDw== X-CSE-MsgGUID: lMeuP9ajQY641W6Hc9cyRQ== Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 19 Oct 2025 18:21:23 +0900 Received: from vm01.adwin.renesas.com (unknown [10.226.92.5]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id D9BAA4162513; Sun, 19 Oct 2025 18:21:18 +0900 (JST) From: Ovidiu Panait To: claudiu.beznea.uj@bp.renesas.com, alexandre.belloni@bootlin.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, geert+renesas@glider.be, magnus.damm@gmail.com, mturquette@baylibre.com, sboyd@kernel.org, p.zabel@pengutronix.de Cc: linux-rtc@vger.kernel.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 2/6] dt-bindings: rtc: renesas,rz-rtca3: Add RZ/V2H support Date: Sun, 19 Oct 2025 09:21:02 +0000 Message-ID: <20251019092106.5737-3-ovidiu.panait.rb@renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251019092106.5737-1-ovidiu.panait.rb@renesas.com> References: <20251019092106.5737-1-ovidiu.panait.rb@renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The Renesas RZ/V2H RTC IP is based on the same RTCA3 IP as RZ/G3S (r9a08g045), with the following differences: - it lacks the time capture functionality - the maximum supported periodic interrupt frequency is 128Hz instead of 256Hz - it requires two reset lines instead of one Add new compatible string "renesas,r9a09g057-rtca3" for RZ/V2H and update the binding so that "resets" may have either one or two entries, depending on the compatible string. Signed-off-by: Ovidiu Panait Reviewed-by: Krzysztof Kozlowski --- .../bindings/rtc/renesas,rz-rtca3.yaml | 33 ++++++++++++++++--- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/rtc/renesas,rz-rtca3.yaml b/= Documentation/devicetree/bindings/rtc/renesas,rz-rtca3.yaml index e70eeb66aa64..39a5c2483374 100644 --- a/Documentation/devicetree/bindings/rtc/renesas,rz-rtca3.yaml +++ b/Documentation/devicetree/bindings/rtc/renesas,rz-rtca3.yaml @@ -9,14 +9,12 @@ title: Renesas RTCA-3 Real Time Clock maintainers: - Claudiu Beznea =20 -allOf: - - $ref: rtc.yaml# - properties: compatible: items: - enum: - renesas,r9a08g045-rtca3 # RZ/G3S + - renesas,r9a09g057-rtca3 # RZ/V2H - const: renesas,rz-rtca3 =20 reg: @@ -48,8 +46,8 @@ properties: maxItems: 1 =20 resets: - items: - - description: VBATTB module reset + minItems: 1 + maxItems: 2 =20 required: - compatible @@ -61,6 +59,31 @@ required: - power-domains - resets =20 +allOf: + - $ref: rtc.yaml# + + - if: + properties: + compatible: + contains: + const: renesas,r9a08g045-rtca3 + then: + properties: + resets: + items: + - description: VBATTB module reset + - if: + properties: + compatible: + contains: + const: renesas,r9a09g057-rtca3 + then: + properties: + resets: + items: + - description: RTC reset + - description: Reset for the RTEST registers + additionalProperties: false =20 examples: --=20 2.51.0 From nobody Mon Feb 9 06:49:27 2026 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 007442E0410; Sun, 19 Oct 2025 09:21:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.160.252.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760865692; cv=none; b=juWmIYtzI+/UCjh61LKvxvaTRB5291B/ifLjd+5FTnbozVHYTzqE3a2dZqntvz0bEd2K9xvbf7mQfoD/jglakjH+Stig7S1wdwvLytG5zRAP4GxYXWMCnIIQ+mBgsnOMIvQltkTVgxFpotDl03UY7Axv10J8j1qVprKcN64pjN4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760865692; c=relaxed/simple; bh=12cVx1iToan0lCzF3C86mgtOo91epEwAfYzjZXVhWBg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uC7huZi5F/jjdIaET98Tbkx/mEqhG7d8INnLvV1/exbAY5F/ZUD/0qKbcwLJLPcbP4lV0nSy+haI7HiRp41gjI73LM1HWVae4grosHAXW6cAjkd+6cwccHSeS9FKZJuX8v1PZdQJei5BKAUuMe8iGs/9BI1r98wD27JBWDGuFfo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; arc=none smtp.client-ip=210.160.252.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com X-CSE-ConnectionGUID: T0V4S3BUSGSW+AyAzNDDVQ== X-CSE-MsgGUID: UHusppwJRIOz1Y4AxnkcxA== Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 19 Oct 2025 18:21:28 +0900 Received: from vm01.adwin.renesas.com (unknown [10.226.92.5]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 26503416123C; Sun, 19 Oct 2025 18:21:23 +0900 (JST) From: Ovidiu Panait To: claudiu.beznea.uj@bp.renesas.com, alexandre.belloni@bootlin.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, geert+renesas@glider.be, magnus.damm@gmail.com, mturquette@baylibre.com, sboyd@kernel.org, p.zabel@pengutronix.de Cc: linux-rtc@vger.kernel.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 3/6] rtc: renesas-rtca3: Use OF data for configuration Date: Sun, 19 Oct 2025 09:21:03 +0000 Message-ID: <20251019092106.5737-4-ovidiu.panait.rb@renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251019092106.5737-1-ovidiu.panait.rb@renesas.com> References: <20251019092106.5737-1-ovidiu.panait.rb@renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Prepare for adding support for the Renesas RZ/V2H SoC RTC IP by making the driver configuration selectable via OF match data. For RZ/V2H RTC, the maximum periodic interrupt frequency is 128Hz instead of 256Hz, so add this info to a SoC-specific struct and retrieve it during probe. Signed-off-by: Ovidiu Panait --- drivers/rtc/rtc-renesas-rtca3.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-renesas-rtca3.c b/drivers/rtc/rtc-renesas-rtca= 3.c index ab816bdf0d77..90dda04fad33 100644 --- a/drivers/rtc/rtc-renesas-rtca3.c +++ b/drivers/rtc/rtc-renesas-rtca3.c @@ -101,6 +101,15 @@ enum rtca3_alrm_set_step { RTCA3_ALRM_SSTEP_INIT =3D 3, }; =20 +/** + * struct rtca3_of_data - OF data for RTCA3 + * + * @max_periodic_irq_freq: maximum periodic interrupt frequency + */ +struct rtca3_of_data { + int max_periodic_irq_freq; +}; + /** * struct rtca3_ppb_per_cycle - PPB per cycle * @ten_sec: PPB per cycle in 10 seconds adjutment mode @@ -709,6 +718,7 @@ static void rtca3_action(void *data) =20 static int rtca3_probe(struct platform_device *pdev) { + const struct rtca3_of_data *of_data; struct device *dev =3D &pdev->dev; struct rtca3_priv *priv; struct clk *clk; @@ -718,6 +728,8 @@ static int rtca3_probe(struct platform_device *pdev) if (!priv) return -ENOMEM; =20 + of_data =3D of_device_get_match_data(dev); + priv->base =3D devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(priv->base)) return PTR_ERR(priv->base); @@ -772,7 +784,7 @@ static int rtca3_probe(struct platform_device *pdev) return PTR_ERR(priv->rtc_dev); =20 priv->rtc_dev->ops =3D &rtca3_ops; - priv->rtc_dev->max_user_freq =3D 256; + priv->rtc_dev->max_user_freq =3D of_data->max_periodic_irq_freq; priv->rtc_dev->range_min =3D RTC_TIMESTAMP_BEGIN_2000; priv->rtc_dev->range_max =3D RTC_TIMESTAMP_END_2099; =20 @@ -875,8 +887,12 @@ static int rtca3_resume(struct device *dev) =20 static DEFINE_SIMPLE_DEV_PM_OPS(rtca3_pm_ops, rtca3_suspend, rtca3_resume); =20 +static const struct rtca3_of_data rtca3_of_data =3D { + .max_periodic_irq_freq =3D 256, +}; + static const struct of_device_id rtca3_of_match[] =3D { - { .compatible =3D "renesas,rz-rtca3", }, + { .compatible =3D "renesas,rz-rtca3", .data =3D &rtca3_of_data }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, rtca3_of_match); --=20 2.51.0 From nobody Mon Feb 9 06:49:27 2026 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 52E8A2E0410; Sun, 19 Oct 2025 09:21:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.160.252.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760865696; cv=none; b=c54SC6y6U+0h3poITJrsNEbXtaxVaLewMVz0LF08TTnXBky7fvK+pnSOmY0Fyra2lpS1ZObiqQ6PqFS0mk8psvzJCzkLxacSlLdJXmRF9Gbw/VX0Gu5Wtj8j9aKcIDkK+n2UUn58YjwqfIEn84AqOZoNt1IFSExN7vNbsULSP78= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760865696; c=relaxed/simple; bh=54d6mW08zCH+ECBeih5e8SDsX2nZbAIG8H3d2EyCXic=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JwOfwug/SB7YxHLdgIneCtidpd7lHs8e62bvgbetCuCvTYZcrK16Sb1xi7rf8HpNS9wkuHTMT+PcOfXGHRqMCZoPU+vPT68hns5jwMrCEMZp91jkYu5vqXNmGkNf+hyXfG4lXFZiZ+NBrMjSyJHCm6L786Y80eM+FZogyhNu3SQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; arc=none smtp.client-ip=210.160.252.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com X-CSE-ConnectionGUID: 1pFkQ76xQ5W19JC0BO1VNw== X-CSE-MsgGUID: xcZ7kxPoR+W/2U41fSTucg== Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 19 Oct 2025 18:21:34 +0900 Received: from vm01.adwin.renesas.com (unknown [10.226.92.5]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 68DF2416123C; Sun, 19 Oct 2025 18:21:29 +0900 (JST) From: Ovidiu Panait To: claudiu.beznea.uj@bp.renesas.com, alexandre.belloni@bootlin.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, geert+renesas@glider.be, magnus.damm@gmail.com, mturquette@baylibre.com, sboyd@kernel.org, p.zabel@pengutronix.de Cc: linux-rtc@vger.kernel.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 4/6] rtc: renesas-rtca3: Add support for RZ/V2H SoC Date: Sun, 19 Oct 2025 09:21:04 +0000 Message-ID: <20251019092106.5737-5-ovidiu.panait.rb@renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251019092106.5737-1-ovidiu.panait.rb@renesas.com> References: <20251019092106.5737-1-ovidiu.panait.rb@renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add a new compatible string for the Renesas RZ/V2H RTC along with the SoC specific OF data, to account for the different maximum periodic interrupt frequency (128Hz). Also, switch from devm_reset_control_get_shared() to devm_reset_control_array_get_shared() when retrieving resets. The RZ/V2H SoC requires two resets for the RTC block instead of one, so this will allow to handle multiple resets without additional changes. Signed-off-by: Ovidiu Panait --- drivers/rtc/rtc-renesas-rtca3.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-renesas-rtca3.c b/drivers/rtc/rtc-renesas-rtca= 3.c index 90dda04fad33..96f5d3734d93 100644 --- a/drivers/rtc/rtc-renesas-rtca3.c +++ b/drivers/rtc/rtc-renesas-rtca3.c @@ -738,7 +738,7 @@ static int rtca3_probe(struct platform_device *pdev) if (ret) return ret; =20 - priv->rstc =3D devm_reset_control_get_shared(dev, NULL); + priv->rstc =3D devm_reset_control_array_get_shared(dev); if (IS_ERR(priv->rstc)) return PTR_ERR(priv->rstc); =20 @@ -887,11 +887,16 @@ static int rtca3_resume(struct device *dev) =20 static DEFINE_SIMPLE_DEV_PM_OPS(rtca3_pm_ops, rtca3_suspend, rtca3_resume); =20 +static const struct rtca3_of_data rtca3_rzv2h_of_data =3D { + .max_periodic_irq_freq =3D 128, +}; + static const struct rtca3_of_data rtca3_of_data =3D { .max_periodic_irq_freq =3D 256, }; =20 static const struct of_device_id rtca3_of_match[] =3D { + { .compatible =3D "renesas,r9a09g057-rtca3", .data =3D &rtca3_rzv2h_of_da= ta }, { .compatible =3D "renesas,rz-rtca3", .data =3D &rtca3_of_data }, { /* sentinel */ } }; --=20 2.51.0 From nobody Mon Feb 9 06:49:27 2026 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 92B9B2E0410; Sun, 19 Oct 2025 09:21:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.160.252.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760865701; cv=none; b=i+M/tVBctJPQ0jIMTJyuhJQArEi6NGUgeCN5XFbCSIbtaOImVekoP7NTx+fgn1TzRTrIxg50gZ6qGcKFH+PF7cV2lFHTQdj7T3mZqXqtpmTv20PAcbdhnXbKe/Tf53LBYT3A2wRKwLIJDi1yFnvLaKhmPPu1U2cbEqQARKTIlxU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760865701; c=relaxed/simple; bh=6NN2vIAm+rmZthkfCmi2bvhIcwWSnYQtkVgWwOpfnkg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=moIQMuvmsU1pce0GLeDtP3TaJtD/yxBJP6dHbt76i6TObc8Fw8CE1E4yUlj5cg3Wz8WDZALdg4+aeiP6bqU96XKHnX5VYnevIsQ0YoPvYOR22xZ0Sho5O6X/w1nJF+M3M9WTExOBuSKigU5L0bec3bPx2bnqZbHeGeg2+as7Gz0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; arc=none smtp.client-ip=210.160.252.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com X-CSE-ConnectionGUID: 7WE6ObC3Ttu2xGeJjedLhA== X-CSE-MsgGUID: chHZTdSFTZ2TpF/M3g7Sgg== Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 19 Oct 2025 18:21:39 +0900 Received: from vm01.adwin.renesas.com (unknown [10.226.92.5]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id A5A26416123C; Sun, 19 Oct 2025 18:21:34 +0900 (JST) From: Ovidiu Panait To: claudiu.beznea.uj@bp.renesas.com, alexandre.belloni@bootlin.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, geert+renesas@glider.be, magnus.damm@gmail.com, mturquette@baylibre.com, sboyd@kernel.org, p.zabel@pengutronix.de Cc: linux-rtc@vger.kernel.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 5/6] arm64: dts: renesas: r9a09g057: Add RTC node Date: Sun, 19 Oct 2025 09:21:05 +0000 Message-ID: <20251019092106.5737-6-ovidiu.panait.rb@renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251019092106.5737-1-ovidiu.panait.rb@renesas.com> References: <20251019092106.5737-1-ovidiu.panait.rb@renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add RTC node to Renesas RZ/V2H ("R9A09G057") SoC DTSI. Signed-off-by: Ovidiu Panait --- arch/arm64/boot/dts/renesas/r9a09g057.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r9a09g057.dtsi b/arch/arm64/boot/d= ts/renesas/r9a09g057.dtsi index 40b15f1db930..e426b9978e22 100644 --- a/arch/arm64/boot/dts/renesas/r9a09g057.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a09g057.dtsi @@ -591,6 +591,20 @@ wdt3: watchdog@13000400 { status =3D "disabled"; }; =20 + rtc: rtc@11c00800 { + compatible =3D "renesas,r9a09g057-rtca3", "renesas,rz-rtca3"; + reg =3D <0 0x11c00800 0 0x400>; + interrupts =3D , + , + ; + interrupt-names =3D "alarm", "period", "carry"; + clocks =3D <&cpg CPG_MOD 0x53>, <&rtxin_clk>; + clock-names =3D "bus", "counter"; + power-domains =3D <&cpg>; + resets =3D <&cpg 0x79>, <&cpg 0x7a>; + status =3D "disabled"; + }; + scif: serial@11c01400 { compatible =3D "renesas,scif-r9a09g057"; reg =3D <0 0x11c01400 0 0x400>; --=20 2.51.0 From nobody Mon Feb 9 06:49:27 2026 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8377A2E1F02; Sun, 19 Oct 2025 09:21:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.160.252.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760865707; cv=none; b=suJxh1BeT4P2zgwIQ2NTfF2+qQYy3Jfe/LFI84N6JgxBptUBst6EFU7Snsj4Jpza8kiij6y88+RIXxl8jPgt+J/c1HPJ9I61+wX6xau4ilrKn1iwsNkjstC0yQzmMhFYsnQ3jBoacCH6iK4Aic2Lcd2fIVnq3DC6QZH6TzZeEQw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760865707; c=relaxed/simple; bh=V2ts+ss27AMPKx5zBuYiaGxJXEgw3Lrf4jTZZMbFgVg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GgzRMljeTITLPnwEC7SfjURdxYotGHRPRV1Nn8oFmQ2V27W5C9XMx5p/vejhMZsPcdKAgWUMwYxj6L/58VD6dgdrVOBos3stk2Tj1fo9BeLWG5Sqav1FSXpDg8vpm9N7wcIC2bDvpRfy6wTKRwbjZIukMQd57VlHIflLqrryTQc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; arc=none smtp.client-ip=210.160.252.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com X-CSE-ConnectionGUID: EOB6rY5fRkelViYbh5Zp7g== X-CSE-MsgGUID: s+L7ohXJSnK0InUxaKXS9w== Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 19 Oct 2025 18:21:44 +0900 Received: from vm01.adwin.renesas.com (unknown [10.226.92.5]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id E31E0416123C; Sun, 19 Oct 2025 18:21:39 +0900 (JST) From: Ovidiu Panait To: claudiu.beznea.uj@bp.renesas.com, alexandre.belloni@bootlin.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, geert+renesas@glider.be, magnus.damm@gmail.com, mturquette@baylibre.com, sboyd@kernel.org, p.zabel@pengutronix.de Cc: linux-rtc@vger.kernel.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 6/6] arm64: dts: renesas: r9a09g057h44-rzv2h-evk: Enable RTC Date: Sun, 19 Oct 2025 09:21:06 +0000 Message-ID: <20251019092106.5737-7-ovidiu.panait.rb@renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251019092106.5737-1-ovidiu.panait.rb@renesas.com> References: <20251019092106.5737-1-ovidiu.panait.rb@renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Enable RTC. Signed-off-by: Ovidiu Panait --- arch/arm64/boot/dts/renesas/r9a09g057h44-rzv2h-evk.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r9a09g057h44-rzv2h-evk.dts b/arch/= arm64/boot/dts/renesas/r9a09g057h44-rzv2h-evk.dts index d0378c1c17a1..558270ad2ed1 100644 --- a/arch/arm64/boot/dts/renesas/r9a09g057h44-rzv2h-evk.dts +++ b/arch/arm64/boot/dts/renesas/r9a09g057h44-rzv2h-evk.dts @@ -408,6 +408,10 @@ &qextal_clk { clock-frequency =3D <24000000>; }; =20 +&rtc { + status =3D "okay"; +}; + &rtxin_clk { clock-frequency =3D <32768>; }; --=20 2.51.0