From patchwork Mon Dec 25 07:40:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wen He X-Patchwork-Id: 10132331 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 3595460388 for ; Mon, 25 Dec 2017 07:59:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 21C6A28AF1 for ; Mon, 25 Dec 2017 07:59:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 139C028BAD; Mon, 25 Dec 2017 07:59:46 +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 686A328AF1 for ; Mon, 25 Dec 2017 07:59:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751738AbdLYH7o (ORCPT ); Mon, 25 Dec 2017 02:59:44 -0500 Received: from mail-bn3nam01on0060.outbound.protection.outlook.com ([104.47.33.60]:30849 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750888AbdLYH7n (ORCPT ); Mon, 25 Dec 2017 02:59:43 -0500 Received: from BN6PR03CA0079.namprd03.prod.outlook.com (10.164.122.145) by CY4PR03MB2696.namprd03.prod.outlook.com (10.173.43.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.323.15; Mon, 25 Dec 2017 07:59:41 +0000 Received: from BY2FFO11FD019.protection.gbl (2a01:111:f400:7c0c::188) by BN6PR03CA0079.outlook.office365.com (2603:10b6:405:6f::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; Mon, 25 Dec 2017 07:59:41 +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 BY2FFO11FD019.mail.protection.outlook.com (10.1.14.107) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.302.6 via Frontend Transport; Mon, 25 Dec 2017 07:59:20 +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 vBP7xXA6015986; Mon, 25 Dec 2017 00:59:33 -0700 From: Wen He To: , CC: , , , , , Wen He Subject: [V2] dt-bindings: fsl-qdma: add device tree for qDMA driver Date: Mon, 25 Dec 2017 15:40:33 +0800 Message-ID: <20171225074033.30837-1-wen.he_1@nxp.com> X-Mailer: git-send-email 2.14.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131586623633213251; (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)(376002)(39380400002)(396003)(346002)(39860400002)(2980300002)(1110001)(1109001)(339900001)(189003)(199004)(85426001)(47776003)(4326008)(356003)(86362001)(81166006)(54906003)(50226002)(50466002)(8936002)(68736007)(498600001)(8676002)(110136005)(8656006)(59450400001)(48376002)(51416003)(53936002)(16586007)(81156014)(36756003)(1076002)(106466001)(2906002)(316002)(97736004)(104016004)(105606002)(77096006)(5660300001)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR03MB2696; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD019; 1:BcyE8of4Nc1Vd9aRWHmPIOOE5lU04mXInyr/C/BpOCZwWk3xU99IBIAO0lSClT1OE4EiLN9EUtmnjb+Qsy4EvO5zihntWnF9LPFBzudAGfldy6mHZnOJsWCLwI1DKorY MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 01c5aba4-f398-40c4-c743-08d54b6d6950 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603307); SRVR:CY4PR03MB2696; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2696; 3:K8TWi4HZXLiXRHdvebR68rbJS08gOV1YuBMt27QIZidMMf7B8V3Asv/UkqKMg1fR76ZM8tGmBWdEeL34tpITYSKKLL8oLaFr5feED2wcUp1bzcpp5FeVz0RAydME8+9nHj7o6IaYGLexDJGVkbqalWGnbq5EgRhET85DDgIk6l4wf4Zn0lVxSKYrq9tulmrBpBYqtfWioa0XrOBhakzKYiMMWVO0lVCssYCtkPySzdb4UWLBxMobopg9HaHxjy8pcCPOmgHCRtjPT61GhBKNwi0jZltiS23L0MJ1hC4N9cmevCx2qCDAMr8Yll6yRs5QkanddRVm2dCTo9ccjCPhKwqaTzEntW77txMh/UphqGg=; 25:+0dg/9kgjtrhsMkcvTip+6pxyoxZ1BePMKpLcRw+TAElaOAhV2Ckwt0vSZXw9U/Ld2EfeAVQwVAv7YiRjo3sh5bZ78rA1w/D9xgBF75TD1qWSeenlI0KrCe1DXMyxlewUjoARGmNUITWwCvtCo+nBsMybzKJBmbHyGWB88EjKUx3xYXR4rtfzlZ0/Qg6kT0za+wPq7P1JO1jme6RbTO38m/BGGUy+6/NXe+l5xi8tvfs30b58VMHdCPZC+7MzYtXvWsqgw1FSWAqD50C5OZYOOoQLQXhrvY0lWhdGbhf4tvbtTZNN9yBKSVHcOQ32ajMJ4NHlknvvFveG7dEly4W3w== X-MS-TrafficTypeDiagnostic: CY4PR03MB2696: X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2696; 31:icd0TJaKXhazWwx2mJAObF3xVOxvlDtRlQoBW0ONE6DXobr+JE62eUP5wXJOeolYsaDmky/jdR8hDlEXZCH71lvc0frrNkfzz9tB877Nv3eREegUPfB5n57k0PUTCtDo7AoNh5ZVY8WGXYVCmGSpngT54mz0Irqwm2Tne5Qu7FjF9A9MOTnKJB4W6SmWglilnLkrgfk6x4mgwOWRWDFjNLyfaM4Qd3NqLtHFhj2pSHg=; 4:lIrZf33rOLpQ/WLH/QmznYRXWMiBEDWkaSmJ7oqKCErKvR4jIFJMAV8vERw5EwGMi4l1bt4zyxelK/BK3kCLbaKU1s49y3VtDZ5AS2PN0oQA5/AVCVxOlvZgK/AHKWrrt7QCYKAoEzJvfAtXP89c7n1gwBJHemn+6hneyVhmJ4qpeAWHYnJEX9JZTBtVnmZfjeYjrgEWViWF0ZxStvicBTxtt8BO/mx3V2emFbCVd69tOLTjioiCvn8gY22nq1LoDNpwun6rU4H3QiA5upXvNYSDBJ+x5GXUsYujFfhv1c/6M0QYQ8y8Pb8pVA+0naVd9DcfXc7mqJQVMKs35LH6hg== 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)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3231023)(944510075)(944921075)(946801075)(946901075)(3002001)(6055026)(6096035)(20161123559100)(20161123556025)(20161123565025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123561025)(20161123563025)(201708071742011); SRVR:CY4PR03MB2696; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:CY4PR03MB2696; X-Forefront-PRVS: 0532BF6DC2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR03MB2696; 23:7Ay+461u4dEYCU+ifGtC33du15ooLbTLySp65rL7C?= =?us-ascii?Q?mmAbvxYkk5LmN1naEYEjZX48o3AA2hF8ZuOsYNSdNZLkLnC8mtSJvI91ehza?= =?us-ascii?Q?25w/43KH53+6GugYA9XdyxPWemsog9NRdL5iYqSccWymP6jNGIg3ALZtRekC?= =?us-ascii?Q?kwiBGgW4/OI2gumMPav2ZXQfsT/JuF2zZah8gs/BpUdP0kPWA/An1nGardaI?= =?us-ascii?Q?4X0/+/RaUEoTQTgszBoFN6RhzKimXzGZAD324sYSdsai1J3dIOjFCo72ujuE?= =?us-ascii?Q?A7F4PMrLl0AVgqQt+53bWwezDYtnhL4P7rRp0+s7ZeurqZfpOFRmRuYgYoc+?= =?us-ascii?Q?c66ZT7eK4R9ErJ82tz2JXUasqk8mt9xMTf2veT6AfIvPVDp3YwYjigUtFjSb?= =?us-ascii?Q?8G5qEsbEno6gfqrGZyjLlZOsdYJy1TWdpidjpv1kXXA72N6Fj6OZ5MNFhpZU?= =?us-ascii?Q?tfkTFe9HHdHPvyg2+q3MK5oM1G1keacYF5Axl0imMFcH3TT+uRnOh4Rqqotk?= =?us-ascii?Q?FrUckMxn1OFLTFkq3Dlag/1SSTPgyeRCmH7YWltW08vYV2w1gkq1Z1IINK/e?= =?us-ascii?Q?++DDTA5bWEUlzV3ciBr6rp2vX1TYMpnPujAvcsquj97jKk6Nn0tvE3Yamw+O?= =?us-ascii?Q?4Ddj1HHkrPPYqn71j+U4m+pg3MIDmYjH+TSatsNf+zdGZYdWD/lOAC1YP2AS?= =?us-ascii?Q?Tjas7I/6FXOy1pphKIxRjjP5oxvH8jnrPmReQwg9n+PMk+h//fwEyopQWGGP?= =?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V514HoVoGWYMD0oQnN6k+rOUs2o4+6yidytz4G1BRHbwOyyFDfxxnNuCd4cv0HDQCOtWMA6N37AKABlww5tLbtArqngYPqSscys4JrtNzJ4MFhgR3aGLqB6r03Ww9AhjfHsdp+Nku92NAikUUYA5omA0bEH4WOaQ/cwRWFFt35ojQZPViX2F6nvyqL9OtO5AvixSpj4rXV4hKHnh9zIrOJYS0iDmBVE2nqRIgZa6eCLIx0nDGcTjdLrgL5wAHiW SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Dec 2017 07:59:20.3105 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 01c5aba4-f398-40c4-c743-08d54b6d6950 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: CY4PR03MB2696 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; + };