From patchwork Tue Apr 15 10:54:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Popov X-Patchwork-Id: 3991151 X-Patchwork-Delegate: vinod.koul@intel.com Return-Path: X-Original-To: patchwork-dmaengine@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 09F6DC0DA2 for ; Tue, 15 Apr 2014 10:54:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2AEF82022A for ; Tue, 15 Apr 2014 10:54:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 318FC201FB for ; Tue, 15 Apr 2014 10:54:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754547AbaDOKyn (ORCPT ); Tue, 15 Apr 2014 06:54:43 -0400 Received: from mail-lb0-f170.google.com ([209.85.217.170]:53169 "EHLO mail-lb0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754543AbaDOKyj (ORCPT ); Tue, 15 Apr 2014 06:54:39 -0400 Received: by mail-lb0-f170.google.com with SMTP id s7so6837099lbd.1 for ; Tue, 15 Apr 2014 03:54:37 -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=Q85bR4spW/RU5Pk1kyo0g6kVASGoANVtcFtSHIwEo9w=; b=cwQHe2BjGveJ+uRhFaIDSfeGygtzjnP2Dree4fXsiNtXv9EmtdOBoZ3fHSzZxZZG04 gUnCSm5i/gGvGEts+lO9wegJ8sM7evarI4w32Pn8k/0O+ihUWUWDrpsg6mbhvKaymmyE WNH9B+wnk6I11fuxDKJnjVGIq0Wt++gvHsaK4qHu/TY754mltE3khJJS42tXktzqvBbn 0EJ5eBlxOBHsljYlY6+xgvfhsW6hZF78XEAG4HYB1BLX5OvOGUgbP0YdaKvYziAJF441 dQzbyzKnHB7bnIneJOnLgs8jEURsngu77FiniNfq8uT5F+3/O4bDLIU20UrZ3rR4dl9f jErA== X-Received: by 10.112.205.35 with SMTP id ld3mr754303lbc.1.1397559277651; Tue, 15 Apr 2014 03:54:37 -0700 (PDT) Received: from a13xCCC.localdomain ([89.175.56.18]) by mx.google.com with ESMTPSA id bm3sm16946268lbb.12.2014.04.15.03.54.36 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 15 Apr 2014 03:54: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 Cc: devicetree@vger.kernel.org Subject: [PATCH RFC v11 5/6] dma: mpc512x: add device tree binding document Date: Tue, 15 Apr 2014 14:54:09 +0400 Message-Id: <1397559250-17680-6-git-send-email-a13xp0p0v88@gmail.com> X-Mailer: git-send-email 1.7.11.3 In-Reply-To: <1397559250-17680-1-git-send-email-a13xp0p0v88@gmail.com> References: <1397559250-17680-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: Gerhard Sittig Signed-off-by: Alexander Popov --- .../devicetree/bindings/dma/mpc512x-dma.txt | 51 ++++++++++++++++++++++ 1 file changed, 51 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..92eb0d9 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/mpc512x-dma.txt @@ -0,0 +1,51 @@ +* Freescale MPC512x and MPC8308 DMA Controller + +The DMA controller in the Freescale MPC512x and MPC8308 SoCs can move +blocks of memory contents between memory and peripherals or +from memory to memory. + +Refer to the "Generic DMA Controller and DMA request bindings" in +the dma/dma.txt file for a more detailed description of binding. + +* DMA controller + +Required properties: +- compatible: Should be one of + "fsl,mpc5121-dma" + "fsl,mpc8308-dma", "fsl,mpc5121-dma" +- reg: Address and size of the DMA controller's register set +- interrupts: Interrupt for the DMA controller. Generic interrupt client node + is described in interrupt-controller/interrupts.txt + +Optional properties: +- #dma-cells: The length of the DMA specifier, must be <1> since + the DMA controller uses a fixed assignment of request lines + per channel. Refer to dma/dma.txt for the detailed description + of this property + +Example: + + dma0: dma@14000 { + compatible = "fsl,mpc5121-dma"; + reg = <0x14000 0x1800>; + interrupts = <65 0x8>; + #dma-cells = <1>; + }; + +* DMA client + +Required properties: +- dmas: List of one or more DMA request specifiers. One DMA request specifier + consists of a phandle to the DMA controller node followed by + the integer specifying the request line +- dma-names: Contains an identifier string for each DMA request specifier. + Refer to dma/dma.txt for the description of this property + +Example: + + sdhc@1500 { + compatible = "fsl,mpc5121-sdhc"; + /* ... */ + dmas = <&dma0 30>; + dma-names = "rx-tx"; + };