From patchwork Tue Feb 25 06:54:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chao Fu X-Patchwork-Id: 3713371 Return-Path: X-Original-To: patchwork-linux-spi@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 148E49F2ED for ; Tue, 25 Feb 2014 08:00:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4852A20115 for ; Tue, 25 Feb 2014 08:00:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 71AAA200ED for ; Tue, 25 Feb 2014 08:00:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750768AbaBYIAq (ORCPT ); Tue, 25 Feb 2014 03:00:46 -0500 Received: from [207.46.163.27] ([207.46.163.27]:14392 "EHLO co9outboundpool.messaging.microsoft.com" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1750735AbaBYIAp (ORCPT ); Tue, 25 Feb 2014 03:00:45 -0500 Received: from mail17-co9-R.bigfish.com (10.236.132.231) by CO9EHSOBE027.bigfish.com (10.236.130.90) with Microsoft SMTP Server id 14.1.225.22; Tue, 25 Feb 2014 07:59:34 +0000 Received: from mail17-co9 (localhost [127.0.0.1]) by mail17-co9-R.bigfish.com (Postfix) with ESMTP id A39A74C0430; Tue, 25 Feb 2014 07:59:34 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: 2 X-BigFish: VS2(z54eeh551bizzz1f42h2148h208ch1ee6h1de0h1fdah2073h2146h1202h1e76h2189h1d1ah1d2ah21bch1fc6hzdchd2iz1de098h8275bh1de097hz2dh2a8h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1ad9h1b0ah1b2fh2222h224fh1fb3h1d0ch1d2eh1d3fh1dfeh1dffh1e23h1fe8h1ff5h2218h2216h226dh22d0h24afh2327h2336h2438h2461h2487h24d7h2516h2545h255eh1155h) Received: from mail17-co9 (localhost.localdomain [127.0.0.1]) by mail17-co9 (MessageSwitch) id 1393315173607964_1275; Tue, 25 Feb 2014 07:59:33 +0000 (UTC) Received: from CO9EHSMHS014.bigfish.com (unknown [10.236.132.247]) by mail17-co9.bigfish.com (Postfix) with ESMTP id 90A4A1E0259; Tue, 25 Feb 2014 07:59:33 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CO9EHSMHS014.bigfish.com (10.236.130.24) with Microsoft SMTP Server (TLS) id 14.16.227.3; Tue, 25 Feb 2014 07:59:30 +0000 Received: from az84smr01.freescale.net (10.64.34.197) by 039-SN1MMR1-004.039d.mgd.msft.net (10.84.1.14) with Microsoft SMTP Server (TLS) id 14.3.158.2; Tue, 25 Feb 2014 07:59:29 +0000 Received: from rock.am.freescale.net (rock.ap.freescale.net [10.193.20.106]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id s1P7xNut008317; Tue, 25 Feb 2014 00:59:27 -0700 From: Chao Fu To: , , , CC: Chao Fu , Chao Fu Subject: [PATCH 2/3] arm:dts:vf-610:add vybrid DSPI DMA transfer support Date: Tue, 25 Feb 2014 14:54:17 +0800 Message-ID: <1393311258-14380-2-git-send-email-b44548@freescale.com> X-Mailer: git-send-email 1.8.0 In-Reply-To: <1393311258-14380-1-git-send-email-b44548@freescale.com> References: <1393311258-14380-1-git-send-email-b44548@freescale.com> MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% X-FOPE-CONNECTOR: Id%0$Dn%FREESCALE.MAIL.ONMICROSOFT.COM$RO%1$TLS%0$FQDN%$TlsDn% Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY, UNRESOLVED_TEMPLATE autolearn=unavailable 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 From: Chao Fu DSPI can transfer data in DMA mode or PIO mode. The ajudgement of using DMA method(use-dma) will be read from dtb. And add DMA channels info of DSPI. Signed-off-by: Chao Fu --- arch/arm/boot/dts/vf610.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/vf610.dtsi b/arch/arm/boot/dts/vf610.dtsi index e1e1e51..2fe53c1 100644 --- a/arch/arm/boot/dts/vf610.dtsi +++ b/arch/arm/boot/dts/vf610.dtsi @@ -148,6 +148,10 @@ clocks = <&clks VF610_CLK_DSPI0>; clock-names = "dspi"; spi-num-chipselects = <5>; + use-dma; + dmas = <&edma0 0 12>, + <&edma0 0 13>; + dma-names = "rx", "tx"; status = "disabled"; };