From patchwork Thu Apr 18 10:12:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 16218 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gh0-f199.google.com (mail-gh0-f199.google.com [209.85.160.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 547C823974 for ; Thu, 18 Apr 2013 10:14:06 +0000 (UTC) Received: by mail-gh0-f199.google.com with SMTP id r16sf2636295ghr.6 for ; Thu, 18 Apr 2013 03:13:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=kOhc+OndXrkpgljmNMdMT2KE6d65Sr9oQlL45f3ZJDA=; b=gKsWb/mmdsVevcgfHE0EPFIJw5k0hnmHP+pwoVrt79Z9/GcPl8vuKePbCNQ3KEcG85 JihGB6gZP1TANzLC0wbxFMdTpSSWf9SYoHpjkmg8jAwEP70vu94HoGTIlQQdCbRp/t1I 6SLzrULXAXGNxe64LK5vJSrNVD9nyTD12t0wVdCd7tgO8LPF9GipIo9t04cMFr9DhnOw LtFz8F5sDsk61UKIKnXs32s4m80xpD0qL5DJehWwWLlt5b4fqoIb7gx6pVkMKjfego9p nPcunXI+ufggAhoyncIWtc0MK1xUBtypxbqtEOkCcnPq76Os7tP+NoUVS9rvqSB7wgph x3Pg== X-Received: by 10.224.18.132 with SMTP id w4mr7578190qaa.1.1366280009333; Thu, 18 Apr 2013 03:13:29 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.97.131 with SMTP id ea3ls1376768qeb.20.gmail; Thu, 18 Apr 2013 03:13:29 -0700 (PDT) X-Received: by 10.58.132.232 with SMTP id ox8mr7675554veb.45.1366280009088; Thu, 18 Apr 2013 03:13:29 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id os3si6248647vcb.23.2013.04.18.03.13.29 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Apr 2013 03:13:29 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id hx10so2248488vcb.14 for ; Thu, 18 Apr 2013 03:13:29 -0700 (PDT) X-Received: by 10.220.39.69 with SMTP id f5mr7760880vce.45.1366280008920; Thu, 18 Apr 2013 03:13:28 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp115779veb; Thu, 18 Apr 2013 03:13:28 -0700 (PDT) X-Received: by 10.194.11.70 with SMTP id o6mr17431228wjb.29.1366280007448; Thu, 18 Apr 2013 03:13:27 -0700 (PDT) Received: from mail-wi0-x234.google.com (mail-wi0-x234.google.com [2a00:1450:400c:c05::234]) by mx.google.com with ESMTPS id bn1si3429587wjb.159.2013.04.18.03.13.27 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Apr 2013 03:13:27 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c05::234 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=2a00:1450:400c:c05::234; Received: by mail-wi0-f180.google.com with SMTP id h11so1599497wiv.1 for ; Thu, 18 Apr 2013 03:13:27 -0700 (PDT) X-Received: by 10.180.84.162 with SMTP id a2mr16831232wiz.14.1366280007065; Thu, 18 Apr 2013 03:13:27 -0700 (PDT) Received: from localhost.localdomain (cpc34-aztw25-2-0-cust250.18-1.cable.virginmedia.com. [86.16.136.251]) by mx.google.com with ESMTPS id t7sm30483773wij.2.2013.04.18.03.13.25 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Apr 2013 03:13:25 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, linus.walleij@stericsson.com, Lee Jones Subject: [PATCH 30/32] ARM: ux500: Supply MMC DMA configuration via Device Tree Date: Thu, 18 Apr 2013 11:12:12 +0100 Message-Id: <1366279934-30761-31-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1366279934-30761-1-git-send-email-lee.jones@linaro.org> References: <1366279934-30761-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQnl1fNXxXg+i74QAfotnYJ+AUO8HAlrHqPqLSvXas7I3jczkZA4acwvoxoWaXU/ajjwhILd X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , When requesting a channel, a DMA client needs to pass some pieces of information such as; request channel, device type, channel type and direction etc. Normally we do this in the form of platform data, but when DT is enabled we need to pass it using the driver's bindings instead. Signed-off-by: Lee Jones --- arch/arm/boot/dts/dbx5x0.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/dbx5x0.dtsi b/arch/arm/boot/dts/dbx5x0.dtsi index bd0fe5f..c064a9a 100644 --- a/arch/arm/boot/dts/dbx5x0.dtsi +++ b/arch/arm/boot/dts/dbx5x0.dtsi @@ -605,6 +605,11 @@ compatible = "arm,pl18x", "arm,primecell"; reg = <0x80126000 0x1000>; interrupts = <0 60 0x4>; + + dmas = <&dma 0 29 0x8>, /* Logical - DevToMem */ + <&dma 0 29 0x4>; /* Logical - MemToDev */ + dma-names = "rx", "tx"; + status = "disabled"; }; @@ -612,6 +617,11 @@ compatible = "arm,pl18x", "arm,primecell"; reg = <0x80118000 0x1000>; interrupts = <0 50 0x4>; + + dmas = <&dma 0 32 0x8>, /* Logical - DevToMem */ + <&dma 0 32 0x4>; /* Logical - MemToDev */ + dma-names = "rx", "tx"; + status = "disabled"; }; @@ -619,6 +629,11 @@ compatible = "arm,pl18x", "arm,primecell"; reg = <0x80005000 0x1000>; interrupts = <0 41 0x4>; + + dmas = <&dma 0 28 0x8>, /* Logical - DevToMem */ + <&dma 0 28 0x4>; /* Logical - MemToDev */ + dma-names = "rx", "tx"; + status = "disabled"; }; @@ -633,6 +648,11 @@ compatible = "arm,pl18x", "arm,primecell"; reg = <0x80114000 0x1000>; interrupts = <0 99 0x4>; + + dmas = <&dma 0 42 0x8>, /* Logical - DevToMem */ + <&dma 0 42 0x4>; /* Logical - MemToDev */ + dma-names = "rx", "tx"; + status = "disabled"; };