From patchwork Mon Dec 16 07:58:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Larisa Ileana Grigore X-Patchwork-Id: 13909317 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2070.outbound.protection.outlook.com [40.107.20.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A6F46171BB; Mon, 16 Dec 2024 07:58:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.70 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734335912; cv=fail; b=MrzaPJBACjMGnjjeTeV8KclfGuhPWcAy1KF5MsJd2kwT+Ko65kbig3tiKIgrVgGWbz7DcON6gwdjgy0CFPxgnGg4bI2uVnC21EGfzIUmXqwa0EgC0U7qA1ZmmBQAIygNeEWnmEweWzZtf2VI5b1XNeUMxr/w0Tq8BcGzX0esoZQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734335912; c=relaxed/simple; bh=C4jFXIJzpLTl7qcUFkvQ8jullgOcGW3GqyIGLoJnEMU=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=QnEOTQm2pX3jxBdvw+4emvS3sRTzQyMILzcobRRjmAu22tRvoCgoMEj0QGRosyzspg9D+Jmj8kzNrdrwg66D2hF4JP5ry7Atl1m56VvayXXA58GKQITQO1OkhK2Ti/Xy+AEk500T0KZwbIHbUowd55SHmlktIlwzp5di+ENdSng= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=xmrsX+Zz; arc=fail smtp.client-ip=40.107.20.70 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="xmrsX+Zz" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ncn0PPkDW5Doc5yvh/KqsEwrCJHRXJNdbigkzT9ErUf2HN3NVjkwLnMgZNj/Waa8TvR2qq3nJ6hYHlQF84nTX5dETWYCjzJBYBstL0xzJm39grT/tA5JgEYaWHcIVvJUJ+9w8LXEufeOAkmY3Ww6x0WYFLZQpPehWyetPl9oS+nkpG+eLgGrLOBa1gnxMJceCjYHtKhTUf3UUn05qHHPQZLonTNfdfMY02PKQa9713loO0BrDMi2EY4acRNjZIClIEyWh9lBMq+wqqa/Ipk3Fbw6GSFjMX3lYg/DQSTMKcjj2KGhJqNwtejVB6MWio3fS8kuEw8fdkg8UwTAmo9BAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=jAJwzb+ekeTYhlaP04Whmb52GGRt/OdqPU824IWjyo4=; b=wrRhqLrKKWScZWG6breLGIl4dJv6MTsI59Dnm1VEJl0z8ygjRtdcoI2jRX0wAcMF8k9Hf21ZeoZf842/MBOYCNR6E29nbyZ9zlp9RYK5VpjKrbF1veE1Imw9dpObkFReQsT2zqu+n9wj+VLwygDmIaOlbF0M6k9H9d2uM0/vc5m58cp1Aq2Ypgnwk4l+Cpgmm22It34noyhUNCcbzj/292v/9LexsVavvexMdziDlkfHS+AToVWmf/SIWPXus46ZM5w9U5nwEQH3AIyDeM3BIVjp55MyzSZQzCqe8idwsR21bOLEZWRrkwtDoVccbGkZRgfO7snF/5Q7zfQnfPmWQQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jAJwzb+ekeTYhlaP04Whmb52GGRt/OdqPU824IWjyo4=; b=xmrsX+ZzR7xMI4AA/cIAvoqFUTqOpIWbvuxDB3ynNSTyAjG0tyEv4TP1b826IYinMVTlHTgcKUwfYvBeTL55tcaKj7S6AbvkBA0DxyBIod0B0fZuRtmWFeGg+KFfRje2/AhDqBmJuj44oZ6ouMt6Xr5RZjTgogXD0p0mOnKzDVj+tnyoxYm8rc5IOfUaeNd4VIETqKTO1fj9qT1qyq5enKp2OTJVoR1PfD60p12aS7uV22ClLfC5BG9FXrqQZKpKathIPPxd+nyGGh0GQRYf15fks2aujAm8Fo2ElVjvpRpVHCAwXJ8gQ3oWLJ+J65/a7iQ3flTetszGWmLtRyn+KA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from AS4PR04MB9550.eurprd04.prod.outlook.com (2603:10a6:20b:4f9::17) by DU4PR04MB10361.eurprd04.prod.outlook.com (2603:10a6:10:55d::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.21; Mon, 16 Dec 2024 07:58:25 +0000 Received: from AS4PR04MB9550.eurprd04.prod.outlook.com ([fe80::e28d:10f8:289:baf7]) by AS4PR04MB9550.eurprd04.prod.outlook.com ([fe80::e28d:10f8:289:baf7%6]) with mapi id 15.20.8251.015; Mon, 16 Dec 2024 07:58:24 +0000 From: Larisa Grigore To: Frank.Li@nxp.com Cc: dmaengine@vger.kernel.org, imx@lists.linux.dev, linux-kernel@vger.kernel.org, s32@nxp.com, Christophe Lizzi , Alberto Ruiz , Enric Balletbo , Larisa Grigore Subject: [PATCH 0/8] Add eDMAv3 support for S32G2/S32G3 SoCs Date: Mon, 16 Dec 2024 09:58:10 +0200 Message-ID: <20241216075819.2066772-1-larisa.grigore@oss.nxp.com> X-Mailer: git-send-email 2.47.0 X-ClientProxiedBy: AM0PR04CA0098.eurprd04.prod.outlook.com (2603:10a6:208:be::39) To AS4PR04MB9550.eurprd04.prod.outlook.com (2603:10a6:20b:4f9::17) Precedence: bulk X-Mailing-List: dmaengine@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS4PR04MB9550:EE_|DU4PR04MB10361:EE_ X-MS-Office365-Filtering-Correlation-Id: f5e5d0a5-c6a0-4c40-d279-08dd1da76960 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?8RGy58IHD3zCWumpS0mpH5We/eDpRsZ?= =?utf-8?q?WpcODnPGvoPJRXLwwS6JJ1MbQupqYW1jwZnPFS66rSNjnXr+nkf0BRxtFPoIwvBIQ?= =?utf-8?q?BNmoo1lOl9FSFb8ciEDNcXvivPmFynxVqvQSQNrd8QLQiGX8tRistuhlsvPuRY2DT?= =?utf-8?q?UpHcoriNEXe7lNbjDH2nYkVuUMhYLICt4YH0cMZULMJJcJHlK19ijXPTMb5bL+lA9?= =?utf-8?q?c6k7qE14pkoJKNLqW4ByhqKSKkNW5VUFvKBen1XesO8YwEwdakykww5DDmee6WpRE?= =?utf-8?q?3W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trRL6z4qQbHKy6nb+ZsdK4jXq3BGmAPWbf++FuvoBrAqJ8sq/2U1FBvs?= =?utf-8?q?iHrZsDpywtQAy0TLp1ViU2XVGEr68PreDv766WFxE4wij8sc5wdqCGjsO0ki/r/JF?= =?utf-8?q?cQhZRUUCOZDf4/6c2buFLdIBZXBfxxN0qZWrIjCUXXEElzualmnfEVX7qQlE+1672?= =?utf-8?q?kN/u/XHuSzdG?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS4PR04MB9550.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?+YroJFDZvHAtWq4criARyyx3bEAm?= =?utf-8?q?/ZN55O5CO48pyjY6a20ApjDhgCLCZQXhkdrBLlx5w/LVXJqONs3vjy8nyuhEPNhZo?= =?utf-8?q?r2upsl4hZMtVDTcVvN/CvQITYvxXJu+jz8nj0exIVysgLk1R/RaYkT4q4++RwIBms?= =?utf-8?q?tT9mkGeL6vo9JSGXgmck6YVRNigiIPekN1sEVRp0m/5n1PNzdVOikf1B5sxC7fBtW?= =?utf-8?q?y7Ng0oLyj3LrIfy6X0d+C+Jr6FMiRJxDklszUpbH4BfkEZ46qgGCB8K/pSmDZ2OAD?= =?utf-8?q?85n4rHKAD3etYzWLADLWLXvhhkc9fDXUcx031ydRXLnUzqXPKo6X+nuhoB4ottbzU?= =?utf-8?q?nviC+qDCC6YAAveQFGHu7PXgydPjCKpB0KH9VgHhsRWq3V+ALT/2o2v7sv5RDgT55?= =?utf-8?q?HEGd9FoCjWOG4qglpnaKmfWEYgF4bHNeF5Z6rcHxJfwz1pqkhNy3yd6q4yqSss3GL?= =?utf-8?q?JY05MlfMcMuSojUIuMImlfeG+phBKnS9v2gHmIN7LagEY9GxDvAl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50d?= =?utf-8?q?BySJSlX3RFhbLLY1csH75X6xBTaYIrHrqfXREIdFfxdc5Du7YNwciR60Lf2JSeQPN?= =?utf-8?q?6rvfLPgQZ0HQ5F8mv5FSKpUBUwSpN4oeD5wEjvAS1CsQ/5WPWQQoT7v4UE7RwDoLm?= =?utf-8?q?Ww76WcA433lN?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f5e5d0a5-c6a0-4c40-d279-08dd1da76960 X-MS-Exchange-CrossTenant-AuthSource: AS4PR04MB9550.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Dec 2024 07:58:24.5306 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: KRBxGPjCstb5ZQUlZIaGkankUJMAhRGGg/2Ywlgt4LhcwtA9fj1cnN2IKGP6HB8M3hzjVr37PVKpuEnLJ0K9qw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR04MB10361 S32G2 and S32G3 SoCs share the eDMAv3 module with i.MX SoCs, with some hardware integration particularities. S32G2/S32G3 includes two system eDMA instances based on v3 version, each of them integrated with 2 DMAMUX blocks. Another particularity of these SoCs is that the interrupts are shared between channels as follows: - DMA Channels 0-15 share the 'tx-0-15' interrupt - DMA Channels 16-31 share the 'tx-16-31' interrupt - all channels share the 'err' interrupt Larisa Grigore (8): dmaengine: fsl-edma: select of_dma_xlate based on the dmamuxs presence dmaengine: fsl-edma: remove FSL_EDMA_DRV_SPLIT_REG check when parsing muxbase dmaengine: fsl-edma: move eDMAv2 related registers to a new structure ’edma2_regs’ dmaengine: fsl-edma: add eDMAv3 registers to edma_regs dt-bindings: dma: fsl-edma: add nxp,s32g2-edma compatible string dmaengine: fsl-edma: add support for S32G based platforms dmaengine: fsl-edma: wait until no hardware request is in progress dmaengine: fsl-edma: read/write multiple registers in cyclic transactions .../devicetree/bindings/dma/fsl,edma.yaml | 34 +++++ drivers/dma/fsl-edma-common.c | 112 +++++++++----- drivers/dma/fsl-edma-common.h | 26 +++- drivers/dma/fsl-edma-main.c | 137 ++++++++++++++++-- 4 files changed, 257 insertions(+), 52 deletions(-)