From nobody Mon Feb 9 03:05:15 2026 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 98DEB2EBBBC; Tue, 21 Oct 2025 08:07:17 +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=1761034039; cv=none; b=tZpWUmJjUXsrRvHIrDU1r5poakTpR+EshgVgAGTjlUO6U41iLMGL2rEuGggt7nTPNAexYmXzOSRd1k4PE1Y3QXms91ZLDDuc3xtR6GOabT5fzloXtrLYxyxy8O7OZY4VviDWhBkxuuH2YZgyVJelHPjlogVJ+2jONc3vfLpWcZk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761034039; c=relaxed/simple; bh=L0K32rdGW4wLvsHRhRIJZNjVf2e/astRToaVBF0IEkg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lRID+vB6Z++GWvLc2WddknlKEe+8Ntm7FD5TK8Nac2ZSo2QxdrYFjTVJD+ln6GUdwHA8liYO0Er6jWjMy2gn9QAbqWm4wQt030ngWmvSvkBnlbjlSEKyJZPYNSnwqbjDhGSPuL7w8md1Ge16UacKclMfD/GX8AYiYQP14b5m5Fw= 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: R3I9D2gAQcy5IMP8QROWEw== X-CSE-MsgGUID: 76LLp/gaSNmyf6gpy+hMKw== Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 21 Oct 2025 17:07:17 +0900 Received: from vm01.adwin.renesas.com (unknown [10.226.92.145]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id ABD864141C94; Tue, 21 Oct 2025 17:07:12 +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 v2 1/6] clk: renesas: r9a09g057: Add clock and reset entries for RTC Date: Tue, 21 Oct 2025 08:07:00 +0000 Message-ID: <20251021080705.18116-2-ovidiu.panait.rb@renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251021080705.18116-1-ovidiu.panait.rb@renesas.com> References: <20251021080705.18116-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 Reviewed-by: Geert Uytterhoeven --- v2 changes: none 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 03:05:15 2026 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E651C2EB843; Tue, 21 Oct 2025 08:07:22 +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=1761034045; cv=none; b=gwwa/wniRXxuac6qciDK4e+VqiwXJarZBXR7xJ0Zv5VhGgpTqbi/BQXQckohVNdSdRfrHEkSvAJK/oq+orZVT2oLBZBJPMpnd+NkEptMT8WxouL5KdVXD7/J+yLx2oOSYSF+JSz8XVSXQab9QQduJ1JCks03NFnbxD/EWMdw72Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761034045; c=relaxed/simple; bh=xWpuFNQAF/zxn0+syvpJzxjJDX69VD2sKWEPBDXOaKQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=M9lL9UaAo1acy2KXNgkxZf40qtCJcGeQpP7OozQkebEe+YBevDh8/PhD8Ia4GcJb/GYh+4/uMhEd3cFiHW2CxyjjR/H2cfAxToDikFod08U57sZtonnw2g/IR05IWl6Hi5rDJIikLyZglv75LiT9MYAUW3MIZvRcZflqW5ntrf4= 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: xo/54YYqT0y8vKuJzrU0EA== X-CSE-MsgGUID: QpZCW1kDQ6icE6YFDW02LQ== Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 21 Oct 2025 17:07:22 +0900 Received: from vm01.adwin.renesas.com (unknown [10.226.92.145]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id F38C44141CAF; Tue, 21 Oct 2025 17:07:17 +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 v2 2/6] dt-bindings: rtc: renesas,rz-rtca3: Add RZ/V2H support Date: Tue, 21 Oct 2025 08:07:01 +0000 Message-ID: <20251021080705.18116-3-ovidiu.panait.rb@renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251021080705.18116-1-ovidiu.panait.rb@renesas.com> References: <20251021080705.18116-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 accordingly: - Allow "resets" to contain one or two entries depending on the SoC. - Add "reset-names" property, but make it required only for RZ/V2H. Signed-off-by: Ovidiu Panait Acked-by: Conor Dooley --- v2 changes: - Added "reset-names" property and made it required for RZ/V2H. .../bindings/rtc/renesas,rz-rtca3.yaml | 45 ++++++++++++++++--- 1 file changed, 40 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..2569cb494481 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,12 @@ properties: maxItems: 1 =20 resets: - items: - - description: VBATTB module reset + minItems: 1 + maxItems: 2 + + reset-names: + minItems: 1 + maxItems: 2 =20 required: - compatible @@ -61,6 +63,39 @@ 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 + reset-names: + const: vbattb + - if: + properties: + compatible: + contains: + const: renesas,r9a09g057-rtca3 + then: + properties: + resets: + items: + - description: RTC reset + - description: Reset for the RTEST registers + reset-names: + items: + - const: rtc + - const: rtc_rtest + required: + - reset-names + additionalProperties: false =20 examples: --=20 2.51.0 From nobody Mon Feb 9 03:05:15 2026 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2D3532749D6; Tue, 21 Oct 2025 08:07:28 +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=1761034050; cv=none; b=RFWGd4lYxfgxSfMNVjSn8lxZtEtA8Y/B5/NUXiPdS7nPIHAH5+sG+SEEe5nmzTN7DKADb5hsifysEefDGF+CdcSW3oTpRSn1JzL0e0sDjdQp/L7nUev5buRHQdY0JSmJ6rrA0nX5pG9pgWKLt8Pj/spMUSlVvlo9ycyOj/tQThs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761034050; c=relaxed/simple; bh=uov3YlU9mOuzy2FmlphL44IqIYGb+b9pa8YuAVntHM0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kVpulcZDZo4vfb64ysfCCQgXt+jgh8UZUH9AnB7V9MzGyadf6SmfU2Dj1D9psRs4xYvGsdDl0kDwniUtScDm1UPLlx6qnbgUbyYl8SubFJU8Bm2Bcv0mdJ8xXZLWYo/9lKlzu6QMgMxT0490prJJy/4EvudbDphyIytYd6lOBnk= 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: RksKegWRSR2R5GzrZI+NSQ== X-CSE-MsgGUID: QWizaDllSOKqbB8esf/RBQ== Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 21 Oct 2025 17:07:27 +0900 Received: from vm01.adwin.renesas.com (unknown [10.226.92.145]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 47FC04141C94; Tue, 21 Oct 2025 17:07: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 v2 3/6] rtc: renesas-rtca3: Use OF data for configuration Date: Tue, 21 Oct 2025 08:07:02 +0000 Message-ID: <20251021080705.18116-4-ovidiu.panait.rb@renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251021080705.18116-1-ovidiu.panait.rb@renesas.com> References: <20251021080705.18116-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 --- v2 changes: none 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 03:05:15 2026 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 447492EBDC0; Tue, 21 Oct 2025 08:07:33 +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=1761034056; cv=none; b=YHTKcE4HMiEYbz6AvPnHrSfW23SyucF0gMeDuzNH5jFnKzI7ZZsh+9OqAcsgPT2q7dP4pvSd+rIw+eynQH/k4EBMcu1eGpWhP6DmjenS+rKA9UYO0klqrN6KuGQBNrUltY8JCBW8txuoYv/4j28pSJgPuVk2UwO5VtTK/WUvmio= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761034056; c=relaxed/simple; bh=hxNEhQejS4epPIbloiZct/hDW/klgzkaMUaPPjdvkHo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=S4E7dXFZOPl3MF8a8xBtwx0l9YXPtiWcf5wHA0s325VE5qVLV9lB4ns6oSsDuQVOqD5lPmlFaUCKK9/aXmxJuCgapX0sdZB8F2ZhDlcC8QQEtNsdOZZySxqiZZrGQBqafuBuLiinST81Z7aMOVJtXBPvBEAIoQr+GZYc/HV5Hyo= 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: gX5LGRUMS3S1O53l7HKzEg== X-CSE-MsgGUID: tPm+ToqcQxaQG9Snc1KJYw== Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 21 Oct 2025 17:07:33 +0900 Received: from vm01.adwin.renesas.com (unknown [10.226.92.145]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 889E64141C94; Tue, 21 Oct 2025 17:07:28 +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 v2 4/6] rtc: renesas-rtca3: Add support for RZ/V2H SoC Date: Tue, 21 Oct 2025 08:07:03 +0000 Message-ID: <20251021080705.18116-5-ovidiu.panait.rb@renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251021080705.18116-1-ovidiu.panait.rb@renesas.com> References: <20251021080705.18116-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 --- v2 changes: none 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 03:05:15 2026 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C54392EAD13; Tue, 21 Oct 2025 08:07:38 +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=1761034060; cv=none; b=LR1mPOPhsA8j8Wcm4IsgLGwA/2doaCP4Ri1itsCpLTRwQwAvv92IUbEbq3YMUW6LalIiBPlTQfxpQNp1vgyTBcsS4zKkIM/oGzD60TNNFK7FOlCtI7R53GmtOmBJuUuilKbt6Iv94u+asn6cD5RmzxQBYQRs8yw5G6UXpyYCecI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761034060; c=relaxed/simple; bh=G+YVVs2mGjWA+BKToiF6+sDYcs5kdRAVnMridFv1SqE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bHho+lMAublaIFHTFclfgoXYvEPkrODJ23bE2GU5doDrZhOGO/We2YERoRd9I869Ud2Qy4KwYuWotTp6SLJiB39XBaMCas9UYmhCP9923KpADMCDIi2zaL6cUpjIRuZYzhQA51EPBW8mIANO+bpWgLyWrr2hJUomFwneNq2Ek/E= 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: TnTf56QnS4qdJJTyD3VM/w== X-CSE-MsgGUID: yFO3N4saQm2YAynhfxqBMw== Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 21 Oct 2025 17:07:38 +0900 Received: from vm01.adwin.renesas.com (unknown [10.226.92.145]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id D1E514141C94; Tue, 21 Oct 2025 17:07:33 +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 v2 5/6] arm64: dts: renesas: r9a09g057: Add RTC node Date: Tue, 21 Oct 2025 08:07:04 +0000 Message-ID: <20251021080705.18116-6-ovidiu.panait.rb@renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251021080705.18116-1-ovidiu.panait.rb@renesas.com> References: <20251021080705.18116-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 --- v2 changes: - Added "reset-names" to RTC dts node. arch/arm64/boot/dts/renesas/r9a09g057.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r9a09g057.dtsi b/arch/arm64/boot/d= ts/renesas/r9a09g057.dtsi index 40b15f1db930..724c4ce95c95 100644 --- a/arch/arm64/boot/dts/renesas/r9a09g057.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a09g057.dtsi @@ -591,6 +591,21 @@ 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>; + reset-names =3D "rtc", "rtc_rtest"; + 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 03:05:15 2026 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 271D12ECD2A; Tue, 21 Oct 2025 08:07:44 +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=1761034066; cv=none; b=jUNlXNn8Fjk8Za4Ms6cyHxzJHkkyzfhI+lCpuS/M3G+slCpSCqRC+q1OD7V/23F+ubw+DmLx40eusi2GLxKfJc3xfL36HEThTrYkcogNkJsCb7MsXtMP1gBIR3DOkuP9JwnYFWfjo+zdnItHWcLrBInqIxHeJCqbnJBe77DcqGk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761034066; c=relaxed/simple; bh=yNWLBorzXizqp98q/3u7dlT+3a2RcUk5qNcTHXL2eHk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=agVSid6vaZmMIg0ihnGh4JqR6ODM3KSlY98sJ98reZUidp6Y4M206zZKKSi8xKxRPc05OSWJNYrK5/rj+PCtFSVXXJlAvqAiRp32G7WOA/bS+rY83k1+BxZSdQyA2dwRQXYizEUQCmaCxfX4Fz2bvfS1XyUb7ABzQw1iqy+UqD4= 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: vT29u768Q7CdXZKKBXeuyw== X-CSE-MsgGUID: qnteZs6ZTDuPXjtnSxm9/g== Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 21 Oct 2025 17:07:43 +0900 Received: from vm01.adwin.renesas.com (unknown [10.226.92.145]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 286FD4141C98; Tue, 21 Oct 2025 17:07:38 +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 v2 6/6] arm64: dts: renesas: r9a09g057h44-rzv2h-evk: Enable RTC Date: Tue, 21 Oct 2025 08:07:05 +0000 Message-ID: <20251021080705.18116-7-ovidiu.panait.rb@renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251021080705.18116-1-ovidiu.panait.rb@renesas.com> References: <20251021080705.18116-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 --- v2 changes: none 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 3215ce53fe33..f20b63acca00 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