From nobody Thu Apr 2 15:38:02 2026 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D8832C08C4; Fri, 27 Mar 2026 19:25:25 +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=1774639528; cv=none; b=QvSLIVpp6LW6LKOAIEQjjY9ydHHBgQLXHNT7KY8OWiyhzrvtQu5N6LxyIqSNT0DsQTrCKJ3uIwzbvurWAiSpy8CR+cZNgIjVjn8cJcsPuGG1mKQVqmtO2XDZeMq8nvZwfYekSCoPy0KzSmUyeFqJ5fNU4dWUOjSNvmT9p91j+aI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774639528; c=relaxed/simple; bh=k20QgwAZWpnA6b/c6C/RuK+r57jBn1z7ZB26K2C79vM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sRS7L33NFAZbVzPST+U+N1f2hFxLsFxr/zw/ZZBUPOJ3X1R+jdf/sAmA3axq12q7I2Vd/Drj3aO8VUIEMkCZWrDVzMGMsXCDTRmwHQzr0pUNd2NfF//pl11gdKhDhv5aA2+QVbNYDdyTlzZC9F1xGSHIB1VmBDh27jZ1zEqJ2Os= 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: OF5gT5nQRQmSZn25Mwi/bA== X-CSE-MsgGUID: oglNec5SRGqnks0lUZLWiw== Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 28 Mar 2026 04:25:24 +0900 Received: from demon-pc.localdomain (unknown [10.226.93.36]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id B63094014C3F; Sat, 28 Mar 2026 04:25:19 +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 01/11] clk: renesas: r9a09g077: add MTU3 module clock Date: Fri, 27 Mar 2026 21:24:15 +0200 Message-ID: <20260327192425.438263-2-cosmin-gabriel.tanislav.xa@renesas.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260327192425.438263-1-cosmin-gabriel.tanislav.xa@renesas.com> References: <20260327192425.438263-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 --- 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 93b15e06a19b..f777601a23b9 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 Thu Apr 2 15:38:02 2026 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 29CD72C08C4; Fri, 27 Mar 2026 19:25:31 +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=1774639534; cv=none; b=ZuGKC6vtkKKqbbvDHqyaV3iT28yVDtV9ioru9f75TE9Ah6wHjdVyClkWXZcgqi4LyEMlJYDwnGKnvac0frRNSUsdSy1ttPKVep+taaFv6k17kwyjWL3Y8j0X8zP8qxVShf32GDKRsObyjjfKRIGCCad95hJiEL7+ZKSXi42zOe8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774639534; c=relaxed/simple; bh=C8UOKn2Aaay6QDnHkkKDWhYI4S0mNqduFiz3PCnt7Ws=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XtETYBHja0ZcE9K1Du18LxmGQvzLuhAwQyaycYlU9scEuaL0XNmhVj03JZp0y2dzpRTtXUStvjr0kOAEYhgn45d1N1/tn4hWok0R2f2gb1SebhM/PFJmMDEhRdeU0kjQP1l/sKTjRoDm5YDYFWrdr9u5/XbYwRaBlbWCwqJG44M= 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: o0hheJO/TgabA47BVGm9Rw== X-CSE-MsgGUID: DMMOtvOCS8ivCTg9g1S2Rg== Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 28 Mar 2026 04:25:31 +0900 Received: from demon-pc.localdomain (unknown [10.226.93.36]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 295144015D6E; Sat, 28 Mar 2026 04:25:25 +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 02/11] mfd: rz-mtu3: use device-managed reset deassert Date: Fri, 27 Mar 2026 21:24:16 +0200 Message-ID: <20260327192425.438263-3-cosmin-gabriel.tanislav.xa@renesas.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260327192425.438263-1-cosmin-gabriel.tanislav.xa@renesas.com> References: <20260327192425.438263-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 --- 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 9cdfef610398..6b9c6831dffa 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 Thu Apr 2 15:38:02 2026 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EDB8B37AA65; Fri, 27 Mar 2026 19:25:37 +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=1774639539; cv=none; b=J7oBbteKLKeEZh4NH1e8qedIWVHPuk+fiooYPH/LEppL98bBj0sAP2QGLFJhuFFth0BNXNwtWKX0RtTQ9YfuPHKU88IE2Qyd7E6Yk2jpGT7eaVu13f5jLvrAkbYBfuXcakFlqgjh5OYywRn8eAgXymU+4twsP2Mmuk6wDX94e7c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774639539; c=relaxed/simple; bh=AouEMh+9qJXDl58MVHSWloHhKYSV4+RqC/aq6zCjMd4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bmKZLGqJZsMMtIGNhFas3Oh19awD6eeRKwrQn1twFD8jXbGqtCzqWMeMJT0F4pxcUcSmsEejhXZBCLXlQqdq8tPotI+cp2HrxMsidGLgyGog8HkSsjtuYp+dxkiUq7i7kl+o04+i//e9bcFEX5wYWl9Te4c+Hi7XxWbPHQx7np4= 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: vPqx8N+5QQOJfx+gkyvYwg== X-CSE-MsgGUID: s7ktMOKQT+SGdbVWro2JdQ== Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 28 Mar 2026 04:25:37 +0900 Received: from demon-pc.localdomain (unknown [10.226.93.36]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 891EE4014C3F; Sat, 28 Mar 2026 04:25:32 +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 03/11] mfd: rz-mtu3: use device-managed mfd_add_devices() Date: Fri, 27 Mar 2026 21:24:17 +0200 Message-ID: <20260327192425.438263-4-cosmin-gabriel.tanislav.xa@renesas.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260327192425.438263-1-cosmin-gabriel.tanislav.xa@renesas.com> References: <20260327192425.438263-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 --- 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 6b9c6831dffa..3be6f6c900b8 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 Thu Apr 2 15:38:02 2026 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 58BB235CB6C; Fri, 27 Mar 2026 19:25: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=1774639546; cv=none; b=r9ib/3p1vvzdz5f1Q7VSaOezIlzZAqzfhsh9nly6OhrN7r3fLz1dbHj+j9GS/8gGDCA9zcj6ZceRmu0ovjdzHQN7UaqeeaHJsbwSAWRF5rCoIN/tbkdz5DglAj4YhBL/QN+b5cjO1Fx1g0n31g4doM5BB9jNL0P6gLIA/uQcDWI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774639546; c=relaxed/simple; bh=3ICLqsC4q9QDP/KBX/AS8XVL3ois5jovdQ/OyC7baBY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SRKJZW7fW0pzia/WGXWhGPyb/hFt4dAGuHETeNghUenVmbHHcqWdi/NlYrZcdx2HZL7qD4VhSyCQyO1rysNVIj9pvzXyHRx5YO5oatF8Y64VB9r9bIXBJP137cMvM7HomDlaADZvSugLqm+hThhyc//IDmkaF9Jw/ly2VVE38IU= 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: 056kSbUGSpyXuKTxXDUr3Q== X-CSE-MsgGUID: 8gaBk8mPS664cn5T5cJa8Q== Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 28 Mar 2026 04:25:44 +0900 Received: from demon-pc.localdomain (unknown [10.226.93.36]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id E07DC4015D6E; Sat, 28 Mar 2026 04:25:38 +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 04/11] mfd: rz-mtu3: store &pdev->dev in local variable Date: Fri, 27 Mar 2026 21:24:18 +0200 Message-ID: <20260327192425.438263-5-cosmin-gabriel.tanislav.xa@renesas.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260327192425.438263-1-cosmin-gabriel.tanislav.xa@renesas.com> References: <20260327192425.438263-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 --- 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 3be6f6c900b8..37d12030e069 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 Thu Apr 2 15:38:02 2026 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 982192236FA; Fri, 27 Mar 2026 19:25:50 +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=1774639552; cv=none; b=B1yrUbdmSxKsrcmMSCPoKdeRRIz1JsDkFboxDTKM2/3Ikm6lAWMWobdAR7ER6YpxwDvyySBz4KrLda04JJnS47E7Z4Pw0osG0AEGiS5yxIVXTubD8uaaR3QFadxfcI4Q8lhu3MUV8mvDeW/miDpsqJuHRKMCPIS1oCLmkABa7Xs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774639552; c=relaxed/simple; bh=wYL0FPrwXlhtDxqPUyrjEv0auZf6D3fcWnhuRP5/Rr8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JcS2xdOWhb8BgwZjTEERMyGa5VpVEtIo+u5U02daa0qeVvILOQ8u3Bsdk/MFJQFfUGipKEyiQJicgtJ37NeTFpX9v6kXAr86Vlg7uF1sUv8q6fS+Q9LfsbKBtOaQahjnB2H2Qp5WmgCGfIl8wleyrpXUKUB4Gxi720uE8hJby+o= 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: Y1tbcIMBQvivrIbnFfdlag== X-CSE-MsgGUID: VDuc0NidQ8GtEcXTemY84Q== Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 28 Mar 2026 04:25:50 +0900 Received: from demon-pc.localdomain (unknown [10.226.93.36]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 314234015D6E; Sat, 28 Mar 2026 04:25:44 +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 05/11] mfd: rz-mtu3: make reset optional Date: Fri, 27 Mar 2026 21:24:19 +0200 Message-ID: <20260327192425.438263-6-cosmin-gabriel.tanislav.xa@renesas.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260327192425.438263-1-cosmin-gabriel.tanislav.xa@renesas.com> References: <20260327192425.438263-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 --- 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 37d12030e069..689dbb181d30 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 Thu Apr 2 15:38:02 2026 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 306EC35CB6C; Fri, 27 Mar 2026 19:25:57 +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=1774639559; cv=none; b=Dyagk44axwGPOB0HjbDEeDILXU2YkmJuPTYfHlSu4rp0lUzMjaiqJQ2Wy1WrMSWBwt3R9Z477bzoF9+LzaxxuB2G4VlT8v752sv+Vv35nWtk/knIleQzaT1J7DfWlT8RvW/yGTN7rFU2LjBEN4W7pn78C8EqYA4rzlXE7o2piRs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774639559; c=relaxed/simple; bh=xboUAr2giWyp9+lNRDdQ5q0LnlbLQPnBA4Hp6T5HcM4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=M2SoQU5qH0DBIE+NA68mU4ATkvORbbnWxNNgbaMJSxX8AhnUCfixblebZW+9QsTQqRxqlAa0fMaQesLvlC+u/zrDSpwdAzZeyOamPc/7rNi/R5BP+V+T1pyR9Ba2C1Ry9Z0YAVUXHnugv5OGAhNxRMiS4BuymKoiYklX/Sp0W9Y= 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: DcLyOvSOQJak2FLy4MX7Fw== X-CSE-MsgGUID: B2bUeeZTRimxsS3SFt/72Q== Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 28 Mar 2026 04:25:56 +0900 Received: from demon-pc.localdomain (unknown [10.226.93.36]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id B42B54015D70; Sat, 28 Mar 2026 04:25:51 +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 06/11] dt-bindings: timer: renesas,rz-mtu3: remove TCIU8 interrupt Date: Fri, 27 Mar 2026 21:24:20 +0200 Message-ID: <20260327192425.438263-7-cosmin-gabriel.tanislav.xa@renesas.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260327192425.438263-1-cosmin-gabriel.tanislav.xa@renesas.com> References: <20260327192425.438263-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" Based on the following pages in the User Manuals, the MTU3 block does not have a TCIU8 interrupt, only a TCIV8 interrupt, as the row where TCIU8 should have been is marked as reserved, and the GIC SPI numbers stop at 212. * 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. Signed-off-by: Cosmin Tanislav --- .../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 3ad10c5b66ba..00cd5cbcf6e9 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 Thu Apr 2 15:38:02 2026 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 91B6537C11E; Fri, 27 Mar 2026 19:26:03 +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=1774639565; cv=none; b=ih0RESFrrp506xrt4lKmE1qr8/75FpAKAOSQqtMsWZPJI0R9cNit/qaucKVPArTibdBn3Xehk5Pqwv2qRKrMHjo+MI92xLZAFMrc/HZRWx8BRmSLroJdVhJaK7i54WTInWJdbQhefQwZgS5uNI1Wit3O6W3DsC0BpgLVC/y+8Cs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774639565; c=relaxed/simple; bh=yEvuaB8ffjRTYjgdYXLkjKKb4YiN+zeBdEHcqNocKCk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=O5EzqShEHUhFcQMarY7uQCV4+KiuApiI4fl7Oqtl4WFPp5/s8clezdA+sVFQhScc30q4rWxmQDTQmWnRbRNQwwBaTviJIELOTbOtqOHGhgAfyTJuyLQlyyT/47HIQexlatfHYbj8HnHm3Gh2qAE9AnhHfl6Tn/I8lsGDJ3TQdKg= 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: cuGr9sI8SauQWH7G9OEeUg== X-CSE-MsgGUID: ShQGxZWVSjewgcpCA7pifA== Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 28 Mar 2026 04:26:03 +0900 Received: from demon-pc.localdomain (unknown [10.226.93.36]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 138EC4015D6E; Sat, 28 Mar 2026 04:25:57 +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 07/11] dt-bindings: timer: renesas,rz-mtu3: move required resets to conditional Date: Fri, 27 Mar 2026 21:24:21 +0200 Message-ID: <20260327192425.438263-8-cosmin-gabriel.tanislav.xa@renesas.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260327192425.438263-1-cosmin-gabriel.tanislav.xa@renesas.com> References: <20260327192425.438263-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 adding support for them by moving the required reset into a conditional matching all compatibles except the fallback one. Signed-off-by: Cosmin Tanislav --- .../devicetree/bindings/timer/renesas,rz-mtu3.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml b= /Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml index 00cd5cbcf6e9..4623f6cddaf0 100644 --- a/Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml +++ b/Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml @@ -231,7 +231,19 @@ 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 =20 additionalProperties: false =20 --=20 2.53.0 From nobody Thu Apr 2 15:38:02 2026 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 81F5E2236FA; Fri, 27 Mar 2026 19:26:10 +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=1774639572; cv=none; b=H3mqDxN7drMHVxWfwz/+shudQ44GqpRyDxzBiRw/jWS6ekdBVZAbW75vA/6n2Q9cV7HmnHabeePem6XE+bx6Sw9XKHAcbjTWVs0cSMPmuNnvIix4tShlTHolaUoBzrGjq4sU53/plzR6pBRtk6vxx3jre9L0Hns/3DJjjBkZM9o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774639572; c=relaxed/simple; bh=MKteAYJ11I3HusKCzPFOUq6CK/66vQ65zFZG8qpBxBQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BDnIfyI7pJSbyCGY5EiRPdY973Y6fGygJEH8mEfk9PW1j0DM1fb7kuu0aC9wklA2f1o1aQcdT8XFKiiYmqE+v8kU8aywJLdveabhDSk/MQZj9qPIamygvKu7WBgCetGoxtjL7Fqy5P2HiheCULhppdgkxpnUMcdoF43iL+LT/gs= 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: MXOvYkE2TK6Rei3y6frJwA== X-CSE-MsgGUID: 8oqvUVWdSCGHhwOobhKMZw== Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 28 Mar 2026 04:26:09 +0900 Received: from demon-pc.localdomain (unknown [10.226.93.36]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 841904015D6E; Sat, 28 Mar 2026 04:26:04 +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 08/11] dt-bindings: timer: renesas,rz-mtu3: document RZ/{T2H,N2H} Date: Fri, 27 Mar 2026 21:24:22 +0200 Message-ID: <20260327192425.438263-9-cosmin-gabriel.tanislav.xa@renesas.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260327192425.438263-1-cosmin-gabriel.tanislav.xa@renesas.com> References: <20260327192425.438263-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 a new conditional only matching RZ/T2H and RZ/N2H which disables the resets property. Document RZ/T2H and RZ/N2H, and use the generic compatible as a fallback, as functionality is the same. Signed-off-by: Cosmin Tanislav --- .../devicetree/bindings/timer/renesas,rz-mtu3.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml b= /Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml index 4623f6cddaf0..410951ca53f8 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: @@ -245,6 +247,17 @@ allOf: required: - resets =20 + - if: + properties: + compatible: + contains: + enum: + - renesas,r9a09g077-mtu3 + - renesas,r9a09g087-mtu3 + then: + properties: + resets: false + additionalProperties: false =20 examples: --=20 2.53.0 From nobody Thu Apr 2 15:38:02 2026 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 760F22C08C4; Fri, 27 Mar 2026 19:26:16 +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=1774639578; cv=none; b=pML/1ZXyTnEojgxSi9wCjfPizA3oGlNJ3nqSa6wjF9gCTDyrFFoPENKTYyEJPe68oKXi4yHIv7qvpD8b0xiTMeUqUxyJSJD1+mm+f/hFSkhfjmbv7ANGCARJ5vXG3zyLuThLr+IFNrsQO0lyhzMB0UIt4LTncsclwEtOjvxowTw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774639578; c=relaxed/simple; bh=Vv/LE/oBOFNYdSCj5Ds4h8ajLx4fGLpZm8/Rg3leyHM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=F2svDShTeVQfGGXYFgzymEK2WdJaBkFeDMJVmLZF9Z5CAG0Ya7evNeNshNDpWAT3hE3SI5Js/O4RcrBNhtt2A/ytOZoXjx9Zc7pyJoY9MIo++3fEZgxF7mlpun5JhLJ3ODuPQySbBsAGS53RAZvAjiuGWDo7iVBt8LN5U4S8zFk= 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: FZRetlg3ShSh+37nbiOPKw== X-CSE-MsgGUID: 3jnGnC1ZRjSplAnQ82JrNQ== Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 28 Mar 2026 04:26:16 +0900 Received: from demon-pc.localdomain (unknown [10.226.93.36]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 03F3D4014C3F; Sat, 28 Mar 2026 04:26:10 +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 09/11] arm64: dts: renesas: r9a07g0{43,44,54}: remove TCIU8 interrupt from MTU3 Date: Fri, 27 Mar 2026 21:24:23 +0200 Message-ID: <20260327192425.438263-10-cosmin-gabriel.tanislav.xa@renesas.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260327192425.438263-1-cosmin-gabriel.tanislav.xa@renesas.com> References: <20260327192425.438263-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" Based on the following pages in the User Manuals, the MTU3 block does not have a TCIU8 interrupt, only a TCIV8 interrupt, as the row where TCIU8 should have been is marked as reserved, and the GIC SPI numbers stop at 212. * 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 --- 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 593c66b27ad1..7bc37e1015a4 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 29273da81995..799a974c4dba 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 0dee48c4f1e4..0dc4c3c8c06b 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 Thu Apr 2 15:38:02 2026 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DBF2537CD41; Fri, 27 Mar 2026 19:26: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=1774639584; cv=none; b=RBoVy7Gn85zo+vrk+sF1d8MaTc9KLv+D6Ca+OnS+GEgAD3IW9jzarohVySb0arVJZYtylB5o6eaMGO6CGyTZXgCMWjp0TW7EQCR8LHIFdZahPZUUfxWC425TlGmzBr9RDN3Vt/x5+GRokH1JqgXdZb+LdKbNfl6ph+ANvCUbrEo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774639584; c=relaxed/simple; bh=iC0usF5gOebcTMo2OP0Wt9AuQh4+e6rlP3cTrBDxJoc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TweHXvZibCmQarkU8W0cXteTk40hPZqgCxYs0T1S+SFa/EYfIPYD9VBlgJbscVVasAcnmB34MPhr9XWVsCnG9KFybt5u+z+9KXirLCbFueE0TWIsWAA/4crpfw9RuLDRw8K0JeU5chZgQzNLKbOqQhThi7twxH3IVX/TsYCeP9g= 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: ILfxP6rgRxO+dEkL2dNCMg== X-CSE-MsgGUID: tLAaFHKqTqSrFQ07E7JunQ== Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 28 Mar 2026 04:26:22 +0900 Received: from demon-pc.localdomain (unknown [10.226.93.36]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 6EFC64014C3F; Sat, 28 Mar 2026 04:26: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 10/11] arm64: dts: renesas: r9a09g077: add MTU3 support Date: Fri, 27 Mar 2026 21:24:24 +0200 Message-ID: <20260327192425.438263-11-cosmin-gabriel.tanislav.xa@renesas.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260327192425.438263-1-cosmin-gabriel.tanislav.xa@renesas.com> References: <20260327192425.438263-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 --- 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 3761551c9647..fe5d206d4def 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 Thu Apr 2 15:38:02 2026 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C5A5E3750B9; Fri, 27 Mar 2026 19:26:29 +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=1774639591; cv=none; b=Q8o5ENW3qIVZ2ADq8FbY06noZiY72MJgzVv1wHA5POafYilCMeyiAeHwS+Ja96X0+RRta/NcZ7I+yFIOlnxBjN2NQUJNIWXXXzgQ9lFuw/1yUWEbrTB0QB2ZtBcmtzOeN1bBQlBb8tKW5TDOOWM4QVh7X5qOSO9fTHS+urKzlYU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774639591; c=relaxed/simple; bh=Ot80DxInnW1eLVVpqx2PX5Nm7DsJGE/xGpXm42N7vTE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bnaN3VA+KGZVL2ToW646F2u2+fSuKTqoRglH5iQu3DOaLCn4KDENi0iDhl4B/kxk9pIk52oJ5LJjIIs7/bGVU3xIdlfS74VPcuGFUplHCO5UCpMj/31nxQMOps4dgVkAi8E9HEOe2bHzmzJ80lEGVQ8voE9bp6u2WdlnF1Q0JXw= 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: ywSHoiNqQrWYgjG7Ei0IjQ== X-CSE-MsgGUID: h5KLAy1AQl6rkWp7LV4lhQ== Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 28 Mar 2026 04:26:29 +0900 Received: from demon-pc.localdomain (unknown [10.226.93.36]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id D17C44014C3F; Sat, 28 Mar 2026 04:26:23 +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 11/11] arm64: dts: renesas: r9a09g087: add MTU3 support Date: Fri, 27 Mar 2026 21:24:25 +0200 Message-ID: <20260327192425.438263-12-cosmin-gabriel.tanislav.xa@renesas.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260327192425.438263-1-cosmin-gabriel.tanislav.xa@renesas.com> References: <20260327192425.438263-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 --- 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 f697e9698ed3..c64b532f3d23 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