Message ID | 20240419150729.1071904-3-Frank.Li@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 09113C4345F for <linux-arm-kernel@archiver.kernel.org>; Fri, 19 Apr 2024 15:08:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=lgzTj4FxbD6PcRuOdIDJApihqB+52EbzZE2gcqdqQ98=; b=w0erFG6WhknRNm y+ewS1T8wr6eCYEBamaynHb1xpgLKVcMLT492Jo4gXbh1uRw6SnzlLkyq+TKP5JQnhbJ6O1GoXFh5 wLZex5oenRa0FfjATeQzjYj1+1FWenmV9gSwJg01Wygg/9rzc6rXIN7QYJ76lXZwHEjdO842wPZAC 6NH8DJkGsqdRf3OHQ0i5oWMl/BSttU3fx8cGhjeQMEOp4YP/Jk7cGhe22a+8OoipwjZJlZkgydu0q mkUaMfYPZJdrt68fYDGAQUDHmBLXP1maGEnPrhThmVjbRwBA6LpNUhxvejlNRZUmFpyrPD3arTFB8 SJozRX0UPyGcAoWAImJQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxpqb-000000065MP-2TuP; Fri, 19 Apr 2024 15:08:17 +0000 Received: from mail-dbaeur03on20601.outbound.protection.outlook.com ([2a01:111:f403:260d::601] helo=EUR03-DBA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxpqS-000000065EX-19aP for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2024 15:08:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AQ6RNMrnbt54+xxRKA/kS0gdjRGI5g/uhzoosDNV8zZqJFLHN/xfPM3in79gRiutO+ej67y5kAt9UBkec4nPoA7OyZLj9zMLidz5JIGZKjcVsKZ7jdbgzebDC75Q2sXnr6NW5TsxZS5jlwT9NnvdFcMuLArW1TRteNW/cZNu8ggxddogK7g0cDfXQn0oo9Pxrx33VM/wKa4vo87azpBIEGMB++cQTrx2e0KcVafuJqLJMpaUnjl4cmgcdAnKKeZQy5vcnzgXs+iizznCp1y6UT5VgP9ta/rYP+1/zEJI0YupbepeGmIAuocOZ7FAZMKqHZzwgbWy6D96cKyvJHjT3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=dP9ldxWobQvZm9Bq9rd9KDqKFZ6xZRce7132ihwTtOc=; b=RSSi89DwPIm9eI9fpRyKSWZDAVITrMBdCAxd8SZarFBKhs38+GUctpsKip9IHIb2P9o9MlrbRyRbweqVSGse4Pysco3cXzpjPze6QfQLli/egCTvfgxMp68uxsN1MNfEhbQJmaiNUtz6urdV1jo/L9wpeOIcjPQA7kzyUEhUJ/uY0X8cQZsErlOB9Eb61bIQ2rf4sYwAlmsj58/M3QxUHuzTuETi7B/cjiCtNKLI79zzDhbklcHVhGGlE5zlzu44uIeYwhnwlkGWJbV9V9nfULyt8/ASgKQoy1bqznFeDBwAjOuzsQFflt5zl/lvM+gISPBYeUAdkrfhDjsdR+mhgw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dP9ldxWobQvZm9Bq9rd9KDqKFZ6xZRce7132ihwTtOc=; b=R4hnQj/67GzDhEbUy8CWhB+F3c1yerc7UenamvLIZyJWB684t7e831K5kEDAwvl0/UlqECgWS3RTSk4a4kq0jOU70RgYC+ZGWJiT1/s2SF/Jvibdg92SDs/erCSf65P0yVLxx4T/OZsTIfMVxdT4tRP4synE352nAcNC5pYxdFc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by GV1PR04MB10330.eurprd04.prod.outlook.com (2603:10a6:150:1cf::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.39; Fri, 19 Apr 2024 15:07:55 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::1e67:dfc9:d0c1:fe58]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::1e67:dfc9:d0c1:fe58%7]) with mapi id 15.20.7472.037; Fri, 19 Apr 2024 15:07:55 +0000 From: Frank Li <Frank.Li@nxp.com> To: vkoul@kernel.org Cc: Frank.Li@nxp.com, conor+dt@kernel.org, devicetree@vger.kernel.org, dmaengine@vger.kernel.org, festevam@gmail.com, imx@lists.linux.dev, joy.zou@nxp.com, kernel@pengutronix.de, krzysztof.kozlowski+dt@linaro.org, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org, robh@kernel.org, s.hauer@pengutronix.de, shawnguo@kernel.org Subject: [PATCH v5 3/3] dmaengine: imx-sdma: Add i2c dma support Date: Fri, 19 Apr 2024 11:07:29 -0400 Message-Id: <20240419150729.1071904-3-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240419150729.1071904-1-Frank.Li@nxp.com> References: <20240419150729.1071904-1-Frank.Li@nxp.com> X-ClientProxiedBy: BYAPR21CA0008.namprd21.prod.outlook.com (2603:10b6:a03:114::18) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|GV1PR04MB10330:EE_ X-MS-Office365-Filtering-Correlation-Id: 9a55c037-caef-49fe-d857-08dc60827e09 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FWA/jDp+TsQCcfZD1A2hWfLnaaoTMpN65+juV9nCpdkC4TeuTdzGvJ20hjjRYHk1Z2Uip5LwUZexu8JTjsUOa4EEKHIaTEBsoGdfMZKNlMf0g21/3A/OAerCZIN67bYZIDg/X5EH1GzjvC86Q/mtxHrdOsnFFMP4o8oPFutX9fXgbmMFiAmpamK7PyobT8OALo79jwlvugm9zfvlj9Cru8BkwJ34ETtFd0nFyEpzRFrPBCZVvPQECJNcem2C7pyUVaR1xhWrtG+rZ8g5ENgBxTQBrNth03JaqcrShYQmpRhoIhne4Um74EItG1HtxKFtNZAzF5/hgPvjopG0SMLbdcb/BWHDxuvF/EMpU2Rm3wK69jycxJyHhellJ65wrXDY+qwKQMi3mu5JNU+gzBWQap2rUOYtvWQMaw0L/h6fBmhFDRKMCRM59VgcLvFbAlKdGXG2ElWKSA9g5Y+8VT8+IHMwj1i3g/yKyK6kWEnsYMNSy8PrUWfZ6hxsFN8DpUbpu2RyCqZdX1ukjNI2MF2G4SHeWXnMuuku3m9crAyrOqHUG9Zsu+i5fMU5j1wJXgAnSQl+Zq+TxBGrm8mQRVEr/jovFtpJbIt8Idqbm7D5Qwy/45bQkjjHMkmwJcVX+pv97kU8MOT+5zSYNJjq/ICmcn/T3b0y6fE1avQdHWhjKYeNfhCOpLuJWOVqQZ387tvbeq1vMwMCYaLIEgbTR7s+2nZOvO2UHuMcpj7Hl45Kb3gJTGz3E68WncCLdCO84edRl8lGIQb7Cyi5o9htAutkIB7ZKOX6giDBTSyqcH4EVqYMEbYcV2DY/lP9+5R4ZAylK0rzZI8MfeRBphOrD1hU1ufl6v/IajjI3X8yEMZl99buWmy4VleqTmvESRqx1eh1wmyzF+AS0jX0CwjuQIEUHE5ntO8Q7GicEwPcbsotMbKyIu/KlQhaN0Q45F2iYmp7HpP5mzSpKMY25NvODPtc74Q67Kj9gdDfxqF960K+x5Y36lJEjAph2npZMD267svjA47p6+T6OGVcx2sGGnZd8gnl63zo9FgVwfm5GzkYOilqnXXkNgVjzHpgHirsWtB5qLIUB3gIbT2I7fZe6xCpH6annOMB5QBmhmmjzy3VXLqXLniLyBgiJyiYlyKktHgd1KfqZKJYTbWzEbdmkcq7iLUqfp4DJiKchpc7GoflAhOzTTSb1ql8V+OEgcEYU4qKQbN8YgcZDhj6U/lms0XsaJIilDvzFgnG4v109suWD+5mL61jndLVE8vy8W6tjv30Y+8ai9UaGyGxzwfvhtrU7c7mk0zsAW7rgf7TyHm44i+sVyhcZBEqhsbWBqJk+DQc6PzPKtKcwoJhaZVaDxCUkg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7416005)(376005)(52116005)(366007)(1800799015)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS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AyAvSE7udAWMCHMBhRkSMgHYHUuBezY5zDfoGztl2+NN3+NsSWDbf0XBNBEu/L936rvq3Ngj6yOKfM8uDJSnXBWAMhpYkoJtvBzP1W2HUDrzhwH7VdT+SV5hJPVdPjiIayy1u0jrCZvpOq23sRcgawB9s6Qbcl7nrJc7AICUWmIoubEr8xDWilliYn1wdgBkjkcuHI8sOUdHj2N3UFGc9dEd6pMZ7AXoP8PYh3Wc60ml/3tWQbDNTOI/lNy/4bqE0BvGi7al80FWJrSzenaMbYr+3wzdiBbBFjmV9eQv9CUOzpQ+QQQgkT6PxX4JpbUULEFkW4hVlyY9gr2gYsOeOYUNBjYB+QzD0bmpyncdCA4uuAh7KYs8A2isDVEBWzeg5PQfhqmzMT+Acvowld2TeQhhC8OPCLYiprFYNvlMcnQq9kAxFFMRY+HDfgeRXn+/NRYoc5Vnt97B79rpKrYM2hjW0U1+2rlmc1ErJg6NJ/eLFIWMrThd0w90R45fAHticdx8wxQQilDFO1DKvT/5lsWKoY/wO6IJfGWXF1T+ObyQcj X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9a55c037-caef-49fe-d857-08dc60827e09 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2024 15:07:55.7886 (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: B2uEu79IuQqOqAYHex8HMyf09XxbZdMF/zrWVJOSWUDwCBMbHqVTtEHJfWoGW+wCg/L9dIo5ecJ7TNrWjW+9PQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB10330 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240419_080808_359918_0A0DD8F7 X-CRM114-Status: GOOD ( 11.82 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
[v5,1/3] dt-bindings: fsl-imx-sdma: Add I2C peripheral types ID
|
expand
|
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 4a4d44ed03c8b..003e1580b9023 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -251,6 +251,8 @@ struct sdma_script_start_addrs { s32 sai_2_mcu_addr; s32 uart_2_mcu_rom_addr; s32 uartsh_2_mcu_rom_addr; + s32 i2c_2_mcu_addr; + s32 mcu_2_i2c_addr; /* End of v3 array */ union { s32 v3_end; s32 mcu_2_zqspi_addr; }; /* End of v4 array */ @@ -1082,6 +1084,11 @@ static int sdma_get_pc(struct sdma_channel *sdmac, per_2_emi = sdma->script_addrs->sai_2_mcu_addr; emi_2_per = sdma->script_addrs->mcu_2_sai_addr; break; + case IMX_DMATYPE_I2C: + per_2_emi = sdma->script_addrs->i2c_2_mcu_addr; + emi_2_per = sdma->script_addrs->mcu_2_i2c_addr; + sdmac->is_ram_script = true; + break; case IMX_DMATYPE_HDMI: emi_2_per = sdma->script_addrs->hdmi_dma_addr; sdmac->is_ram_script = true; diff --git a/include/linux/dma/imx-dma.h b/include/linux/dma/imx-dma.h index cfec5f946e237..76a8de9ae1517 100644 --- a/include/linux/dma/imx-dma.h +++ b/include/linux/dma/imx-dma.h @@ -41,6 +41,7 @@ enum sdma_peripheral_type { IMX_DMATYPE_SAI, /* SAI */ IMX_DMATYPE_MULTI_SAI, /* MULTI FIFOs For Audio */ IMX_DMATYPE_HDMI, /* HDMI Audio */ + IMX_DMATYPE_I2C, /* I2C */ }; enum imx_dma_prio {