From patchwork Tue Dec 26 05:47:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wen He X-Patchwork-Id: 10132863 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 CC5356023A for ; Tue, 26 Dec 2017 06:07:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BE78A2E57B for ; Tue, 26 Dec 2017 06:07:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B2FEA2E594; Tue, 26 Dec 2017 06:07:29 +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 2A66C2E57B for ; Tue, 26 Dec 2017 06:07:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750737AbdLZGH2 (ORCPT ); Tue, 26 Dec 2017 01:07:28 -0500 Received: from mail-cys01nam02on0052.outbound.protection.outlook.com ([104.47.37.52]:41856 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750705AbdLZGH1 (ORCPT ); Tue, 26 Dec 2017 01:07:27 -0500 Received: from CY4PR03CA0007.namprd03.prod.outlook.com (10.168.162.17) by MWHPR03MB2704.namprd03.prod.outlook.com (10.168.207.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.323.15; Tue, 26 Dec 2017 06:07:25 +0000 Received: from BN1AFFO11FD025.protection.gbl (2a01:111:f400:7c10::186) by CY4PR03CA0007.outlook.office365.com (2603:10b6:903:33::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.345.14 via Frontend Transport; Tue, 26 Dec 2017 06:07:25 +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.302.6 via Frontend Transport; Tue, 26 Dec 2017 06:07:07 +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 vBQ67LTJ012747; Mon, 25 Dec 2017 23:07:22 -0700 From: Wen He To: , CC: , , , , , Wen He Subject: [V2 3/6] dt-bindings: fsl-qdma: add device tree for qDMA driver Date: Tue, 26 Dec 2017 13:47:51 +0800 Message-ID: <20171226054754.14969-1-wen.he_1@nxp.com> X-Mailer: git-send-email 2.14.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131587420274025601; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(336005)(396003)(39380400002)(346002)(376002)(39860400002)(2980300002)(1110001)(1109001)(339900001)(189003)(199004)(59450400001)(8656006)(97736004)(50226002)(106466001)(77096006)(305945005)(5660300001)(104016004)(16586007)(8936002)(1076002)(68736007)(110136005)(6666003)(54906003)(47776003)(81156014)(8676002)(86362001)(51416003)(81166006)(85426001)(53936002)(36756003)(498600001)(2906002)(105606002)(48376002)(316002)(4326008)(356003)(50466002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2704; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD025; 1:zdyVcbG5iQ2MUAFCjYbRV86ttcJUdE9YzzL8jL1RW5lmt1EP1CXFAIi/C7ckszf1Z7kDWK4e8gG4PZ4WQ2xmupdbDdJxZLm2cSV3MFmTlV/JCUgKG0RjjdQxCqyIodew MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1f7e0085-2b25-44ec-e481-08d54c26e4ce X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4628075)(201703131517081)(2017052603307); SRVR:MWHPR03MB2704; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2704; 3:+/s11GAfhCbJYASM0Hv9HlqfQa3LKI9K8WA4cV6NOJnccv7UqmJo/H49a5yIQ6UuyE8HhwRrOq9brODuJ093PDowUfzb7vl9qNWZBlDzQU6nsf1dk+vRvFwfIZZnu7nZ03vcg/BdGnqHLsvPcH7dzbAIL7QEZxYgEWMGqY+087bRTEbPGNczRkUTaVEo5XovotTKFzXPZOQL0wa+YorHMNaNQcFUrCFP6ek7OL6oZwRoUBpoqQIr1x0Z45BUr5ZrNq5X7x5wdqezp/iuJVj+p/jIyAlLduheTLt7aztRmb0GvYxd0yYnctMJVl+HmRPP2659qyBPJtvGYib05krQFgUEZw5Qi0gE+F+H8Bo5LKg=; 25:LbgwBW6b82kvubeBw+szm2/+L4es7k21Wc2gwsF27q8cdAoBpdbsRwp6Mu641TckYG7p10zfPRWRgcs3eK0tj3dAyJmYbrwmnC5xenwHFHUKqZR1u5GuQTNqjwZTcALZQxj81DyxN92tLKvriPJ8ox7MH/Ax52WNdTuboGKqWs88owoYkAZb8Q8jC2yagXs4uISmnzrj4/epgPwGaYOJv7v0gYsJehm22mKRaP8PsETEoVVId1xvDGz2mG0dhih221D3FIm++Cwd7HxUrojDghVPOjPIH4vR1HO67fiXG/AMV+rS1DF1uvGS9ts2i+DtcfUoSLoiQmsSKLDtGbS0UQ== X-MS-TrafficTypeDiagnostic: MWHPR03MB2704: X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2704; 31:0wUQrqt5sdLfqHLuFwryNmM0hyZN6gaj3sdYeTitMRcCptYjOpZ2B0F6DcIEqzaeRU9PAWQ3DRuljFPUSKGXgPwNwuLolKFwEvUA6eN/8R0/ip3PmLmwsq6wakuQJ0vZU5X72C2+6huxclSx6NpokAmgDFDKrmVnDbqlximkO0NoDzOpmqQJwuqLIiVkaGxBEi5rhq+7ZR+YDn+h3kzOoiMJuDcp3YdaTHfRL27kb2Y=; 4:6KgXK4qTK6nKfaU+6zAZHgpwxxwkcTgkynIcF+u6AC/3acWHTGvAGqZXyfkYuxKKVWWLiKL4dPrbCBA7tEBrHWoSFtP11RH4TpQwyQzpZCRpAV9565MoRZNBDviaeRyIhxbtSWU0O66fLfqxljX12/M477IwhvNxrx4apUm60Hv41IdMsWzOrfvkgI6bhRy004Gh81e0b1WIRSER7xxY0HKf2rZ0IHSJ6GayTxel1gN01JKx4OPtCWRbC68tA7ewwFZ0mvIzxCOuTG54evvP2D3600MY61uB3hqxrZNe/X2ZxoHrzkUGPgXEEJUbbqEL4GX6NR6bIO7AHnKO5+iF3g== 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)(3002001)(10201501046)(3231023)(944510075)(944921075)(946801075)(946901075)(93006095)(93001095)(6055026)(6096035)(20161123559100)(20161123556025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123561025)(20161123563025)(20161123565025)(201708071742011); SRVR:MWHPR03MB2704; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:MWHPR03MB2704; X-Forefront-PRVS: 053315510E X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR03MB2704; 23:6GHRzgyC6baEMfkjKGmFD6p1v3+RRAA4a0qIEzT7Q?= =?us-ascii?Q?DtGq8Sfz8f+mywuPtHRvQyC4PTWQmVBtjf9QS2i2jWZutKiI//94w2FAhryA?= =?us-ascii?Q?SvVZAGFkZma0LDfLxkFmc8IMztUYxuvnUjYYcJSAAfl5FENDqJnPa8+60rTU?= =?us-ascii?Q?JGQoCGVeKIXnGItxUys8n7I9hBY4Rek6PrOpDrt9BNTE3NSiXvEdpqgoPRJu?= =?us-ascii?Q?D7Tm/xPKXZU2uB3ei1BF9EFJ/Z3A4HuoBAvuxR78He/iFXyWIT2WPoq6ITWk?= =?us-ascii?Q?3i5UMpb4d+Nc4dB3wRN7uVdphen6vPhBn07ZEQ6G6voxdUR1xKpK/zlC2qUX?= =?us-ascii?Q?a19KtSGH/dOuZYmP0eDCck4PW06VaSqaWd4qmFha5RvtYqwlt2pRBRkjncly?= =?us-ascii?Q?5hcLkmcQ1PIz/HOAYidtxIZjVafIfz4ZAtce6H50bW0LWVLKXuxH4WYW6bL7?= =?us-ascii?Q?fs2GhkK5rduK2pckdlNX6txnRB8wtZ66r8fbWxjQzn1NkU8SR8yBUKSFfgSZ?= =?us-ascii?Q?JsiMVjh8MLGl8Vex6Zkpj1MDpwkiB4kk5I0dTZDpR4oL8QC8UMMhtwoSh9dQ?= =?us-ascii?Q?bf2mpH95CrjuFrQPPXo2hTA+JVGgZ/AFzWJMdrWYe7fdTkqfp7h/bbq4nXSN?= =?us-ascii?Q?V+sRNFPeMKZ/i99nj5iXf/rJW/GgWvk8i8f8TrRpETrJMgXA9/Luy/Ie+evj?= =?us-ascii?Q?ditCt2KDEK1kRRBt4bm6MWfdwh+XxeL3aBTsHUxszE94vzFKW626q25yo4Wm?= =?us-ascii?Q?qR3oPH83lhrvmLNEsjmF0JoGbLSkySaCxCpNcVAbO1SGTyb3dvsQUn9ckcy5?= =?us-ascii?Q?sWQW6tQac1hzjXPYia+paA1ROjQHIMTqZjV9mdb798RA6GweUl4HlM2D4fkb?= =?us-ascii?Q?jLN1chyXbuEMveC687nDHYH3OfCm7GgkR1zT0TUH03BGweJcDsnRvoxBzmEH?= =?us-ascii?Q?CjQcGCrsd68nlYjTgJxIlkaM4Vq+OcT/ZWw49xCKK7cDbjwyHJDp442GO7el?= =?us-ascii?Q?pvucWw1H3SWoZpB5WZAKecJ2mTpfFuvEzPz5eN7Tqwj04WPBqIaC50ITB5EL?= =?us-ascii?Q?DyZkZSgkl5yTpy95NKPPHAcSvih?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2704; 6:4y23DfooOBVfuz3iIyiXPWLY0bxV7mhggLib6CUZplTIbc1cgj3+cVl4XBjlxob68e2hUegzdN2H+MF7B+Ly377RWDBKqf2bc+uyYWyRCwphdoIkcs6IN4vvqtJaV7lc+yMXIijjg2xYRJge46qWZf5Hhw0RPRMj/ik4L0/8anoRjes+abzHSVINbtUzxMHj53Si920xQKVZWafsWkycokGSrnK24qKs/qvSCjseklb+UHh4UF4ijlShF3486bu0H388pQrOQrZPBz94bOCadAECZ+eEF8bQQQJnCSJAdxklgjtkS1Xc6UJ7nIh33PvsrHbUEl+ZwnunDufmns9CyR6xDayxMGu9JnZhE+zcsjc=; 5:jlHwLDd9wlPu215GlLgxcqbZVFMFtC+2H8iVz5Rx6oP/SigGts4QyfeROlqKnCQr8F2PP22hYRWdcjG/tcO8GOq6FUbH1/ynDFOTTd4VIukA1ZBYxAblUxUgth4QJc/i5iG+t71uxeBmnpg/BQcIk0/4oD8uVWJQfm4ww0PjNPo=; 24:uBMBcZ+JHofM99kuS2uOyhFCeK7HvHJQVVK19ON5SNgIqk2XrjHcwrSGgJfYayc6Rdo87mF3AcmAPVL+FDKA8gW9FejoGQQJaQg/Gny+KlE=; 7:36Q9MsLuxLLlFQv7o3lzZnUJY5oHDYQQ8gvudZfCWvUSW+I9O4cmhj3SkTUE9zsnDFpzT2XFj8USlg940iJSVH+3sLybZo+ja0BaUSroAouYm8hzCcwzj2wFaBSswCdqx1iL6RHphiTABU/EAe/uW2WFJQ7/7L5tQWxiRcdfk1r0eqO5TzdfEUN9KLnK3WB5x6Bx1AoXcmRKnJjZdmjWl/gijLKQJk3b7oc2IlanfvPAcUV4Jl5DWJ7ubJPkxCPe SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Dec 2017 06:07:07.2465 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1f7e0085-2b25-44ec-e481-08d54c26e4ce 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: MWHPR03MB2704 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 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; + };