Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1982213imu; Wed, 21 Nov 2018 05:07:10 -0800 (PST) X-Google-Smtp-Source: AFSGD/U2j2/sdgqzGFsbL28WQeTLRyhXVvz80TEsmKbWGDW+PgO9WBqXbKya4Q/bvusaXUHW6CjS X-Received: by 2002:a63:1e17:: with SMTP id e23mr5857311pge.130.1542805630553; Wed, 21 Nov 2018 05:07:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542805630; cv=none; d=google.com; s=arc-20160816; b=OB6GRfAXTplKuFROeMy8qR4Qgvx2Y/YpgfD8eZZX5lD6sCOB5fj2p0QpFFzuToLWTQ JcRZpvVcg9HKixVTGWcazq5c1sgWCBm59H4eBMjPRKbmFoJrvYmPHFWiD0178oBNHt3a gVzckeMPEpdel4EfIVFlWhTfJsWIQkbj3xuhgI9HsoVzGeKjhz0toxnXzTq7YR2/g5YQ eS04lzBTF1p80lrUEoSTjtPIxBgWnM7SgpjA38ZqXKU46hFH4Nu1sVPLHx6d3/bg93zp H+0rIefRbgiKDW4Yl7RSrMUH4ujLYvPr8Und9jUI2LWpr7r6ULhYkcHfaHxryCtkIYBS vyqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=UARTU5rCrs/F7oPVpIMAN/3yS88WsiHePM4C3sd7yRI=; b=o5qhCi0isuQ4TV1HRRMXnBlsjbY+MeGal4ebLWYAojb3qiFMMGHv8+flndQ5U6tzF4 P7iHDwo4cG2HivMen6posFDPappx6ShZiY4b4odHIaJdnrR0RWTlpW5JdWG4ztTRy++t P/BVdpiSPxtH0ufi4WRDkLJyPbYL4mebPwsq/3O/ibFY3b7ckUzMea0tHYbOMHNMPkmc FnrVv0bx+lY6KjP88c51sZPDACEEI5LL9GRXCTgln7eriX9x5LLKMnCdqKfDcQKbF7bg M/J+VAI3blKD+3Df1KDXatiuTPjjWZyz0GoU8QDIXciI0PDYaqx3i5ch/Oq0MctxkJU0 E7wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@upb.ro header.s=96342B8A-77E4-11E5-BA93-D93D0963A2DF header.b="inH/Fp7C"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 123si316502pfx.109.2018.11.21.05.06.41; Wed, 21 Nov 2018 05:07:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@upb.ro header.s=96342B8A-77E4-11E5-BA93-D93D0963A2DF header.b="inH/Fp7C"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730274AbeKUWNW (ORCPT + 99 others); Wed, 21 Nov 2018 17:13:22 -0500 Received: from mail-sender240.upb.ro ([141.85.13.240]:38946 "EHLO mx.upb.ro" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729031AbeKUWNU (ORCPT ); Wed, 21 Nov 2018 17:13:20 -0500 Received: from mx.upb.ro (localhost [127.0.0.1]) by mx.upb.ro (Postfix) with ESMTPS id D7C7EB560073; Wed, 21 Nov 2018 13:28:53 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by mx.upb.ro (Postfix) with ESMTP id B557AB56006E; Wed, 21 Nov 2018 13:28:53 +0200 (EET) DKIM-Filter: OpenDKIM Filter v2.10.3 mx.upb.ro B557AB56006E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=upb.ro; s=96342B8A-77E4-11E5-BA93-D93D0963A2DF; t=1542799733; bh=UARTU5rCrs/F7oPVpIMAN/3yS88WsiHePM4C3sd7yRI=; h=From:To:Date:Message-Id:MIME-Version; b=inH/Fp7C7YUJgnw2mE3ZY9LezKeZHY99J9QdaHmOnZIK9934m/7ui9s+QQFvCVELw lRYBI6qYm2YiUlqW1E0B9f0nSdGMcsxiPBc+BTEwHGi33NdsU8Rnm9TTXR8NmERePI EjKdLzMxbpUpAkuYp/A/AK4QXxrpm/otDVd+x6FI= Received: from mx.upb.ro ([127.0.0.1]) by localhost (mx.upb.ro [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id USNASV4Z7DhC; Wed, 21 Nov 2018 13:28:53 +0200 (EET) Received: from asus-rog.localdomain (arh.pub.ro [141.85.160.17]) by mx.upb.ro (Postfix) with ESMTPSA id 8B940B560070; Wed, 21 Nov 2018 13:28:53 +0200 (EET) From: Radu Pirea To: richard.genoud@gmail.com, lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, ludovic.desroches@microchip.co, broonie@kernel.org Cc: linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Radu Pirea Subject: [PATCH 2/3] dt-bindings: mfd: atmel-usart: add DMA bindings for SPI mode Date: Wed, 21 Nov 2018 13:27:31 +0200 Message-Id: <20181121112732.15690-3-radu_nicolae.pirea@upb.ro> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181121112732.15690-1-radu_nicolae.pirea@upb.ro> References: <20181121112732.15690-1-radu_nicolae.pirea@upb.ro> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The bindings for DMA are now common for both drivers of the USART IP. The node given as an example for USART in SPI mode has been updated in order to include DMA bindings. Signed-off-by: Radu Pirea --- .../devicetree/bindings/mfd/atmel-usart.txt | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/atmel-usart.txt b/Docu= mentation/devicetree/bindings/mfd/atmel-usart.txt index 7f0cd72f47d2..8ad008175343 100644 --- a/Documentation/devicetree/bindings/mfd/atmel-usart.txt +++ b/Documentation/devicetree/bindings/mfd/atmel-usart.txt @@ -17,17 +17,19 @@ Required properties for USART in SPI mode: - cs-gpios: chipselects (internal cs not supported) - atmel,usart-mode : Must be (found in dt-bindings= /mfd/at91-usart.h) =20 +Optional properties in serial and SPI mode: +- dma bindings for dma transfer: + - dmas: DMA specifier, consisting of a phandle to DMA controller node, + memory peripheral interface and USART DMA channel ID, FIFO configurati= on. + Refer to dma.txt and atmel-dma.txt for details. + - dma-names: "rx" for RX channel, "tx" for TX channel. + Optional properties in serial mode: - atmel,use-dma-rx: use of PDC or DMA for receiving data - atmel,use-dma-tx: use of PDC or DMA for transmitting data - {rts,cts,dtr,dsr,rng,dcd}-gpios: specify a GPIO for RTS/CTS/DTR/DSR/RI= /DCD line respectively. It will use specified PIO instead of the peripheral function pin for t= he USART feature. If unsure, don't specify this property. -- add dma bindings for dma transfer: - - dmas: DMA specifier, consisting of a phandle to DMA controller node, - memory peripheral interface and USART DMA channel ID, FIFO configurati= on. - Refer to dma.txt and atmel-dma.txt for details. - - dma-names: "rx" for RX channel, "tx" for TX channel. - atmel,fifo-size: maximum number of data the RX and TX FIFOs can store = for FIFO capable USARTs. - rs485-rts-delay, rs485-rx-during-tx, linux,rs485-enabled-at-boot-time:= see rs485.txt @@ -81,5 +83,8 @@ Example: interrupts =3D <12 IRQ_TYPE_LEVEL_HIGH 5>; clocks =3D <&usart0_clk>; clock-names =3D "usart"; + dmas =3D <&dma0 2 AT91_DMA_CFG_PER_ID(3)>, + <&dma0 2 (AT91_DMA_CFG_PER_ID(4) | AT91_DMA_CFG_FIFOCFG_ASAP)>; + dma-names =3D "tx", "rx"; cs-gpios =3D <&pioB 3 0>; }; --=20 2.19.1