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: 9537281 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 92B356042B for ; Wed, 25 Jan 2017 15:34:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 846551FF28 for ; Wed, 25 Jan 2017 15:34:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 78F7127F8F; Wed, 25 Jan 2017 15:34:30 +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 F0F581FF28 for ; Wed, 25 Jan 2017 15:34:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751649AbdAYPe3 (ORCPT ); Wed, 25 Jan 2017 10:34:29 -0500 Received: from smtprelay.synopsys.com ([198.182.47.9]:54874 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751644AbdAYPe2 (ORCPT ); Wed, 25 Jan 2017 10:34:28 -0500 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 Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-snps-arc@lists.infradead.org, Dan Williams , Vinod Koul , Mark Rutland , Rob Herring , Andy Shevchenko , Alexey Brodkin , Eugeniy Paltsev 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> Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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>; +};