From patchwork Thu Dec 19 09:18:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Larisa Ileana Grigore X-Patchwork-Id: 13914862 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2052.outbound.protection.outlook.com [40.107.22.52]) (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 378462210DE; Thu, 19 Dec 2024 09:20:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.52 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734600059; cv=fail; b=PcpAykhA+eqXUB3/cYZBy2/qDSOKhah2jnNRVdKBzdkkb49BYx9aoJ+NtUjEImwMB8pERnh1egeeBg8jtcyE96tPOgDm0YiF/8DB7dO94cNuJgbY6gsyABd8t2YYTkewc47KfYFETF6vY7t2qcdhAsEoAuVRxHkLPn6TRPHvtfA= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734600059; c=relaxed/simple; bh=CBEjJO602nk1ReVwEh9g5AYq8vr1DC9T96A7EzXPOTg=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=u1T+4uJ4okaIMryGfZMaZaDLu9xEQfxrDS3DZ/P7jgQxJfoXg3ogBeWE6JnvrS7CNNzbP/9rKHnnIYlPE9+MYXttwPbrbd+n90Tsispz+7Du7SUW3gUcrDPk/dYUcfYdJrNZ2Xdi5vdd4vY6JM6r+ZNGObjrsXkWWKqaMabJ1yU= 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=EO1k/L5o; arc=fail smtp.client-ip=40.107.22.52 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="EO1k/L5o" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ki4jFiWw8YpoX43MtPzFBhMaUdwkeZ20VGp8/qs5BsbmNMtt5vYa8nKUYJLHEtEcGS7LNJU9ihXsFI8eP8+8uaWfnMpiiGk1LPHZ+GyOQ5Rl9qmJDku9vzeTWa233BZLdTOffoXTLjQVCZg/ZdNTool9HLFqJP9Zw2hTiTDO2GmUEgz0WJBFPVliCwghKS4qNBSL67JBmZJxYq8MPTmDmgWg7rKw2wagw/qm+ernwQSmc5M6GLZK2EJjUMqg+WhvR8jmxPgPp/pm993iMNN9CF5VXSm8NE9Iut6DSxLLS7XnVnJYemlFlkCrd5euPaesg/ip0Kt6qWDrVuu5ctq2qA== 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=1SgL88KNwrdIz6MynwXTt5/a4/9tiadxMKIwED/sXhQ=; b=SXnWoxQB5fjuvLqeq9CB5uY213u1QbkfNUL59S5zkknNHB4vbvVUIxlPMCX7QZvIvN+b9yj8YfdJh4hzplKU/RwduzTUSG1rcOWTpXjM0LpXZ38KcnIwSB01JmrbV9/lmsNbWLhesLdu3BH4n91VI0PN3gP1T5XopJ8AQNH0ZpghF4Nw66IWQrBCDob3XBUbvtJVmKQYDRyW4+wHV7nODbY5hlfPKSWGI5+lFu9XC5vCfHjSSPu3eFZkD2DuASD01F/zPzepgjWHd33TF4HjD1LOpzkv2rKS6wjCwfofw9KvkAe9uxQds5t0PcDjhjNnzjD8QmBXyGYniMw/A7nEfg== 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=1SgL88KNwrdIz6MynwXTt5/a4/9tiadxMKIwED/sXhQ=; b=EO1k/L5oWHaVFAZXIkCyTlOB50MyrZoQJEj1jg6Fwoc10Mzj3hV/bS59EVjcE9p4qER66gYNAHL3GMoqZHZJ/qbJWGzKmSJNJ3s38CaJvFKn0kFbSvOqwyBZKwuf07vA9gwLXrr8RXLFvQNtaXKTaAiH0FgY+n+BxRgmhAFfjySl8xgvW9PfEJglw3twC56+3a1Dv+UxqsD8aog9bQPdIXkbjvMc7lM5J0Y2lXy3q9j5CwRDcPHf4uzF003Ok9tqaJMTAHoHjiaiZnCzPxlVWxQQ4UXAmEEvLXMbR2IyeRuyaSba3PrlEqKsUyd74VFAi0LxoznczWf3qWVEuC3bBg== 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 VI1PR04MB9834.eurprd04.prod.outlook.com (2603:10a6:800:1d8::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.14; Thu, 19 Dec 2024 09:20:52 +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 09:20:52 +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 v2 0/6] Add eDMAv3 support for S32G2/S32G3 SoCs Date: Thu, 19 Dec 2024 11:18:40 +0200 Message-ID: <20241219092045.1161182-1-larisa.grigore@oss.nxp.com> X-Mailer: git-send-email 2.47.0 X-ClientProxiedBy: AM0PR02CA0212.eurprd02.prod.outlook.com (2603:10a6:20b:28f::19) 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_|VI1PR04MB9834:EE_ X-MS-Office365-Filtering-Correlation-Id: 46a9d86c-5f7b-4c7c-210a-08dd200e6ec2 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|1800799024|7416014|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?J9rCdVO09cMy15swVnAf0y8g1wkeWDu?= =?utf-8?q?V0myVS6rJhSDm/WbXAAplvqDU084IaEZUD7b2bpAYINTyCUqxLqR2EjjfXYpFXIeV?= =?utf-8?q?Xb2L2ZmMP+zykyLHWBHGriqBJ3jwqRwmW9Bjm3SO26Pvdw4BgKkuB3TXhbT/hkIFv?= =?utf-8?q?ncA1fhKeGM5cgSbhFZt1vU7TV88R8FGgjtRTEgYNrw3Yoqs7hka8KEzeBP94FKInL?= =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f-8?q?2+DbSw3THXfPqnxuak/dKN1CDTlgASxWnwgGipMLCjw+ee27otc/tJNnkyN/CqF1r?= =?utf-8?q?LdCRQar5qKmPEv0S1f5WF17GgUkzvz31IshBh2hx0IyLdCAtUVd8sIMZpue7QK10B?= =?utf-8?q?FF1jygw+lkUhs/wUIzxkXPkJFmp8ZV5B+z+Z2Qr7koZmym/bjEfWwlX21jO0z2lRh?= =?utf-8?q?vHCiVla/nFzoQ9KlHJXULRm7g5hc0UCK2bgZUo535bRspxmb3Er0HG89Es7XONowX?= =?utf-8?q?UH/OKaRimM2n?= 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)(1800799024)(7416014)(376014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?if2INopnrN/PBLn+lHtU7OcDW7KF?= =?utf-8?q?Ck3FNTBQgvWNl8n7bDUO/JgWD7tAPUviYrXpcHHaubhQED1qB8PXREd/xmYx2F7IX?= =?utf-8?q?F46FMNtuPFCdF+hXzAde9Ik8oCMVsi3irmycW0jP33FBZnS8P1AsqELQGhotriPLw?= =?utf-8?q?4yjVeDw9Ll7e5U/auyJxhgP3EizBzY17P01uALanSucy4JFfpXLPQffV2dyHzzarO?= =?utf-8?q?T0jUhRi1XEOzQ7WeghhJarN1mdSnpt423f45GaC2IVgDMUM0BAPBON+YzkPOpvj5Q?= =?utf-8?q?nU8/PuuPs8Ik6MCUVEAOBkeMrUQ6hskmcuCofW5fSSTl/eqYfQEDiAl34h8aCoSWl?= =?utf-8?q?WYiWuGX9swMOmyOnYagygZapyxl/1A4oiRcvuH/BXE6lJ/bYzZPTthGRNqa78BW8H?= =?utf-8?q?eNFhoflp75+meZl6vcxLq5pW6ZENjTxsevmYBtF1rRBti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a1R42z591CMPz5ugsNS?= =?utf-8?q?j6KuqO/zIYZMkitIZwmjTUdcJVmVMM3YpQO9BBqg1QeUd7jyIyy+sb7ufxWwRI59Q?= =?utf-8?q?hXbsgERPSrwZYqGd9tXe9S89F7e0FOCduJ9LYQMAF9ScZCmwQrB1CQ4zAiy4j3drI?= =?utf-8?q?NnJX/6L1PxgTszbO6YEJCULyX4kZl8XfF2mwn1JmiXsevC9Rvfr3OsHAqV2MpRk2x?= =?utf-8?q?XntDHjuIttWl?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 46a9d86c-5f7b-4c7c-210a-08dd200e6ec2 X-MS-Exchange-CrossTenant-AuthSource: AS4PR04MB9550.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2024 09:20:51.9578 (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: sXp6/JgNBxSI5NASCPBHfFytaBE48Zh1ZWXI4owBvP56zxzrvWBKaocPLywcleP8f8pyoB9WDYfOi4FN7wJc8Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB9834 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 (6): 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 upstream: add eDMAv3 support for S32G2/S32G3 SoCs .../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 +++++++++- outgoing/description | 12 ++ outgoing/v2-0000-cover-letter.patch | 42 ++++ ...-edma-select-of_dma_xlate-based-on-t.patch | 39 ++++ ...-edma-remove-FSL_EDMA_DRV_SPLIT_REG-.patch | 35 +++ ...-edma-move-eDMAv2-related-registers-.patch | 199 +++++++++++++++++ ...-edma-add-eDMAv3-registers-to-edma_r.patch | 104 +++++++++ ...ma-fsl-edma-add-nxp-s32g2-edma-compa.patch | 83 ++++++++ ...-edma-add-support-for-S32G-based-pla.patch | 200 ++++++++++++++++++ ...-edma-wait-until-no-hardware-request.patch | 68 ++++++ ...-edma-read-write-multiple-registers-.patch | 90 ++++++++ 14 files changed, 1045 insertions(+), 15 deletions(-) create mode 100644 outgoing/description create mode 100644 outgoing/v2-0000-cover-letter.patch create mode 100644 outgoing/v2-0001-dmaengine-fsl-edma-select-of_dma_xlate-based-on-t.patch create mode 100644 outgoing/v2-0002-dmaengine-fsl-edma-remove-FSL_EDMA_DRV_SPLIT_REG-.patch create mode 100644 outgoing/v2-0003-dmaengine-fsl-edma-move-eDMAv2-related-registers-.patch create mode 100644 outgoing/v2-0004-dmaengine-fsl-edma-add-eDMAv3-registers-to-edma_r.patch create mode 100644 outgoing/v2-0005-dt-bindings-dma-fsl-edma-add-nxp-s32g2-edma-compa.patch create mode 100644 outgoing/v2-0006-dmaengine-fsl-edma-add-support-for-S32G-based-pla.patch create mode 100644 outgoing/v2-0007-dmaengine-fsl-edma-wait-until-no-hardware-request.patch create mode 100644 outgoing/v2-0008-dmaengine-fsl-edma-read-write-multiple-registers-.patch