From patchwork Thu Dec 19 10:24:10 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: 13914922 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 678FA22257A; Thu, 19 Dec 2024 10:24:44 +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=1734603886; cv=fail; b=ctqYW1wD1+mlfdJ7Gqsei0XCIkK/j5QfLlIhAUKXyYJbNRoOEE1xSX79jLlxZtsCdwaOBra7QT7UkffE2ZfWTeO6OiuB4Q7XQiEyHOnABjcCH/LsDIydSocwaTVzMTcUQDDGbHrYgUQkCsurkpqa+UAmDoyrWPnXE+ljti2krtk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734603886; c=relaxed/simple; bh=8BhD0/fjnNlsUFzT3o5yEf/BMFJaWaTfKPf3WYocHFg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=KsWjr8friKpX9BvLH5/fzV5B7Cmz8boAWRZXTryzNR+XSnfsFEqZVUffcOii5oB12VNTthUu2VwYmoDQ2zWa0wCXQ5UUtTXyZOJ3pxNl/fz+5jTGHrjBSafnLoAyUuI5i99dc0FzQ5vgbYrhyDL7hY682May2tMdMyOYG2DFNXI= 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=H7He/Fae; 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="H7He/Fae" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vY9gk45hd+7/WWIrdyZrSTrXJBTGVxTPuijgNQ0gqfG+SKRsrlAIVGoJtW4ZdRlrHxMsi/q41+sjLwiJqqBThGM+dSUSOE1QZqIPGsZrM9Pr28MhuiXuMTdmZPxBbW1bf50tZNRdtjCxFmfI/DfFdgDQkH1k7IyltGdkRg0ordQ6GB/ehK6XKk/uQQiBZZVSaA8sca5L1/pUe2h6G9cHEMLxOWzblD6Josn6pJId6fdaWlIAejMgmZH+mvKHFZh/ob61JBj25jeARH7YIUExSkoXCOJFQwPLl6OMVaeOCsB3WENiPDevDb6sV7wv5DpDjLPdbGpguIPLOpOpEZFrPQ== 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=vLIJ+7nBBLog/Fi2pEuYSaG/9xdVGhxe8g8HDmS8MA0=; b=F/dG0S7XEsdh0L0lQImajp7jwYs03nC+nqCV5ZDKELBWxWhcGEVRmKEbKWWG1++FXbw48L6hSsjYURRfuN3tswNciykJ83m/Eb39OQNEs6QlEnAZBt3Uo55YFhpCMYQpapALNo8iQYY+WMDScZubaAZ5O09ClOgDJMoHwAlolT/kbJ9L4BrbRIBIIhm13l8DLV2f3RqASQm6GxGRMyHwJDflguQicnYSSupCbE2a3mj2qllXAJ4QVqmLo7X6117TZoH/Dt+13MgplM3VIeOcT3S2/bQKf+S6RP/gTHbUkdxKt/NjokAF+UVDsYwn4IxCNOyJsR2YvfNfLXI6lnsm6Q== 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=vLIJ+7nBBLog/Fi2pEuYSaG/9xdVGhxe8g8HDmS8MA0=; b=H7He/FaePXF1i+Z06nGDxqATkldYws8Ni/Rm/dD0QRRF6jgxh/V0hrDkkKqhodygRPbNGF7ZTOXhW1dkvtKDyNpOX4qDmPOEmnOQvYszdwhuaCuAWEfcZcZDry+PdSUTlE5+0KD2gRRkdHuU2KNoEhwNZvYaeepRdu1GB8LOIoGEZPMHBPRjZJb1/5Wn4KFf12OkDZz1RIFY2PA2T5VFSJ5XCjfOZPfyKcKAgq/pkGJo5A7Rr7rrVFuCYuPXa93Hrl+Hl7+JDXzBBNOcn+S/fj4hEjkzJxrA9q30owC0aVSXKAP0tDKyvBMwjEArhhAtbxGyEgJ9nSeua7moJpr8vg== 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:40 +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:40 +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 1/5] dmaengine: fsl-edma: select of_dma_xlate based on the dmamuxs presence Date: Thu, 19 Dec 2024 12:24:10 +0200 Message-ID: <20241219102415.1208328-2-larisa.grigore@oss.nxp.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241219102415.1208328-1-larisa.grigore@oss.nxp.com> References: <20241219102415.1208328-1-larisa.grigore@oss.nxp.com> X-ClientProxiedBy: AM0PR04CA0125.eurprd04.prod.outlook.com (2603:10a6:208:55::30) 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: 1fb9f512-b46f-4073-d144-08dd201758bf 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?JkxDbwchFj/2OtyIx26ioQZMroFxh7Q?= =?utf-8?q?RuDnTAoQtYMfoy81FYK+swsHxGRtgeV0kxXeUlMay1PkL/jtER4zNzQ6M5dv9k1Hp?= =?utf-8?q?Bp5ADN8MTJxy2b0hHitEv5ENU22RiAtFxNFRNtE6PQn7FpGqoooCPqUNMqEvyaS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?q?SrM2RcGZPOI9Ij1hbnwX4DV9RkWPVaVh8g9drOkf7ENDkfbMNkkGr+c+E6b1RIrVN?= =?utf-8?q?DnR7VJUPjOKax/EwgmMT9ucgOeCRYGq0ap7JW3znOXg2t7NhP59IkOKDg41Nj8Sa4?= =?utf-8?q?iXzW7TfXRVvmghOvVC8Nz1LkpgXnragEYFNcNtAkvpKOyi+g3Fy1dDwnZLbKAnIbq?= =?utf-8?q?Sv3P8R4DxPpK5WBN/eus2659/LFlwDtLAf4EANkQqxfooTTUE63Ve3s7jhUzppyjQ?= =?utf-8?q?bw6ZNyp6bgHbPlq04LwdQPBHqfyW8J+6NLXvikHAv0I6hB7BPRK/rW90jnh3GMHsL?= =?utf-8?q?MiApCWc8MgEi?= 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?K1vspjKVmFu7R/WZVouapSbmil/h?= =?utf-8?q?MBYQi9oO0jXswdE/CNRdtpRTUSUCE/GcflXNt4OanZ5k+Mtd3jixhOB1PUmJ2sGoR?= =?utf-8?q?1lnPj2od1szngKKMpqypqAtHsxS6MdECHhARLgzT86+gvpozRw9mtgA+xN59rDaoQ?= =?utf-8?q?W07KagGeM417aeFxVGX/BwXN6K7a2CEFeX7bSnKGV8tGH25DtdKoybVq2H2hNOJqq?= =?utf-8?q?+AS5yDPInc4WkCeRAXpmeSNx63tPMb/hZJ5/FPpxUzl/EnNjBZGguce32th8mjtvP?= =?utf-8?q?Hd0UoEmjAMhDDtB9d/E/gNptnpIWtiEviye+6BXKzqUiLMVfO/KBvbO6KTw5Q7JYV?= =?utf-8?q?h0IISXQ82gdrwZgnpzQQ10IuBRHs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epqtPvzHf5zHAtpupVMN+wjFvZr1Pkk?= =?utf-8?q?orJq97T79rO4VNOx3UmlI6KdbNeY2ea3Oh8oF2LRHISBCuXUZWapbHFmIp0ZoFkO7?= =?utf-8?q?5D4VX6UcST3Kw1hAJx7IRXAbW5iUrC8SFs1AO4QCszUu6UF43FrFrC7SWZnirx/mp?= =?utf-8?q?/S1mJbc/UJmDu17DqYnpA/qPJ1KKz6vVJfAY8Oh7P83Ppo2YN/1E1K8d8demgpNAw?= =?utf-8?q?YJWbw/QdX/JcRBYCEnOR4X7qcstBtTz9OUcazpFk0ZhfAQn+4ZR+fdiCQ36mvxc19?= =?utf-8?q?0VTavL2XU6MEzfs8W0pLgS1QSS4JbKruZQ=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1fb9f512-b46f-4073-d144-08dd201758bf 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:40.3103 (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: 3DfSqFRh/bmJSZzxaV50Us0NcuAJ6mZfHb+N/5Khckfu5mLcdRK8v13X0nMGV/N57LKezUWQWaOu7PMy+CNrGg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA2PR04MB10187 Select the of_dma_xlate function based on the dmamuxs definition rather than the FSL_EDMA_DRV_SPLIT_REG flag, which pertains to the eDMA3 layout. This change is a prerequisite for the S32G platforms, which integrate both eDMAv3 and DMAMUX. Existing platforms with FSL_EDMA_DRV_SPLIT_REG will not be impacted, as they all have dmamuxs set to zero. Signed-off-by: Larisa Grigore Reviewed-by: Frank Li --- drivers/dma/fsl-edma-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/fsl-edma-main.c b/drivers/dma/fsl-edma-main.c index 60de1003193a..2a7d19f51287 100644 --- a/drivers/dma/fsl-edma-main.c +++ b/drivers/dma/fsl-edma-main.c @@ -646,7 +646,7 @@ static int fsl_edma_probe(struct platform_device *pdev) } ret = of_dma_controller_register(np, - drvdata->flags & FSL_EDMA_DRV_SPLIT_REG ? fsl_edma3_xlate : fsl_edma_xlate, + drvdata->dmamuxs ? fsl_edma_xlate : fsl_edma3_xlate, fsl_edma); if (ret) { dev_err(&pdev->dev, From patchwork Thu Dec 19 10:24:11 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: 13914923 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 96E09222D5E; Thu, 19 Dec 2024 10:24:46 +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=1734603888; cv=fail; b=HTJIvWEbDM9rRMOdanfjKtI11jtx1QZDI7Nc9G5SGGSjj08zl/JMOB0+f4/UtktSNk4pd3disL4L/LZrUiZm9CtDQFkDwj2lI+pQfENEV9WhbdrDHbIvw6gmzOGoIVkf+x8q8ZbZjI+xpGcQcgI0vIqcv/NQdHdszAsU7WN7dxs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734603888; c=relaxed/simple; bh=98XY1a7JJVwiXnOcAyieAc4D9SnwiEirbyAuDC/CiBM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=PwRPp+jxEu9JdoSNiEUMYsb7V2gkj1KxxuqWWhm2Ovj8aAllKqGcKw13xRxQ1J3qcdSgZ+F5FyNiu/bnv+3RU6Pcpifq90B0rUF4qMa4ZR0YQ3mgKgYjPBqAMsAnKKJMHrDisapw3dU8HNDj8yqzQ/zpOYNfEgKG3VaFyiR0cvM= 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=l568iqs6; 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="l568iqs6" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=D97MlnxKqCxoMD6drAJR7Qqt7G2yRht+4r8R6N+U+zd/lqLvkVNUnum6BV2gFycRU/ZtK6HazM3NBuR3x2qPhYuJ6eE1IZ3jdBkeGd8wmgem9vWsYn0etjg0TgEy5m4ef1vrCQ3fyJBPP8KwhGVGmqo4tdZTJiNKwJyacllhF8+FgFudNp41zFhiNk5PCfJwHeHS9L4Pw42ab/4wT0hO3pmvet6B77BSmf/qthl4NX9ZRts0Cc7ggILrg/o4pqXn48R3lPDS6xudU681P5f7d7m4M0q9Yukm9ekEUfCODZVCSmVbOA4H42t+koWQdowBBSNErYgf2YZp1eWUc2Jjeg== 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=9CmmJJtzZ4GKvoSl5NZeQ2TTqc2zau2UVovMX1/ogI0=; b=dMK4YjYWQk5MkmyZqo/C59QaADJoPgJSgQfmQYYvYitphvEo/Z4QbkploMfegcMoAzkX/+9Oi7H93UI0FoWwYOWL6OqCjUScVV/FlM7siCvUaShIrKmd3xytwRcfwiMDhNm8py/74d0P1gEw8zru26rRFzJTlUs6pNGr6XT9xHirQvx32369FSU9VlzpppTLpUQlHXdGZh9CcFXJc9MCA+UnfzpWCFUc+j4rBLnVlfW+EIqo6SsSL9cqk81tAR/Azh3tzI+PLYBzXSlxqGRoHnAY6G6+ePRWDTPwdHyAZS2GFoOy1ktI+oS6JPK6K+1uX6XsJsLVlZdZxjId/pN9Ww== 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=9CmmJJtzZ4GKvoSl5NZeQ2TTqc2zau2UVovMX1/ogI0=; b=l568iqs6fdf8J//r3fujAy2k0XNBDIwhEvbdxtjiiiJNEe97VfTpQbk/DMyek1qemDy8RvoC7qSH70wLAuK8LkXWsF9xX5xjJDS99iglLqGyECrY7DL/nE4AT4r/cJvop2fL/AZDODFXfF5T4yNE5GLACRv/6hpXrXI/i9Gr5jmlbcgbcn/pXvYYRlPHcpfdYDZJiqwAehII3UhPQumuijw5qPm3aDGI4mPkA95lo9ym1GBrWYHunNI5hw06NCmUHGAKxXSdv/EvZuTBosF3a1hgWmx8l66gLOuV5pVxCsTVsCN3eE0MWkjg37e153Lky6ilj8gOLEexVnQTn5FXIw== 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:43 +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:43 +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 2/5] dmaengine: fsl-edma: remove FSL_EDMA_DRV_SPLIT_REG check when parsing muxbase Date: Thu, 19 Dec 2024 12:24:11 +0200 Message-ID: <20241219102415.1208328-3-larisa.grigore@oss.nxp.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241219102415.1208328-1-larisa.grigore@oss.nxp.com> References: <20241219102415.1208328-1-larisa.grigore@oss.nxp.com> X-ClientProxiedBy: AM0PR04CA0120.eurprd04.prod.outlook.com (2603:10a6:208:55::25) 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: 636595d4-6c0c-4bf7-ab35-08dd2017599c 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?ZWE1sAowebrrcjj5hrciYW9909eNQ4T?= =?utf-8?q?jaHm4MYvkgczhhpyjSznvqErPJyAUrrSKZUweQUdOnxCPh9Z42vnzeWBw//8jtAnI?= =?utf-8?q?xH11KrbV1ZmBlU8hSN24Y7HzALSUipYImRx8YWnCaZpJFgNhPpMRrVqGbd+P2Z22e?= =?utf-8?q?E27twYu1wpvqNicrYtPAoVOI8Da2TJ4uKdX/BJZEyQoC4yS4zho8UDvNMn/sa8ePd?= =?utf-8?q?/APu3HIRbRuq+QVZ5i2hIEEMbAVJcLm21+01BwdRlKDu6UiUBpkAmC+vQ6nEusMSs?= =?utf-8?q?j2Ml9bKfXe1MB/EBvfAa+BEywiWEXYyszt+oAkFp/+3jnsKhO34FTJpv7NVXctZDn?= =?utf-8?q?MdN11HKhXUWa4Rk2Tuydu9ZMDHCwav1blt7MfPgQchE0lyo5M8nszrwlrBQdIuZWL?= =?utf-8?q?SYrEzxpI/7cWNVXvplHq1w0R885KmpWmr9zutBV9+bG5Rq7DvVo5dbN0fFMEPCMXT?= =?utf-8?q?jHeCyusL7DkXxnRgMjodKhzGx4uQz6nc/cgMR2kjP+MTkDVHf2tUmLkuMYCBWkZmF?= =?utf-8?q?nweoY6BipmxpNlxffD7uvW5ZZw152dlWr2dndD9XR3+zqYPUt5EUBWz5or1o4S/MS?= =?utf-8?q?ldohyRa9u72ai655hK+bxvbfmyiezg/sJMqmJ8K32iUvv1lxjki9zzcVi9E4eNayJ?= =?utf-8?q?H8ZR+B7cL2/zUPjSmaTJTnqkMhBEi0cEJuBVBbXHx3X8047CWaI3R//jbBEn1Knaz?= =?utf-8?q?bi4xOhIPxiBnU4VPGzXLuc31FZ6aEl+f/PC8VZYWSAyRoQPe0HIzNkdxFfxKLIYLe?= =?utf-8?q?lYvNeBd+W97VHsi4uFRQhpmn56ZTocoLHAJB9cXkJurj5rWZNBoU3MVcZlV3QFGk5?= =?utf-8?q?8bnZd3y1HrxXL7iTVMPrHnDGHdRa4EqXREU3yl7lTR1SpqfxLLpqW9NeyJhBQk1EQ?= =?utf-8?q?rcEs3KNj+1NyKRwbfq9yWNGs53YlaFFksh+i9a6hXj7ui+GjmfJS9qK1e3jDIfTHQ?= =?utf-8?q?RyFrDOirPg8z84S3YZtiWDoRwEe9NUXue6yxueLlOcAucyLyi1qKf5rNBDHcbhXLb?= =?utf-8?q?ilNbhruNYXond0xUlTBGmOMIoeJrLCohWpcDiTcNEsLynBBswokongG6Pdte/7WEA?= =?utf-8?q?tHbYphSoSOD68qMofIChW8TrEMGbBUaGAilULEQNGzNxVIE2qSgjQRrL2bX7E/nFu?= =?utf-8?q?Ixb309pmI5IAfKzqAHDNgYL5iBLJfvOD/tBy3LtZl4IRvrVxFRAqoEmoDWzWNigPT?= =?utf-8?q?R7TTh9gkzLOJ/CwPvUYz/rF7iHet8hCpMy11TuX1TNybCGEG8tK1HxJ75apWPnKzE?= =?utf-8?q?Qs+q5eCXGCZpxVtHV3RmKsb9I6WX/eCpY3PBsBtLH0vtwv0eh4qRHFIGJvmcN2WD3?= =?utf-8?q?s9ai2uh12POl?= 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?CWuW+sXMAKTmA3xueanoEAa4ERHY?= =?utf-8?q?KXCUWpHgUeSKy188KPRHHAcR59H86qCh9rS+oXC3H3S/oU0NeNX4596AoW7yArswP?= =?utf-8?q?sV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3Br7hnzNrExO315Ju6ufyOEwH42RGYrgiVpuDGpwvi37x2PFKhsy1Ev8Q?= =?utf-8?q?gFdYruzqix5Fw0VJ5nNFYT80jjQ+wb+P6FQbszLjCQLiYhzqF6LWNjRdVaBZS9zzn?= =?utf-8?q?2WJrlOAS8PftOWO42/wo80LkPPQ2ENBmeiiR54kWUKlcgamln2tQHbzszt/SQZnJe?= =?utf-8?q?/5AZcc7nIUCLH4vacN0myr5OHch6Ts4PF53nY8e+tKmGFPTBRb/Nd9jtgkLv/4KcF?= =?utf-8?q?J6Wtfsd1IShvS6LOpemMd9UE5296hophWr9uAIJFcua2jH2Xlsbh5q6U0nt1Uy9DA?= =?utf-8?q?7YCQfsxDkVUANNcGnwDDTzvx5RrQOnpAVnHBlq6rIn7GdT5BjgRj/nSX4Lx6d6+ab?= =?utf-8?q?pVwjBcXMud+3qEvI+GScI8NR65qQQslrf/4O+d41oKn2huwSPXiVc5idkr7GaVsKO?= =?utf-8?q?fWhGvX+8aeLTNpSPGo174t1/q6cGbW+qhDErWjlzHcv32h/u/2E+7aXPztGQZMcdv?= =?utf-8?q?tWK/5JjjyogcEat+UsETesEMoKliJMYlb14nleCqcTIdFPgjV7zxpbeDCuMQBQBwy?= =?utf-8?q?UuaiaAiXCCFk5qCMsO1R6x3MzESQJ5gx4A=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 636595d4-6c0c-4bf7-ab35-08dd2017599c 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:42.6525 (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: 86xYyKqVaxqoVzoeLimdCHRJ4AsSDj+c5Q/BepJpEP7gcZTKtM5Qa/F0ZP4P3CY3Kt4AnN4QHJHfne7cXxGdjg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA2PR04MB10187 Clean up dead code. dmamuxs is always 0 when FSL_EDMA_DRV_SPLIT_REG set. So it is redundant to check FSL_EDMA_DRV_SPLIT_REG again in the for loop because it will never enter for loop. Signed-off-by: Larisa Grigore Reviewed-by: Frank Li --- drivers/dma/fsl-edma-main.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/dma/fsl-edma-main.c b/drivers/dma/fsl-edma-main.c index 2a7d19f51287..9873cce00c68 100644 --- a/drivers/dma/fsl-edma-main.c +++ b/drivers/dma/fsl-edma-main.c @@ -517,10 +517,6 @@ static int fsl_edma_probe(struct platform_device *pdev) for (i = 0; i < fsl_edma->drvdata->dmamuxs; i++) { char clkname[32]; - /* eDMAv3 mux register move to TCD area if ch_mux exist */ - if (drvdata->flags & FSL_EDMA_DRV_SPLIT_REG) - break; - fsl_edma->muxbase[i] = devm_platform_ioremap_resource(pdev, 1 + i); if (IS_ERR(fsl_edma->muxbase[i])) { From patchwork Thu Dec 19 10:24:12 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: 13914924 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 D97CD4594D; Thu, 19 Dec 2024 10:24:48 +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=1734603891; cv=fail; b=iSj73jyBw/Qx3VOa7NGFZupE3GzCQXq273aLzKKcd8MHa4rZ/xU4+pnMrzW747QXYuc3i1VB4wqTRVu9AwX6at/XmGHceTBGwXVtwMuC9veBKXTJfMKLVUNNM7ecf6813ANNBRqbWdnmmcH1yjfQuOeqPn2sWk7f5BApkY9mB54= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734603891; c=relaxed/simple; bh=WsjL2uE4Orn3phprwnKiCUlkr6URGo8bzo7MVbUmtbo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=De/xxg8nvY1qZvJkh0FarImFZnts7JZV0YOD1bxvSU6XyrJcNIkmiPfW0OI43hoROTa+in6tfsIbgGt0wIEXXQuF4EHe3tTFYsq4ljzu1yFtqGuV1uuySkSmkgoxI8+50fWxuCjxb0yJgTVsXHR8BAt6DvfWIcw9o/yYNv1aN7c= 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=jdhXL2Ie; 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="jdhXL2Ie" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pr+cDDSEghBeIflUuDco/AcltJF9AqCVLSwpvf3lSzGz3+Mx0FZprjdpMspQV7dlUuh+cACc/C/VKzoJQ/2wbn4UU/nGcdOwAnm/tLhE2eSAJbsLZOIw5EnnV9Oi5OKoc/OnAXIEBD2hOryMFvQvNi7ItgSERh3Vrc28/u4E9t+hV2rctc8EDR4lQFiR+yBQu89KNWIRXDLeVJCuMMnz9yPZk+uacCxRvVegOPD3FKc36JzHTxHGsstzZ4iDD/NCeF6zbWF40mkCFbnmQHqe/+ooPpzjpiI6gL9y/4drxCuMham1VQRDP0sm0MaaYPLYDQZ0JG1ylM+BF2EBfHbNeg== 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=UOYniJli5Pkhka8qYxssSA4O6lfU0+qc3aDbK4L90oE=; b=GAXQLzdE3sbA1nCo3fxOhMPjs1JwAPJ3jGDQ/6oDwvRLFL1gm91S1mnPhwH9/VDHHbKJEQK56BJahCo7NaR98L/nBXDL8thJqav5N6Dr3CAW/odb3SvVsIgvfI5NKdtK8qRkDmT+aYx7JSe3he854kweSGE3xfU7Ip/Qy/4vNtmPEzrnkrn1FvtlD0u6q6jOU9OZ7kzL13ieYqhdCWgzS2McBRO84GjA9l0mA2/cQ3l2GRdV+1VkoT5uiZRSW1TaZs0sqUmdebtUtuQ9d6XV3R/mo3TZ651K7C15qO+LDgRCPv3sBYpyDT+6wJHH7tK8EHqqkNS56OK3gT8VYl60aw== 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=UOYniJli5Pkhka8qYxssSA4O6lfU0+qc3aDbK4L90oE=; b=jdhXL2IeYscjgzsOzxNOFrC3JJvtHUf8skBfFF/76Hyc4E85Xq695wbdzVKcZ6L/9Juc+mKgN/lb2/LUtSsJfb6nNfEbVbcdOtjitfNZYAPXXxcnt7hkg1AToiZOqTlRarX7sKIlpHFNfTlKmnqeQpb7FTsADUTPoi+UzFKNjVOqCHTgesDW+ZLx9TJkp7uO6cRsaS/sIvf8afdKhLb61kh7ADsPxrbu1Knoh0dzH5RKK4vfGWQzOJ7fEkr3hTVs7KMsGhb8YyJg4R4JZbSLNh9rLlIxj1VVMyvbsvMVvwKW5qNfhL6IyrCPVGnk/sgG6Lu8sUf6W+dDCAyBZfPEKg== 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:44 +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:44 +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 3/5] dt-bindings: dma: fsl-edma: add nxp,s32g2-edma compatible string Date: Thu, 19 Dec 2024 12:24:12 +0200 Message-ID: <20241219102415.1208328-4-larisa.grigore@oss.nxp.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241219102415.1208328-1-larisa.grigore@oss.nxp.com> References: <20241219102415.1208328-1-larisa.grigore@oss.nxp.com> X-ClientProxiedBy: AM0PR04CA0137.eurprd04.prod.outlook.com (2603:10a6:208:55::42) 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: 0d7152e2-496b-4697-b841-08dd20175b00 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?8ORZEyNKoKjmN+s10X/6EvyyYvE43jl?= =?utf-8?q?iKqFK/jH3KBuyDdK5O2bkQ/FZtVfWQda8hz88L4zcAzvQSy/LbwBefhvsi30Ik7lS?= =?utf-8?q?kcEgQLT7WoHRihf7lo//03uYV11wSG2qMqdcqWAjtOKACAWmYSQ7zYuHqa+UqFBmw?= =?utf-8?q?1KdgUwvpe2MZSperZplSWAka6AvoRoUGyPIKCNq7Da4ZSjo0tPek7cQugDOcn7Y7Y?= =?utf-8?q?ny6IhPbLoO28wujMprlVdltQ8Ead41LnyUP9a/l5xbwo4CWtXAVEIIWAbIOrEN64L?= =?utf-8?q?LpVvoQm+6lum/LPRgALz6I2Z/KOW75GZcq3A7R3+7geJlz+/PSrr9ylz/OeIdzyMr?= =?utf-8?q?Q/RH9EY5ahvN++/rppmBITVTmz19ezzgmXJIZm9cAWLgH65a4NsjgtpMvuRB+addv?= =?utf-8?q?XVyGxfvE7AQc97F1SSfBH0MQxkyacisPUWUElf6CHANhGHab8kfP83j74xfFwNC20?= =?utf-8?q?NUnl6bYjNmavJhZQ8wKgQK/vWCmziY/6tjA6R2xEiRvqfy7I3CkEEyP1m36/zIcrO?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I;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?X3pm3+Cakf+VGULfoeF1ovULID2y?= =?utf-8?q?3/yxyBu7Yvkyz6p3NEKykc3s173iEwMHm44wisvq41oy/+X/ZDfEjLmh14vhHejl0?= =?utf-8?q?QWpYhfNezj2GgkGbyGmNIDiRzDzhN3vZG6mEns9ifqB45pPhHuknfJJDMlg2mu7VC?= =?utf-8?q?biRn3xJV4YXSrh8BLfkPAxTtYZW69Urvi3EsI7lLYEfgZkL4vdnoceoHEElUsiAks?= =?utf-8?q?8T78/NnQuTfB7zDpHlhS6a33PdsFPrfjTzwZ2WOMUGWSHeOc4jmIQB5og5PqJs5qy?= =?utf-8?q?vF/Hch9zs7R2Vpa4GUh+tqqyyf2MPlGWqcpls9eco5JyBBiux9EuxY/4MbtlQvFFG?= =?utf-8?q?XUUxE52xR/bgfWkAUej17L31P1e0RrhfdP3XNZgGwV3KEQLoLu2SHbxJ7zBFYx25X?= =?utf-8?q?2QnowPJIHgtnHPScqhM32IfMfMvC3RSJSFAI18bQpeNZ5876Y2Y0VI3129FuoTJmY?= =?utf-8?q?HdXgJWUfAYRXm2/ttd3q0DVnFHdmKxo6MiUWGV0EGhLXI9z1pT80O/eLf6NCtgu40?= =?utf-8?q?b8pHmmv8t5fIuBZvJzBU/fH7c1XBDEF4jRNDNtZcJ+Ob3s0NmJkMk5eLMS30ontx8?= =?utf-8?q?gSNdDtau5v4qu5K5irIZQBSPlLbOwUee4wzR6l4m0GzbwuWe92gcqj4weeQxr+MD+?= =?utf-8?q?AKv0TxhF77thb53Uw44Gp1PlWjPv89UloMq2bRUG5vzuUtZFFzsx2XQD2nJlOn/pW?= =?utf-8?q?CNDwah3l7WeVgMSpnengWHZo8gQSBRbPCc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rossTenant-AuthSource: AS4PR04MB9550.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2024 10:24:44.0651 (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: qzMoRBDpmyHxPPmySjm0PvEzXDY2ZNK0zfkhfY7N4ljuH3SaKC+l6xXMwkUX8sorq+dtaX9kaoYmmru+ZbOm4A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA2PR04MB10187 Introduce the compatible strings 'nxp,s32g2-edma' and 'nxp,s32g3-edma' to enable the support for the eDMAv3 present on S32G2/S32G3 platforms. The S32G2/S32G3 eDMA architecture features 32 DMA channels. Each of the two eDMA instances is integrated with two DMAMUX blocks. Another particularity of these SoCs is that the interrupts are shared between channels in the following way: - 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 Signed-off-by: Larisa Grigore Reviewed-by: Frank Li Acked-by: Conor Dooley --- .../devicetree/bindings/dma/fsl,edma.yaml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/Documentation/devicetree/bindings/dma/fsl,edma.yaml b/Documentation/devicetree/bindings/dma/fsl,edma.yaml index d54140f18d34..4f925469533e 100644 --- a/Documentation/devicetree/bindings/dma/fsl,edma.yaml +++ b/Documentation/devicetree/bindings/dma/fsl,edma.yaml @@ -26,9 +26,13 @@ properties: - fsl,imx93-edma3 - fsl,imx93-edma4 - fsl,imx95-edma5 + - nxp,s32g2-edma - items: - const: fsl,ls1028a-edma - const: fsl,vf610-edma + - items: + - const: nxp,s32g3-edma + - const: nxp,s32g2-edma reg: minItems: 1 @@ -221,6 +225,36 @@ allOf: properties: power-domains: false + - if: + properties: + compatible: + contains: + const: nxp,s32g2-edma + then: + properties: + clocks: + minItems: 2 + maxItems: 2 + clock-names: + items: + - const: dmamux0 + - const: dmamux1 + interrupts: + minItems: 3 + maxItems: 3 + interrupt-names: + items: + - const: tx-0-15 + - const: tx-16-31 + - const: err + reg: + minItems: 3 + maxItems: 3 + "#dma-cells": + const: 2 + dma-channels: + const: 32 + unevaluatedProperties: false examples: From patchwork Thu Dec 19 10:24:13 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: 13914925 Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012012.outbound.protection.outlook.com [52.101.66.12]) (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 479F12236E8; Thu, 19 Dec 2024 10:24:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.66.12 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734603891; cv=fail; b=P3FOBiG7nCEwQlI6a/b/5F1fbk+BScfOEzHm0gVEYoMyKJSMYM84oqKoR4XTgTfYoktMav2qFmmdBMYGNFIvIF5kU9q84la8GZo4aB/Rg+ZGYWbA5f5xYcxpCae2LVdJZzTxuFT7AhhgFiv+i8RH26ceNFzoThRibuMTG3exNKU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734603891; c=relaxed/simple; bh=HmGCBiXoSrLxJwMM4N4YHRHB1wg19cbqt0DXJEaz1TQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=Iy7Coy8i2lUojIMUOTs0ubIVZakgJPoKfY4r44CVMWKPI77xsPeM9We1CM4IY1J00BqyL6v692Qjqi/35UNkQ+i2FQtZU1Ic4tfeLpJmM4YGQNHzPo1+sGbNAXncyJBGHCys6yni6b3tiTt3oPkG9Y1nCi0Py9zzSZ85kLqJszA= 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=M4q4XFHG; arc=fail smtp.client-ip=52.101.66.12 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="M4q4XFHG" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hEaAeeLyYRmOkZDADYXXDLacjBFELzIxnM46zMULprRV1cZQw2A3Kak5XSJJhM8MIH5R2RLNCqJ0JFHON+CjNQ0KsGnvJZZri0Z0XAzHaGLTIOgfav7XDOw43/yaIEpk+Pr5DlIad8YRjav+F/QrKA9Rr/fErEBGqaS29u3PqtoIinnBimmLvRWJ8eO6Wv58wAXa+hz5Rjd4IOzHjxc2ZdMkASeAyIsrRmUnmLEqv4PBJQRwjFnbQ6JX7zx79EKCmZatuQ1eHp+kONv+RDVg3F/N2b7sF+69j5brCBQBiw5LZrR1+CYiq0mxzKJS3erILMx/KbLDd/KWyKNDysRgrQ== 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=Mc/TtVZP9h6Q5W2GpYNktrmwxyrCTzOZfm5JA7UiZkg=; b=oySR8y2YhS4vVGwN/IDWsyGEWS1rCWIxxjuYYkbHaj59yytu5/aH4s1xOzLsC9K90JmqeramnAHCQVvnqEeQ2js8WPLyblQ0D0jfIaaj1oVso80+JvmqlALOk3rQcttcLNF2pvtLHrvnGXdG7QXLMcfE6kIsnaQHWM+TpZWbBJCvJc97DxNsHZ0SwAPXG66w+z6BGCWf0Rg5S6gKMOd1NTMViSy9//BKNEnHgmPnTlIGWOzBwsZl9NOXVUC0099KqN3AQ4+6uzUoKFcxyQN1UkMr2ENOYpWGtVz/BwCslophZl3Wh48FD6uU9oyLYpWSVzWgg2XHNrujLxrNwMfzIA== 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=Mc/TtVZP9h6Q5W2GpYNktrmwxyrCTzOZfm5JA7UiZkg=; b=M4q4XFHG3ns2aEKmw1kRl++R6YGtEArRRKslOaXuIT+t/OU1F+vE/e1/0aY+G9GwReFQFNvS4H1pTe38PtrPqbq6KWtWPKlgC1Kzt6FzJsmWQnQ/gXcPUo04UGNb1r/4eJYCX6JKiSkaKKkbFKx5v9EYuCH5qH70p4fm1Vbq4LpRmN0R3ZghEA7hQcleFDdWrxIY/Zkp5D/CNBG/pFsjtRysmhuAPqFIvxWQZkaik3L04fSpwqfDFBzXPR8Bq5sXGwlb0b5yLhyvTH8U3dlrrcIdG5rF8jpCP/Tp1St/haNy+a8e8QRz4H8WCFEncPKWB+k+zslbi+LjR7sOmDR41w== 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 GV1PR04MB9101.eurprd04.prod.outlook.com (2603:10a6:150:20::12) 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:45 +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:45 +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 , Ciprian Marian Costea Subject: [PATCH v3 4/5] dmaengine: fsl-edma: add support for S32G based platforms Date: Thu, 19 Dec 2024 12:24:13 +0200 Message-ID: <20241219102415.1208328-5-larisa.grigore@oss.nxp.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241219102415.1208328-1-larisa.grigore@oss.nxp.com> References: <20241219102415.1208328-1-larisa.grigore@oss.nxp.com> X-ClientProxiedBy: AM0PR04CA0112.eurprd04.prod.outlook.com (2603:10a6:208:55::17) 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_|GV1PR04MB9101:EE_ X-MS-Office365-Filtering-Correlation-Id: 46d9ddab-7e76-484c-5b78-08dd20175be9 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|7416014|376014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?= =?utf-8?q?n+FldZNA13+AIVcfEr79XKdOusawm89txchbtQ06w22BjZCiGdz8bCKlArW1gW7sP?= =?utf-8?q?Q3F1925kI0HWJO6xJTObdUX6o4EtKBg0faZdI8PWftELReaIdDZn0PV4YGs5xDWWt?= =?utf-8?q?6aAthKz9G2HCCJvhGVSFzt8AHnCM3a2yeZXKVlUfXjaC9U6W+MtD8nYe7GoFZSUAO?= =?utf-8?q?H2nCnfbMKtkVdia/XVPik2MjvEiy6G3YPIFyhxK66KqCwFwtiVI+nNnbPrbKZseAf?= =?utf-8?q?CWKC+Oa0xMdbCwUwDcMKu0yBDKVvnaImY91aI+iEHYZveMBwTyS8pv5o7Jk23MVud?= =?utf-8?q?WpwFu0BgODAxcWp2/naJ3WV1t3C7AIC3Mpc+2BTJ7f4nInen6nfjU5XhDAo+AoeWH?= =?utf-8?q?UFbJFtlq8GFyjRsXjXxcnY9vc7gBUlF8Mmb64ftee+6Kk6/BnWZgHgkMh+UpOznel?= =?utf-8?q?YCfhsFsy1FyYmHkJbytYVvFdpMtqs05EPURKdW9xtfjbGGlldLFBaq4+6Yn8s7KIM?= =?utf-8?q?/E4mIG4640LV?= 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)(7416014)(376014)(366016)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?rYGr0rkXCfqxb2LRl/QsGva/6SUl?= =?utf-8?q?GvWqgLxPxFqulWUiGqlFhXiaR3hnkslU+5yQpu2iBnHsrZrcvC+fym5hx4ccT4kyC?= =?utf-8?q?I7MIBrhdPcchNa9OCWBI0AnGU3c/+QTqlxscPoSrlSmtlxKcwWFgl+R8IIXWWM3GL?= =?utf-8?q?xjfQjaemdy8TNyQV2/i905d8M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gQY7i73bycVQWZDH5Gjk+zkMab4K+pQ7oTH?= =?utf-8?q?kneP6Iv7yleDunIub5Su88PuTSe23vQKH+AE+2TCBInnU/BXag1kFxsWP0IgTvxJQ?= =?utf-8?q?TxqG3GTFJliKWVE70w4RUby58Cb91G4pmeOfwGJAndw3L4M9wUWICCDsqn2g3nq1X?= =?utf-8?q?rCfNffZ7wqhPtdifK5k78MnWTFl32iy91RlzwQ+5ft1Ba99nQi9Em+sS3OsbAo0JW?= =?utf-8?q?q7Brm2M6EsBqDW7Q0xlvpNvaWsjuhoyKp9LHdKcUT8n+NlU3ICyknhRA0DPJocdzQ?= =?utf-8?q?8gR1L9lDdKjbdMRDUDmvC7sDez1PG4lE3VBxvGGO8pqWF+Rox9UccBxfqf2wBNonQ?= =?utf-8?q?DoIok8Ln8QpkSIktgRxL8WBRiyr0DTqIfqLKhprUI7CCmpPQN04Q+PuHqFV2FFh62?= =?utf-8?q?2DniXG87mu903NgjrFcV5UQGHMtJD57DDzg9tGOzhrV1+J0Ylc+SaeDGhEXf0W0rb?= =?utf-8?q?UbkAtABOSM7W?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 46d9ddab-7e76-484c-5b78-08dd20175be9 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:45.5951 (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: u4/DGw5ME13dXBR4/SRM0HkmnP0nLFmWSyGTe78ggMhVIv/dGBp9C1/Uon0SJQQpy5uAOCSkRHw7HPLIxv+ITA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9101 S32G2/S32G3 includes two system eDMA instances based on v3 version, each of them integrated with two 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 Signed-off-by: Larisa Grigore Co-developed-by: Ciprian Marian Costea Signed-off-by: Ciprian Marian Costea Reviewed-by: Frank Li --- drivers/dma/fsl-edma-common.h | 3 + drivers/dma/fsl-edma-main.c | 109 +++++++++++++++++++++++++++++++++- 2 files changed, 111 insertions(+), 1 deletion(-) diff --git a/drivers/dma/fsl-edma-common.h b/drivers/dma/fsl-edma-common.h index ce37e1ee9c46..707fea4139b6 100644 --- a/drivers/dma/fsl-edma-common.h +++ b/drivers/dma/fsl-edma-common.h @@ -68,6 +68,8 @@ #define EDMA_V3_CH_CSR_EEI BIT(2) #define EDMA_V3_CH_CSR_DONE BIT(30) #define EDMA_V3_CH_CSR_ACTIVE BIT(31) +#define EDMA_V3_CH_ES_ERR BIT(31) +#define EDMA_V3_MP_ES_VLD BIT(31) enum fsl_edma_pm_state { RUNNING = 0, @@ -240,6 +242,7 @@ struct fsl_edma_engine { const struct fsl_edma_drvdata *drvdata; u32 n_chans; int txirq; + int txirq_16_31; int errirq; bool big_endian; struct edma_regs regs; diff --git a/drivers/dma/fsl-edma-main.c b/drivers/dma/fsl-edma-main.c index 9873cce00c68..c9e3252d0da0 100644 --- a/drivers/dma/fsl-edma-main.c +++ b/drivers/dma/fsl-edma-main.c @@ -3,10 +3,11 @@ * drivers/dma/fsl-edma.c * * Copyright 2013-2014 Freescale Semiconductor, Inc. + * Copyright 2024 NXP * * Driver for the Freescale eDMA engine with flexible channel multiplexing * capability for DMA request sources. The eDMA block can be found on some - * Vybrid and Layerscape SoCs. + * Vybrid, Layerscape and S32G SoCs. */ #include @@ -72,6 +73,60 @@ static irqreturn_t fsl_edma2_tx_handler(int irq, void *devi_id) return fsl_edma_tx_handler(irq, fsl_chan->edma); } +static irqreturn_t fsl_edma3_or_tx_handler(int irq, void *dev_id, + u8 start, u8 end) +{ + struct fsl_edma_engine *fsl_edma = dev_id; + struct fsl_edma_chan *chan; + int i; + + end = min(end, fsl_edma->n_chans); + + for (i = start; i < end; i++) { + chan = &fsl_edma->chans[i]; + + fsl_edma3_tx_handler(irq, chan); + } + + return IRQ_HANDLED; +} + +static irqreturn_t fsl_edma3_tx_0_15_handler(int irq, void *dev_id) +{ + return fsl_edma3_or_tx_handler(irq, dev_id, 0, 16); +} + +static irqreturn_t fsl_edma3_tx_16_31_handler(int irq, void *dev_id) +{ + return fsl_edma3_or_tx_handler(irq, dev_id, 16, 32); +} + +static irqreturn_t fsl_edma3_or_err_handler(int irq, void *dev_id) +{ + struct fsl_edma_engine *fsl_edma = dev_id; + struct edma_regs *regs = &fsl_edma->regs; + unsigned int err, ch, ch_es; + struct fsl_edma_chan *chan; + + err = edma_readl(fsl_edma, regs->es); + if (!(err & EDMA_V3_MP_ES_VLD)) + return IRQ_NONE; + + for (ch = 0; ch < fsl_edma->n_chans; ch++) { + chan = &fsl_edma->chans[ch]; + + ch_es = edma_readl_chreg(chan, ch_es); + if (!(ch_es & EDMA_V3_CH_ES_ERR)) + continue; + + edma_writel_chreg(chan, EDMA_V3_CH_ES_ERR, ch_es); + fsl_edma_disable_request(chan); + fsl_edma->chans[ch].status = DMA_ERROR; + } + + return IRQ_HANDLED; +} + static irqreturn_t fsl_edma_err_handler(int irq, void *dev_id) { struct fsl_edma_engine *fsl_edma = dev_id; @@ -274,6 +329,49 @@ static int fsl_edma3_irq_init(struct platform_device *pdev, struct fsl_edma_engi return 0; } +static int fsl_edma3_or_irq_init(struct platform_device *pdev, + struct fsl_edma_engine *fsl_edma) +{ + int ret; + + fsl_edma->txirq = platform_get_irq_byname(pdev, "tx-0-15"); + if (fsl_edma->txirq < 0) + return fsl_edma->txirq; + + fsl_edma->txirq_16_31 = platform_get_irq_byname(pdev, "tx-16-31"); + if (fsl_edma->txirq_16_31 < 0) + return fsl_edma->txirq_16_31; + + fsl_edma->errirq = platform_get_irq_byname(pdev, "err"); + if (fsl_edma->errirq < 0) + return fsl_edma->errirq; + + ret = devm_request_irq(&pdev->dev, fsl_edma->txirq, + fsl_edma3_tx_0_15_handler, 0, "eDMA tx0_15", + fsl_edma); + if (ret) + return dev_err_probe(&pdev->dev, ret, + "Can't register eDMA tx0_15 IRQ.\n"); + + if (fsl_edma->n_chans > 16) { + ret = devm_request_irq(&pdev->dev, fsl_edma->txirq_16_31, + fsl_edma3_tx_16_31_handler, 0, + "eDMA tx16_31", fsl_edma); + if (ret) + return dev_err_probe(&pdev->dev, ret, + "Can't register eDMA tx16_31 IRQ.\n"); + } + + ret = devm_request_irq(&pdev->dev, fsl_edma->errirq, + fsl_edma3_or_err_handler, 0, "eDMA err", + fsl_edma); + if (ret) + return dev_err_probe(&pdev->dev, ret, + "Can't register eDMA err IRQ.\n"); + + return 0; +} + static int fsl_edma2_irq_init(struct platform_device *pdev, struct fsl_edma_engine *fsl_edma) @@ -404,6 +502,14 @@ static struct fsl_edma_drvdata imx95_data5 = { .setup_irq = fsl_edma3_irq_init, }; +static const struct fsl_edma_drvdata s32g2_data = { + .dmamuxs = DMAMUX_NR, + .chreg_space_sz = EDMA_TCD, + .chreg_off = 0x4000, + .flags = FSL_EDMA_DRV_EDMA3 | FSL_EDMA_DRV_MUX_SWAP, + .setup_irq = fsl_edma3_or_irq_init, +}; + static const struct of_device_id fsl_edma_dt_ids[] = { { .compatible = "fsl,vf610-edma", .data = &vf610_data}, { .compatible = "fsl,ls1028a-edma", .data = &ls1028a_data}, @@ -413,6 +519,7 @@ static const struct of_device_id fsl_edma_dt_ids[] = { { .compatible = "fsl,imx93-edma3", .data = &imx93_data3}, { .compatible = "fsl,imx93-edma4", .data = &imx93_data4}, { .compatible = "fsl,imx95-edma5", .data = &imx95_data5}, + { .compatible = "nxp,s32g2-edma", .data = &s32g2_data}, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, fsl_edma_dt_ids); From patchwork Thu Dec 19 10:24:14 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: 13914926 Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012012.outbound.protection.outlook.com [52.101.66.12]) (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 CDD2222371D; Thu, 19 Dec 2024 10:24:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.66.12 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734603893; cv=fail; b=g2A/SfYL2yPFVHdelZpUcSRdg76DNhESGf27u3WqSNALcE6lHUzCshAIexS27oFHKN1VzKeAQLe/flpKpLbaiMg6aPy1d4m+QMUjzENyZrCdXxjX4ucsFpf/rc49wwwqr2ypBEk4fYYMyBWUNVhnYKlOaZTaRt7Ec/KswLEUBgw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734603893; c=relaxed/simple; bh=+EQjfRbS6pUksXCoo1RLf9J4Wu9HOahBDCktosA7hy0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=RdnmI/6l1dq65PbKUxhyRF1Vg0IGnF7ng9JZUIe4awOB2Obn4uVAdBmf2aZL/dH5HW8tVtRclHSRYyTSdbCfWrusHUpmKc2PywrGhnpzwX8bJksziTQoNd5NZIckTFh6e6L4uiHMSjzJr+wgwkR0hE6xRUwpur2TF2xlEZL5ZWI= 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=awxLHmNb; arc=fail smtp.client-ip=52.101.66.12 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="awxLHmNb" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=JYNhHNBEHULSZ8okSKEjebAClsgRuNfm/cskwgji6u6j0s7kWu0yvxOXRJX49/FoeowskZ4BQb9NtwqbUnhzmZ0P/OTKtGXGu3YfDBURosOvzPyVKt4Ph/ayZzvTWelnjBcQNjcN8VRwNmmI2kmoHySI/MMtDGQq1dDyqXfuJzFyy6Xzl2GbQJ4P8xiIp3qXZIMdWoTQofLMRIB+RnK3rrWHMLMi/uou4VKWFz0Hsex25TEt1/D+/xVoh37RsLoXCoK1wec1yiHrXnRFnIUOywrzRcA2G8r8q0VAmV467K9GAIIMCY/2I45FPafVSSZ2SkyTmvtaA0PDsr4nZowHUg== 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=Pfq1ciCyrr52NINz2DKlSeJUJzmw6YcZSgtL8D3O6LI=; b=IBWFVVgfx0z1OAE4Y/O7gAiRvShb+ZjssBfjiweuGH+cK13Zddu5PGfytb9FRTJVtxbJN0JCshpibbNXKftNbp3181VNlG9G1C3rcYhs5pFlsAkKo0IFH1Uw/px/LXNWALTmWmNYCETUSOlWh7vgCaAoUpx+EfcHb4BTsC26ZyDKqpebNzrWfYOB29nWQM85LPmrAjnfeREyHS3Wo1TrrzB6RHiGMhiuY9xjrYzfFeAkVqJ503VMEb/8NKKtFn4HSOjF+g/Vs7zAMvgyXKeRPgxk/A/MuO5EyirB+Cqvs7ESdUPMcKvIBdAdD/z9LrYb9Z+ncgfQXs5ZNAVn7AAgqw== 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=Pfq1ciCyrr52NINz2DKlSeJUJzmw6YcZSgtL8D3O6LI=; b=awxLHmNb1CO3zIJVch//lBv02mxoQ/oJcgrE6Aq2a43/6i/H5nelR01rSvk0yrf1wZJO7s903ZT+aWuoz+QQuRDQXPYE0qOiFAl7g+2Rp8Sc4/3R5wwUjr0V+LhQnlaiKZGpx1L9Y20PzPEYnD8yDvUtZQetJ3PYl1YQD00lprPjqcdU6sYEr/A3NS2A7WvxMDyXUt3VNAvRjrgzle/iwZd3WViyUYvU13/IOLVmKQ7zsmWbzoRO57ooIRQTQZUoi8V5ZtW+6dLegnJLEbfgidn508yRQ5NQL6/0Pu/+INSsDqCxfbBU/JDeOGSenZI8z2dZ8wcWvShZvJqBiGH8AA== 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 GV1PR04MB9101.eurprd04.prod.outlook.com (2603:10a6:150:20::12) 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:47 +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:47 +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 , Alexandru-Catalin Ionita Subject: [PATCH v3 5/5] dmaengine: fsl-edma: read/write multiple registers in cyclic transactions Date: Thu, 19 Dec 2024 12:24:14 +0200 Message-ID: <20241219102415.1208328-6-larisa.grigore@oss.nxp.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241219102415.1208328-1-larisa.grigore@oss.nxp.com> References: <20241219102415.1208328-1-larisa.grigore@oss.nxp.com> X-ClientProxiedBy: AM0PR04CA0127.eurprd04.prod.outlook.com (2603:10a6:208:55::32) 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_|GV1PR04MB9101:EE_ X-MS-Office365-Filtering-Correlation-Id: 1c63b1b0-21a7-42a2-cdb5-08dd20175ccc 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|7416014|376014|366016|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?2E1RoAgCT0G7+FP4OdCP/y2LjnLCVzp?= =?utf-8?q?JF3lvLhBQVJz8Z3p9dSBbWESnlHmgXXF6sWOMPHULWGpphOfNwEKWYFkBoaMDwXwX?= =?utf-8?q?PNOLphDUoXq8SrZW3PxDGqBwkWV10e62/mX+Vhav2idH+cHc3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yrDg?= =?utf-8?q?pKhE+Sb2ihCwWayiu59Payv7GZjHHpJ65nVE9+KcNjirI0xdpwbQUx1wpY6tuxNJO?= =?utf-8?q?nR7AmdJKGURhpl9H4VXHUC6iZC4pDzR96piomNhQVBCRC98DnB7rdUzwtOePqUZp9?= =?utf-8?q?BUFhj7XINspi1cxzIKD4xEqI4aoqRBjG9Yz9jRnDf7dkZJWPRwTA4JYYw7mFTCOjQ?= =?utf-8?q?Isnkjvs8KwZ1scVM1Fopc8QMfEJEc8KQeiL3KGEtaJC1KfWQ6BHwNc7KzUWW7MXmp?= =?utf-8?q?Z2IVbjAKcP7oxwMGhd6nQe1TUP8ObGAdcViv1PDkyyDa5ta39GiuK/q8VBV+oHts7?= =?utf-8?q?5MihLd74woK9?= 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)(7416014)(376014)(366016)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?KTfuvgJ7ECLJEVA4Bau76IcZ4Umo?= =?utf-8?q?M8uKil396dsiRUjf4sEaZHqV3VkFAjdWXS8bGquqXgAd/DvFi8tP6/JBcOBrCskme?= =?utf-8?q?XVjP1mrg12jr+PTag4EXY9gqVs04bE8Nh0lwIvEpfXk6s51/jC8kI7LFL/z+VQJnv?= =?utf-8?q?cwKUJHhcUBWwHrjPrSiC1fJjEcmRs+nBOmyL6sFbMvZMMlKE11pncPAXRCCzqSAC6?= =?utf-8?q?FbmhnZ2NPjxF2vpfHblXyWFb2+O+g1sCmKh7X6Bl/OTKpGdolemCIKBmScC0s2doG?= =?utf-8?q?Rf2UVzDSMZpSdwSY9Ao01+f7KQKKDmW6OrK/x5/eksBcvgI/+Ayvhu5f0pEZZZEu0?= =?utf-8?q?se2jzW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G7NYDKiKcco/bLJS7T88P67mkjjzLwhcW7b0lmFWYVL+fFwu/e+anB9Ra5hTKAYW?= =?utf-8?q?OaQxB58ITC7fx4y8nyQcj9dYqnRN4pb+DlrEj9pbrJ2ZoIMaYIER2qwRi7N83rKH2?= =?utf-8?q?Vj4ZoVsknX0Zcj2lD+QHQjUMr1Jz7p9vfHG1yqDiBjBJWEJGSE9VLEI9RcJorKs6W?= =?utf-8?q?ROhXDgtJftQnwkZcMt3LJEvhZYPAE3tDNvXkRilLNgpUSM7KICXrXcL3VX+66GA9H?= =?utf-8?q?7jfGV4tt9LuI6mu3QZYx5Hwrod3DUxNFRgkOeKMod/6c6mwykY7tu3gMELUiimFGN?= =?utf-8?q?wek2DmCdImRS?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1c63b1b0-21a7-42a2-cdb5-08dd20175ccc 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:47.1565 (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: KTRmVZaGULAXQzKgQoLRur+6ta1Z3mTTrUAu9qyi//EmGtMgGCUDrhz7RomAcoXjfs3G8Clq8CrdFX0uVLjLeg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9101 Add support for reading multiple registers in DEV_TO_MEM transactions and for writing multiple registers in MEM_TO_DEV transactions. Signed-off-by: Frank Li Co-developed-by: Alexandru-Catalin Ionita Signed-off-by: Alexandru-Catalin Ionita Signed-off-by: Larisa Grigore --- drivers/dma/fsl-edma-common.c | 36 ++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/drivers/dma/fsl-edma-common.c b/drivers/dma/fsl-edma-common.c index b7f15ab96855..443b2430466c 100644 --- a/drivers/dma/fsl-edma-common.c +++ b/drivers/dma/fsl-edma-common.c @@ -480,8 +480,8 @@ void fsl_edma_fill_tcd(struct fsl_edma_chan *fsl_chan, bool disable_req, bool enable_sg) { struct dma_slave_config *cfg = &fsl_chan->cfg; + u32 burst = 0; u16 csr = 0; - u32 burst; /* * eDMA hardware SGs require the TCDs to be stored in little @@ -496,16 +496,30 @@ void fsl_edma_fill_tcd(struct fsl_edma_chan *fsl_chan, fsl_edma_set_tcd_to_le(fsl_chan, tcd, soff, soff); - if (fsl_chan->is_multi_fifo) { - /* set mloff to support multiple fifo */ - burst = cfg->direction == DMA_DEV_TO_MEM ? - cfg->src_maxburst : cfg->dst_maxburst; - nbytes |= EDMA_V3_TCD_NBYTES_MLOFF(-(burst * 4)); - /* enable DMLOE/SMLOE */ - if (cfg->direction == DMA_MEM_TO_DEV) { + /* If we expect to have either multi_fifo or a port window size, + * we will use minor loop offset, meaning bits 29-10 will be used for + * address offset, while bits 9-0 will be used to tell DMA how much + * data to read from addr. + * If we don't have either of those, will use a major loop reading from addr + * nbytes (29bits). + */ + if (cfg->direction == DMA_MEM_TO_DEV) { + if (fsl_chan->is_multi_fifo) + burst = cfg->dst_maxburst * 4; + if (cfg->dst_port_window_size) + burst = cfg->dst_port_window_size * cfg->dst_addr_width; + if (burst) { + nbytes |= EDMA_V3_TCD_NBYTES_MLOFF(-burst); nbytes |= EDMA_V3_TCD_NBYTES_DMLOE; nbytes &= ~EDMA_V3_TCD_NBYTES_SMLOE; - } else { + } + } else { + if (fsl_chan->is_multi_fifo) + burst = cfg->src_maxburst * 4; + if (cfg->src_port_window_size) + burst = cfg->src_port_window_size * cfg->src_addr_width; + if (burst) { + nbytes |= EDMA_V3_TCD_NBYTES_MLOFF(-burst); nbytes |= EDMA_V3_TCD_NBYTES_SMLOE; nbytes &= ~EDMA_V3_TCD_NBYTES_DMLOE; } @@ -623,11 +637,15 @@ struct dma_async_tx_descriptor *fsl_edma_prep_dma_cyclic( dst_addr = fsl_chan->dma_dev_addr; soff = fsl_chan->cfg.dst_addr_width; doff = fsl_chan->is_multi_fifo ? 4 : 0; + if (fsl_chan->cfg.dst_port_window_size) + doff = fsl_chan->cfg.dst_addr_width; } else if (direction == DMA_DEV_TO_MEM) { src_addr = fsl_chan->dma_dev_addr; dst_addr = dma_buf_next; soff = fsl_chan->is_multi_fifo ? 4 : 0; doff = fsl_chan->cfg.src_addr_width; + if (fsl_chan->cfg.src_port_window_size) + soff = fsl_chan->cfg.src_addr_width; } else { /* DMA_DEV_TO_DEV */ src_addr = fsl_chan->cfg.src_addr;