From nobody Mon Dec 1 22:05:37 2025 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 37CC72EFD9B; Mon, 1 Dec 2025 11:50: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=1764589825; cv=none; b=UBNOk2eGnYtGp9p5tm+rfeMfRJI3g/NH5gq+K6CfGj/8EUGp9dmzgyYnFNcTwOuIv+o96XLshMkJEgx1MA5OlbmJnhiDgEVuEdSV308TyBimT+2c7flk9udtMYvyA5zbi5AQF60lM/qMBnaDAVSgPO0cjsF2dbE0EAl1sTNv2Mw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764589825; c=relaxed/simple; bh=OX0N8uGNmq3Fo4ls/tZWOJEeeTc4QqXYJWD3ZpPwr6A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=apApZ62fMxEN3nvB9RNSN9jbhUE86nsQCINFnFd0l0OlVnT5etSUNvYOYJShOFiZ40Br33bxYbc3N8scsLm1GzVa66KdmS1AkUmCitN0yYQvJHeMlYBlct5novPTeBssD4AM3sxti0kQ1GlWEmtiZeEO8gEDmKxiFiNmq/qXD/0= 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: 77ZHTJs1Scyx6hgSnAMbeQ== X-CSE-MsgGUID: BG38dAjHTuKRsKMJRNBQpg== Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 01 Dec 2025 20:50:22 +0900 Received: from demon-pc.localdomain (unknown [10.226.93.83]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 3D07441F9E1E; Mon, 1 Dec 2025 20:50:17 +0900 (JST) From: Cosmin Tanislav To: Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , Cosmin Tanislav , Fabrizio Castro , Lad Prabhakar , Johan Hovold , Biju Das Cc: dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: [PATCH 4/6] dmaengine: sh: rz_dmac: add RZ/{T2H,N2H} support Date: Mon, 1 Dec 2025 13:49:08 +0200 Message-ID: <20251201114910.515178-5-cosmin-gabriel.tanislav.xa@renesas.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251201114910.515178-1-cosmin-gabriel.tanislav.xa@renesas.com> References: <20251201114910.515178-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 use a completely different ICU unit compared to RZ/V2H, which requires a separate implementation. Add support for them. RZ/N2H will use RZ/T2H as a fallback. Signed-off-by: Cosmin Tanislav --- V2: * pick up Fab's Reviewed-by drivers/dma/sh/rz-dmac.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/dma/sh/rz-dmac.c b/drivers/dma/sh/rz-dmac.c index f94be3f8e232..c0c23c39a626 100644 --- a/drivers/dma/sh/rz-dmac.c +++ b/drivers/dma/sh/rz-dmac.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -1073,12 +1074,18 @@ static const struct rz_dmac_info rz_dmac_v2h_info = =3D { .dma_req_no_default =3D RZV2H_ICU_DMAC_REQ_NO_DEFAULT, }; =20 +static const struct rz_dmac_info rz_dmac_t2h_info =3D { + .register_dma_req =3D rzt2h_icu_register_dma_req, + .dma_req_no_default =3D RZT2H_ICU_DMAC_REQ_NO_DEFAULT, +}; + static const struct rz_dmac_info rz_dmac_common_info =3D { .dma_req_no_default =3D 0, }; =20 static const struct of_device_id of_rz_dmac_match[] =3D { { .compatible =3D "renesas,r9a09g057-dmac", .data =3D &rz_dmac_v2h_info }, + { .compatible =3D "renesas,r9a09g077-dmac", .data =3D &rz_dmac_t2h_info }, { .compatible =3D "renesas,rz-dmac", .data =3D &rz_dmac_common_info }, { /* Sentinel */ } }; --=20 2.52.0