From patchwork Tue Aug 14 13:49:36 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Genoud X-Patchwork-Id: 1319641 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id D2E37DF215 for ; Tue, 14 Aug 2012 14:03:42 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T1He8-0005yp-GY; Tue, 14 Aug 2012 13:59:01 +0000 Received: from mail-we0-f177.google.com ([74.125.82.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1T1HWF-0000bp-Ea for linux-arm-kernel@lists.infradead.org; Tue, 14 Aug 2012 13:50:53 +0000 Received: by mail-we0-f177.google.com with SMTP id r3so277996wey.36 for ; Tue, 14 Aug 2012 06:50:51 -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:x-mailer:in-reply-to:references; bh=tnjFqGbaAIuWawcaG7oIdlMSrUxLVCqbQAns/YaL8gw=; b=khO2N9FI9Yekc7jjzhQe9GycjnSPHjt7IHIdjxXK17rvZVeF+/ReCPYSGJMyrgLfON t/2xpe/ufgsm2gFn8WDg7Ee+i0/mIMpUzWiLPruMHfslscLfKFobC4qw9IER/FJnpZX/ Drtj9vz3Hr3OWFMd5dHJyPcp8vZW4MI1ZnLOwRZ4X1M1I0rYm3lBR0fxxGIN9YyYi0MK ahUELyqUyS/QgHO4J7aCfmtpPLmbj+Sk1x08FkS89OJ8fu9BvCxmnFVpcXI802nY4B9v NtY6wNnxU6MQWEqb/tDEzXvvVMTwDDowrKkDaiV/XrvjIXQWH0V5hNlEXjOzACxNn4J9 jSqw== Received: by 10.180.83.106 with SMTP id p10mr28012478wiy.21.1344952251140; Tue, 14 Aug 2012 06:50:51 -0700 (PDT) Received: from localhost.localdomain (lyon.paratronic.fr. [213.41.177.106]) by mx.google.com with ESMTPS id eu4sm22509397wib.2.2012.08.14.06.50.49 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 14 Aug 2012 06:50:50 -0700 (PDT) From: Richard Genoud To: Nicolas Ferre Subject: [PATCH 22/23] spi-atmel: complete DMA slave OF documentation Date: Tue, 14 Aug 2012 15:49:36 +0200 Message-Id: <1344952177-18385-23-git-send-email-richard.genoud@gmail.com> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1344952177-18385-1-git-send-email-richard.genoud@gmail.com> References: <1344952177-18385-1-git-send-email-richard.genoud@gmail.com> X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.82.177 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (richard.genoud[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Richard Genoud , Jean-Christophe PLAGNIOL-VILLARD , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Signed-off-by: Richard Genoud --- .../devicetree/bindings/spi/spi_atmel.txt | 25 ++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/Documentation/devicetree/bindings/spi/spi_atmel.txt b/Documentation/devicetree/bindings/spi/spi_atmel.txt index 6d2e5e1..b5d8082 100644 --- a/Documentation/devicetree/bindings/spi/spi_atmel.txt +++ b/Documentation/devicetree/bindings/spi/spi_atmel.txt @@ -5,6 +5,24 @@ Required properties: - reg: Address and length of the register set for the device - interrupts: Should contain macb interrupt - cs-gpio: Should contain the GPIOs used for chipselect. +- dma-mask: device coherent dma mask. +/* dma transfer configuration. Cf DMA Channel configuration register */ +- dma: handle to the dma controller that should be used. +- atc_src_per: source channel for DMA operation. +- atc_dst_per: destination channel for DMA operation. +- atc_src_h2sel_hw: Hardware handshaking interface is used to trigger a +transfer request. +- atc_dst_h2sel_hw: Hardware handshaking interface is used to trigger a +transfer request. +- atc_sod: STOP ON DONE activated. +- atc_lock_if: Interface Lock capability is enabled. +- atc_lock_b: AHB Bus Locking capability is enabled. +- atc_lock_if_l_buffer: The Master Interface Arbiter is locked by the channel x for a buffer transfer. +- atc_fifocfg_halffifo: When half FIFO size is available/filled, a source/destination request is serviced. +- atc_fifocfg_enoughspace: When there is enough space/data available to perform a single AHB access, then the request is serviced. +- atc_fifocfg_largestburst: The largest defined length AHB burst is performed on the destination AHB interface. +- atc_ahb_prot: AHB Protection value. (cf release manual) + spi0: spi@f0000000 { #address-cells = <1>; @@ -17,5 +35,12 @@ spi0: spi@f0000000 { &pioA 1 0 /* conflicts with RXD0 */ &pioB 3 0 /* conflicts with ERXDV */ >; + dma-mask = <0xffffffff>; + dma = <&dma0>; + atc_src_per = <2>; /* AT_DMA_ID_SPI0_RX */ + atc_dst_per = <1>; /* AT_DMA_ID_SPI0_TX */ + atc_fifocfg_halffifo; + atc_src_h2sel_hw; + atc_dst_h2sel_hw; status = "disabled"; };