From patchwork Tue Jun 2 14:18:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cyrille Pitchen X-Patchwork-Id: 6529031 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0E1E2C0020 for ; Tue, 2 Jun 2015 14:21:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 290452041C for ; Tue, 2 Jun 2015 14:21:17 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4BD89204EA for ; Tue, 2 Jun 2015 14:21:16 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yzn1u-0000DZ-Hb; Tue, 02 Jun 2015 14:18:58 +0000 Received: from eusmtp01.atmel.com ([212.144.249.243]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yzn1p-00005q-Sh for linux-arm-kernel@lists.infradead.org; Tue, 02 Jun 2015 14:18:54 +0000 Received: from tenerife.corp.atmel.com (10.161.101.13) by eusmtp01.atmel.com (10.161.101.31) with Microsoft SMTP Server id 14.3.235.1; Tue, 2 Jun 2015 16:18:29 +0200 From: Cyrille Pitchen To: , , , , , , , Subject: [PATCH linux-next 1/4] ARM: at91/dt: add new DT properties for Atmel usart Date: Tue, 2 Jun 2015 16:18:21 +0200 Message-ID: <6fe7914a2c39245ac9a05cdb9962b88c409ec1a4.1433253787.git.cyrille.pitchen@atmel.com> X-Mailer: git-send-email 1.8.2.2 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150602_071854_329983_5E0D0C30 X-CRM114-Status: UNSURE ( 7.90 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.3 (--) Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, linux-kernel@vger.kernel.org, robh+dt@kernel.org, galak@codeaurora.org, Cyrille Pitchen , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY 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 add 3 new properties: - "atmel,fifo-size": to enable FIFO support - "atmel,rts-low-threshold" and "atmel,rts-high-threshold": to control the hardware handshake flow control. Signed-off-by: Cyrille Pitchen --- Documentation/devicetree/bindings/serial/atmel-usart.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/atmel-usart.txt b/Documentation/devicetree/bindings/serial/atmel-usart.txt index 90787aa..6158418 100644 --- a/Documentation/devicetree/bindings/serial/atmel-usart.txt +++ b/Documentation/devicetree/bindings/serial/atmel-usart.txt @@ -22,6 +22,21 @@ Optional properties: memory peripheral interface and USART DMA channel ID, FIFO configuration. Refer to dma.txt and atmel-dma.txt for details. - dma-names: "rx" for RX channel, "tx" for TX channel. +- atmel,fifo-size: size of the TX and RX FIFOs. That is to say the maximum + number of data each FIFO can store. A positive size enables FIFO support. + A zero size or a missing property disables FIFO support. +- atmel,rts-low-threshold: when the RX FIFO level, ie the number of data + available to be read from the RX FIFO, crosses down this threshold the RTS + line is driven to low level to tell the remote peer that it can (re)start + sending new data. +- atmel,rts-high-threshold: when the RX FIFO level crosses up this threshold, + the RTS line is driven to high level to tell the remote peer that it should + stop sending new data. + +0 < rts-low-threshold < rts-high-threshold <= fifo-size + +These two thresholds are only used when both the FIFO support and the hardware +handshake mode are enabled. compatible description: - at91rm9200: legacy USART support