From patchwork Sun Dec 24 04:36:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cyrille Pitchen X-Patchwork-Id: 10131837 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 16E716019C for ; Sun, 24 Dec 2017 04:52:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0718928D16 for ; Sun, 24 Dec 2017 04:52:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EDF0C28D22; Sun, 24 Dec 2017 04:52:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C7CD28D16 for ; Sun, 24 Dec 2017 04:52:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756828AbdLXEwP (ORCPT ); Sat, 23 Dec 2017 23:52:15 -0500 Received: from 10.mo69.mail-out.ovh.net ([46.105.73.241]:47865 "EHLO 10.mo69.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756514AbdLXEwP (ORCPT ); Sat, 23 Dec 2017 23:52:15 -0500 X-Greylist: delayed 898 seconds by postgrey-1.27 at vger.kernel.org; Sat, 23 Dec 2017 23:52:14 EST Received: from player699.ha.ovh.net (gw6.ovh.net [213.251.189.206]) by mo69.mail-out.ovh.net (Postfix) with ESMTP id 9F9024D2FD for ; Sun, 24 Dec 2017 05:36:58 +0100 (CET) Received: from mountainer.wedev4u.int (cor13-1-82-232-94-13.fbx.proxad.net [82.232.94.13]) (Authenticated sender: cyrille.pitchen@wedev4u.fr) by player699.ha.ovh.net (Postfix) with ESMTPSA id B344B24007E; Sun, 24 Dec 2017 05:36:41 +0100 (CET) From: Cyrille Pitchen To: computersforpeace@gmail.com, dwmw2@infradead.org, richard@nod.at, boris.brezillon@free-electrons.com, marek.vasut@gmail.com, linux-mtd@lists.infradead.org, broonie@kernel.org, vigneshr@ti.com, linux@armlinux.org.uk Cc: linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, robh@kernel.org, devicetree@vger.kernel.org, nicolas.ferre@microchip.com, radu.pirea@microchip.com, Cyrille Pitchen Subject: [PATCH 2/3] dt-bindings: mtd: atmel-quadspi: add an optional property 'dmacap, memcpy' Date: Sun, 24 Dec 2017 05:36:05 +0100 Message-Id: <143542c61ca674d53da4985bbabc142e8e6ebefc.1514087323.git.cyrille.pitchen@wedev4u.fr> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: X-Ovh-Tracer-Id: 3380514470344349662 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 25 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtuddrhedugddulecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemuceftddtnecuogfthfevqddqjfgurhdqufhushhpvggtthdqlhhoficuldehmdenogfthfevqddqjfgurhdqufhushhpvggtthculddvtddm Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The optional 'dmacap,memcpy' DT property tells the Atmel QSPI controller driver to reserve some DMA channel then to use it to perform DMA memcpy() during data transfers. This feature relies on the generic bounce buffer helper from spi-nor.c. Signed-off-by: Cyrille Pitchen --- Documentation/devicetree/bindings/mtd/atmel-quadspi.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/atmel-quadspi.txt b/Documentation/devicetree/bindings/mtd/atmel-quadspi.txt index b93c1e2f25dd..002d3f0a445b 100644 --- a/Documentation/devicetree/bindings/mtd/atmel-quadspi.txt +++ b/Documentation/devicetree/bindings/mtd/atmel-quadspi.txt @@ -12,6 +12,10 @@ Required properties: - #address-cells: Should be <1>. - #size-cells: Should be <0>. +Optional properties: +- dmacap,memcpy: Reserve a DMA channel to perform DMA memcpy() between the + system memory and the QSPI mapped memory. + Example: spi@f0020000 { @@ -24,6 +28,7 @@ spi@f0020000 { #size-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_spi0_default>; + dmacap,memcpy; m25p80@0 { ...