From nobody Mon Feb 9 04:31:45 2026 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE4EA30AD0F; Mon, 3 Nov 2025 12:19:05 +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=1762172347; cv=none; b=JHQEwxBoiBkaG/a15X65TUJsKDPm48qoTGtStax8ricC9O9r7POP2ltnRwTyw1CwNxAAfGYsJBMqyr5ojEIZ7focPIEMKeZHs5fWCq8JjAdHm388NSTf0YmNkDwG/QVG6o5sO6Oi8/DW7ul5D7z91+lWORkchFdEhNvES5YHNwA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762172347; c=relaxed/simple; bh=MZxXnUc/0o2RY71WOOo2pgfb2vgQeecbNlSWJTqdZ6Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Wgw6h4+GN1iMAAqFoiikJY1bQWi9pnrYEQ/qJOms23e380vJ8AAUcA6nDbBzUANaJjnMQcnTwhpYhPzgrkPGsk2pONdrn/9SZzhfZkRlC7XVY6FyWgfesdLs8KAvcyM3Far0Phg9UDYtdBUbkMMyJIB9yYpjKEt4IIH9Ejyj9+k= 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: DJsFk1fVQMu+E3eITq5qJA== X-CSE-MsgGUID: AffQwQz0TRW9HXJLaMoXOQ== Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 03 Nov 2025 21:18:58 +0900 Received: from vm01.adwin.renesas.com (unknown [10.226.92.152]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 04F6440065BE; Mon, 3 Nov 2025 21:18:54 +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, 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 Subject: [PATCH v3 1/4] dt-bindings: rtc: renesas,rz-rtca3: Add RZ/V2H support Date: Mon, 3 Nov 2025 12:18:45 +0000 Message-ID: <20251103121848.6539-2-ovidiu.panait.rb@renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251103121848.6539-1-ovidiu.panait.rb@renesas.com> References: <20251103121848.6539-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 --- .../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 04:31:45 2026 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 424B130C35D; Mon, 3 Nov 2025 12:19:08 +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=1762172350; cv=none; b=ZTdWQdZ+KOnF6qcQzuH/3YoHqK2tqw3VvvqMqFAoddhKTc0sRBD9yTYlngPwmy5zQu+jx11DE70EGcG2m4jvHXe6zklRxhdGgJbZh6Baoj3eGHTHOBBPZPKaqd5Q6HNtakAU2GqyvX/DOVUPx5BDdccNx93aOVO4DZMsLAhX6CY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762172350; c=relaxed/simple; bh=3N8gIO/Y4gG4k9D1S3MyWA/zSzgWm6SqqO6yp+Jsvr4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QLMzHpUOKTlOik7dFrZPiAg/tk5n04IZI6YVrD/N8qCUdlB8WmC+LSKLdUcVi6S71yEtr8X/ksME81QKyRKtj4aOkyteW9k9MYoDOs26kI8DTq2H2LXrSdTPWsoImEFiZ8GPzhGMfNlNTaT3AV2YJIlaBWsz5osmEVQug+8ZHyU= 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: dbX8V8riQ0amEsKqVFItpA== X-CSE-MsgGUID: pG33qdE+TpW6d0fUKH5QlA== Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 03 Nov 2025 21:19:03 +0900 Received: from vm01.adwin.renesas.com (unknown [10.226.92.152]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 602DA40065BE; Mon, 3 Nov 2025 21:18:59 +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, 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 Subject: [PATCH v3 2/4] rtc: renesas-rtca3: Add support for multiple reset lines Date: Mon, 3 Nov 2025 12:18:46 +0000 Message-ID: <20251103121848.6539-3-ovidiu.panait.rb@renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251103121848.6539-1-ovidiu.panait.rb@renesas.com> References: <20251103121848.6539-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" 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-renesas-rtca3.c b/drivers/rtc/rtc-renesas-rtca= 3.c index ab816bdf0d77..3524053269ef 100644 --- a/drivers/rtc/rtc-renesas-rtca3.c +++ b/drivers/rtc/rtc-renesas-rtca3.c @@ -726,7 +726,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 --=20 2.51.0 From nobody Mon Feb 9 04:31:45 2026 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C529030C347; Mon, 3 Nov 2025 12:19:07 +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=1762172349; cv=none; b=QHdo8PqIUE5fO83vjlfajGL5ZPJCM/IlvJ9/S6BeLa5q60vLsU8GC7nEEC+NTtljG0f/IJKNO49tD+6uNVkyyLNxHNcCi2wGhdkwkKPjKUwzdqzHTM1fIcT0wGN0WK1u3K3Bl24jd9q+DdCKWH+sSRmOUgJR0RwA6oGr478drA8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762172349; c=relaxed/simple; bh=B03VFnIRZkQKR6JFfSv8kZNu8YxQ6diXIuSgTrwa0ek=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KAt7H9WM6NDiZtGMYefxCOwLfuTD1UU5XmkL9kyAPVtI5vJMRclPNppFw58lZ+1/s29QeENI6cD/7h+9V4SlJ/JID4Sndjh/lKbSMUvn3XyevEeAHMCD8nh6QzWCk5zqAF00Gc4dStqZT302kKG+ZiHCvVHfXX843OW61lcWCHs= 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: 8cRCtiFKT0GwJXIgP5PnTA== X-CSE-MsgGUID: lLUbxfvtTaayAwj/uTq0vA== Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 03 Nov 2025 21:19:07 +0900 Received: from vm01.adwin.renesas.com (unknown [10.226.92.152]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id BCB814005E33; Mon, 3 Nov 2025 21:19:03 +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, 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 Subject: [PATCH v3 3/4] arm64: dts: renesas: r9a09g057: Add RTC node Date: Mon, 3 Nov 2025 12:18:47 +0000 Message-ID: <20251103121848.6539-4-ovidiu.panait.rb@renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251103121848.6539-1-ovidiu.panait.rb@renesas.com> References: <20251103121848.6539-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 | 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 04:31:45 2026 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 32AC730DEA7; Mon, 3 Nov 2025 12:19:12 +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=1762172354; cv=none; b=f8XxX566E8A1SWHe5nqIWPV5c4gTBR2KpmB1oS9y5p8Kue7QX50FovVwTcEdw5j/RJLBnCdma9Eh18g7VORvG2Me29tdnZvCrj4GSCWbQOEOB1oMcFR2vXYZS77JM9ED3k/OQLV09bN2+1VszyVPaqkK0CazYwJh0N883VBu654= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762172354; c=relaxed/simple; bh=RZil7nYEzSrNAf1EU1bKa08vAC8yB1ycRnCBTre+0sE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QWueGyPQx+TJQOaj+tzsd18FnwaK84PMIh3wpyNimHeLagN45qKo6ebkMipKyBKs9mgfgjhKyvixo+H+qPToQrtWVFmFABl1X/3PMIVAaGw5MMDsXDZNvatUjN7ZtUmWWyN9smzOBuIdraSjJ4TDX9xEVhWyCn5q+yd0C+tEnmI= 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: 7RNec1IXQS+TIY2K8QFXew== X-CSE-MsgGUID: HVZInHKJSNiU6mZ86jUAcQ== Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 03 Nov 2025 21:19:11 +0900 Received: from vm01.adwin.renesas.com (unknown [10.226.92.152]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 2A2CA40065BE; Mon, 3 Nov 2025 21:19:07 +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, 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 Subject: [PATCH v3 4/4] arm64: dts: renesas: r9a09g057h44-rzv2h-evk: Enable RTC Date: Mon, 3 Nov 2025 12:18:48 +0000 Message-ID: <20251103121848.6539-5-ovidiu.panait.rb@renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251103121848.6539-1-ovidiu.panait.rb@renesas.com> References: <20251103121848.6539-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 7fff8bea9494..99dfb40b6ea8 100644 --- a/arch/arm64/boot/dts/renesas/r9a09g057h44-rzv2h-evk.dts +++ b/arch/arm64/boot/dts/renesas/r9a09g057h44-rzv2h-evk.dts @@ -407,6 +407,10 @@ &qextal_clk { clock-frequency =3D <24000000>; }; =20 +&rtc { + status =3D "okay"; +}; + &rtxin_clk { clock-frequency =3D <32768>; }; --=20 2.51.0