Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755455AbbEURYg (ORCPT ); Thu, 21 May 2015 13:24:36 -0400 Received: from mail-bl2on0076.outbound.protection.outlook.com ([65.55.169.76]:21502 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753162AbbEURYc (ORCPT ); Thu, 21 May 2015 13:24:32 -0400 X-Greylist: delayed 860 seconds by postgrey-1.27 at vger.kernel.org; Thu, 21 May 2015 13:24:32 EDT Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none; From: Kedareswara rao Appana To: , , , , , , , CC: , , , Kedareswara rao Appana , Srikanth Thokala Subject: [PATCH v4 1/2] dma: Add Xilinx Central DMA DT Binding Documentation Date: Thu, 21 May 2015 22:39:54 +0530 Message-ID: <1432228194-6760-1-git-send-email-appanad@xilinx.com> X-Mailer: git-send-email 2.1.2 X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.0.0.1202-21558.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD020;1:CBd30kVxTwLJnWkCPRGcOnQnAPV7ELMMo3ren3ZBmFH30zReDiMPlJt3FP1PTYzSavUMenkWajO+VXnkdRMCK4k2Z8AUKuRo2A8chpauenbVvQxHCeNEtp9vUxwZI3OjvJAL7WIJJCGbCQdcdmmklpm7YZJSqzHrALuSJnvf8fhUnjNypFPe703Et2SZj4z9NzJTSKdVrLtwPIsW3xUpCIy4F0erAutd+YsFZi9QIZCfo+8e0k7K8rs8zAET85ZnOzR+B4UObWc1OTq4P233xiu5Ik3dnpOrUdZGcsz9Blz/Vf3NwCxsphmFKUcFcrJ7 X-Forefront-Antispam-Report: CIP:149.199.60.100;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(438002)(189002)(199003)(4001540100001)(81156007)(46102003)(42186005)(77156002)(62966003)(103686003)(189998001)(64706001)(47776003)(33646002)(63266004)(5001960100002)(107886002)(36386004)(48376002)(19580405001)(92566002)(19580395003)(5001860100001)(5001920100001)(5001830100001)(5001770100001)(87936001)(86362001)(36756003)(2201001)(46386002)(52956003)(50986999)(6806004)(50466002)(229853001)(50226001)(45336002)(106466001)(107986001)(90966001)(5001870100001)(4001450100001)(4001430100001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN1BFFO11HUB033;H:xsj-pvapsmtpgw02;FPR:;SPF:Pass;PTR:xapps1.xilinx.com,unknown-60-100.xilinx.com;MX:1;A:1;LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11HUB033;2:nEdylh4kS0tA+HtBzpcGvsKKmAsYdp6KGiByPjl44G332U3s/5DoCWWHfehKtGpQ;2:9l6juHjBbXfABupYUZIoqkllPaTByO749mrKAVGL7KME3KqX03XTUFpoLm7BSqbMgqQgWJbVdPGyCsRRAAspkybFBchEOIUW7l3mxTfHIwuz5Pg9EdvrQfCZ7YCXU1rWCtrBAiqk3Txv/ZuSpuXWMaeex9xn4Mftwkjf7Vu9zJiM545d5nrgPL0HP/DSvKWuR5IWdLsUCrMff04SwZUvRlsVyD68XTBjveBu16pwYLkoRBa7fSJpTzjsmBU5u/HC;6:U0nsevLhILJa5EeFEDGJV2UJecaXQR6bT9hatbBVkYelr/VzIh/uKieE1fg+CRuAsSD725kB3QqJPGLvRZjax/Kl86h9GTIjMUIHtEz/9/UNsRZQQldPoGtnW963PPopvPo1Cjeh/kpyK7N68YiG095tjfeUlcBqonM3+6QPZ95qf/MMaMTQXZQ8OD3+ioPXCEySuWX3nG6uuBrx7+fc6DY4+4+C+F0yVR/xBWT7woNqaCcdx74Y75yf6Q8kUw0bkAEUwa/QRhLDtO3EBEy797MGOpXtnT3uif+osBNnhAGDVR9CYBtm7yizdLxi5tfCoTYEZWGiVcrkmxRSGUL9MULb4Yi5FUmkLoQIwx/nUlBhlXM/KLUEj6M5BqY+mw2N4D5DxAtJxx/WY363aV74x40crllgZNpomqLbn/g83iXEqeVBx84oNjt/Yzmzh3pE9MKrP2I1tan9cAwbIstmdfMWzmB5vuOLA5GKToKXSolfzwBZ6kog6dw/91Ca3ZHb X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN1BFFO11HUB033; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:BN1BFFO11HUB033;BCL:0;PCL:0;RULEID:;SRVR:BN1BFFO11HUB033; X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11HUB033;3:DNil0wcoP4b+S+UJxPIs/fTE+4Om+F1l9b3I8rbbq7N8zV9uk+68voOq5boVE6TpJLh8EsASOMVhSFH+fxipPiH5GhHYJLXhFoOkfOHAVuqqOTmQBLLW+1TVKkEKtvnFSBM3JBzUpRhlouuehaCCc1f1ls99GxPFfYJAju3jEM8cV9lpE2oYQ6/Q6875m3Mwqr2d8zllT2/xdFGHWGiPir7nt0RAzT1osG/t3BwBAfY2DrcAEE0QpswGzWVB85qIgsw8WPn/VFsQPC4yvQeA0Wzwoyu3KIwpBAN3HHiEA0M= X-Forefront-PRVS: 0583A86C08 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN1BFFO11HUB033;9:C/fOpzbJ4gNkEh7dXBJc0GL/pF8VUmh2L/LT5azN?= =?us-ascii?Q?C4ZWb8FIwyKFfe2bMWz9YJFtnbMJGPbVfMN8e6/k1c101J6E3sq+s9krbB8s?= =?us-ascii?Q?fyAV4cfEVPz62nEZ97lll82O8CFkYJpG+jFeQl74HKQgwSc+87olG6fp1Gaq?= =?us-ascii?Q?5UQHeYxmZjtuqQuT7WSqIJXEB3gk0xj0BSdpFxaJjg4ZH/Y6WKG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ogZygQot7W5rs2qbDHb0q2qQI8J0Nc2vzweImb?= =?us-ascii?Q?Sg9qBznQISg4FqzDfKXR85h3CKvi16oghqAJyJwTQ4x+YhSGTcb0YfGsk71T?= =?us-ascii?Q?pDr+Ojl2vuaZGvM6y4al/pPnLD3c4xz4F+oe?= X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11HUB033;3:2H9lbqZeGgU4bJy03YtYONah0CIM2f9l+96N/P1J9Z7gEQKM6RvNCJQ5cNncHTaFgBaTP3hthYBQflkVM2cEZvRH3UTeELHqZlhVBg08Qh/aOTGGyFuHYB/1s75o19EBEUppENf5+RGm8RrJS8B9qA==;10:QU0MHVIlHObdi+UkYD+HoOzGUosUwshgiUeMkIEggHvT9Fp2UCDnp9M5EHMEDfhyDIQMTk0jVNt7lHc58b3THVsHCZXryKZpyKKBsg5x8Bk= X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 May 2015 17:10:11.1659 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.100];Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1BFFO11HUB033 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2871 Lines: 88 Device-tree binding documentation of Xilinx Central DMA Engine. Signed-off-by: Srikanth Thokala Signed-off-by: Kedareswara rao Appana --- This patch is rebased on the commit Merge tag 'nfs-for-4.1-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs Changes in v4: - None. Changes in v3: - Used proper alignment for all the properties. Changes in v2: - Change property 'xlnx,data-width' to 'xlnx,datawidth' in the description to match the implementation. .../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..d1637de --- /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,datawidth : 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 = "cdma"; +} ; -- 2.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/