From patchwork Thu Dec 19 10:24:09 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: 13914921 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2080.outbound.protection.outlook.com [40.107.20.80]) (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 E713D4594D; Thu, 19 Dec 2024 10:24:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.80 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734603884; cv=fail; b=fuxtmxZ7ZfcV2nlToBqXhs3jIS4SpZN4vIhLglewntU42r6ks9LH/qdm5k1mY5guOicsBUJu8TgG6TdwaEafgVWTBuM+PhkyhVkDFByZzXJjGRnMicisDKbTBXmEjUnHc+wWvNAUkg2Q1b025B/nCm9R1hVaAb+xqIHQFQpzisg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734603884; c=relaxed/simple; bh=YTwPqi8UIlyS9lCjoDaQyipgC0uuabzr/F951EqJskk=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=UNrL0sHBB6Zi+EOy2Uo+n0FOQnwAFcInffZVtqrSJ1NlKzGT1btx54UmsewijlaGZcKLoBBkP72PnlGsYZQZbf//dQ8GKbK0yaj+01y1MCfo6W58CShSD9oAWvyg2KuLDxudTFOfrifsj/mIPXokx6PMnIh/h7lmSrWIQM4CDQw= 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=l9qpKFuF; arc=fail smtp.client-ip=40.107.20.80 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="l9qpKFuF" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wo7XIY8wx24zzfyGFbzXpI3Z4muSphAQ0jwtfFeno+wlpMRlCVTRUBpFBwZgqZhfQY8cDoejA/IUOh90xovAGz4uU+yWYBvC+D85AEpBMDQsf4ewyGu657JDwwmE/NKq9T5fJ8Is60FUKJpMCf8iS/Dc7spfmcfLzSToPyjVg+kIZ0rX1kM4Vnoj1ch7iY2wIuFiCFPMpN3mKVQ6lyhlVXH8sU/vEnOan9lbkrje8lhdkgqZurP3vTLcHiGrZSUo4lj3laUZUGgtYHV4SElIiCC4AhnEmR+rCDyzlxKYY5z7ACkDfqyqJy517uRBkr2HrVwgFJg+ZvumIKEbqsbn7w== 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=leg0tLM8PFWFftUHoR3c4m4WqJzq7eDIrrmoWHMWgLA=; b=ly/deCtByLS7xCIRCzwanGCG1A2qvV5zEYuZqNR8Yh0i2nsd5SG5b+PUxY3DHBLadQ4mJHSBd3ke9GyVHx06i4jknKrlV+LMYLe0mt99KoNQkUdLQmt0hIAojq10bhemVgGFlQfxbA43QHy4ZatbaDhDNRZtHvSSzNTdFGfuLBZkJkDXhFQU97xfEjJzWyplMPXHVDOs888rpm3bmrKMChmECZz2Q0jXl8C0vNOuGYY18QTXaurQMajpkh24Vay27Pgwv4I5rhD1MugkwT8AMPMrD8G1lnG/nWnc3ALCpr/nB9EjmbPTnL0ZNdI1ZQIUmvLULzCzqy+MKnacNoIVKQ== 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=leg0tLM8PFWFftUHoR3c4m4WqJzq7eDIrrmoWHMWgLA=; b=l9qpKFuFmmLKeL64K8Sg7DJAAslyWaWxCg05dT91RlxqV/WyPwrIffk0lx7s91mg7MzzisfkkhLa4hxojvwL6UCYBDdH3NMJ+8jpg3PG1qV8NV1drJ14qnswfSCdqQIsi3uUvjGhaLo8a27HUb/a6Adf5Z3ZHsiTqTldiegD+FpgvxstZrsYjnjUSRR3ObX1uxo/s0i/qLH+D3O+xx5w6Nj/bXcm+1AwxT2Hzi5Yb4vJ4QilLwan3MhtOzFxWgaW3IRuPT3PbDyr/RUo+Zt2MdwYCZqXt5XT/B1k5Mj4zb+zDgKbHqhduLHZjZZuimbg0K28+KYuZ1lrRXnlkmP4AA== 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 PA2PR04MB10187.eurprd04.prod.outlook.com (2603:10a6:102:409::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.13; Thu, 19 Dec 2024 10:24:38 +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; Thu, 19 Dec 2024 10:24:38 +0000 From: Larisa Grigore To: Frank Li , Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peng Fan Cc: imx@lists.linux.dev, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, s32@nxp.com, Christophe Lizzi , Alberto Ruiz , Enric Balletbo , Larisa Grigore Subject: [PATCH v3 0/5] Add eDMAv3 support for S32G2/S32G3 SoCs Date: Thu, 19 Dec 2024 12:24:09 +0200 Message-ID: <20241219102415.1208328-1-larisa.grigore@oss.nxp.com> X-Mailer: git-send-email 2.47.0 X-ClientProxiedBy: AM0PR04CA0135.eurprd04.prod.outlook.com (2603:10a6:208:55::40) 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_|PA2PR04MB10187:EE_ X-MS-Office365-Filtering-Correlation-Id: 90ebd676-6e57-4130-fad7-08dd201757a6 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|376014|7416014|366016|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?jCfvTFdBEa+7nr7mFdj7fj1t0rE/vVF?= =?utf-8?q?ayqZ8bIj6qXWLiiTe8rEH6GhHSIrW7EvL2lqD3o+oVPHAGfHgpjpO7Tis7x+ljhlE?= =?utf-8?q?ac+MHfv6vvta+1xiZVcmFS6Ce/v/O/sy4eZCW8uZkwOw7VoYYxGie2D4iCUzxrBOJ?= =?utf-8?q?uBL4ccojv+4DqXyKFhNyGWceBfu38NztH0U1tgwCZDl298Qlo86V/P6OBm3ZIsepO?= =?utf-8?q?vDVtAn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lrwa8n81lv8ag3PFnHlnyfQZyj+Zq2w66Mm7o1azUouyY8ukMeOp?= =?utf-8?q?n9942daccupHddy5Q2Z9R2dah2584DtKa/y2PwQBPJEh87mE5QX8LPcPon6nt+u4G?= =?utf-8?q?GjJ5IdLlPK81EVdqvEdT2MoNmVc3oEmdEd5Qp2Dy+iBvxLWyvxfNeQcOCS6+hGutA?= =?utf-8?q?eVoMXVyzphiOv/CWJV0p7YLxVWO3t3Ckn72CY4OtcbvC+407uZ2V79pDS68uFdMO0?= =?utf-8?q?h0zatuD7L0w9?= 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)(376014)(7416014)(366016)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?LgGh/IssKwgzaRxo07S6eIebb0uL?= =?utf-8?q?i9uAC3IhkLJEXVCYyr/veY39ApeyKu10P4A59U4Nbr3yDXSLV6+YyE/20UpFM4JCE?= =?utf-8?q?FctsKRLHZzpri/h+CEwDh/oshv9XxVZgdQwGWsWOyfARX922Xfd3SoL4F2V6/r5Bt?= =?utf-8?q?rdGX26KVkEavQZKUGevKtWAGJVU8q4lRQwd5PSg9O7+XRwZJaTHeHN3bW86HzxNIb?= =?utf-8?q?XC/SLSZKWkorj7ucztDZ2wCBXpJqY1ctWM8xou8gLXWu1SMerT4pobERXe3vZRFMN?= =?utf-8?q?6B9TOKX6nGxFfbcGTlpAzIeGA2ZGAMC3O4/kvbWo39Orh3SiThncaJqxVmU32Gcrt?= =?utf-8?q?AGGQDkLZ6YB4gvyKMYEwAYmsuofhou6UDCvKrtmpTsSYjyvl3m3H5gWClbzZNvWQS?= =?utf-8?q?/2NA1Y92GSf6ng+7j8AfJPuEGOA5rnow2N9ZPQP9A+NwzUl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Sc251LEvPt+YY5/?= =?utf-8?q?0WepVXMmcLuDwCC+/OSMsQplMyPksEYhLxSGPguFDGiqabp7Zft/ZbB8keqU7VBFk?= =?utf-8?q?PdnuAIX6Qj8m/jXHinm5ZjMS+2OBrGWK40XfYYw4RgBAs7E9zO22xWvJVTArdBOXC?= =?utf-8?q?Iy2FO3mK+rIxu0Mr93HskYypL1S9WEsXAsTLc3Jv+06SfGNKa+UX/yaMb8JN6u6iy?= =?utf-8?q?v5/tUM40owUE2vyggLnfWEZ65Snp1qajNA=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 90ebd676-6e57-4130-fad7-08dd201757a6 X-MS-Exchange-CrossTenant-AuthSource: AS4PR04MB9550.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2024 10:24:38.4884 (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: HI2a3p9ofEBqLbLVx3zm00UbhLfkh/HGQPPtQDw+PN2gCjlVyzkf/L3NOUrzThes+aBWAlWqWfMnexydxoW42g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA2PR04MB10187 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 Changes in V3: - Added changelog. Changes in V2: - Added new lines in commit description. - Added "Reviewed-by" tag where received. - Removed the three commits: "dmaengine: fsl-edma: move eDMAv2 related registers to a new structure ’edma2_regs’" "dmaengine: fsl-edma: add eDMAv3 registers to edma_regs" "dmaengine: fsl-edma: wait until no hardware request is in progress". I will send a different patchset for them. Larisa Grigore (5): 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 dt-bindings: dma: fsl-edma: add nxp,s32g2-edma compatible string dmaengine: fsl-edma: add support for S32G based platforms dmaengine: fsl-edma: read/write multiple registers in cyclic transactions .../devicetree/bindings/dma/fsl,edma.yaml | 34 ++++++ drivers/dma/fsl-edma-common.c | 36 ++++-- drivers/dma/fsl-edma-common.h | 3 + drivers/dma/fsl-edma-main.c | 115 +++++++++++++++++- 4 files changed, 173 insertions(+), 15 deletions(-)