From patchwork Thu Aug 18 06:38:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: yao yuan X-Patchwork-Id: 9286869 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 2FEC7607FF for ; Thu, 18 Aug 2016 06:52:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1FE6529032 for ; Thu, 18 Aug 2016 06:52:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1485229035; Thu, 18 Aug 2016 06:52:40 +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=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B594929032 for ; Thu, 18 Aug 2016 06:52:39 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1baHAP-0004CP-6O; Thu, 18 Aug 2016 06:51:05 +0000 Received: from mail-bn3nam01on0132.outbound.protection.outlook.com ([104.47.33.132] helo=NAM01-BN3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1baHAC-00047W-B3 for linux-arm-kernel@lists.infradead.org; Thu, 18 Aug 2016 06:50:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freescale.onmicrosoft.com; s=selector1-freescale-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=mjWwzG5WRVETqRczaFXkDAAb6otw1xRJgxdc1ETVXwQ=; b=NQn7hYtBQvDwQGV+hztdgHoeiZTqYlU3WWH3usq9FIU8f8bfO5ggC/IbhiR1+7CpRYdYnuzWwE62ykhDboC+mpau6wnwFhMo5QnHa2btgC1efXn0ggWsb+F9MpodC78WCrWltjF/FYVco7XG26mXpGt7m6H/v0UkQEuPR4fkgGI= Received: from BN3PR0301CA0064.namprd03.prod.outlook.com (10.160.152.160) by CY1PR0301MB1979.namprd03.prod.outlook.com (10.164.1.29) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.557.21; Thu, 18 Aug 2016 06:50:29 +0000 Received: from BY2FFO11FD049.protection.gbl (2a01:111:f400:7c0c::179) by BN3PR0301CA0064.outlook.office365.com (2a01:111:e400:401e::32) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.557.21 via Frontend Transport; Thu, 18 Aug 2016 06:50:28 +0000 Authentication-Results: spf=neutral (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=freescale.com;nxp.com; dkim=none (message not signed) header.d=none; Received-SPF: Neutral (protection.outlook.com: 192.88.168.50 is neither permitted nor denied by domain of freescale.com) Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD049.mail.protection.outlook.com (10.1.15.186) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.577.8 via Frontend Transport; Thu, 18 Aug 2016 06:50:28 +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 u7I6oFFx010647; Wed, 17 Aug 2016 23:50:24 -0700 From: Yuan Yao To: , , , , , Subject: [PATCH v1 2/5] dma: Add device tree binding for QorIQ qDMA driver Date: Thu, 18 Aug 2016 14:38:45 +0800 Message-ID: <1471502328-28305-3-git-send-email-yao.yuan@freescale.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1471502328-28305-1-git-send-email-yao.yuan@freescale.com> References: <1471502328-28305-1-git-send-email-yao.yuan@freescale.com> X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(7916002)(2980300002)(199003)(189002)(68736007)(19580405001)(33646002)(50986999)(87936001)(2201001)(76176999)(19580395003)(92566002)(50226002)(47776003)(586003)(11100500001)(8676002)(104016004)(626004)(36756003)(4326007)(8936002)(105606002)(48376002)(8666005)(7846002)(229853001)(7416002)(106466001)(2950100001)(81166006)(50466002)(305945005)(81156014)(5003940100001)(189998001)(5001770100001)(97736004)(77096005)(356003)(2906002)(7059030); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0301MB1979; H:tx30smr01.am.freescale.net; FPR:; SPF:Neutral; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD049; 1:CZ70y14ugc5BZSKSUrMf8exbwDgG+UeHTccx3CPb1Hu/QBlgwBc7fFQtGw4nXQ4/qbqwZTDJqcKapCrd589xmUSdhE6YUbYKUfy5/oWLYXt3BqqDz7RxUVNC5qXGcwEHNY1XnxGeGRu3b0bCXE/cDpBINRbyX6mETqGMGbw1YA/bC9PWmcZZjjUM1cVR6+jQangT7lUSnp4/JU7ZtfTrN5WmwBEYWuWit55iGVrTZ1RSZ/CGdPXMq69tW17tYxEqEMnou32E/UjvdbVjFEmimrFmDG1RoujZ3+BtU/JYMbhKU7Jm6GtFNPr6Sf1d1eXiu0UrZy7oIvMbJriLHJ164udlKN1SA89CvIAWArLePLRSlIzMClZW+vom4YuH6sTtLj8tGPU/5kLZoEa5pdGXdXckpACbiUuebgTrYHJC+J+pWDVJmsu0dN+xMgJcrnfHsUc/WjiaC0ps7veW8vFxEQz2HgbKIHQwCJl0ZL/yJs+04M03tEPExIy85394xWjhqNcHnj+uZDfdmT6JADqlzRMSXAnKmoYl/yAA2Tl9ZRqvhLzif+gViT2lq7O1LOGFST7qoKaRXSyK77kUQo1g+dFngpWtWaCf39y7pxMux9Q= MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: a372ef51-5530-404d-1515-08d3c733f0a1 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1979; 2:t8ZefkD6a9nkY2Nx7WOQWZfp56uwBw08om+HY9t2hvJ9xQYRgYUvFQtDh2uHBFKBBTJVkdWMzccMmrLjvmcpUI0RT7RPHxTGkOI90Hv6PVmQ+Of7ywgDqcNKJHmRRicJxBVTx4JxQX2XYRxmvr7MXPl3tb+6cg7SC8Ekf3U/xOlvkDky4PMfeTxfVEM7L2dc; 3:Wie8QWis14hU3m9fw1obMOKJc/hKe/W1IaqlT1iCO0+Wy7w/4SkgLBrJbCKkmy++YJ6p1oHHlrhS3M8ZRU66cl3iP/fwZz/24+acGmUY84r9wz05f6Ob19KvF1kSSR03k9AIGV3BvdYazYMn5XKH8oGmOQTVvk1S6U+ijGx0gYux1qjg8M1+1OFcXhNp8sQ5ejKiXscVg73cuXNqVSHKJHYRRIL2ODraUu28vxpnhsw= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB1979; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1979; 25:bMrCgGj4Y80KlKlRNBgdX3DJOrNDZjvFF3ekU8mnVrXZ2SpqWZbkXBzMlXTYpOrUPWN30bmdeeGAl7cBvVj29Lf+zeUuzsr1B+Y7WUFQldnagzk3kNHetkDmMRE1qrmj07PVrAvyTuymTpFpoyVOuaNlFyyyTvRmgd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mpWb9Uf/fkBss9hgLFRX60pQir3f+NfrU2E5JK9NAsegcwE1eZ+FT9mLYxfI5HGfBNfiWO/IIt9BP/5elS7kuXK8E7D/NvhYA6P44LltyS/VgClI1L4lAgLHxZrg2M58+HxpupbKIyCPv9UIZlNFkrd/GC1OB4I7PU0fsRbwvGomJT4nYz1FaNLtYLITZvvSSMpa9gadDewq2WGxa2vX0YeDyhM51uFW4UsH5FXlXCM58vTQ2Q83l650RFJljP4aG+Dw18C9z2+9L7isRvWH3XkUx6IllIrtodPDDNGxLn7AYHV9lbU4QY8F+uYZLR+dTEWB+MxiifRm7tGRXCHswNtIET8S0AKn/Vf5h9Dywoz3acv5LWKWQ0EqkSxaN5JdvGrocJAylMFTIprAH5RXm/lvB+HDA/aW5JfgiaNmBFWob34qmFGCCK9wzi8Ug98+58zUJ3V2HeIuWbiOC2AYPEw= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(13015025)(13018025)(8121501046)(13024025)(13023025)(13017025)(5005006)(3002001)(10201501046)(6055026); SRVR:CY1PR0301MB1979; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0301MB1979; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1979; 4:KUX0uFVakz/MeT2EJFjDAcaT8zjXlTZg87quI0ozrnW4iSXNW2PjdIaIPHyhnd5Qi0fXZPyum503MgjU5Df0k6FM3ZCqH9ivlBliUIM8+idCEUN/NmklQ2Ryo1IqtXKn0iTOyN5QZf62QsOuiYnJ6MBYK9xFBlS+qtpL3DqYckpJyUkdcNd4KHGgsI15CDDhT4Xzxon863gz+rw3Y1gKWs+lWqFvbB9f0Z1AJUokEnk+X4LfytyL6zEUQI/8pIZxbrpIABr2weS/tj9RgGqCFJmmYH0i5w6yjBALrM/jPbjGco/ZhsPaJxViBXjmwKAJjsfV7LSHWZ08GvS6HBMF5s8L3A+dToYt1m4vxx2juSQX50zfyBZndNlUcXPnHlzf0k5KB+Va/BT+YmygoKhTEscCoWdYtd/7UsWUpQzEodw5uxko9spP9tPlPAfJ3FXp75JqV5Wwcx419Z5JxBe/xA9RKnX57d2aaezNwlbUIBQRmNJ2mZD1feaj69Taf8Upa+u4Q8msK1pnHXbUf0/u+DAplGZpmlPJFKsZrmN4Z8g= X-Forefront-PRVS: 0038DE95A2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB1979; 23:QfOh1nE9/59D0mLPylBHR2llex4tqlzye2/n6vc?= =?us-ascii?Q?zkQztYWRPV8yPYgVal2/1zpJ6Tp2tiao5BrmX/8Q+JdMGW6kyqF/DgZADNNC?= =?us-ascii?Q?OYXu0B9hiJSlR3qTfB5GKINoZeIGU9UvK9f8URT7+VsVPWQgOBHb7kHtD3W5?= =?us-ascii?Q?Jf/UckBSykI8qPhgZMvhqsJc7lSBFVoljM0fah0+0wPsJfqRlD+wFeJhrlk2?= =?us-ascii?Q?XbW73R/W0hIi9sO0qmgUVVO5iQmRLPos228fCga9iusl3/Fk3x1OeTGnBkKo?= =?us-ascii?Q?T/qVRSzmi5BF4hBN/LMqBzwX3wYJmfYsO2mfJ6ydym+D5Xeq/899AdxXotHU?= =?us-ascii?Q?v8RjI4rDs6D3n371xzPQe9NjavtXvtDLlduR5SguPv07zUcd4XjYrpY1meYm?= =?us-ascii?Q?735EjmEdGHvp4oWLcJH6yIMg3JQT7XmHYavMSD/AmoGQum4omtYEKyQeBhWA?= =?us-ascii?Q?dC4mOlcqtgtUnDMsvy6SjcMCYqEcEulUJ8W+6u9xDh/A3iaTxEyQEu4e1Gij?= =?us-ascii?Q?uYUlAJgSRX03tH/OHtVoLnpX0V7qXwtoW1lVFMCAtZzVuz9iEmq3iXyiBldx?= =?us-ascii?Q?I5TDJ5tW5dzMekI+wHfuiUkY3Yq2hYeGj0LAPPEtmivR/fQ2ulDM5br+VFWY?= =?us-ascii?Q?bilTBCLj4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:zeQn4F2pWcI0Uj075uFELiWChSqP7bkO0DdfyLHTipjmTtxnGtx9T9/T94iMcfxLJYlvWpBw20M6IZYC03NykWnL5E01F6nZfflnrT7f3Z0=; 7:FE7NKz+C6MY0USU6N9Hx1qpc0AhIObEoLuBY/Vid6oMbVtMPMERjRHOC2GScxlUvSdBh+9GoAbmJe3cHcJRhz1WP0eyApizNf2nBo1M3lP+Cj7QOIAy3fdxJKi5xIWDbNlYXBq2Fge6XDK0APOLITkvsQOI/QUwUZYebAWfXbP3SuoxcjMXv82d1RuZOqUE5OBrLKlqTb8faaoLIA7AO+mqkmLXEpc+hfn2+Ft9X4E0JtKPO6Clb6IL8waLeJCUk SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Aug 2016 06:50:28.1692 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB1979 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160817_235052_744405_94535A06 X-CRM114-Status: GOOD ( 15.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dmaengine@vger.kernel.org, Yuan Yao , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, leoyang.li@nxp.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Yuan Yao Adding devicetree binding for QorIQ queue direct memory access(QDMA). This module can be found on QorIQ LS1021A and LS1043A SoCs. Signed-off-by: Yuan Yao --- .../devicetree/bindings/dma/qoriq-qdma.txt | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/qoriq-qdma.txt diff --git a/Documentation/devicetree/bindings/dma/qoriq-qdma.txt b/Documentation/devicetree/bindings/dma/qoriq-qdma.txt new file mode 100644 index 0000000..dfa286e --- /dev/null +++ b/Documentation/devicetree/bindings/dma/qoriq-qdma.txt @@ -0,0 +1,38 @@ +* QorIQ queue Direct Memory Access Controller(qDMA) Controller + + The QorIQ 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 : + - "fsl,ls1021a-qdma", + Or "fsl,ls1043a-qdma" followed by "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 + +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: qdma@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"; + big-endian; + };