From patchwork Tue Feb 25 06:54:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chao Fu X-Patchwork-Id: 3713381 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 D93089F2ED for ; Tue, 25 Feb 2014 08:00:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0642F20115 for ; Tue, 25 Feb 2014 08:00:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3A182200ED for ; Tue, 25 Feb 2014 08:00:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751343AbaBYIAz (ORCPT ); Tue, 25 Feb 2014 03:00:55 -0500 Received: from [213.199.154.205] ([213.199.154.205]:57384 "EHLO am1outboundpool.messaging.microsoft.com" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1750735AbaBYIAy (ORCPT ); Tue, 25 Feb 2014 03:00:54 -0500 Received: from mail104-am1-R.bigfish.com (10.3.201.230) by AM1EHSOBE008.bigfish.com (10.3.204.28) with Microsoft SMTP Server id 14.1.225.22; Tue, 25 Feb 2014 07:59:43 +0000 Received: from mail104-am1 (localhost [127.0.0.1]) by mail104-am1-R.bigfish.com (Postfix) with ESMTP id F12554C00F5; Tue, 25 Feb 2014 07:59:42 +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: 1 X-BigFish: VS1(z54eehzzz1f42h2148h208ch1ee6h1de0h1fdah2073h2146h1202h1e76h2189h1d1ah1d2ah21bch1fc6hzdchd2iz1de098h8275bh1de097hz2dh2a8h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1ad9h1b0ah1b2fh2222h224fh1fb3h1d0ch1d2eh1d3fh1dc1h1dfeh1dffh1e23h1fe8h1ff5h2218h2216h226dh22d0h24afh2327h2336h2438h2461h2487h24d7h2516h2545h255eh1155h) Received: from mail104-am1 (localhost.localdomain [127.0.0.1]) by mail104-am1 (MessageSwitch) id 1393315180380738_29093; Tue, 25 Feb 2014 07:59:40 +0000 (UTC) Received: from AM1EHSMHS008.bigfish.com (unknown [10.3.201.233]) by mail104-am1.bigfish.com (Postfix) with ESMTP id 5953B20009A; Tue, 25 Feb 2014 07:59:40 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by AM1EHSMHS008.bigfish.com (10.3.207.108) with Microsoft SMTP Server (TLS) id 14.16.227.3; Tue, 25 Feb 2014 07:59:40 +0000 Received: from az84smr01.freescale.net (10.64.34.197) by 039-SN1MMR1-003.039d.mgd.msft.net (10.84.1.16) with Microsoft SMTP Server (TLS) id 14.3.158.2; Tue, 25 Feb 2014 07:59:27 +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 s1P7xNus008317; Tue, 25 Feb 2014 00:59:24 -0700 From: Chao Fu To: , , , CC: Chao Fu , Chao Fu Subject: [PATCH 1/3] Documentation:spi:fsl-dspi:add DSPI dma transfer support Date: Tue, 25 Feb 2014 14:54:16 +0800 Message-ID: <1393311258-14380-1-git-send-email-b44548@freescale.com> X-Mailer: git-send-email 1.8.0 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=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 From: Chao Fu Add bool value use-dma. The bool will determine whether DSPI use dma channel transfer data in a platform. Add dmas and dma-names for describing dma channels of DSPI. Signed-off-by: Chao Fu --- Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt b/Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt index 5376de4..76a1039 100644 --- a/Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt +++ b/Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt @@ -11,6 +11,11 @@ Required properties: - spi-num-chipselects : the number of the chipselect signals. - bus-num : the slave chip chipselect signal number. - big-endian : if DSPI modudle is big endian, the bool will be set in node. +- use-dma: the bool decide if use dma method in DSPI transfering. +- dmas: List of DMA specifiers with the controller specific format + as described in the generic DMA client binding. A tx and rx + specifier is required for each chip select. +- dma-names: Should be named "tx" and "rx". Example: dspi0@4002c000 { @@ -26,6 +31,10 @@ dspi0@4002c000 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_dspi0_1>; big-endian; + use-dma; + dmas = <&edma0 0 12>, + <&edma0 0 13>; + dma-names = "rx", "tx"; status = "okay"; sflash: at26df081a@0 {