From patchwork Mon Mar 31 13:54:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srikanth Thokala X-Patchwork-Id: 3914911 X-Patchwork-Delegate: vinod.koul@intel.com Return-Path: X-Original-To: patchwork-dmaengine@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B9AE89F2B6 for ; Mon, 31 Mar 2014 13:55:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E262A202D1 for ; Mon, 31 Mar 2014 13:55:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 16462201BA for ; Mon, 31 Mar 2014 13:55:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753766AbaCaNyT (ORCPT ); Mon, 31 Mar 2014 09:54:19 -0400 Received: from mail-ie0-f171.google.com ([209.85.223.171]:38050 "EHLO mail-ie0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753187AbaCaNyO (ORCPT ); Mon, 31 Mar 2014 09:54:14 -0400 Received: by mail-ie0-f171.google.com with SMTP id ar20so7750142iec.16 for ; Mon, 31 Mar 2014 06:54:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=1pI7Niy6eJoRFsiG9PvwKoUd/aW/tH5jAVtovLRqHnI=; b=qD6DzWuxXTONEoV6qkVs/X5vvKaA5L9W1eX4oTSjms7zCGsDSGw/MBbxDaxIB3fVaX kKcKYrN6+qOfqaETAhuLUpy7/k1ljoQUILuuv64izoR3bflgCgYBx63ohzRjwmr2M0qR dgghxTzfkCXZECcXVJHJVTWkM1hnrSmgCmexEpDJT9R73BN1E53TLm7jE4svHNsqTZIA X5V6BwhQjO6o+P8wwGHxodYuWHMbV4Zvjbn3TCxbKHw7VnDbD6+bBTqLKk92/HYSj27/ Hea/TfMo986rHjBxmstNjzy78b6Kf4FmQzOtqEy5dEZdkHJyLHQ4ttjcuQOPaXr4/bvg 4MIg== X-Received: by 10.42.136.202 with SMTP id v10mr20040090ict.61.1396274053067; Mon, 31 Mar 2014 06:54:13 -0700 (PDT) Received: from localhost ([149.199.62.254]) by mx.google.com with ESMTPSA id y9sm25373379igl.7.2014.03.31.06.54.10 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 31 Mar 2014 06:54:12 -0700 (PDT) From: Srikanth Thokala To: dan.j.williams@intel.com, vinod.koul@intel.com, michal.simek@xilinx.com, grant.likely@linaro.org, robh+dt@kernel.org Cc: lars@metafoo.de, andriy.shevchenko@linux.intel.com, jaswinder.singh@linaro.org, dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Srikanth Thokala Subject: [PATCH 1/2] dma: Add Xilinx Central DMA DT Binding Documentation Date: Mon, 31 Mar 2014 19:24:03 +0530 Message-Id: <1396274044-6524-1-git-send-email-sthokal@xilinx.com> X-Mailer: git-send-email 1.7.9.5 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Device-tree binding documentation of Xilinx Central DMA Engine Signed-off-by: Srikanth Thokala --- .../devicetree/bindings/dma/xilinx/xilinx_cdma.txt | 54 ++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/xilinx/xilinx_cdma.txt diff --git a/Documentation/devicetree/bindings/dma/xilinx/xilinx_cdma.txt b/Documentation/devicetree/bindings/dma/xilinx/xilinx_cdma.txt new file mode 100644 index 0000000..b04f76b --- /dev/null +++ b/Documentation/devicetree/bindings/dma/xilinx/xilinx_cdma.txt @@ -0,0 +1,54 @@ +Xilinx AXI CDMA engine, it does transfers between memory-mapped source +address and a memory-mapped destination address. + +Required properties: +- compatible: Should be "xlnx,axi-cdma-1.00.a" +- #dma-cells: Should be <1>, see "dmas" property below +- reg: Should contain cdma registers location and length. +- dma-channel child node: Should have only one channel + +Optional properties: +- xlnx,include-sg: Tells whether configured for Scatter-mode in + the hardware. + +Required child node properties: +- compatible: It should be "xlnx,axi-cdma-channel". +- interrupts: Should contain per channel CDMA interrupts. +- xlnx,data-width: Should contain the stream data width, take values + {32,64...1024}. + +Option child node properties: +- xlnx,include-dre: Tells whether hardware is configured for Data + Realignment Engine. + +Example: +++++++++ + +axi_cdma_0: axicdma@7e200000 { + compatible = "xlnx,axi-cdma-1.00.a"; + #dma_cells = <1>; + reg = < 0x7e200000 0x10000 >; + dma-channel@7e200000 { + compatible = "xlnx,axi-cdma-channel"; + interrupts = < 0 55 4 >; + xlnx,datawidth = <0x40>; + } ; +} ; + + +* DMA client + +Required properties: +- dmas: a list of <[Central DMA device phandle] [Channel ID]> pairs, + where Channel ID is '0' for write/tx and '1' for read/rx + channel. +- dma-names: a list of DMA channel names, one per "dmas" entry + +Example: +++++++++ + +cdmatest_0: cdmatest@0 { + compatible ="xlnx,axi-cdma-test-1.00.a"; + dmas = <&axi_cdma_0 0>; + dma-names = "cdma0"; +} ;