From patchwork Wed Apr 23 13:53:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Popov X-Patchwork-Id: 341883 X-Patchwork-Delegate: agust@denx.de Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 433B714141C for ; Wed, 23 Apr 2014 23:58:34 +1000 (EST) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com [209.85.215.45]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id C0C32140285 for ; Wed, 23 Apr 2014 23:53:49 +1000 (EST) Received: by mail-la0-f45.google.com with SMTP id hr17so809389lab.32 for ; Wed, 23 Apr 2014 06:53:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JeX+eGfqzeMnfDvUytyJvgiWDXYZJDpsIsuc7nFjJqY=; b=LhyQ8g1QV+o83sVcUDTy6jLu7V8mJW4bOm0tBAgospDh4CwvD6IAJJuauMoPBGDkZC 1xQKsXCOlYmLRYPS1893xq2FOlajSm3eAAkBqjp3f/dvSNj7QsmkDpb67juFW3ixTDCy Dgp7L4Ci9MGW6OLFPC64soh5sTr7Txv+6+QU8D+VKooqI/gd2NfOHFnEYkXKL+acXXTZ gmn7RI4tOibO43+ZgpjDPKcBohOzC3mGh+Kd03+Pu/A4MhML+zXIfAjU43SCNqdvkcu+ lj0sPSmL3le8YN8C/XG16SEZ244kd3+g+g3wPsSORKSjKc10xRE/H2YNjRTBNeFvuwFZ ZYvw== X-Received: by 10.152.30.41 with SMTP id p9mr35823634lah.26.1398261224850; Wed, 23 Apr 2014 06:53:44 -0700 (PDT) Received: from a13xCCC.localdomain ([89.175.56.18]) by mx.google.com with ESMTPSA id zx3sm1160816lbc.2.2014.04.23.06.53.41 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 23 Apr 2014 06:53:43 -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 Subject: [PATCH RFC v12 6/7] dma: mpc512x: add device tree binding document Date: Wed, 23 Apr 2014 17:53:28 +0400 Message-Id: <1398261209-5578-7-git-send-email-a13xp0p0v88@gmail.com> X-Mailer: git-send-email 1.7.11.3 In-Reply-To: <1398261209-5578-1-git-send-email-a13xp0p0v88@gmail.com> References: <1398261209-5578-1-git-send-email-a13xp0p0v88@gmail.com> Cc: devicetree@vger.kernel.org X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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"; + };