From patchwork Thu Jan 11 09:32:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wen He X-Patchwork-Id: 10157707 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 60FC3601A1 for ; Thu, 11 Jan 2018 09:51:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5787023201 for ; Thu, 11 Jan 2018 09:51:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4B56F28417; Thu, 11 Jan 2018 09:51:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC56D23201 for ; Thu, 11 Jan 2018 09:51:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932684AbeAKJvv (ORCPT ); Thu, 11 Jan 2018 04:51:51 -0500 Received: from mail-dm3nam03on0068.outbound.protection.outlook.com ([104.47.41.68]:4928 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932678AbeAKJvt (ORCPT ); Thu, 11 Jan 2018 04:51:49 -0500 Received: from BLUPR0301CA0029.namprd03.prod.outlook.com (10.162.113.167) by MWHPR03MB2703.namprd03.prod.outlook.com (10.168.207.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.386.5; Thu, 11 Jan 2018 09:51:47 +0000 Received: from BN1AFFO11FD025.protection.gbl (2a01:111:f400:7c10::151) by BLUPR0301CA0029.outlook.office365.com (2a01:111:e400:5259::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.407.7 via Frontend Transport; Thu, 11 Jan 2018 09:51:47 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD025.mail.protection.outlook.com (10.58.52.85) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.345.12 via Frontend Transport; Thu, 11 Jan 2018 09:51:11 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id w0B9pXbV025528; Thu, 11 Jan 2018 02:51:40 -0700 From: Wen He To: , CC: , , , , , Wen He Subject: [v3 3/6] dt-bindings: fsl-qdma: add device tree for qDMA driver Date: Thu, 11 Jan 2018 17:32:12 +0800 Message-ID: <20180111093215.12636-3-wen.he_1@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180111093215.12636-1-wen.he_1@nxp.com> References: <20180111093215.12636-1-wen.he_1@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131601378748790096; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(376002)(39380400002)(346002)(396003)(39860400002)(2980300002)(1109001)(1110001)(339900001)(189003)(199004)(81166006)(85426001)(356003)(59450400001)(498600001)(81156014)(51416003)(8676002)(305945005)(47776003)(104016004)(8936002)(76176011)(77096006)(8656006)(50226002)(50466002)(2950100002)(16586007)(97736004)(2906002)(53936002)(110136005)(48376002)(316002)(106466001)(54906003)(1076002)(68736007)(6666003)(105606002)(5660300001)(36756003)(4326008)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2703; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD025; 1:vy7gO1ItbaDNnOIaylOfw/vEZklJev+QGNn1UQbYbfZDm4wqgQWJQ8v4yU9uAT1NYK4T8DqwMnAoNmUBqFvFmzH+HBw9WP3RWW/SwHQN53L8DRX84XSEyB3NWcivLchf MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1f49812f-ec1a-48d2-f550-08d558d8dabc X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603307); SRVR:MWHPR03MB2703; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2703; 3:I+mxubMfpr8b48kXimVQp9nL3Ss8TyNBRTaYRZlBUbTQGwa9Am3Lj38ZJ51UUOuvYinPbDgXXThiJhNwhBUSKP7dtXuQUg4AjUBAU1DhWlB6McGvBkoSzWmw24dYhr3eXY6n8nOD1AGBqP1rKlTIaWp+ySHJnChwtWOwwA2Z1PZVKfn/kxRM+fOfCoLElnHGPOAKKIligEhKfLBgmhKT4KES4N+Ww9z3Jf3tx077+ok4PbC2mN26tEZNbNGTEne16dipUWDGgTePvlOssXtl5Hz6zh7wsfDmVCQCXh7qc8ItAfzdexR/30EJ/1TYeJoigZJHYhWDxgnA5bgAu6Kg4G4vccn41rUctY1HImIERpk=; 25:1gr7NLpZujR4Dq3+Y5f3AbRIioDwiL32lx+pojsudn/H1S/7+BXQrkLv1TPSPwou5ZgTO4mGHuOS/7N8vUgQtIEAgaEkWMn55YCLGgdr0iLQ28NfwgYhEX8Fbk6zT51ns8N8gCbKFOjOEaRDxn2xR2b9WEDGB1J0bMcIydA2NXFMOaefSoQqajM2MmM8yIa657sIVbOflSuWjO3G6UGVuHQHuJ2IecpdWO2YoLhunWEQ9lvo+77V2QjuGfbVrqej5LXFToPFE3FRCDC2y44zZBjcBIMpt4IWwD+WRZ6NgKvai2XfPUu7uoO1IMICkDiDAG/qzg2DXKr7hxWY9IK65w== X-MS-TrafficTypeDiagnostic: MWHPR03MB2703: X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2703; 31:zf8lmP7fnWj19h+18+YIvgohhabk+ThLapOVRm3RCJ3VUqWC4Up7EpfPsDvB2eQLO1vCK5VRu29+met8SPFN0m/qp8IU/qVTI2fPtPtGYlYlz/JUcOz1G88T3cPS3bNgOveavnc968OdS8JtJL50M/v6AHiub1mDfbCHB808KPONx2OrVjL/Cp+hmOGMdEPbPH3nt/78J+vhnFxpdk/3TCrigivyRU9OZgsHi9hH9tE=; 4:Y59eJqWsJsYG/TVmKvZO9jUh3fT2pkZh9rlcPPr03FqJiN8+sE57IAazqJYSmqjSks9rlkfk+txKflKg3Ta8ItwGYeTyag40so/5y7tfaTs+JNW6GJ/sCxyM/tLPSxZXpXrzHQ20up9hiOUv6bCmY+7uflafFQs5umZZHLJvQZSGEhMbHeXqjEHhxYHCM+HqedqcA3gl2RAVqDxBR2Q8RIHEyipfKTNpM4YbwykWgBhusU6o/IEj6YYn9xc25d4xEdwJc4N38d9Rop1USSBJSKLeGKaicuJxBr9NNKwRpBnJs+88cPXygnfAuhy9NhMcX74QqZJgCsuBNsaWot3Wzg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(788757137089); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(3231023)(944510075)(944921075)(946801075)(946901075)(10201501046)(93006095)(93001095)(3002001)(6055026)(6096035)(20161123559100)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123561025)(20161123565025)(20161123556025)(20161123563025)(201708071742011); SRVR:MWHPR03MB2703; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:MWHPR03MB2703; X-Forefront-PRVS: 0549E6FD50 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR03MB2703; 23:iJN8Q7/H36kgJTHQPy0yhPmAQSiS9E4C5iD2P41mo?= =?us-ascii?Q?3Jl40+ZNDyKa+gnw39lNxe4qzmqyMI82G+6ZRu5Gh3V79CdgnWH9/LPUbI8W?= =?us-ascii?Q?MGqA3kJ8ir43JTGXOJT846lxBzvJ7FnL+lqgF+TUc7aoKG8A6PMqfZB86Ybv?= =?us-ascii?Q?H5y6K21tQJBTZYcabLBwNgxKfXsbCRZEOCDTUbl6SNiW8JTqoPxdeSbZG2G5?= =?us-ascii?Q?2R5lWJHsgAwtD58y4Qo8JuDijYO54niCtEGRyp2Tt7GrMDq2AU0LbHFJ5juv?= =?us-ascii?Q?8SZqGAkmeVLnx49czhiXqmh8eOWBFCVWIxfI3XCCu4tmaZlh3f3+cH1ziHKC?= =?us-ascii?Q?qm6qaBikF9RONqcIb8vm+2jYqVu0fq1fbSTLlXIVgTdWveji7Em7ggTO475c?= =?us-ascii?Q?RNI65bXJB0kmCVU2qo2wzA7R/iwWK85pMI2KvBbn0Gn8uw6OJf7pLrq9aj1e?= =?us-ascii?Q?CV3hghKey0JgbT6oDsruwx0qzkqbtyL7sXOJIEhnpe8WHMPVH8bUuX2AA5j/?= =?us-ascii?Q?VogDXmytzZCBKzp4su1dTrzfFp+nXbW4US2f8kj/fDMD4W2tjhA8uzgA43Rx?= =?us-ascii?Q?PqdL6sJPI4ljhxZtTlMWdEqW8aY4ovZ+bCA/rg+fMMV6mKAabdqluHqloav3?= =?us-ascii?Q?JwqewQX471jKmIWDW8JMmWAhtHldOdhilGM7KtGnYaOIsSxZ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axgH98BV4SXy4U=; 24:YW7G6QqlFQYyVt7fjYtijoF/63uptD5sbHEDCo03ZIvSJV91y1mQfNFiHn0IdL1IX+KDw2qCmp1FsUDGGBBFovDa3f781Gb+rfcIidYSRac=; 7:lkHqb9HzYbmk2cnYAYUSItE+MBEGbinz8r/eHxSoNf4mOjYuMWNMerxpV9SxFVA9XV/Tf2dIs6Mq4Wb9sWvNTahy/FwkYlXw1hTq341flVDwNpIiHH1SsrEP3jgVr3f1ib+ajkGSHviVo/izatwGXXHQhcMRHn5DRqb4gkQ6dB/wq4DdKBbtDLuNjOkc5qUJXW/RZ/WPdms5OyHUvL2j6o555+1cg7AEHNmAZPvfkO4ae3KMm4ksvV4S7IeLlTHd SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jan 2018 09:51:11.8838 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1f49812f-ec1a-48d2-f550-08d558d8dabc X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2703 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP add NXP Layerscape queue direct memory access controller(qDMA) support. This module can be found on NXP QorIQ Layerscape Socs. Signed-off-by: Wen He --- change in v3: - no change change in v2: - Remove indentation - Add "Should be" before 'fsl,ls1021a-qdma' - Replace 'channels' by 'dma-channels' - Replace 'qdma@8390000' by 'dma-controller@8390000' Documentation/devicetree/bindings/dma/fsl-qdma.txt | 40 ++++++++++++++++++++ 1 files changed, 40 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/dma/fsl-qdma.txt diff --git a/Documentation/devicetree/bindings/dma/fsl-qdma.txt b/Documentation/devicetree/bindings/dma/fsl-qdma.txt new file mode 100644 index 0000000..000472b --- /dev/null +++ b/Documentation/devicetree/bindings/dma/fsl-qdma.txt @@ -0,0 +1,40 @@ +* NXP Layerscape queue Direct Memory Access Controller(qDMA) Controller + +The qDMA controller transfers blocks of data between one source and one or more +destinations. The blocks of data transferred can be represented in memory as contiguous +or non-contiguous using scatter/gather table(s). Channel virtualization is supported +through enqueuing of DMA jobs to, or dequeuing DMA jobs from, different work +queues. + +* qDMA Controller +Required properties: +- compatible : Should be "fsl,ls1021a-qdma" or "fsl,ls1043a-qdma", "fsl,ls1021a-qdma" +- reg : Specifies base physical address(s) and size of the qDMA registers. + The region is qDMA control register's address and size. +- interrupts : A list of interrupt-specifiers, one for each entry in + interrupt-names. +- interrupt-names : Should contain: + "qdma-error" - the error interrupt + "qdma-queue" - the queue interrupt +- dma-channels : Number of DMA channels supported by the controller +- queues : Number of queues supported by driver + +Optional properties: +- big-endian: If present registers and hardware scatter/gather descriptors + of the qDMA are implemented in big endian mode, otherwise in little + mode. + + +Examples: + + qdma: dma-controller@8390000 { + compatible = "fsl,ls1021a-qdma"; + reg = <0x0 0x8398000 0x0 0x2000 /* Controller registers */ + 0x0 0x839a000 0x0 0x2000>; /* Block registers */ + interrupts = , + ; + interrupt-names = "qdma-error", "qdma-queue"; + dma-channels = <8>; + queues = <2>; + big-endian; + };