From patchwork Sat May 24 09:33:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Popov X-Patchwork-Id: 4237341 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 1BAFA9F381 for ; Sat, 24 May 2014 09:33:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5123F203DB for ; Sat, 24 May 2014 09:33:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7243D203E9 for ; Sat, 24 May 2014 09:33:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751278AbaEXJdp (ORCPT ); Sat, 24 May 2014 05:33:45 -0400 Received: from mail-la0-f53.google.com ([209.85.215.53]:53232 "EHLO mail-la0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750976AbaEXJdk (ORCPT ); Sat, 24 May 2014 05:33:40 -0400 Received: by mail-la0-f53.google.com with SMTP id ty20so3306331lab.12 for ; Sat, 24 May 2014 02:33:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=JeX+eGfqzeMnfDvUytyJvgiWDXYZJDpsIsuc7nFjJqY=; b=ijnfw0WWYz0eTdMyXXGpw2H3r2Yz/BKduJB/kfX6AU7zzijF7bloyFYtlkCAl9Uo69 UU0AS2am1ZbFH172189rQoPTqSdb6SlpzyTlNwsKQZ+M4tTLcFVef73oVoJbMbsLCOnd 6OJ4qnr183Opy+Mqwz8OJpDlhM1Y9k8jI1JKTC3xqUtSlbwHgcXrCsip5Dlt3fw5eiYy KjMuavRPeCVTSPggzxHfpaxd6TtSlGQ41Ke7lbwFK+4zFYjnlTgoomRddQE5O4IIJMiW Pgf+qOTyxX1nYz6dp+NCjygenUCpap0yVfCFUJnlY9uNCa8epulsPcJyRCnZ1uocVHIo VJrw== X-Received: by 10.112.12.8 with SMTP id u8mr7327260lbb.9.1400924018781; Sat, 24 May 2014 02:33:38 -0700 (PDT) Received: from a13xCCC.localdomain (mail.tecon.ru. [89.175.104.62]) by mx.google.com with ESMTPSA id a2sm5573462lbz.25.2014.05.24.02.33.37 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 24 May 2014 02:33:37 -0700 (PDT) From: Alexander Popov To: Gerhard Sittig , Dan Williams , Vinod Koul , Lars-Peter Clausen , Arnd Bergmann , Anatolij Gustschin , Andy Shevchenko , Alexander Popov , linuxppc-dev@lists.ozlabs.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/3] dmaengine: mpc512x: add device tree binding document Date: Sat, 24 May 2014 13:33:27 +0400 Message-Id: <1400924009-23992-2-git-send-email-a13xp0p0v88@gmail.com> X-Mailer: git-send-email 1.7.11.3 In-Reply-To: <1400924009-23992-1-git-send-email-a13xp0p0v88@gmail.com> References: <1400924009-23992-1-git-send-email-a13xp0p0v88@gmail.com> 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_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 Introduce a device tree binding document for the MPC512x DMA controller Signed-off-by: Alexander Popov --- .../devicetree/bindings/dma/mpc512x-dma.txt | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/mpc512x-dma.txt diff --git a/Documentation/devicetree/bindings/dma/mpc512x-dma.txt b/Documentation/devicetree/bindings/dma/mpc512x-dma.txt new file mode 100644 index 0000000..b1cbc3f --- /dev/null +++ b/Documentation/devicetree/bindings/dma/mpc512x-dma.txt @@ -0,0 +1,40 @@ +* Freescale MPC512x and MPC8308 DMA Controller + +The DMA controller in Freescale MPC512x and MPC8308 SoCs can move +blocks of memory contents between memory and peripherals or +from memory to memory. + +Refer to "Generic DMA Controller and DMA request bindings" in +the dma/dma.txt file for a more detailed description of binding. + +Required properties: +- compatible: Should be "fsl,mpc5121-dma" or "fsl,mpc8308-dma" +- reg: Address and size of the DMA controller's register set +- Interrupt for the DMA controller. Syntax of interrupt client node + is described in interrupt-controller/interrupts.txt + +Optional properties: +- #dma-cells: The length of the DMA specifier, must be <1>. + Each channel of this DMA controller has a peripheral request line, + this assignment is fixed in hardware. The cell in dmas property + of a client device represents the channel number + +Example: + + dma0: dma@14000 { + compatible = "fsl,mpc5121-dma"; + reg = <0x14000 0x1800>; + interrupts = <65 0x8>; + #dma-cells = <1>; + }; + +DMA clients must use the format described in dma/dma.txt + +Example: + + sdhc@1500 { + compatible = "fsl,mpc5121-sdhc"; + /* ... */ + dmas = <&dma0 30>; + dma-names = "rx-tx"; + };