From patchwork Wed Jan 25 15:34:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugeniy Paltsev X-Patchwork-Id: 719708 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3v7pyQ37ZRz9sD6 for ; Thu, 26 Jan 2017 02:34:54 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cWPb3-0007uc-3E; Wed, 25 Jan 2017 15:34:53 +0000 Received: from us01smtprelay-2.synopsys.com ([198.182.47.9] helo=smtprelay.synopsys.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cWPb0-0007qq-13 for linux-snps-arc@lists.infradead.org; Wed, 25 Jan 2017 15:34:51 +0000 Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id 5626824E0017; Wed, 25 Jan 2017 07:34:27 -0800 (PST) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 34EA48AB; Wed, 25 Jan 2017 07:34:27 -0800 (PST) Received: from paltsev-8460-lab.internal.synopsys.com (paltsev-8460-lab.internal.synopsys.com [10.121.8.105]) by mailhost.synopsys.com (Postfix) with ESMTP id B77517D2; Wed, 25 Jan 2017 07:34:24 -0800 (PST) From: Eugeniy Paltsev To: dmaengine@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: Document the Synopsys DW AXI DMA bindings Date: Wed, 25 Jan 2017 18:34:16 +0300 Message-Id: <1485358457-22957-2-git-send-email-Eugeniy.Paltsev@synopsys.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1485358457-22957-1-git-send-email-Eugeniy.Paltsev@synopsys.com> References: <1485358457-22957-1-git-send-email-Eugeniy.Paltsev@synopsys.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170125_073450_086781_5037F206 X-CRM114-Status: UNSURE ( 9.60 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.1 (-----) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-5.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [198.182.47.9 listed in list.dnswl.org] -3.2 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [198.182.47.9 listed in wl.mailspike.net] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Andy Shevchenko , Vinod Koul , Alexey Brodkin , linux-kernel@vger.kernel.org, Rob Herring , Dan Williams , linux-snps-arc@lists.infradead.org, Eugeniy Paltsev MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org This patch adds documentation of device tree bindings for the Synopsys DesignWare AXI DMA controller. Signed-off-by: Eugeniy Paltsev --- .../devicetree/bindings/dma/snps,axi-dw-dmac.txt | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/snps,axi-dw-dmac.txt diff --git a/Documentation/devicetree/bindings/dma/snps,axi-dw-dmac.txt b/Documentation/devicetree/bindings/dma/snps,axi-dw-dmac.txt new file mode 100644 index 0000000..21318a7 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/snps,axi-dw-dmac.txt @@ -0,0 +1,33 @@ +* Synopsys DesignWare AXI DMA Controller + +Required properties: +- compatible: "snps,axi-dma" +- reg: Address range of the DMAC registers. This should include + all of the per-channel registers. +- interrupt: Should contain the DMAC interrupt number. +- interrupt-parent: Should be the phandle for the interrupt controller + that services interrupts for this device. +- dma-channels: Number of channels supported by hardware. +- dma-masters: Number of AXI masters supported by the hardware. +- data-width: Maximum AXI data width supported by hardware. + (0 - 8bits, 1 - 16bits, 2 - 32bits, ..., 6 - 512bits) +- priority: Priority of channel. Array property. Priority value must be + programmed within [0:dma-channels-1] range. (0 - minimum priority) +- block-size: Maximum block size supported by the controller channel. Array + property. + +Example: + +dmac: dmac@80000 { + compatible = "snps,axi-dma"; + reg = <0x80000 0x400>; + clocks = <&core_clk>; + interrupt-parent = <&intc>; + interrupts = <27>; + + dma-channels = <4>; + dma-masters = <2>; + data-width = <3>; + block-size = <4096 4096 4096 4096>; + priority = <0 1 2 3>; +};