From patchwork Thu May 15 14:15:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Popov X-Patchwork-Id: 349229 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 445F4140107 for ; Fri, 16 May 2014 00:16:24 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754944AbaEOOQT (ORCPT ); Thu, 15 May 2014 10:16:19 -0400 Received: from mail-la0-f43.google.com ([209.85.215.43]:60130 "EHLO mail-la0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751403AbaEOOQS (ORCPT ); Thu, 15 May 2014 10:16:18 -0400 Received: by mail-la0-f43.google.com with SMTP id mc6so851534lab.2 for ; Thu, 15 May 2014 07:16:16 -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=kYLIA8FAeXllpLUYmr13/fLWBvC02G5UGyngtMnmD5fJdlAg+vHpciXPEmEpHvY9IN 528EhL1KrsnbxfdqRk1tEGu2vdagXKWLL0dL2QbcPOL0M7vd19hnEnvm1qC3gv6+DW1O zTbhvTu8XvY3w7naaB0BMLimD0iSrJzZxawH36ma30X9yPCyDVce3NwrhkPKHWhcNkRA Pbx/lRjGtfHt0Nq4aI7dpNIRAOQEuqV9bYl0qE+juAdE5uenKZAP4iL58sAnYo2jQ77W 07cf0W7P2d4qPEAhRadUh8c+cEcze+JvZj7RjmVzuuOFVv5xLQVIG4nvbTua2FMPRZxx foYQ== X-Received: by 10.152.199.39 with SMTP id jh7mr7806906lac.18.1400163376299; Thu, 15 May 2014 07:16:16 -0700 (PDT) Received: from a13xCCC.localdomain (mail.tecon.ru. [89.175.104.62]) by mx.google.com with ESMTPSA id q4sm5542916lbl.14.2014.05.15.07.16.14 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 15 May 2014 07:16:15 -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 Cc: devicetree@vger.kernel.org Subject: [PATCH RFC v13 4/5] dma: mpc512x: add device tree binding document Date: Thu, 15 May 2014 18:15:34 +0400 Message-Id: <1400163335-29853-5-git-send-email-a13xp0p0v88@gmail.com> X-Mailer: git-send-email 1.7.11.3 In-Reply-To: <1400163335-29853-1-git-send-email-a13xp0p0v88@gmail.com> References: <1400163335-29853-1-git-send-email-a13xp0p0v88@gmail.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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"; + };