From nobody Mon Jun 15 13:57:38 2026 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 520293DDDAD; Fri, 10 Apr 2026 16:36:36 +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=1775839000; cv=none; b=NdcKNh42ofuTaOr3sULJBwWkQMW+ddki6tie1PLQ0h+nN2ZSSjoYnm2BIj4/oDR+ssBXAOyCzaTGF4oLl2XwJtjs828sJ6xtGaa6A/x1pmIaqz65divsewpV4GIBW3ROe/Ws7CepLDBOGoPofbuMWr+fhJd7GRtIyXZehh1b1oQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775839000; c=relaxed/simple; bh=XP13TavRqncbnzZii8QKSdiH96sPJ0mpHdniWjxZF7Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ph5yu0Yp/bZnYHkvF+0fhh4qclJdgLcQOm7K7r3eLz9H9CFktKYiYuYW46TKBIidOP1LI1vf96c9J19RMk4Uboj6fJxnI+f45CfI0ysS4+Jxh8k/56AIYvf6BJ5xA2v8Nkc6580RJZLBMvt1Jr1RymDM1Yp7otY3ntXXzakOLO8= 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: Ol4vk9UYR2SE0VH01/+jjQ== X-CSE-MsgGUID: 0FeSHw9eQwqqq8IA7I9k9w== Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 11 Apr 2026 01:36:29 +0900 Received: from demon-pc.localdomain (unknown [10.226.93.85]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 4D23B400CD4E; Sat, 11 Apr 2026 01:36:24 +0900 (JST) From: Cosmin Tanislav To: Biju Das , Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , Michael Turquette , Stephen Boyd , Lee Jones , Philipp Zabel Cc: linux-iio@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Cosmin Tanislav Subject: [PATCH v2 01/10] clk: renesas: r9a09g077: add MTU3 module clock Date: Fri, 10 Apr 2026 19:35:21 +0300 Message-ID: <20260410163530.383818-2-cosmin-gabriel.tanislav.xa@renesas.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260410163530.383818-1-cosmin-gabriel.tanislav.xa@renesas.com> References: <20260410163530.383818-1-cosmin-gabriel.tanislav.xa@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/T2H (R9A09G077) and RZ/N2H (R9A09G087) SoCs have a MTU3 block connected to the PCLKH and with a module clock controlled by register 0x308, bit 0. Add support for the module clock. Signed-off-by: Cosmin Tanislav Reviewed-by: Geert Uytterhoeven --- V2: * no changes drivers/clk/renesas/r9a09g077-cpg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/renesas/r9a09g077-cpg.c b/drivers/clk/renesas/r9a0= 9g077-cpg.c index 93b15e06a19bc..f777601a23b93 100644 --- a/drivers/clk/renesas/r9a09g077-cpg.c +++ b/drivers/clk/renesas/r9a09g077-cpg.c @@ -257,6 +257,7 @@ static const struct mssr_mod_clk r9a09g077_mod_clks[] _= _initconst =3D { DEF_MOD("spi0", 104, CLK_SPI0ASYNC), DEF_MOD("spi1", 105, CLK_SPI1ASYNC), DEF_MOD("spi2", 106, CLK_SPI2ASYNC), + DEF_MOD("mtu3", 200, R9A09G077_CLK_PCLKH), DEF_MOD("adc0", 206, R9A09G077_CLK_PCLKH), DEF_MOD("adc1", 207, R9A09G077_CLK_PCLKH), DEF_MOD("adc2", 225, R9A09G077_CLK_PCLKM), --=20 2.53.0 From nobody Mon Jun 15 13:57:38 2026 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F7933DD53E; Fri, 10 Apr 2026 16:36:36 +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=1775839000; cv=none; b=gunPpw3bWHajL/iGcwrwzyWAwWuS/5CW+vrOjttEgUzd832I3Nyc+EnUeC+xPX4XO9s58/jMMXp9hRYcTrWBvx6Ay4cYHW/4Wy6ZeOOvYw5oyZvISH/KsdGOcisZM1PyFLvM3TrpQ1mBjixGTTFvBVXnTi2+Z92X2rk885VlF7M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775839000; c=relaxed/simple; bh=ezMnGqvHFKXY/Zb57HvL9f/nd3SWeM+tHom/NQiq4dk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KcAnsjCfjsX5eY3a+iWiXK5GudHup11ZdCvpdg3XKqRkU4u7EV2wfmah/igExTSXmN2p8/3BExRPe1ngacz72vV2gxr/x4yYfi0ADZAiHKLyDDSp7Jdc3aGfJaegJd70IELzWRXjsyA+SX6ski2/jW1KD8xgNiD2ZesiGpmryjg= 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: nPvthouGT5iSoqtytJhjYQ== X-CSE-MsgGUID: sUmbfxxSTmGvrz4aAXLgqw== Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 11 Apr 2026 01:36:36 +0900 Received: from demon-pc.localdomain (unknown [10.226.93.85]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id B49A3400CD4C; Sat, 11 Apr 2026 01:36:30 +0900 (JST) From: Cosmin Tanislav To: Biju Das , Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , Michael Turquette , Stephen Boyd , Lee Jones , Philipp Zabel Cc: linux-iio@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Cosmin Tanislav Subject: [PATCH v2 02/10] mfd: rz-mtu3: use device-managed reset deassert Date: Fri, 10 Apr 2026 19:35:22 +0300 Message-ID: <20260410163530.383818-3-cosmin-gabriel.tanislav.xa@renesas.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260410163530.383818-1-cosmin-gabriel.tanislav.xa@renesas.com> References: <20260410163530.383818-1-cosmin-gabriel.tanislav.xa@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" Replace devm_reset_control_get_exclusive() and the manual reset_control_deassert()/reset_control_assert() with handling by devm_reset_control_get_exclusive_deasserted(). While at it, remove struct rz_mtu3_priv::rstc and use a local variable for it as it is not needed inside rz_mtu3_reset_assert(). Rename rz_mtu3_reset_assert() to rz_mtu3_mfd_remove() to accurately describe its usage since it no longer calls reset_control_assert(). Signed-off-by: Cosmin Tanislav --- V2: * no changes drivers/mfd/rz-mtu3.c | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/drivers/mfd/rz-mtu3.c b/drivers/mfd/rz-mtu3.c index 9cdfef610398f..6b9c6831dffa9 100644 --- a/drivers/mfd/rz-mtu3.c +++ b/drivers/mfd/rz-mtu3.c @@ -21,7 +21,6 @@ =20 struct rz_mtu3_priv { void __iomem *mmio; - struct reset_control *rstc; spinlock_t lock; }; =20 @@ -301,13 +300,9 @@ void rz_mtu3_disable(struct rz_mtu3_channel *ch) } EXPORT_SYMBOL_GPL(rz_mtu3_disable); =20 -static void rz_mtu3_reset_assert(void *data) +static void rz_mtu3_mfd_remove(void *data) { - struct rz_mtu3 *mtu =3D dev_get_drvdata(data); - struct rz_mtu3_priv *priv =3D mtu->priv_data; - mfd_remove_devices(data); - reset_control_assert(priv->rstc); } =20 static const struct mfd_cell rz_mtu3_devs[] =3D { @@ -321,6 +316,7 @@ static const struct mfd_cell rz_mtu3_devs[] =3D { =20 static int rz_mtu3_probe(struct platform_device *pdev) { + struct reset_control *rstc; struct rz_mtu3_priv *priv; struct rz_mtu3 *ddata; unsigned int i; @@ -340,15 +336,14 @@ static int rz_mtu3_probe(struct platform_device *pdev) if (IS_ERR(priv->mmio)) return PTR_ERR(priv->mmio); =20 - priv->rstc =3D devm_reset_control_get_exclusive(&pdev->dev, NULL); - if (IS_ERR(priv->rstc)) - return PTR_ERR(priv->rstc); + rstc =3D devm_reset_control_get_exclusive_deasserted(&pdev->dev, NULL); + if (IS_ERR(rstc)) + return PTR_ERR(rstc); =20 ddata->clk =3D devm_clk_get(&pdev->dev, NULL); if (IS_ERR(ddata->clk)) return PTR_ERR(ddata->clk); =20 - reset_control_deassert(priv->rstc); spin_lock_init(&priv->lock); platform_set_drvdata(pdev, ddata); =20 @@ -361,14 +356,10 @@ static int rz_mtu3_probe(struct platform_device *pdev) ret =3D mfd_add_devices(&pdev->dev, 0, rz_mtu3_devs, ARRAY_SIZE(rz_mtu3_devs), NULL, 0, NULL); if (ret < 0) - goto err_assert; + return ret; =20 - return devm_add_action_or_reset(&pdev->dev, rz_mtu3_reset_assert, + return devm_add_action_or_reset(&pdev->dev, rz_mtu3_mfd_remove, &pdev->dev); - -err_assert: - reset_control_assert(priv->rstc); - return ret; } =20 static const struct of_device_id rz_mtu3_of_match[] =3D { --=20 2.53.0 From nobody Mon Jun 15 13:57:38 2026 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E72033DDDD9; Fri, 10 Apr 2026 16:36:42 +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=1775839005; cv=none; b=p/FxzjbfWFmz0TWfMGVrO2RoZ1VeAJurETysZs3Hkk76gCwga6eBorrZ5JfXJQrWlcHEEia1Q2AboVgqhpzqJmpqRAsbJt0xawsMK5E90KYyHMuELjWxbtPn63QloyNUzxPpD0a2EAKulNRzPut/PvjJI66TkFocgARWlpqK0Zo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775839005; c=relaxed/simple; bh=sufVuvNQinHIAexUa5MPTsuAmyuW3dk6GU8kl9oUA8s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fhuetSnoi4jEzFr7foO7kLj0yU7+7TbbQhbL3LdOgYBfsK9HLoTjvbJbnO+cP6NB3edqz4Qq3kFW1KkgmBfN2mCJpIpgUJdlQzIAxEd2P8Bugka4Rdc4dzz4kmAzUWllw5HGTkmPkXz1T0NRgbLic3w7Gf5chaEdB6hmN6hAZUI= 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: GeagbUUMS5eEFNX3ujPp0Q== X-CSE-MsgGUID: zhNL1ewLRxGICuMZmBRUHA== Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 11 Apr 2026 01:36:42 +0900 Received: from demon-pc.localdomain (unknown [10.226.93.85]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 1DAEB400CD4E; Sat, 11 Apr 2026 01:36:36 +0900 (JST) From: Cosmin Tanislav To: Biju Das , Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , Michael Turquette , Stephen Boyd , Lee Jones , Philipp Zabel Cc: linux-iio@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Cosmin Tanislav Subject: [PATCH v2 03/10] mfd: rz-mtu3: use device-managed mfd_add_devices() Date: Fri, 10 Apr 2026 19:35:23 +0300 Message-ID: <20260410163530.383818-4-cosmin-gabriel.tanislav.xa@renesas.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260410163530.383818-1-cosmin-gabriel.tanislav.xa@renesas.com> References: <20260410163530.383818-1-cosmin-gabriel.tanislav.xa@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" Replace mfd_add_devices() and the custom cleanup action with devm_mfd_add_devices(). Remove the ret variable as it is now unused. Signed-off-by: Cosmin Tanislav --- V2: * no changes drivers/mfd/rz-mtu3.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers/mfd/rz-mtu3.c b/drivers/mfd/rz-mtu3.c index 6b9c6831dffa9..3be6f6c900b82 100644 --- a/drivers/mfd/rz-mtu3.c +++ b/drivers/mfd/rz-mtu3.c @@ -300,11 +300,6 @@ void rz_mtu3_disable(struct rz_mtu3_channel *ch) } EXPORT_SYMBOL_GPL(rz_mtu3_disable); =20 -static void rz_mtu3_mfd_remove(void *data) -{ - mfd_remove_devices(data); -} - static const struct mfd_cell rz_mtu3_devs[] =3D { { .name =3D "rz-mtu3-counter", @@ -320,7 +315,6 @@ static int rz_mtu3_probe(struct platform_device *pdev) struct rz_mtu3_priv *priv; struct rz_mtu3 *ddata; unsigned int i; - int ret; =20 ddata =3D devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); if (!ddata) @@ -353,13 +347,8 @@ static int rz_mtu3_probe(struct platform_device *pdev) mutex_init(&ddata->channels[i].lock); } =20 - ret =3D mfd_add_devices(&pdev->dev, 0, rz_mtu3_devs, - ARRAY_SIZE(rz_mtu3_devs), NULL, 0, NULL); - if (ret < 0) - return ret; - - return devm_add_action_or_reset(&pdev->dev, rz_mtu3_mfd_remove, - &pdev->dev); + return devm_mfd_add_devices(&pdev->dev, 0, rz_mtu3_devs, + ARRAY_SIZE(rz_mtu3_devs), NULL, 0, NULL); } =20 static const struct of_device_id rz_mtu3_of_match[] =3D { --=20 2.53.0 From nobody Mon Jun 15 13:57:38 2026 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7EAC33DDDAE; Fri, 10 Apr 2026 16:36:49 +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=1775839014; cv=none; b=HTjfYpWmK9G4RSOIypTry+tuDEwaFhJuY2S1BcZ4G/fJOI55WlIWltjeZ+KFsTjdRVQbI6RSFavHNP9farXrwgVKVi9aXbSnvKJfrAJtts3p5R5YYMbf5oFsIk6uJSYHaqrt+oXbuqZBG4beQA6IOnftqQMuCE8DaxxSf+r41P0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775839014; c=relaxed/simple; bh=B4hUufRNFgQN0hy0TRy8xXHLJ43QbL4CrUuOnv7iVjA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=St/qU5Duf9ZOcMt3D/jwhYxJbpWpgL/X6+/gvbsdouDghOwvmGqby8iL5sY4cFIth8iaY2X5JIWzPmWpfI3uvQWvDjsTpx5+CTsaiZ7B3nvGjEj8talPcWaZHm0ag9v//SBFivYmmZWMeGIOx7ohs5QUR2C/zBMRt9R5OWCklyg= 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: QmbUTCxfRjSVsz9bQsQa/w== X-CSE-MsgGUID: RtP9fG2wSymjKuJlgeG4+A== Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 11 Apr 2026 01:36:49 +0900 Received: from demon-pc.localdomain (unknown [10.226.93.85]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 8DCEC400CD4C; Sat, 11 Apr 2026 01:36:43 +0900 (JST) From: Cosmin Tanislav To: Biju Das , Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , Michael Turquette , Stephen Boyd , Lee Jones , Philipp Zabel Cc: linux-iio@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Cosmin Tanislav Subject: [PATCH v2 04/10] mfd: rz-mtu3: store &pdev->dev in local variable Date: Fri, 10 Apr 2026 19:35:24 +0300 Message-ID: <20260410163530.383818-5-cosmin-gabriel.tanislav.xa@renesas.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260410163530.383818-1-cosmin-gabriel.tanislav.xa@renesas.com> References: <20260410163530.383818-1-cosmin-gabriel.tanislav.xa@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" &pdev->dev is accessed multiple times during probe. Store it in a local variable and use that to simplify the code. Signed-off-by: Cosmin Tanislav --- V2: * no changes drivers/mfd/rz-mtu3.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/mfd/rz-mtu3.c b/drivers/mfd/rz-mtu3.c index 3be6f6c900b82..37d12030e069c 100644 --- a/drivers/mfd/rz-mtu3.c +++ b/drivers/mfd/rz-mtu3.c @@ -311,16 +311,17 @@ static const struct mfd_cell rz_mtu3_devs[] =3D { =20 static int rz_mtu3_probe(struct platform_device *pdev) { + struct device *dev =3D &pdev->dev; struct reset_control *rstc; struct rz_mtu3_priv *priv; struct rz_mtu3 *ddata; unsigned int i; =20 - ddata =3D devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); + ddata =3D devm_kzalloc(dev, sizeof(*ddata), GFP_KERNEL); if (!ddata) return -ENOMEM; =20 - ddata->priv_data =3D devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); + ddata->priv_data =3D devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); if (!ddata->priv_data) return -ENOMEM; =20 @@ -330,11 +331,11 @@ static int rz_mtu3_probe(struct platform_device *pdev) if (IS_ERR(priv->mmio)) return PTR_ERR(priv->mmio); =20 - rstc =3D devm_reset_control_get_exclusive_deasserted(&pdev->dev, NULL); + rstc =3D devm_reset_control_get_exclusive_deasserted(dev, NULL); if (IS_ERR(rstc)) return PTR_ERR(rstc); =20 - ddata->clk =3D devm_clk_get(&pdev->dev, NULL); + ddata->clk =3D devm_clk_get(dev, NULL); if (IS_ERR(ddata->clk)) return PTR_ERR(ddata->clk); =20 @@ -347,7 +348,7 @@ static int rz_mtu3_probe(struct platform_device *pdev) mutex_init(&ddata->channels[i].lock); } =20 - return devm_mfd_add_devices(&pdev->dev, 0, rz_mtu3_devs, + return devm_mfd_add_devices(dev, 0, rz_mtu3_devs, ARRAY_SIZE(rz_mtu3_devs), NULL, 0, NULL); } =20 --=20 2.53.0 From nobody Mon Jun 15 13:57:38 2026 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C5D503DDDAE; Fri, 10 Apr 2026 16:36:56 +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=1775839019; cv=none; b=Ft+yoUw8S0YJD3JP4YMW+u9LmwYTORdhvqZRKGIcadKCPADIlgPDvMHKAwIqXTzmdQluvuDEJHfL3rrlFdr8L0a61BhiRIm6enyXiLXarx3QfkzR23WdhB2VZgJSji4bWE9lIlZWvmALcEPqdxqtzYhilwVOxk0opcuk0/iFYQ0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775839019; c=relaxed/simple; bh=0Cl6Gcyn51lDIvX4xn3bj16JNqsdDcpyTO7CTUglmFk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HRIZY9oq521nzXwWPhwdHlVaSJemaXTJbnqYeuv6ktw9vlaWY25KSwXUcLqn6I8VdLasFKKumTCc/Ua0DoqjYRUh8Afhh4jNBDbZ4rUyDin/66ODiT5YGhBc0EN0Oky0aWaJ9lhloFxphXFT1Vjk/uDXWkx8i6to8x4m8KsOcfw= 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: EjKXsQTTRtaXf/AmbhgC/Q== X-CSE-MsgGUID: HJB4RNMATYKp8IJyM2udgQ== Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 11 Apr 2026 01:36:55 +0900 Received: from demon-pc.localdomain (unknown [10.226.93.85]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 29ACD400CD4C; Sat, 11 Apr 2026 01:36:49 +0900 (JST) From: Cosmin Tanislav To: Biju Das , Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , Michael Turquette , Stephen Boyd , Lee Jones , Philipp Zabel Cc: linux-iio@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Cosmin Tanislav Subject: [PATCH v2 05/10] mfd: rz-mtu3: make reset optional Date: Fri, 10 Apr 2026 19:35:25 +0300 Message-ID: <20260410163530.383818-6-cosmin-gabriel.tanislav.xa@renesas.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260410163530.383818-1-cosmin-gabriel.tanislav.xa@renesas.com> References: <20260410163530.383818-1-cosmin-gabriel.tanislav.xa@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/T2H (R9A09G077) and RZ/N2H (R9A09G087) SoCs do not have a reset line for the MTU3 block. Prepare for them by making it optional. Signed-off-by: Cosmin Tanislav --- V2: * no changes drivers/mfd/rz-mtu3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/rz-mtu3.c b/drivers/mfd/rz-mtu3.c index 37d12030e069c..689dbb181d305 100644 --- a/drivers/mfd/rz-mtu3.c +++ b/drivers/mfd/rz-mtu3.c @@ -331,7 +331,7 @@ static int rz_mtu3_probe(struct platform_device *pdev) if (IS_ERR(priv->mmio)) return PTR_ERR(priv->mmio); =20 - rstc =3D devm_reset_control_get_exclusive_deasserted(dev, NULL); + rstc =3D devm_reset_control_get_optional_exclusive_deasserted(dev, NULL); if (IS_ERR(rstc)) return PTR_ERR(rstc); =20 --=20 2.53.0 From nobody Mon Jun 15 13:57:38 2026 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 419CE3DBD4A; Fri, 10 Apr 2026 16:37:02 +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=1775839024; cv=none; b=Wy/eLJ/iAes8WosVAWcmtir/vHitUdnUctjLoSkLt9IZwz8pBniHWz8NNxX9WKHnXhgmKt25AviO7V6HvM+A5ScRinXMnAqGiSHlHjrqPzfpPKsVhZqgBWrjY7UTyyPEfWcIO5/iIXrp//HVQte0LvXlk4aeIMtqQyy+2h2mPIA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775839024; c=relaxed/simple; bh=lND7+Ko6/xSjPeJmVQs1K896n6GjQ6xaIs0nD+9LWlQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uNjRol6eQZf2VPIdk6U77retfu2VBj3svzVl3Xzcgg9ixH38VES1hf4KbEzpep9ZHFHzvAehXVvUvqy4P7pHEISpwvof8HkaD7qilytnafasMAdt6cBAaNLRWNvlM4ash++MwcJZCEOfHs5G/Skjq8Jn56TSTOlLQbLNX+G4VFU= 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: 6d0yxHSNTaO5FT4CTGfDKg== X-CSE-MsgGUID: su6gJoTAS9KNgLzbUyo4Kg== Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 11 Apr 2026 01:37:01 +0900 Received: from demon-pc.localdomain (unknown [10.226.93.85]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 9E978400CD4C; Sat, 11 Apr 2026 01:36:56 +0900 (JST) From: Cosmin Tanislav To: Biju Das , Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , Michael Turquette , Stephen Boyd , Lee Jones , Philipp Zabel Cc: linux-iio@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Cosmin Tanislav Subject: [PATCH v2 06/10] dt-bindings: timer: renesas,rz-mtu3: remove TCIU8 interrupt Date: Fri, 10 Apr 2026 19:35:26 +0300 Message-ID: <20260410163530.383818-7-cosmin-gabriel.tanislav.xa@renesas.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260410163530.383818-1-cosmin-gabriel.tanislav.xa@renesas.com> References: <20260410163530.383818-1-cosmin-gabriel.tanislav.xa@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 TCIU8 interrupt used to be documented in earlier revisions of the user manuals, but has since been removed. The corresponding entry is now marked as reserved in the interrupt mapping tables of all supported SoCs. * Page 486, Table 8.2 Interrupt mapping (7/13) in the Renesas RZ/G2UL Rev.1.40 User Manual * Page 363, Table 8.2 Interrupt Mapping (6/13) in the Renesas RZ/Five Rev.1.30 User Manual * Page 528, Table 8.2 Interrupt mapping (7/13) in the Renesas RZ/G2L and RZ/G2LC Rev.1.50 User Manual * Page 540, Table 8.2 Interrupt mapping (7/13) in the Renesas RZ/V2L Rev.1.50 User Manual Remove the TCIU8 interrupt. Acked-by: Rob Herring (Arm) Signed-off-by: Cosmin Tanislav --- V2: * reword to mention that TCIU8 used to exist .../devicetree/bindings/timer/renesas,rz-mtu3.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml b= /Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml index 3ad10c5b66ba5..00cd5cbcf6e9b 100644 --- a/Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml +++ b/Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml @@ -162,7 +162,6 @@ properties: - description: MTU8.TGRC input capture/compare match - description: MTU8.TGRD input capture/compare match - description: MTU8.TCNT overflow - - description: MTU8.TCNT underflow =20 interrupt-names: items: @@ -209,7 +208,6 @@ properties: - const: tgic8 - const: tgid8 - const: tciv8 - - const: tciu8 =20 clocks: maxItems: 1 @@ -287,8 +285,7 @@ examples: , , , - , - ; + ; interrupt-names =3D "tgia0", "tgib0", "tgic0", "tgid0", "tciv0", "tg= ie0", "tgif0", "tgia1", "tgib1", "tciv1", "tciu1", @@ -298,7 +295,7 @@ examples: "tgiu5", "tgiv5", "tgiw5", "tgia6", "tgib6", "tgic6", "tgid6", "tciv6", "tgia7", "tgib7", "tgic7", "tgid7", "tciv7", - "tgia8", "tgib8", "tgic8", "tgid8", "tciv8", "tciu= 8"; + "tgia8", "tgib8", "tgic8", "tgid8", "tciv8"; clocks =3D <&cpg CPG_MOD R9A07G044_MTU_X_MCK_MTU3>; power-domains =3D <&cpg>; resets =3D <&cpg R9A07G044_MTU_X_PRESET_MTU3>; --=20 2.53.0 From nobody Mon Jun 15 13:57:38 2026 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2762A38E5C7; Fri, 10 Apr 2026 16:37:09 +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=1775839031; cv=none; b=rTqCHCgGAkVDrEG6B1dh+lP3K1G0k6uoeUUsu14DvVOgVVjusDaQvEp+raOMog7QoqfjRAhxxhlDTUIR3qwPwrREfN24XqKoyCAw+QLt/CdiDFxQbIii1fEUFA4HczLS+WDT5VtnLzqbI+ICvQcA1Qtug1kLydUga/xl/yPtZyU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775839031; c=relaxed/simple; bh=VwE7p5Fpurcfv4ZJXM3hEQCsN1CiDSExRQKVg/6EXdA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=M5actyk5tSIcCyt/1oH6wJI4h4+I14w+mpmJhLvqA/KeYIo4TJb/JTPZgMO+i586UI+d6LX7hT6fG2HE0j8p/R7xedtNnuc/ocV8P9aUz4PWfvG0RqxRBoS0fFv6WxPJ8//3NfvsatWH5c0jvTlqbBPXzMPEe4k5oYXwm9IMuKc= 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: x7NnH3vKQOelpyIX2Ey0LQ== X-CSE-MsgGUID: LWrc2InfTMSlrYeelmhTGg== Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 11 Apr 2026 01:37:08 +0900 Received: from demon-pc.localdomain (unknown [10.226.93.85]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 77A5B4006DED; Sat, 11 Apr 2026 01:37:03 +0900 (JST) From: Cosmin Tanislav To: Biju Das , Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , Michael Turquette , Stephen Boyd , Lee Jones , Philipp Zabel Cc: linux-iio@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Cosmin Tanislav Subject: [PATCH v2 07/10] dt-bindings: timer: renesas,rz-mtu3: document RZ/{T2H,N2H} Date: Fri, 10 Apr 2026 19:35:27 +0300 Message-ID: <20260410163530.383818-8-cosmin-gabriel.tanislav.xa@renesas.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260410163530.383818-1-cosmin-gabriel.tanislav.xa@renesas.com> References: <20260410163530.383818-1-cosmin-gabriel.tanislav.xa@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" Compared to the previously supported SoCs, the Renesas RZ/T2H and RZ/N2H SoCs do not have a reset line. Add support for them by moving the required reset into a conditional matching all compatibles for the existing SoCs. Disable the resets for RZ/T2H and RZ/N2H. Document RZ/T2H and RZ/N2H, and use the generic compatible as a fallback, as functionality is the same. Signed-off-by: Cosmin Tanislav Reviewed-by: Krzysztof Kozlowski --- V2: * squash "move required resets to conditional" into this * disable the resets in the else branch of the condition .../bindings/timer/renesas,rz-mtu3.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml b= /Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml index 00cd5cbcf6e9b..ecff2912d812b 100644 --- a/Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml +++ b/Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml @@ -112,6 +112,8 @@ properties: - renesas,r9a07g043-mtu3 # RZ/{G2UL,Five} - renesas,r9a07g044-mtu3 # RZ/G2{L,LC} - renesas,r9a07g054-mtu3 # RZ/V2L + - renesas,r9a09g077-mtu3 # RZ/T2H + - renesas,r9a09g087-mtu3 # RZ/N2H - const: renesas,rz-mtu3 =20 reg: @@ -231,7 +233,22 @@ required: - interrupt-names - clocks - power-domains - - resets + +allOf: + - if: + properties: + compatible: + contains: + enum: + - renesas,r9a07g043-mtu3 + - renesas,r9a07g044-mtu3 + - renesas,r9a07g054-mtu3 + then: + required: + - resets + else: + properties: + resets: false =20 additionalProperties: false =20 --=20 2.53.0 From nobody Mon Jun 15 13:57:38 2026 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2AB3F30CDAF; Fri, 10 Apr 2026 16:37:15 +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=1775839037; cv=none; b=FlOtEQ25Qlvb4dC9x+U/uCPTHga4USXxU9053Qh9RJgqJ1Uf+jeKKYgOzEDQUGozPO2rLZAhkI2lHBY4OAMtzS/I5bwShR5aOtye7ZH+hsZirERZYujUaLsaGWA9HiMxuKZ1wjerfgsXPersP7xQzDZIvu151PAZAIuzMWhM2KA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775839037; c=relaxed/simple; bh=pIfxUBnevC9isWgRz3icQRT/7NeBYsi/yYeyxy7uCLY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HBSGOKlQ+tbMzpME6a5AXv3WXiJjsiqfVri6G5rqIbax1IebtiVf7Axzc2kr0JIWXfYybFnr7oghYtXJOZ6U0DAYhyRVvt64e9K4dBDDAxO4RBepK2OYBWGxypojEHhJXQWVRtSI1vMf7Z6RBoVmZBw7Sa/99tg2+PA1H9ygrBo= 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: nXvvath4Se2W/n7YsAgYlg== X-CSE-MsgGUID: ogTMoCJiQ/ai+/OPfL2u6Q== Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 11 Apr 2026 01:37:15 +0900 Received: from demon-pc.localdomain (unknown [10.226.93.85]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 03A914006DED; Sat, 11 Apr 2026 01:37:09 +0900 (JST) From: Cosmin Tanislav To: Biju Das , Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , Michael Turquette , Stephen Boyd , Lee Jones , Philipp Zabel Cc: linux-iio@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Cosmin Tanislav Subject: [PATCH v2 08/10] arm64: dts: renesas: r9a07g0{43,44,54}: remove TCIU8 interrupt from MTU3 Date: Fri, 10 Apr 2026 19:35:28 +0300 Message-ID: <20260410163530.383818-9-cosmin-gabriel.tanislav.xa@renesas.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260410163530.383818-1-cosmin-gabriel.tanislav.xa@renesas.com> References: <20260410163530.383818-1-cosmin-gabriel.tanislav.xa@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 TCIU8 interrupt used to be documented in earlier revisions of the user manuals, but has since been removed. The corresponding entry is now marked as reserved in the interrupt mapping tables of all supported SoCs. * Page 486, Table 8.2 Interrupt mapping (7/13) in the Renesas RZ/G2UL Rev.1.40 User Manual * Page 363, Table 8.2 Interrupt Mapping (6/13) in the Renesas RZ/Five Rev.1.30 User Manual * Page 528, Table 8.2 Interrupt mapping (7/13) in the Renesas RZ/G2L and RZ/G2LC Rev.1.50 User Manual * Page 540, Table 8.2 Interrupt mapping (7/13) in the Renesas RZ/V2L Rev.1.50 User Manual Remove the TCIU8 interrupt. This does not cause any breakage as the driver does not make use of the interrupts. Signed-off-by: Cosmin Tanislav --- V2: * reword to mention that TCIU8 used to exist arch/arm64/boot/dts/renesas/r9a07g043.dtsi | 5 ++--- arch/arm64/boot/dts/renesas/r9a07g044.dtsi | 5 ++--- arch/arm64/boot/dts/renesas/r9a07g054.dtsi | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/arch/arm64/boot/dts/renesas/r9a07g043.dtsi b/arch/arm64/boot/d= ts/renesas/r9a07g043.dtsi index 593c66b27ad12..7bc37e1015a47 100644 --- a/arch/arm64/boot/dts/renesas/r9a07g043.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a07g043.dtsi @@ -120,8 +120,7 @@ mtu3: timer@10001200 { , , , - , - ; + ; interrupt-names =3D "tgia0", "tgib0", "tgic0", "tgid0", "tciv0", "tgie0", "tgif0", "tgia1", "tgib1", "tciv1", "tciu1", @@ -136,7 +135,7 @@ mtu3: timer@10001200 { "tgia7", "tgib7", "tgic7", "tgid7", "tciv7", "tgia8", "tgib8", "tgic8", "tgid8", - "tciv8", "tciu8"; + "tciv8"; clocks =3D <&cpg CPG_MOD R9A07G043_MTU_X_MCK_MTU3>; power-domains =3D <&cpg>; resets =3D <&cpg R9A07G043_MTU_X_PRESET_MTU3>; diff --git a/arch/arm64/boot/dts/renesas/r9a07g044.dtsi b/arch/arm64/boot/d= ts/renesas/r9a07g044.dtsi index 29273da819951..799a974c4dba1 100644 --- a/arch/arm64/boot/dts/renesas/r9a07g044.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a07g044.dtsi @@ -220,8 +220,7 @@ mtu3: timer@10001200 { , , , - , - ; + ; interrupt-names =3D "tgia0", "tgib0", "tgic0", "tgid0", "tciv0", "tgie0", "tgif0", "tgia1", "tgib1", "tciv1", "tciu1", @@ -236,7 +235,7 @@ mtu3: timer@10001200 { "tgia7", "tgib7", "tgic7", "tgid7", "tciv7", "tgia8", "tgib8", "tgic8", "tgid8", - "tciv8", "tciu8"; + "tciv8"; clocks =3D <&cpg CPG_MOD R9A07G044_MTU_X_MCK_MTU3>; power-domains =3D <&cpg>; resets =3D <&cpg R9A07G044_MTU_X_PRESET_MTU3>; diff --git a/arch/arm64/boot/dts/renesas/r9a07g054.dtsi b/arch/arm64/boot/d= ts/renesas/r9a07g054.dtsi index 0dee48c4f1e44..0dc4c3c8c06b2 100644 --- a/arch/arm64/boot/dts/renesas/r9a07g054.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a07g054.dtsi @@ -220,8 +220,7 @@ mtu3: timer@10001200 { , , , - , - ; + ; interrupt-names =3D "tgia0", "tgib0", "tgic0", "tgid0", "tciv0", "tgie0", "tgif0", "tgia1", "tgib1", "tciv1", "tciu1", @@ -236,7 +235,7 @@ mtu3: timer@10001200 { "tgia7", "tgib7", "tgic7", "tgid7", "tciv7", "tgia8", "tgib8", "tgic8", "tgid8", - "tciv8", "tciu8"; + "tciv8"; clocks =3D <&cpg CPG_MOD R9A07G054_MTU_X_MCK_MTU3>; power-domains =3D <&cpg>; resets =3D <&cpg R9A07G054_MTU_X_PRESET_MTU3>; --=20 2.53.0 From nobody Mon Jun 15 13:57:38 2026 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E8D131E5B9A; Fri, 10 Apr 2026 16:37:23 +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=1775839045; cv=none; b=hLxDYmULWbB8DESBVzmJbMnCF2m+iSksbLpjsy6wgIg8N7h7zxfO/UtNROo4GnQTjEXUutWm4GTKNys10yVhpVA69MfclhH9l1xtEIuR5lNLWcK7EzJoUoKbi9q0p/2B+fk9bRilxqqnWhDwags8T9bCACnVxdlxv6R8SmC4aIw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775839045; c=relaxed/simple; bh=G4nduR6yZKbsG1M1eyH/zyiuHXi/hS8kFIyP3YYNL20=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=G46SVIWAPKFhwVkMSmzeJKGu92IoiF+Dp6qd1Ea/nxE/UnqvizOOTPTF3qzqfKa4OYMcO9DYcMotyJbss5klf4bmxVUGC+HxDbYfEg5Q0LxD3yo8Rkdn+ljAvnuc200BfTA02N2IXoDKROo+nJbHMVPDnUVdZpHQCfikBPUy4iM= 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: 4IidKAb9QXeis+JxSoKmHQ== X-CSE-MsgGUID: ufJP3oOQSfGL0bl+//7Dhw== Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 11 Apr 2026 01:37:23 +0900 Received: from demon-pc.localdomain (unknown [10.226.93.85]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id BA84F4006DED; Sat, 11 Apr 2026 01:37:17 +0900 (JST) From: Cosmin Tanislav To: Biju Das , Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , Michael Turquette , Stephen Boyd , Lee Jones , Philipp Zabel Cc: linux-iio@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Cosmin Tanislav Subject: [PATCH v2 09/10] arm64: dts: renesas: r9a09g077: add MTU3 support Date: Fri, 10 Apr 2026 19:35:29 +0300 Message-ID: <20260410163530.383818-10-cosmin-gabriel.tanislav.xa@renesas.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260410163530.383818-1-cosmin-gabriel.tanislav.xa@renesas.com> References: <20260410163530.383818-1-cosmin-gabriel.tanislav.xa@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/T2H (R9A09G077) SoC has an MTU3 block. Add support for it. Signed-off-by: Cosmin Tanislav Reviewed-by: Geert Uytterhoeven --- V2: * no changes arch/arm64/boot/dts/renesas/r9a09g077.dtsi | 68 ++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r9a09g077.dtsi b/arch/arm64/boot/d= ts/renesas/r9a09g077.dtsi index 3761551c96472..fe5d206d4defb 100644 --- a/arch/arm64/boot/dts/renesas/r9a09g077.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a09g077.dtsi @@ -1116,6 +1116,74 @@ gic: interrupt-controller@83000000 { interrupts =3D ; }; =20 + mtu3: timer@90001200 { + compatible =3D "renesas,r9a09g077-mtu3", + "renesas,rz-mtu3"; + reg =3D <0 0x90001200 0 0xb00>; + interrupts =3D , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + interrupt-names =3D "tgia0", "tgib0", "tgic0", "tgid0", + "tciv0", "tgie0", "tgif0", + "tgia1", "tgib1", "tciv1", "tciu1", + "tgia2", "tgib2", "tciv2", "tciu2", + "tgia3", "tgib3", "tgic3", "tgid3", + "tciv3", + "tgia4", "tgib4", "tgic4", "tgid4", + "tciv4", + "tgiu5", "tgiv5", "tgiw5", + "tgia6", "tgib6", "tgic6", "tgid6", + "tciv6", + "tgia7", "tgib7", "tgic7", "tgid7", + "tciv7", + "tgia8", "tgib8", "tgic8", "tgid8", + "tciv8"; + clocks =3D <&cpg CPG_MOD 200>; + power-domains =3D <&cpg>; + #pwm-cells =3D <3>; + status =3D "disabled"; + }; + adc0: adc@90014000 { compatible =3D "renesas,r9a09g077-adc"; reg =3D <0 0x90014000 0 0x400>; --=20 2.53.0 From nobody Mon Jun 15 13:57:38 2026 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F3D623DBD4E; Fri, 10 Apr 2026 16:37: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=1775839051; cv=none; b=fJ5Qxligca4VMifsulbG6TyeMHAiedrhLC6JDnlzF85ibUbE4Ny2Bb3Vjv9CzTn00Z9xrONDaRYMpUkvJ2y9IR2wt2mJ93e7pFRhWVvIrVwBoYUa5zEBJpzvgW9MRfXyF9z2FZGJDP3EHpFLoil/RVRsOVog2Smo0muxdbDSMgU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775839051; c=relaxed/simple; bh=jtYBzjlxgYDZzV1vg7fYzI7AuWlb3elTzNXnXhfyjtY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IC9g9UrX9GZoeSPpGtxuMrpYSf7a9eeoHr5Iv+9gGrpW4AsDnyyMP/m+rtEwzrPPtl6XL4z+xSuasHgwevYBWxafqigYR6Qe4GNqCW8+USgqW+DlEcCIY0wY9Bp5II/vtAVMjvcEbCtip4NoGHTKWe5KJKLoMQgjX5xO2rhKtoA= 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: gEGNgo83RjO2Pgc1cVm6AA== X-CSE-MsgGUID: q0dUoP6ASXC/mv+1VO27Fg== Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 11 Apr 2026 01:37:29 +0900 Received: from demon-pc.localdomain (unknown [10.226.93.85]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 6211E4006DC3; Sat, 11 Apr 2026 01:37:24 +0900 (JST) From: Cosmin Tanislav To: Biju Das , Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , Michael Turquette , Stephen Boyd , Lee Jones , Philipp Zabel Cc: linux-iio@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Cosmin Tanislav Subject: [PATCH v2 10/10] arm64: dts: renesas: r9a09g087: add MTU3 support Date: Fri, 10 Apr 2026 19:35:30 +0300 Message-ID: <20260410163530.383818-11-cosmin-gabriel.tanislav.xa@renesas.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260410163530.383818-1-cosmin-gabriel.tanislav.xa@renesas.com> References: <20260410163530.383818-1-cosmin-gabriel.tanislav.xa@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/N2H (R9A09G087) SoC has an MTU3 block. Add support for it. Signed-off-by: Cosmin Tanislav Reviewed-by: Geert Uytterhoeven --- V2: * no changes arch/arm64/boot/dts/renesas/r9a09g087.dtsi | 68 ++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r9a09g087.dtsi b/arch/arm64/boot/d= ts/renesas/r9a09g087.dtsi index f697e9698ed39..c64b532f3d234 100644 --- a/arch/arm64/boot/dts/renesas/r9a09g087.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a09g087.dtsi @@ -1119,6 +1119,74 @@ gic: interrupt-controller@83000000 { interrupts =3D ; }; =20 + mtu3: timer@90001200 { + compatible =3D "renesas,r9a09g087-mtu3", + "renesas,rz-mtu3"; + reg =3D <0 0x90001200 0 0xb00>; + interrupts =3D , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + interrupt-names =3D "tgia0", "tgib0", "tgic0", "tgid0", + "tciv0", "tgie0", "tgif0", + "tgia1", "tgib1", "tciv1", "tciu1", + "tgia2", "tgib2", "tciv2", "tciu2", + "tgia3", "tgib3", "tgic3", "tgid3", + "tciv3", + "tgia4", "tgib4", "tgic4", "tgid4", + "tciv4", + "tgiu5", "tgiv5", "tgiw5", + "tgia6", "tgib6", "tgic6", "tgid6", + "tciv6", + "tgia7", "tgib7", "tgic7", "tgid7", + "tciv7", + "tgia8", "tgib8", "tgic8", "tgid8", + "tciv8"; + clocks =3D <&cpg CPG_MOD 200>; + power-domains =3D <&cpg>; + #pwm-cells =3D <3>; + status =3D "disabled"; + }; + adc0: adc@90014000 { compatible =3D "renesas,r9a09g087-adc", "renesas,r9a09g077-adc"; reg =3D <0 0x90014000 0 0x400>; --=20 2.53.0