From nobody Mon Dec 1 22:05:35 2025 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 88F9D25485A; Mon, 1 Dec 2025 12:50:31 +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=1764593433; cv=none; b=NdkYW7dzL9ydRNiXdTm6F86vGb5O1P8DzCddfg9FRoCiGd9QV/IK/Pvf15DLcgJSI3QpF5iFDq3D7wef5ngTMaDvwY3RLlpu7QWX9MFaKPdyUhDpq85FfAp1HxIWsy1pLMkxkYclsNS8RZrauD9BpVPgjCJJXA6HJeMtCnKS/wk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764593433; c=relaxed/simple; bh=KRdjna8ohdnklC4PmiXDdUZTz070u73fx9KBLPmMEU8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DG2RaiWdOwE/MhuHpBLPlgfyArl7N2qhfTVVycwYW+h6GSKxDwgfittWuJStkYHHrOZFi1OH3hYxLoorBIfFDfwb0Fe0ZZ1oJtJ1JXvAUXZ9gYA8iH0Ullb8BgSlPtjLjC8tHzZ4r97mjaXs93B3zhE82Sf8suD/U3dGBFgtYIU= 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: 9ESiXhB6RVCraCNqbr7SQg== X-CSE-MsgGUID: xnQ1l1dURymitEGGeW0yQA== Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 01 Dec 2025 21:50:31 +0900 Received: from demon-pc.localdomain (unknown [10.226.93.83]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 98DB742100DB; Mon, 1 Dec 2025 21:50:26 +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 v2 4/6] dmaengine: sh: rz_dmac: add RZ/{T2H,N2H} support Date: Mon, 1 Dec 2025 14:49:09 +0200 Message-ID: <20251201124911.572395-5-cosmin-gabriel.tanislav.xa@renesas.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251201124911.572395-1-cosmin-gabriel.tanislav.xa@renesas.com> References: <20251201124911.572395-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: * remove notes 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