From patchwork Thu Dec 12 03:38:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Ma X-Patchwork-Id: 11286883 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8E149138C for ; Thu, 12 Dec 2019 03:38:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 61F2421655 for ; Thu, 12 Dec 2019 03:38:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="iRvtoDSX" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726771AbfLLDiR (ORCPT ); Wed, 11 Dec 2019 22:38:17 -0500 Received: from mail-eopbgr70051.outbound.protection.outlook.com ([40.107.7.51]:46658 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726386AbfLLDiR (ORCPT ); Wed, 11 Dec 2019 22:38:17 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IkxJLvbgjtQNLDUDplYczhWugTGHsKWC2JGo928ssxoQQz1zuwFk4rGj3SMN7UKXkNKxJ2pY3ez8sPPKJ71vHUa9i+Lr1CZRtuxYUqmjOn1HcszTaJYl4Q5RcjPnUA1RX/oJHeH6tL1fjKm6mEHFmyaZ+J+CYCvGNf4XF4pJ4YNkfH9RNb25fJs7cDmqYjwAWGeDmPG3IfcLNtsGuyY+JloE+2DmVE8SnZgSqXRp1oskyFH/CoHk3CULpOohbWuPwatkQgI99gox7t+H0oqSQcx6gavsjd3j/6NA+bSQMdZ2lmpjhaYFC+yhm9ky61Rq/tcUHL6e7ChUNtxsj9/7lg== 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-SenderADCheck; bh=EbqbW4O3jFEWvf9ZNMWPcspqJahUbVt/YsmLXBXU7xA=; b=F2WENGj9pi0nIttks6XaKnfC8ywK4+vjUtGuJ5fMhelmc4MTsZ3WShXQi87Ken7bl3H2qgrFoEHfIjCcEt7WfWBuCVX8z05kZUmpTpm44N8Si+z2K9qpeD0NoQ0vg71sp/5yN2E0Y2sf23LAh/L2x3wlI78FHCn7wPrSlmsdtjRYv/BNOezT/AFUsFG9Pg9JHXEGNnKqeo368iCnyB81g2EKEko2LTP+S6vUbO6wtfB2gNvKUSNZBAbcF6HoZkVlItc2vcfd5/LAQP0eRg1njdYtFxD3bNNU/YaQfXPivNPMnyZoQXlCM/1FxbJgGg3Gex4evZTFBs2FXjqR2jChMw== 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=EbqbW4O3jFEWvf9ZNMWPcspqJahUbVt/YsmLXBXU7xA=; b=iRvtoDSX+8tYChRgpKx5ZGvoWZhXWLramdRRCmJLW5V2Hq5kF2NzbRIfww2inM4925JeQof1+zbyphyPpkOAiI+U+ACwnvlOkvSQu3iROcAoUGNezaS7ZwXfLv5vCRCcRL6X6UzhewAsTY0lLyGm1sForZGDU7YAA+XjM20qwhY= Received: from VI1PR04MB4431.eurprd04.prod.outlook.com (20.177.55.205) by VI1PR04MB3181.eurprd04.prod.outlook.com (10.170.229.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2538.16; Thu, 12 Dec 2019 03:38:11 +0000 Received: from VI1PR04MB4431.eurprd04.prod.outlook.com ([fe80::c947:5ae7:2a68:a4f2]) by VI1PR04MB4431.eurprd04.prod.outlook.com ([fe80::c947:5ae7:2a68:a4f2%3]) with mapi id 15.20.2538.017; Thu, 12 Dec 2019 03:38:11 +0000 From: Peng Ma To: "vkoul@kernel.org" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , Leo Li , "dan.j.williams@intel.com" , Robin Gong CC: "dmaengine@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Peng Ma Subject: [v5 1/3] dmaengine: fsl-edma: Add eDMA support for QorIQ LS1028A platform Thread-Topic: [v5 1/3] dmaengine: fsl-edma: Add eDMA support for QorIQ LS1028A platform Thread-Index: AQHVsJ2TZ/jVyH6lNkyvcDWZa1lfcQ== Date: Thu, 12 Dec 2019 03:38:10 +0000 Message-ID: <20191212033714.4090-1-peng.ma@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HK2PR04CA0049.apcprd04.prod.outlook.com (2603:1096:202:14::17) To VI1PR04MB4431.eurprd04.prod.outlook.com (2603:10a6:803:6f::13) authentication-results: spf=none (sender IP is ) smtp.mailfrom=peng.ma@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [119.31.174.73] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: a1ec1328-c2ad-4fbf-a6ce-08d77eb4b5e2 x-ms-traffictypediagnostic: VI1PR04MB3181:|VI1PR04MB3181: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3044; x-forefront-prvs: 0249EFCB0B x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(136003)(366004)(346002)(376002)(39860400002)(396003)(199004)(189003)(1076003)(6512007)(5660300002)(478600001)(6486002)(26005)(71200400001)(6506007)(2906002)(316002)(52116002)(4326008)(186003)(66476007)(110136005)(66946007)(64756008)(66446008)(6636002)(54906003)(8936002)(8676002)(81166006)(81156014)(86362001)(2616005)(44832011)(36756003)(66556008);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB3181;H:VI1PR04MB4431.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: f8+03pK9gKt8/YukHwnf1qt18f8UZ3DSsT7i48Pdaj4bOA2CyrFSwRUYOgC32H+dmJX80UJZsyDXkchqcmPELnAcRKkBbqAwNCFUk091jYxM8pxincqaTUnarLBeb5BVV8l1lMa7wsnN0U67L3cnGLWBnJHK7+z2yWvx5t7ZXaeGMVhSMEEnE2sO6gVvUSVeL9gEXYn7EfiwHrsJ8rzs3/JWLEWrVpUDQi0+2BV3GxrONCoViYZ9b8vJHXdDZ2nJr+VxHd3jth+1kYYgNs6EU8agl6YVa48YESUtub0Lg7OfAElEU3haetnFZztrLdd5t4fGipwS67ka8DwLQbUaGEdJJ4y0YACuB8M+IXKGaPaptAKz/jtbsvp05g7tZCqlOk367C3PZpgIdG8KZ62VPiLQGuO1P5Ll5qYFrnSD/kkAy+sLPnhhAzfa/34fPpQ2 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a1ec1328-c2ad-4fbf-a6ce-08d77eb4b5e2 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Dec 2019 03:38:10.9936 (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: NhJDnp/KF+JZTjcKNGktoWjJp/41wi5g5ns9kSez2EoH32E2e9wQMeC+0AbKF9jH X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB3181 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org Our platforms(such as LS1021A, LS1012A, LS1043A, LS1046A, LS1028A) with below registers(CHCFG0 - CHCFG15) of eDMA as follows: *-----------------------------------------------------------* | Offset | OTHERS | LS1028A | |--------------|--------------------|-----------------------| | 0x0 | CHCFG0 | CHCFG3 | |--------------|--------------------|-----------------------| | 0x1 | CHCFG1 | CHCFG2 | |--------------|--------------------|-----------------------| | 0x2 | CHCFG2 | CHCFG1 | |--------------|--------------------|-----------------------| | 0x3 | CHCFG3 | CHCFG0 | |--------------|--------------------|-----------------------| | ... | ...... | ...... | |--------------|--------------------|-----------------------| | 0xC | CHCFG12 | CHCFG15 | |--------------|--------------------|-----------------------| | 0xD | CHCFG13 | CHCFG14 | |--------------|--------------------|-----------------------| | 0xE | CHCFG14 | CHCFG13 | |--------------|--------------------|-----------------------| | 0xF | CHCFG15 | CHCFG12 | *-----------------------------------------------------------* This patch is to improve edma driver to fit LS1028A platform. Signed-off-by: Peng Ma Reviewed-by: Robin Gong --- Changed for v5: - no changes drivers/dma/fsl-edma-common.c | 5 +++++ drivers/dma/fsl-edma-common.h | 1 + drivers/dma/fsl-edma.c | 8 ++++++++ 3 files changed, 14 insertions(+) diff --git a/drivers/dma/fsl-edma-common.c b/drivers/dma/fsl-edma-common.c index b1a7ca91701a..5697c3622699 100644 --- a/drivers/dma/fsl-edma-common.c +++ b/drivers/dma/fsl-edma-common.c @@ -109,10 +109,15 @@ void fsl_edma_chan_mux(struct fsl_edma_chan *fsl_chan, u32 ch = fsl_chan->vchan.chan.chan_id; void __iomem *muxaddr; unsigned int chans_per_mux, ch_off; + int endian_diff[4] = {3, 1, -1, -3}; u32 dmamux_nr = fsl_chan->edma->drvdata->dmamuxs; chans_per_mux = fsl_chan->edma->n_chans / dmamux_nr; ch_off = fsl_chan->vchan.chan.chan_id % chans_per_mux; + + if (fsl_chan->edma->drvdata->mux_swap) + ch_off += endian_diff[ch_off % 4]; + muxaddr = fsl_chan->edma->muxbase[ch / chans_per_mux]; slot = EDMAMUX_CHCFG_SOURCE(slot); diff --git a/drivers/dma/fsl-edma-common.h b/drivers/dma/fsl-edma-common.h index 5eaa2902ed39..67e422590c9a 100644 --- a/drivers/dma/fsl-edma-common.h +++ b/drivers/dma/fsl-edma-common.h @@ -147,6 +147,7 @@ struct fsl_edma_drvdata { enum edma_version version; u32 dmamuxs; bool has_dmaclk; + bool mux_swap; int (*setup_irq)(struct platform_device *pdev, struct fsl_edma_engine *fsl_edma); }; diff --git a/drivers/dma/fsl-edma.c b/drivers/dma/fsl-edma.c index b626c06ac2e0..eff7ebd8cf35 100644 --- a/drivers/dma/fsl-edma.c +++ b/drivers/dma/fsl-edma.c @@ -233,6 +233,13 @@ static struct fsl_edma_drvdata vf610_data = { .setup_irq = fsl_edma_irq_init, }; +static struct fsl_edma_drvdata ls1028a_data = { + .version = v1, + .dmamuxs = DMAMUX_NR, + .mux_swap = true, + .setup_irq = fsl_edma_irq_init, +}; + static struct fsl_edma_drvdata imx7ulp_data = { .version = v3, .dmamuxs = 1, @@ -242,6 +249,7 @@ static struct fsl_edma_drvdata imx7ulp_data = { static const struct of_device_id fsl_edma_dt_ids[] = { { .compatible = "fsl,vf610-edma", .data = &vf610_data}, + { .compatible = "fsl,ls1028a-edma", .data = &ls1028a_data}, { .compatible = "fsl,imx7ulp-edma", .data = &imx7ulp_data}, { /* sentinel */ } }; From patchwork Thu Dec 12 03:38:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Ma X-Patchwork-Id: 11286885 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 21B2A138D for ; Thu, 12 Dec 2019 03:38:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EB39C2173E for ; Thu, 12 Dec 2019 03:38:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="BLgl426o" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727435AbfLLDiU (ORCPT ); Wed, 11 Dec 2019 22:38:20 -0500 Received: from mail-eopbgr70051.outbound.protection.outlook.com ([40.107.7.51]:46658 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726808AbfLLDiU (ORCPT ); Wed, 11 Dec 2019 22:38:20 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QAxvvefK3dZ2ORw2wblir4IUhllKzqQ7iXRHxP9EwQElUZ0HuVFfyXxEEC2MKBok9NUPEuzO4lLMuZNy9a2Rfyi5s9NJR1woJIl4ov/sPAKdjApHIgkQpKxClDJVigGyPYWyp3dUvSQh7RgdenqQS2myvDNarxec8olOJZcwVcg67K3HDzKhyueS2PwXUNpSTwsQzYeX/VrHkwxj/58lfbiiOscgbybmLHdVdBw75BOpkS5YwqFdvDW3K/2aPmJTitXAAcqENxqqln/aEUnzS1SusVugYhltEHxVa9gKvwTMma0MEJF0EBMaGKYQHNUJfbS9TWC84UjO8ECbdor4PQ== 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-SenderADCheck; bh=IWsVfGK0bxOq9PMELOpWmkTzoCr1WxMplfvHsXJk09Q=; b=Nop6VO6PAxxzRSVXWAMO1HvvPJ1aLVQFvAj3LqNXtg9HhLetF8bE01SxRFFJ55gDQ6/njTgNIhah51mGszTpZVgac5WWmNGw1a2pGPtDV1L+a9ldLhtWhphFgbvWaNy4PpP5Sj0297sq6YrgQ+SLoIALST888rU1STedjlwGQvUXy+RwyZ4Q3W97iP7W77/1bdhseJWHGOZDtlgFick0KnV3IN4Uya2likebRFtqlmRAAdebxorhKyNxeSfW0MZb2Ix7rx/p0iWC+jKrGOta6bf5FjNjbHCJjihE3pvecS26ELfBOJhesaZHZk3U9SVg0AA7roAsuzhHgd8p9D3QgQ== 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=IWsVfGK0bxOq9PMELOpWmkTzoCr1WxMplfvHsXJk09Q=; b=BLgl426o29BvZhZNWa/2mrn0Ca4ABRC+SRANQsmgdIlViXHfDJqCvhN5+pGOfjvZ3Wa0JJOT2sGb6JaiAnKoE7rkoJ5YwP1gIoSTO296jlAVRZipFm9NT3gCJ1kIDeb+g8h++lGitG6kbF8ZQ6vtWinygfn+2hu4Zd6dMoos/V0= Received: from VI1PR04MB4431.eurprd04.prod.outlook.com (20.177.55.205) by VI1PR04MB3181.eurprd04.prod.outlook.com (10.170.229.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2538.16; Thu, 12 Dec 2019 03:38:15 +0000 Received: from VI1PR04MB4431.eurprd04.prod.outlook.com ([fe80::c947:5ae7:2a68:a4f2]) by VI1PR04MB4431.eurprd04.prod.outlook.com ([fe80::c947:5ae7:2a68:a4f2%3]) with mapi id 15.20.2538.017; Thu, 12 Dec 2019 03:38:15 +0000 From: Peng Ma To: "vkoul@kernel.org" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , Leo Li , "dan.j.williams@intel.com" , Robin Gong CC: "dmaengine@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Peng Ma Subject: [v5 2/3] arm64: dts: ls1028a: Update edma compatible to fit eDMA driver Thread-Topic: [v5 2/3] arm64: dts: ls1028a: Update edma compatible to fit eDMA driver Thread-Index: AQHVsJ2W8RhfCx/dzkymv4+bZg9BTw== Date: Thu, 12 Dec 2019 03:38:15 +0000 Message-ID: <20191212033714.4090-2-peng.ma@nxp.com> References: <20191212033714.4090-1-peng.ma@nxp.com> In-Reply-To: <20191212033714.4090-1-peng.ma@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HK2PR04CA0049.apcprd04.prod.outlook.com (2603:1096:202:14::17) To VI1PR04MB4431.eurprd04.prod.outlook.com (2603:10a6:803:6f::13) authentication-results: spf=none (sender IP is ) smtp.mailfrom=peng.ma@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [119.31.174.73] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 45b9fab4-c4f8-4c77-d335-08d77eb4b864 x-ms-traffictypediagnostic: VI1PR04MB3181:|VI1PR04MB3181: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2582; x-forefront-prvs: 0249EFCB0B x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(136003)(366004)(346002)(376002)(39860400002)(396003)(199004)(189003)(1076003)(6512007)(5660300002)(4744005)(478600001)(6486002)(26005)(71200400001)(6506007)(2906002)(316002)(52116002)(4326008)(186003)(66476007)(110136005)(66946007)(64756008)(66446008)(6636002)(54906003)(8936002)(8676002)(81166006)(81156014)(86362001)(2616005)(44832011)(36756003)(66556008);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB3181;H:VI1PR04MB4431.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: zV1zD7gUbIyY2hNJ2ETLTt35jIPLzWX6kZmBupbTGbptQkCEXpWn0PEyyOCUXUBZntULb8aasPn10his/OuahmjIunajXHfEJN6KjVfPClvfXbAFeDtzRSBebdKzd2bL9pMNb44xIGZnjZHBKur9+ZbxP6ZwdCSQ2FusN+M2LY/ftVvOP36T26rvdmerxPd6PKJnEjeVWD5qTlEpFgbhZfy3niUqgR/v/RENEzIbobMtzY7oepOrrtyHW2+Gtr2a9xN9tR8hCC1dluVfaD0f9YOwBCnfxJlapylGyiqNYnv3z73R53Gmb/kcHTyo1h//UhSeOKGB4COBqxwEXxkgtPtKUl2U/ClWOme+7nTYEDNvtgmYo+e44OU3rSuwyTIr3WKgViyu2B8/SHTsAgwHbEQPxXC77A3ZRv8nVcLHDuaafKYbPlNSoYwIK1+37g2U MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 45b9fab4-c4f8-4c77-d335-08d77eb4b864 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Dec 2019 03:38:15.3260 (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: i0O33lbdFjR8ACrm49JolU3Hie2fUz53kT69zptJy3Op4orIEHJ+PndEyMXEhPjV X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB3181 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org The eDMA of LS1028A soc has a little bit different from others, So we should distinguish them in driver by compatible. Signed-off-by: Peng Ma --- Changed for v5: - separate dts and binding arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi index 8e8a77eb596a..b3716a89fa0d 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi @@ -316,7 +316,7 @@ edma0: dma-controller@22c0000 { #dma-cells = <2>; - compatible = "fsl,vf610-edma"; + compatible = "fsl,ls1028a-edma"; reg = <0x0 0x22c0000 0x0 0x10000>, <0x0 0x22d0000 0x0 0x10000>, <0x0 0x22e0000 0x0 0x10000>; From patchwork Thu Dec 12 03:38:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Ma X-Patchwork-Id: 11286887 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4D0C01593 for ; Thu, 12 Dec 2019 03:38:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2BB0B2173E for ; Thu, 12 Dec 2019 03:38:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="krUCc7g3" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726818AbfLLDiZ (ORCPT ); Wed, 11 Dec 2019 22:38:25 -0500 Received: from mail-eopbgr70074.outbound.protection.outlook.com ([40.107.7.74]:46000 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726808AbfLLDiZ (ORCPT ); Wed, 11 Dec 2019 22:38:25 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TsbV6CqJ5Xz8kmDgPlmTuJ9ThsghR5dhU09wEgXOPNOZ0EtM91Qvhp/cG7DB16b0unOj+2mnBv8QbTUGn0fNOU21ABrjgD5LDKx63vgl9YdqTWhpA6eW9yQQ+TOi2CJ2Wl/NnGLiyVc3TN1K83mEBlXo6vUWdqmPNoAvwKZY+5wkhWbqCBedoIac60f4nes2hVAUZ4EfSbqotQHce7Ht4LvFCIpoDjCz8IcTJ6YNH7LNofMSqsW+rc2jXYPQN1qiKMZvBhz+ytgJO6w1Pu7jlf2idzwONlIgcjXJbZTzBDSPwFJ9jibwZfag9oL4gHD4T53cnna2fjU54d3BzjQI7A== 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-SenderADCheck; bh=RKrX6ryfsoHTWteG4YWcHdXIXAEYymq1bqNyglJ7oXo=; b=EuJvxwfE7aQUDE0qZV+chzTOM19FDYveKeCL1b9ElXlwGJH8Crvb7ckX7Q1PRcZO2onZaBOu2gL6pPXw1WQfoL4KTfOTDvOgjutWZI0HhFEg4fbLcj15dFI/BYZuyFt37tQ+VvN2uWMuL5P7XmEPGxg6w7OJYlywVg9QBPgqyyI5GLkoDOoBTdZ/6vmjm3puYJ6+NO7QL3E8OqnPg0Yvyf5sJHxDX304yjjkac6XkTYZXKsPmNofQmX3Bd36kCfYgUg1tUWe6u8+cK3G9WCtcogLazfIbBKY2F1vT8ukowzW92QTrqrLz+L4ikS9t+VYHF+78ZlLckaE+EujYINwkA== 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=RKrX6ryfsoHTWteG4YWcHdXIXAEYymq1bqNyglJ7oXo=; b=krUCc7g32i8hZ/9TCTC+5EBdixek/92lSRvBQNRltFJAu3kIgCpjeeHJL35Kwx6UYNDaaEBEdRQIRY0tM1PI7U/de3+uHT5sOC+GjaU2bz6MN6iwfO1Hh3fyEg3IGZQBoUQ4wmQfsahKwb5mBekJpOC8seRYCq1ibETDwf2WsUM= Received: from VI1PR04MB4431.eurprd04.prod.outlook.com (20.177.55.205) by VI1PR04MB3181.eurprd04.prod.outlook.com (10.170.229.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2538.16; Thu, 12 Dec 2019 03:38:19 +0000 Received: from VI1PR04MB4431.eurprd04.prod.outlook.com ([fe80::c947:5ae7:2a68:a4f2]) by VI1PR04MB4431.eurprd04.prod.outlook.com ([fe80::c947:5ae7:2a68:a4f2%3]) with mapi id 15.20.2538.017; Thu, 12 Dec 2019 03:38:19 +0000 From: Peng Ma To: "vkoul@kernel.org" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , Leo Li , "dan.j.williams@intel.com" , Robin Gong CC: "dmaengine@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Peng Ma Subject: [v5 3/3] dt-bindings: dma: fsl-edma: add new fsl,fsl,ls1028a-edma Thread-Topic: [v5 3/3] dt-bindings: dma: fsl-edma: add new fsl,fsl,ls1028a-edma Thread-Index: AQHVsJ2Y3HluABJs6U+dHTTAWS2VzA== Date: Thu, 12 Dec 2019 03:38:19 +0000 Message-ID: <20191212033714.4090-3-peng.ma@nxp.com> References: <20191212033714.4090-1-peng.ma@nxp.com> In-Reply-To: <20191212033714.4090-1-peng.ma@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HK2PR04CA0049.apcprd04.prod.outlook.com (2603:1096:202:14::17) To VI1PR04MB4431.eurprd04.prod.outlook.com (2603:10a6:803:6f::13) authentication-results: spf=none (sender IP is ) smtp.mailfrom=peng.ma@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [119.31.174.73] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 268bf6c8-a945-4f3c-80ce-08d77eb4baf9 x-ms-traffictypediagnostic: VI1PR04MB3181:|VI1PR04MB3181: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6430; x-forefront-prvs: 0249EFCB0B x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(136003)(366004)(346002)(376002)(39860400002)(396003)(199004)(189003)(1076003)(6512007)(5660300002)(478600001)(6486002)(26005)(71200400001)(6506007)(2906002)(316002)(52116002)(4326008)(186003)(66476007)(110136005)(66946007)(64756008)(66446008)(6636002)(54906003)(8936002)(8676002)(81166006)(81156014)(86362001)(2616005)(44832011)(36756003)(66556008)(142933001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB3181;H:VI1PR04MB4431.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: NApVTTCYqkocNgogXz/mPLE4VRbd5fIc715b90n5GfBbHWffJUMtrwdjJHGBVbfa0Vq1SCbYXutB8o0qfXaf9Ef6hUNu1feHJR1+10tbI7uAMngcCW6mXWcQHCTLsYmSuM7yeth2thFMcEuUaUGXKJINn8Z2KVz4zYiBE4caqDbWrk84UWtwh/zCOZkMYPyPKza/x+YM/IOIdgIGjLvXMKmtdfK+JYSa6hF9Okv79PMUD8ofCl0/uCwleYsqPKQ5pKg0DhHNL1MiBv3iZsmS+AFEgmnG7v30ehaAEMoks1DADypKW5YXyAOJjHLZnVYPQlJdh23Az7i9/fUelPzshbX7HfPt/EzBBDTLy5/R+fZalopQGB15hyg75sL0gWCr74MOJt6xR26S0vQvAVHujTQQ5qPkHYAYCWE38jq2NyYssIKSwB4F+O+mj6ctrT72GbZ812nIo8iHftCwbUfBEXMHCSWEreTYgwuQDCGyRFVa8yMMfElD3//5hXWnAn2C MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 268bf6c8-a945-4f3c-80ce-08d77eb4baf9 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Dec 2019 03:38:19.7261 (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: vFbyO9MlOWMSuAQmaxYNqlxCeLGUmVOllqSNuQsV6jml5UAUX7Sxc9YTBIkgBYZm X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB3181 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org QORIQ LS1028A soc used fsl,vf610-edma, but it has a little bit different from others, so add new compatible to distinguish them. Signed-off-by: Peng Ma --- Changed for v5: - add new patch Documentation/devicetree/bindings/dma/fsl-edma.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/dma/fsl-edma.txt b/Documentation/devicetree/bindings/dma/fsl-edma.txt index 29dd3ccb1235..e77b08ebcd06 100644 --- a/Documentation/devicetree/bindings/dma/fsl-edma.txt +++ b/Documentation/devicetree/bindings/dma/fsl-edma.txt @@ -10,6 +10,7 @@ Required properties: - compatible : - "fsl,vf610-edma" for eDMA used similar to that on Vybrid vf610 SoC - "fsl,imx7ulp-edma" for eDMA2 used similar to that on i.mx7ulp + - "fsl,fsl,ls1028a-edma" for eDMA used similar to that on Vybrid vf610 SoC - reg : Specifies base physical address(s) and size of the eDMA registers. The 1st region is eDMA control register's address and size. The 2nd and the 3rd regions are programmable channel multiplexing