Received: by 10.223.185.116 with SMTP id b49csp580349wrg; Tue, 20 Feb 2018 04:33:17 -0800 (PST) X-Google-Smtp-Source: AH8x227h7X4iUy03MNYwbc8ALQt4EvziWp72wcrOCoobwYnRldQj+hbWvsDeAZ34WM39WysO7UOz X-Received: by 2002:a17:902:6bc3:: with SMTP id m3-v6mr17403160plt.442.1519129997565; Tue, 20 Feb 2018 04:33:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519129997; cv=none; d=google.com; s=arc-20160816; b=blZC4O9g4hGsJcCzJwS9p2GmIh4ZrWBMOZRXNzsiKbCpUqXrr+DfrrmlmJaxz8OhHm /aCk24IuCnCYg6vJ1S6zj2vchEUfweTId9Cimi/9jn/HcBKPrGMsuv9qmjCiXKXRxBdf 2FOXksdtzsEwu6eBR6xh2TpPUBy+VbwDXYSRythycrqYawIJ9DUQyvH1TRKrz0BkrPae rNy1Nqrbk+/c58WIo+J3ikNCNf9zbGmCt8RiPv+oi4bkQLiAw7r/7yc1OunDia5fzLEj T/4o4efUmd46QWtJfhT7NkN86cYqqVhnIsAffUDyhTB1V18Sx8/8OWcxnI2LGr3dFLKL /CjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=yJUi9bSV5dg+PtEni6fGJ0xQyIhfPsv5nXnCZ5HkEsY=; b=mK2m3TNl12Lbfe+mKd232f2xHtiBraz0zXIzAYXr9chyneeXGLkff05q/o+Pfir4SK NXAEJPrZ+0UQE1+QJSuV8SRv6GKXkSEel0tCDVx1eTtL+t7YrnXJleNCAAhDzIp3xPIa 8Cz/tpG+z5xAdfWXZsjeaIOgkLe+eDj2HfxsF9wBZVKeKCjauo6SyqslyAqCx9Z1F36D wiHWke4XcMQim7tCJKTnmVw0elUCaiuW7kG2PXpYN2FnFF2r4VZE/21SdeJJBk4sC/q9 nBMM67foAbqdLhrHex3ODe17/sHtVIxqjBhv+y3uV9fcLP1C6arIsDTocXel9HxFwEFP 0+zw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d7si1554489pgf.766.2018.02.20.04.33.03; Tue, 20 Feb 2018 04:33:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751761AbeBTMbG (ORCPT + 99 others); Tue, 20 Feb 2018 07:31:06 -0500 Received: from smtprelay2.synopsys.com ([198.182.60.111]:45364 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751646AbeBTMbB (ORCPT ); Tue, 20 Feb 2018 07:31:01 -0500 Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by smtprelay.synopsys.com (Postfix) with ESMTP id 0C34D10C16F7; Tue, 20 Feb 2018 04:31:01 -0800 (PST) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id DECAF382A; Tue, 20 Feb 2018 04:31:00 -0800 (PST) Received: from localhost.internal.synopsys.com (unknown [10.121.3.43]) by mailhost.synopsys.com (Postfix) with ESMTP id 5629237EC; Tue, 20 Feb 2018 04:30:58 -0800 (PST) From: Eugeniy Paltsev To: dmaengine@vger.kernel.org Cc: linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Vinod Koul , Dan Williams , Rob Herring , Wan Ahmad Zainie , Alexey Brodkin , Eugeniy Paltsev Subject: [PATCH 2/2] dt-bindings: Document the Synopsys DW AXI DMA bindings Date: Tue, 20 Feb 2018 15:30:47 +0300 Message-Id: <20180220123047.24469-3-Eugeniy.Paltsev@synopsys.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20180220123047.24469-1-Eugeniy.Paltsev@synopsys.com> References: <20180220123047.24469-1-Eugeniy.Paltsev@synopsys.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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,dw-axi-dmac.txt | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.txt diff --git a/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.txt b/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.txt new file mode 100644 index 0000000..f237b79 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.txt @@ -0,0 +1,41 @@ +Synopsys DesignWare AXI DMA Controller + +Required properties: +- compatible: "snps,axi-dma-1.01a" +- 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. +- snps,dma-masters: Number of AXI masters supported by the hardware. +- snps,data-width: Maximum AXI data width supported by hardware. + (0 - 8bits, 1 - 16bits, 2 - 32bits, ..., 6 - 512bits) +- snps,priority: Priority of channel. Array size is equal to the number of + dma-channels. Priority value must be programmed within [0:dma-channels-1] + range. (0 - minimum priority) +- snps,block-size: Maximum block size supported by the controller channel. + Array size is equal to the number of dma-channels. + +Optional properties: +- snps,axi-max-burst-len: Restrict master AXI burst length by value specified + in this property. If this property is missing the maximum AXI burst length + supported by DMAC is used. [1:256] + +Example: + +dmac: dma-controller@80000 { + compatible = "snps,axi-dma-1.01a"; + reg = <0x80000 0x400>; + clocks = <&core_clk>, <&cfgr_clk>; + clock-names = "core-clk", "cfgr-clk"; + interrupt-parent = <&intc>; + interrupts = <27>; + + dma-channels = <4>; + snps,dma-masters = <2>; + snps,data-width = <3>; + snps,block-size = <4096 4096 4096 4096>; + snps,priority = <0 1 2 3>; + snps,axi-max-burst-len = <16>; +}; -- 2.9.3