From patchwork Fri Jan 27 17:27:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 92706 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp341952qgi; Fri, 27 Jan 2017 09:30:22 -0800 (PST) X-Received: by 10.13.203.130 with SMTP id n124mr7113379ywd.199.1485538222253; Fri, 27 Jan 2017 09:30:22 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id s10si1523187ywc.409.2017.01.27.09.30.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Jan 2017 09:30:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) client-ip=65.50.211.133; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cXALr-0003c2-N7; Fri, 27 Jan 2017 17:30:19 +0000 Received: from mail-wm0-f42.google.com ([74.125.82.42]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cXALH-0001ba-4H for linux-arm-kernel@lists.infradead.org; Fri, 27 Jan 2017 17:29:47 +0000 Received: by mail-wm0-f42.google.com with SMTP id r126so127044655wmr.0 for ; Fri, 27 Jan 2017 09:29:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hlKrZUbdZb3ODtd0dth/ItQyMint0+JkHFNCQC/C7kc=; b=X0BNYmen2jjAjIh/muz4x1GVwJmaKOkLYt92FEV4FqryV2u+gWp9uw2lg7f8cQFEAM 4i8m9OVKrBMl2TpDhFhbTvSr06GB0bxj/g9VtJ3r9om+wkDJ7msetKgwAWYK7C+5My28 GZ9rVhPHvJIFHo7DBOf2rV4EV2aMpARu+nGFE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=hlKrZUbdZb3ODtd0dth/ItQyMint0+JkHFNCQC/C7kc=; b=U83ZUmxUlYOVnffFD+EIc7NCGwV1tUH3mxnvXnZVZw6nIBpkI4bOJM1BMuGOfcF0Ah CztP2I8d61LUyh/BPGtofEFwkWF1FWR/RszfW/FYnBJ9/OTdifXtjFBmm5rXdV8eucYX P0MR/ORWK06qF34KjXHC3C4uzNoxtFdBiJA4gmzrgHBlrdb15UccmgtTshTyTHe5b9to zQ/kgPsixN58dxuLyS74hMsQ5SHuahOmIOELmh0N5kfaFZZw8QhZkpgp/Hi+pIJFK+dr AFXB1SDUGGeFunXMnmyvLAf3KnUjSqEyvw0p7bAueRhL9DEdX1ipA0wvgb/PVff7UmtM Stgg== X-Gm-Message-State: AIkVDXKRb4bojvfWcSILGtA+QajruaBH8IjCFOaC8esKofvdI8WfduYEr46HBK4kB1eMb7b6 X-Received: by 10.223.177.202 with SMTP id r10mr8433993wra.94.1485538101345; Fri, 27 Jan 2017 09:28:21 -0800 (PST) Received: from localhost.localdomain ([2a01:4c8:1b:eeec:f122:1b92:9371:359c]) by smtp.gmail.com with ESMTPSA id k4sm4822140wmf.22.2017.01.27.09.28.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Jan 2017 09:28:20 -0800 (PST) From: Lee Jones To: gregkh@linuxfoundation.org, jslaby@suse.com, linux-serial@vger.kernel.org, dt@kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 01/10] serial: st-asc: Ignore the parity error bit if 8-bit mode is enabled Date: Fri, 27 Jan 2017 17:27:55 +0000 Message-Id: <20170127172804.23881-2-lee.jones@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170127172804.23881-1-lee.jones@linaro.org> References: <20170127172804.23881-1-lee.jones@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170127_092943_501146_A97B2397 X-CRM114-Status: GOOD ( 12.34 ) X-Spam-Score: -1.5 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source [74.125.82.42 listed in dnsbl.sorbs.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [74.125.82.42 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [74.125.82.42 listed in wl.mailspike.net] -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_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: patrice.chotard@st.com, Lee Jones , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@stlinux.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org The datasheet states: "If the MODE field selects an 8-bit frame then this [parity error] bit is undefined. Software should ignore this bit when reading 8-bit frames." Acked-by: Peter Griffin Signed-off-by: Lee Jones --- drivers/tty/serial/st-asc.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) -- 2.9.3 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/drivers/tty/serial/st-asc.c b/drivers/tty/serial/st-asc.c index 379e5bd..69e6232 100644 --- a/drivers/tty/serial/st-asc.c +++ b/drivers/tty/serial/st-asc.c @@ -287,9 +287,19 @@ static void asc_transmit_chars(struct uart_port *port) static void asc_receive_chars(struct uart_port *port) { struct tty_port *tport = &port->state->port; - unsigned long status; + unsigned long status, mode; unsigned long c = 0; char flag; + bool ignore_pe = false; + + /* + * Datasheet states: If the MODE field selects an 8-bit frame then + * this [parity error] bit is undefined. Software should ignore this + * bit when reading 8-bit frames. + */ + mode = asc_in(port, ASC_CTL) & ASC_CTL_MODE_MSK; + if (mode == ASC_CTL_MODE_8BIT || mode == ASC_CTL_MODE_8BIT_PAR) + ignore_pe = true; if (port->irq_wake) pm_wakeup_event(tport->tty->dev, 0); @@ -299,8 +309,8 @@ static void asc_receive_chars(struct uart_port *port) flag = TTY_NORMAL; port->icount.rx++; - if ((c & (ASC_RXBUF_FE | ASC_RXBUF_PE)) || - status & ASC_STA_OE) { + if (status & ASC_STA_OE || c & ASC_RXBUF_FE || + (c & ASC_RXBUF_PE && !ignore_pe)) { if (c & ASC_RXBUF_FE) { if (c == (ASC_RXBUF_FE | ASC_RXBUF_DUMMY_RX)) { From patchwork Fri Jan 27 17:27:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 92701 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp341247qgi; Fri, 27 Jan 2017 09:28:51 -0800 (PST) X-Received: by 10.98.82.216 with SMTP id g207mr10441443pfb.32.1485538131294; Fri, 27 Jan 2017 09:28:51 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c85si5023767pfk.224.2017.01.27.09.28.51; Fri, 27 Jan 2017 09:28:51 -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=@linaro.org; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933984AbdA0R2m (ORCPT + 25 others); Fri, 27 Jan 2017 12:28:42 -0500 Received: from mail-wm0-f53.google.com ([74.125.82.53]:36583 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933292AbdA0R2e (ORCPT ); Fri, 27 Jan 2017 12:28:34 -0500 Received: by mail-wm0-f53.google.com with SMTP id c85so126743361wmi.1 for ; Fri, 27 Jan 2017 09:28:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+TbcK3tAl8wsPQttyRMVtqp4DdtulUNNux8iFzN1UPI=; b=BIvDXgvgWSzew4DIFlCwQXs5mNdSG+6Jv1d7vA7il9npjKwwmR8cqfcEWx3wVPifkH Y/p4sNg3PF+OBBY+eG6H2Kqz3l4DroxXRIIeaXf09nE72JzXwRlayddIi/ld7zcSLiU3 QlGAOoPfRENlBUS4rY1DfFtzonpERGu5stpc4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+TbcK3tAl8wsPQttyRMVtqp4DdtulUNNux8iFzN1UPI=; b=eaVW1nPhkHtXodBcgpXFJE6RX0/S7ew2BXySYePLRXYXI5FKsfqDVOoBS4e8ZqphSW 73rvfeyjzaDEfmsyw8H3TWQIeY1xnbofIA5j2lkvHVTx1eGTgNzpMngY0ydsdzVvKUpn Oxxx6xWH3vJNKF1tgjxVTVEsLDqK8WqwQxTmRjlTXW5cgTOLyK843S0DpgC7xfyWd66F HCzRuw6mBM+0wkM5fkpP92QJ7GL7ZTs8Gonn12c2Ye47NUvooc8QpESzByxI/UxCsU51 lrUJp37of627yxqzfPRhu6OEZ3fq31x/PD+WTymCnqRg6KgqQXChXuFOo+jYFV06lm9d EkbQ== X-Gm-Message-State: AIkVDXK1oDAMBV9dfURoPXOqqji8G+dEqvWiqyHOSnQF73HSL+UL1daU+hcN0I5ANb4HJscs X-Received: by 10.223.168.111 with SMTP id l102mr8250223wrc.150.1485538103132; Fri, 27 Jan 2017 09:28:23 -0800 (PST) Received: from localhost.localdomain ([2a01:4c8:1b:eeec:f122:1b92:9371:359c]) by smtp.gmail.com with ESMTPSA id k4sm4822140wmf.22.2017.01.27.09.28.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Jan 2017 09:28:22 -0800 (PST) From: Lee Jones To: gregkh@linuxfoundation.org, jslaby@suse.com, linux-serial@vger.kernel.org, dt@kernel.org, devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@stlinux.com, patrice.chotard@st.com, Lee Jones Subject: [PATCH v2 02/10] serial: st-asc: Provide RTS functionality Date: Fri, 27 Jan 2017 17:27:56 +0000 Message-Id: <20170127172804.23881-3-lee.jones@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170127172804.23881-1-lee.jones@linaro.org> References: <20170127172804.23881-1-lee.jones@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Until this point, it has not been possible for userland serial applications (e.g. stty) to toggle the UART RTS line. This can be useful with certain configurations. For example, when using a Mezzanine on a Linaro 96board, RTS line is used to take the on-board microcontroller in and out of reset. Acked-by: Peter Griffin Signed-off-by: Lee Jones --- drivers/tty/serial/st-asc.c | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) -- 2.9.3 diff --git a/drivers/tty/serial/st-asc.c b/drivers/tty/serial/st-asc.c index 69e6232..397df50 100644 --- a/drivers/tty/serial/st-asc.c +++ b/drivers/tty/serial/st-asc.c @@ -30,6 +30,7 @@ #include #include #include +#include #define DRIVER_NAME "st-asc" #define ASC_SERIAL_NAME "ttyAS" @@ -38,6 +39,7 @@ struct asc_port { struct uart_port port; + struct gpio_desc *rts; struct clk *clk; unsigned int hw_flow_control:1; unsigned int force_m1:1; @@ -391,12 +393,27 @@ static unsigned int asc_tx_empty(struct uart_port *port) static void asc_set_mctrl(struct uart_port *port, unsigned int mctrl) { + struct asc_port *ascport = to_asc_port(port); + /* - * This routine is used for seting signals of: DTR, DCD, CTS/RTS - * We use ASC's hardware for CTS/RTS, so don't need any for that. - * Some boards have DTR and DCD implemented using PIO pins, - * code to do this should be hooked in here. + * This routine is used for seting signals of: DTR, DCD, CTS and RTS. + * We use ASC's hardware for CTS/RTS when hardware flow-control is + * enabled, however if the RTS line is required for another purpose, + * commonly controlled using HUP from userspace, then we need to toggle + * it manually, using GPIO. + * + * Some boards also have DTR and DCD implemented using PIO pins, code to + * do this should be hooked in here. */ + + if (!ascport->rts) + return; + + /* If HW flow-control is enabled, we can't fiddle with the RTS line */ + if (asc_in(port, ASC_CTL) & ASC_CTL_CTSENABLE) + return; + + gpiod_set_value(ascport->rts, mctrl & TIOCM_RTS); } static unsigned int asc_get_mctrl(struct uart_port *port) @@ -726,6 +743,8 @@ static struct asc_port *asc_of_get_asc_port(struct platform_device *pdev) "st,hw-flow-control"); asc_ports[id].force_m1 = of_property_read_bool(np, "st,force_m1"); asc_ports[id].port.line = id; + asc_ports[id].rts = NULL; + return &asc_ports[id]; } From patchwork Fri Jan 27 17:27:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 92698 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp341232qgi; Fri, 27 Jan 2017 09:28:50 -0800 (PST) X-Received: by 10.84.231.140 with SMTP id g12mr13930670plk.76.1485538130117; Fri, 27 Jan 2017 09:28:50 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c85si5023767pfk.224.2017.01.27.09.28.49; Fri, 27 Jan 2017 09:28:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933843AbdA0R2c (ORCPT + 7 others); Fri, 27 Jan 2017 12:28:32 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:36602 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933834AbdA0R2b (ORCPT ); Fri, 27 Jan 2017 12:28:31 -0500 Received: by mail-wm0-f54.google.com with SMTP id c85so126744337wmi.1 for ; Fri, 27 Jan 2017 09:28:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=p9QiT7s2yR2/SVhf2o4OI2lurbaBswRqrGs/ZxZxdeI=; b=f+ZBeJx8bTslE6nEZCdvYj5M0fDMGbErfy+ngt0UnfHUHI8BQn7mEnmzefAkTa9Gab HGQrS55cdpLFdtv71WthFi+ZvGDmvh4hz14mb7eEywWBg4UFDkeqRuYPSxzDqlRiCm3c RyvOlQP56koErm3vQ9NydC18guSNoNQigzZm8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=p9QiT7s2yR2/SVhf2o4OI2lurbaBswRqrGs/ZxZxdeI=; b=hGn2XCUG5wm/IOZoGlN8qiIT4hAQmGNB3U7bCEVQhfvaRPV6dHneI/rTjgqcrMr3I7 /auRl+EHjZvdhj4nYrXjXqpWKWyMHwdX1a7kx93EfQBXBTwEtKioMaeR9afnFQTILDFl n4pNxNYniwpjY6YPQPoQy5KFrIPXu3KBNobajyJ8eURo1lgQ6Cqou5qVyjGHnV5zZ2Wl yPlF5kV2nN/LhZB7BF6emVvZ2V+sEKOe666esDpCABr9CrTljxsAJyf/wT4p6oFvN9UR e3dF4sJAYFDuvXSw0IpZeUTyi9c7NxuAsM2WNeMK2Q3yViQfZFegPV0us6U5gtcnYHQx TDcQ== X-Gm-Message-State: AIkVDXJHjvNDXFaMnOSlvx3nkiVKIEHsRbbw385C0tmDBWjo6F6uNlpmLrdmTGERiibp99Me X-Received: by 10.223.175.49 with SMTP id z46mr10114022wrc.84.1485538104727; Fri, 27 Jan 2017 09:28:24 -0800 (PST) Received: from localhost.localdomain ([2a01:4c8:1b:eeec:f122:1b92:9371:359c]) by smtp.gmail.com with ESMTPSA id k4sm4822140wmf.22.2017.01.27.09.28.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Jan 2017 09:28:24 -0800 (PST) From: Lee Jones To: gregkh@linuxfoundation.org, jslaby@suse.com, linux-serial@vger.kernel.org, dt@kernel.org, devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@stlinux.com, patrice.chotard@st.com, Lee Jones Subject: [PATCH v2 03/10] serial: st-asc: Read in all Pinctrl states Date: Fri, 27 Jan 2017 17:27:57 +0000 Message-Id: <20170127172804.23881-4-lee.jones@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170127172804.23881-1-lee.jones@linaro.org> References: <20170127172804.23881-1-lee.jones@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org There are now 2 possible separate/different Pinctrl states which can be provided from platform data. One which encompasses the lines required for HW flow-control (CTS/RTS) and another which does not specify these lines, such that they can be used via GPIO mechanisms for manually toggling (i.e. from a request by `stty`). Signed-off-by: Lee Jones --- drivers/tty/serial/st-asc.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/tty/serial/st-asc.c b/drivers/tty/serial/st-asc.c index 397df50..82f5714 100644 --- a/drivers/tty/serial/st-asc.c +++ b/drivers/tty/serial/st-asc.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -37,10 +38,16 @@ #define ASC_FIFO_SIZE 16 #define ASC_MAX_PORTS 8 +/* Pinctrl states */ +#define DEFAULT 0 +#define MANUAL_RTS 1 + struct asc_port { struct uart_port port; struct gpio_desc *rts; struct clk *clk; + struct pinctrl *pinctrl; + struct pinctrl_state *states[2]; unsigned int hw_flow_control:1; unsigned int force_m1:1; }; @@ -694,6 +701,7 @@ static int asc_init_port(struct asc_port *ascport, { struct uart_port *port = &ascport->port; struct resource *res; + int ret; port->iotype = UPIO_MEM; port->flags = UPF_BOOT_AUTOCONF; @@ -720,6 +728,27 @@ static int asc_init_port(struct asc_port *ascport, WARN_ON(ascport->port.uartclk == 0); clk_disable_unprepare(ascport->clk); + ascport->pinctrl = devm_pinctrl_get(&pdev->dev); + if (IS_ERR(ascport->pinctrl)) { + ret = PTR_ERR(ascport->pinctrl); + dev_err(&pdev->dev, "Failed to get Pinctrl: %d\n", ret); + } + + ascport->states[DEFAULT] = + pinctrl_lookup_state(ascport->pinctrl, "default"); + if (IS_ERR(ascport->states[DEFAULT])) { + ret = PTR_ERR(ascport->states[DEFAULT]); + dev_err(&pdev->dev, + "Failed to look up Pinctrl state 'default': %d\n", ret); + return ret; + } + + /* "manual-rts" state is optional */ + ascport->states[MANUAL_RTS] = + pinctrl_lookup_state(ascport->pinctrl, "manual-rts"); + if (IS_ERR(ascport->states[MANUAL_RTS])) + ascport->states[MANUAL_RTS] = NULL; + return 0; } From patchwork Fri Jan 27 17:27:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 92700 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp341244qgi; Fri, 27 Jan 2017 09:28:51 -0800 (PST) X-Received: by 10.99.37.199 with SMTP id l190mr10562896pgl.86.1485538130941; Fri, 27 Jan 2017 09:28:50 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c85si5023767pfk.224.2017.01.27.09.28.50; Fri, 27 Jan 2017 09:28:50 -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=@linaro.org; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933924AbdA0R2i (ORCPT + 25 others); Fri, 27 Jan 2017 12:28:38 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:35291 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933844AbdA0R2d (ORCPT ); Fri, 27 Jan 2017 12:28:33 -0500 Received: by mail-wm0-f45.google.com with SMTP id r126so127048297wmr.0 for ; Fri, 27 Jan 2017 09:28:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ojoja0+X0ybRDsPPhv+NLRBIzrec/Djr1LuEekJbaUc=; b=ARyIc5dR0xvHNy46vdS6d8SBdABzdI92dW4F68imVhZ9tcrEAvyEd0KKAyb1AVCcRf FZMFmkZA3k/dpSd3fz0M/HieGrAm8psU1E+SNF69uH7XNQhZPz22DkgOOBxhxagc4U02 5LMPmBNP83gOlY3CmF88KRHWrrWG9Vhq82E/Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ojoja0+X0ybRDsPPhv+NLRBIzrec/Djr1LuEekJbaUc=; b=nMgxJmbUeu0tC+L6TFp7CGw/Pu++JkcTw9ORJRiWN/eeRvGqzhvIIGi4mQZsumDk50 tBPZnF0pFsvcgQ0rsJqW7JsGQ3N8dzyuWTtxd849k8fp1Kg8sKIlGpCfGUYi44T9H6T2 u94WoTbCApPzbEpg5HDSrZIAq/UCxS+Z1vg6lryV6VNf4sOOV1wcctgrsLOzTZcsOTuP gqAsLn2RX/OzuFr6GzDQeQujMKhN4j1aPx26wop3zUhc55e4gj2ClEdMt8qTIR0cqGKy +2J9nBRyqkWYFXT5DSVWA279WcX0jHq8FPWt5w5IQuK971kTIFSK9YFA5sPBhMN7dTsP PY+Q== X-Gm-Message-State: AIkVDXID/VuVM2ms1M32mHPC2fhJBpx55SLqx+AnLtaZtNdOmd+0oIWRy8vW2eIPjOndAwhB X-Received: by 10.223.145.163 with SMTP id 32mr9748225wri.198.1485538106702; Fri, 27 Jan 2017 09:28:26 -0800 (PST) Received: from localhost.localdomain ([2a01:4c8:1b:eeec:f122:1b92:9371:359c]) by smtp.gmail.com with ESMTPSA id k4sm4822140wmf.22.2017.01.27.09.28.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Jan 2017 09:28:26 -0800 (PST) From: Lee Jones To: gregkh@linuxfoundation.org, jslaby@suse.com, linux-serial@vger.kernel.org, dt@kernel.org, devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@stlinux.com, patrice.chotard@st.com, Lee Jones Subject: [PATCH v2 04/10] serial: st-asc: (De)Register GPIOD and swap Pinctrl profiles Date: Fri, 27 Jan 2017 17:27:58 +0000 Message-Id: <20170127172804.23881-5-lee.jones@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170127172804.23881-1-lee.jones@linaro.org> References: <20170127172804.23881-1-lee.jones@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When hardware flow-control is disabled, manual toggling of the UART's reset line (RTS) using userland applications (e.g. stty) is not possible, since the ASC IP does not provide this functionality in the same was as some other IPs do. Thus, we have to do this manually. This patch ensures that when HW flow-control is disabled the RTS/CTS lines are free to be registered via the GPIO API. It also ensures any registered GPIO lines are unregistered when HW flow-control is requested, allowing the IP to control them automatically. Acked-by: Peter Griffin Signed-off-by: Lee Jones --- drivers/tty/serial/st-asc.c | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) -- 2.9.3 diff --git a/drivers/tty/serial/st-asc.c b/drivers/tty/serial/st-asc.c index 82f5714..713d7bb 100644 --- a/drivers/tty/serial/st-asc.c +++ b/drivers/tty/serial/st-asc.c @@ -513,6 +513,8 @@ static void asc_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old) { struct asc_port *ascport = to_asc_port(port); + struct device_node *np = port->dev->of_node; + struct gpio_desc *gpiod; unsigned int baud; u32 ctrl_val; tcflag_t cflag; @@ -556,9 +558,32 @@ static void asc_set_termios(struct uart_port *port, struct ktermios *termios, ctrl_val |= ASC_CTL_PARITYODD; /* hardware flow control */ - if ((cflag & CRTSCTS)) + if ((cflag & CRTSCTS)) { ctrl_val |= ASC_CTL_CTSENABLE; + /* If flow-control selected, stop handling RTS manually */ + if (ascport->rts) { + devm_gpiod_put(port->dev, ascport->rts); + ascport->rts = NULL; + + pinctrl_select_state(ascport->pinctrl, + ascport->states[DEFAULT]); + } + } else { + /* If flow-control disabled, it's safe to handle RTS manually */ + if (!ascport->rts && ascport->states[MANUAL_RTS]) { + pinctrl_select_state(ascport->pinctrl, + ascport->states[MANUAL_RTS]); + + gpiod = devm_get_gpiod_from_child(port->dev, "rts", + &np->fwnode); + if (!IS_ERR(gpiod)) { + gpiod_direction_output(gpiod, 0); + ascport->rts = gpiod; + } + } + } + if ((baud < 19200) && !ascport->force_m1) { asc_out(port, ASC_BAUDRATE, (port->uartclk / (16 * baud))); } else { From patchwork Fri Jan 27 17:27:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 92707 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp342347qgi; Fri, 27 Jan 2017 09:31:07 -0800 (PST) X-Received: by 10.84.198.3 with SMTP id o3mr14181905pld.170.1485538267126; Fri, 27 Jan 2017 09:31:07 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2si2457316pgc.59.2017.01.27.09.31.06; Fri, 27 Jan 2017 09:31:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933967AbdA0Rah (ORCPT + 7 others); Fri, 27 Jan 2017 12:30:37 -0500 Received: from mail-wm0-f52.google.com ([74.125.82.52]:33607 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933844AbdA0R2j (ORCPT ); Fri, 27 Jan 2017 12:28:39 -0500 Received: by mail-wm0-f52.google.com with SMTP id d140so15589163wmd.0 for ; Fri, 27 Jan 2017 09:28:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ESZaoVNreMa92Hg8sXKEg8fx6F0grh58acbcgEfN9dc=; b=ZxdFnTg5AqPXeyxaOMV29vW/Gcm6Uc6WwCUoazTC7Kha5lJlWKz9B0uALPHbBFjnOa m36mh5E9zgqBi7IvK5X6dGv+JlyYu0TYINHDxrUL1Hk7yIYzUDzROo91flSi+QBn3C1O PX12Dyagii2eVvUJr+967NxMJ887p4RUjIMvE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ESZaoVNreMa92Hg8sXKEg8fx6F0grh58acbcgEfN9dc=; b=t6Di/FIZePQgJI86eN+3oZR3/XbUDoHLFRVdpQrEK/EU8AEXuvERPBuiujOsENQXW/ eViIFuE07EMPqXGWUuQ5lgoXXzd6sTJa1RkGScsxaEqy0ChMqAqIqkrzChDDPnRKFF+y IGGz28X7PjF54UpOb5iXDmMG/qdnp3zkWyamCpEHFK94gyJcZwZ22gHLtgnChxkK8fMV 9SxF1dlXNlhZP3KUi4VRxFEgamzQRGPhEp61Ycfa/bTq5TgI2uQ/y53xFJtHljSV+Y3/ tTONXb6KUPdWaLCc+oPLv8qVTXukwxPhjaEYbtpzbIlC6Tgy24yIvSbQejG3TKHZ0M64 FaaA== X-Gm-Message-State: AIkVDXKKeu0Iy7RvAjBBA4PBgW+Sm4+HVoUo/wye1qFdSiuE64j0Wo/vBYxu9bLY6iHd2K84 X-Received: by 10.28.195.70 with SMTP id t67mr4214519wmf.98.1485538108170; Fri, 27 Jan 2017 09:28:28 -0800 (PST) Received: from localhost.localdomain ([2a01:4c8:1b:eeec:f122:1b92:9371:359c]) by smtp.gmail.com with ESMTPSA id k4sm4822140wmf.22.2017.01.27.09.28.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Jan 2017 09:28:27 -0800 (PST) From: Lee Jones To: gregkh@linuxfoundation.org, jslaby@suse.com, linux-serial@vger.kernel.org, dt@kernel.org, devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@stlinux.com, patrice.chotard@st.com, Lee Jones Subject: [PATCH v2 05/10] serial: st-asc: Use generic DT binding for announcing RTS/CTS lines Date: Fri, 27 Jan 2017 17:27:59 +0000 Message-Id: <20170127172804.23881-6-lee.jones@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170127172804.23881-1-lee.jones@linaro.org> References: <20170127172804.23881-1-lee.jones@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The initial binding 'st,hw-flow-control' isn't used anywhere, in neither in upstream nor downstream kernels. It isn't even documented in dt-bindings, so we can safely assume it's safe to swap to the generic one. Signed-off-by: Lee Jones --- drivers/tty/serial/st-asc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/tty/serial/st-asc.c b/drivers/tty/serial/st-asc.c index 713d7bb..85d8783 100644 --- a/drivers/tty/serial/st-asc.c +++ b/drivers/tty/serial/st-asc.c @@ -794,7 +794,7 @@ static struct asc_port *asc_of_get_asc_port(struct platform_device *pdev) return NULL; asc_ports[id].hw_flow_control = of_property_read_bool(np, - "st,hw-flow-control"); + "uart-has-rtscts"); asc_ports[id].force_m1 = of_property_read_bool(np, "st,force_m1"); asc_ports[id].port.line = id; asc_ports[id].rts = NULL; From patchwork Fri Jan 27 17:28:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 92699 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp341235qgi; Fri, 27 Jan 2017 09:28:50 -0800 (PST) X-Received: by 10.98.206.6 with SMTP id y6mr10347153pfg.122.1485538130285; Fri, 27 Jan 2017 09:28:50 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c85si5023767pfk.224.2017.01.27.09.28.50; Fri, 27 Jan 2017 09:28:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933834AbdA0R2d (ORCPT + 2 others); Fri, 27 Jan 2017 12:28:33 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:37842 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933292AbdA0R2b (ORCPT ); Fri, 27 Jan 2017 12:28:31 -0500 Received: by mail-wm0-f54.google.com with SMTP id c206so149711233wme.0 for ; Fri, 27 Jan 2017 09:28:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7zU72mEJt6eu4CxOeCf2yr4sEUK1vSLFAeRQbaV2ENg=; b=IJJXf9ZOfVGDOF2xwwaG6pkkCUzmet/ZqrEQlXyqPH9GRlO92h54kVIlSOBvUxoIjH a38TUbrLcDVOD6fSU5e8Inw+0m4h9UF45AM+egtbQcWy34BKTtR4Iy+koJva0eNgi49a 026Mp8hKnXrtJ1Hk9IxcCWM25XlBtBSYOExfg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7zU72mEJt6eu4CxOeCf2yr4sEUK1vSLFAeRQbaV2ENg=; b=XfbMOWflsbl5kL3T6w5Lj6UnrsOoF3Gd7zXHalfCB/8gZhPQBiodZYW5CqOEV/t54r ig3yvGEvhiVqwVqDKocRTJqGsD77hP6T8vwWDmYAOMHktJlNtJz/0zHAjGmLnI7CqGqs +9rdxcH7+U5lN1uIyXEh/CFqef5Idw79Dpjj17gh7Y3FcuWTcwD9VM1GAXwiouXk81u6 HW7G88IATrepdQswuujSAkkBYvitM+EDQYAT2WsivaBl+cY/rTgeIcr8nPpK3lZT2ClH fjySleWmW3aL02uUyqYT54lyOtF4R+kGRy9HxhVwIL4UvMCo+Bcdp52sFzOHF2emnoG0 Y2ig== X-Gm-Message-State: AIkVDXIseUMQj34GnHZ/EnVkkW/4kOcQUJoMGgcugia1A46p707ig35ut0cDrpOhMr4PkZ1z X-Received: by 10.28.64.213 with SMTP id n204mr4429354wma.12.1485538110003; Fri, 27 Jan 2017 09:28:30 -0800 (PST) Received: from localhost.localdomain ([2a01:4c8:1b:eeec:f122:1b92:9371:359c]) by smtp.gmail.com with ESMTPSA id k4sm4822140wmf.22.2017.01.27.09.28.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Jan 2017 09:28:29 -0800 (PST) From: Lee Jones To: gregkh@linuxfoundation.org, jslaby@suse.com, linux-serial@vger.kernel.org, dt@kernel.org, devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@stlinux.com, patrice.chotard@st.com, Lee Jones Subject: [PATCH v2 06/10] dt-bindings: serial: Update 'uart-has-rtscts' description Date: Fri, 27 Jan 2017 17:28:00 +0000 Message-Id: <20170127172804.23881-7-lee.jones@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170127172804.23881-1-lee.jones@linaro.org> References: <20170127172804.23881-1-lee.jones@linaro.org> Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org 'uart-has-rtscts' property and 'rts-gpios|cts-gpios' are normally mutually exclusive, however it is possible for some drivers to have a dynamic approach, meaning that both properties can be relevant. Signed-off-by: Lee Jones --- Documentation/devicetree/bindings/serial/serial.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Rob Herring diff --git a/Documentation/devicetree/bindings/serial/serial.txt b/Documentation/devicetree/bindings/serial/serial.txt index fd970f7..b542a0e 100644 --- a/Documentation/devicetree/bindings/serial/serial.txt +++ b/Documentation/devicetree/bindings/serial/serial.txt @@ -23,7 +23,8 @@ Optional properties: they are available for use (wired and enabled by pinmux configuration). This depends on both the UART hardware and the board wiring. Note that this property is mutually-exclusive with "cts-gpios" and - "rts-gpios" above. + "rts-gpios" above, unless support is provided to switch between modes + dynamically. Examples: From patchwork Fri Jan 27 17:28:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 92702 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp341253qgi; Fri, 27 Jan 2017 09:28:51 -0800 (PST) X-Received: by 10.84.231.140 with SMTP id g12mr13930800plk.76.1485538131590; Fri, 27 Jan 2017 09:28:51 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c85si5023767pfk.224.2017.01.27.09.28.51; Fri, 27 Jan 2017 09:28:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933986AbdA0R2q (ORCPT + 7 others); Fri, 27 Jan 2017 12:28:46 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:38713 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933985AbdA0R2n (ORCPT ); Fri, 27 Jan 2017 12:28:43 -0500 Received: by mail-wm0-f54.google.com with SMTP id r144so149526988wme.1 for ; Fri, 27 Jan 2017 09:28:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WIgl74pHSwl2tK6bV6y2eFUFU9Y9AzGj1m+32ins5OQ=; b=KhtjAHrjinTgTqMIvW4cpoPygdJOQSZMqeKMLrUcykGQkOvVegn2hPj4eogy4kF+FJ DRkt+ZviRrpz5FhwwtvEUY7pHZ2bzlGj2fSBvaB03k2HFP+a5TetIZYjfQ7CHM8PLYFj OFCYfoaf66T82mDt19wf5vqa0wUeJUuqU+xz0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=WIgl74pHSwl2tK6bV6y2eFUFU9Y9AzGj1m+32ins5OQ=; b=TqBvvocGnmGIEN/lVvelIg6VQmASAIjo4lBUaDNnTfz2L4g6Fynjj7Etqnzr4r0d5t IjcOEDVVbqPGoGldZClKD0nuj6rtLDVIvSvoLhkDfsBHWeTv2q8jVszLKeTAjD8gZJTm oBTPyXoiWbXfsB3CEgs/obyic0Vg3ysekFJnnBWD/vXliJH1DyRnDemYc3cd1q2a8kd4 go7C2ME3MFDXu9qEN3T6sIMOkGBdGB2ptTCAO86F6VjZBgTtIPXV2qNizaZeWaE/sW+H B5UNbO7exMbh+Et2wAMSS81pPeagrR/xXPOcrAyrBnQFOab3DmvR2p7jYON15211i7O0 Vvfw== X-Gm-Message-State: AIkVDXLle+buFG4m4Kz5d/gjWPttTTzX86j5+Jtj9Q+rb2TKuHZWgnAtgWVpFmIOQSQJEDRl X-Received: by 10.223.136.155 with SMTP id f27mr8150477wrf.98.1485538111713; Fri, 27 Jan 2017 09:28:31 -0800 (PST) Received: from localhost.localdomain ([2a01:4c8:1b:eeec:f122:1b92:9371:359c]) by smtp.gmail.com with ESMTPSA id k4sm4822140wmf.22.2017.01.27.09.28.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Jan 2017 09:28:31 -0800 (PST) From: Lee Jones To: gregkh@linuxfoundation.org, jslaby@suse.com, linux-serial@vger.kernel.org, dt@kernel.org, devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@stlinux.com, patrice.chotard@st.com, Lee Jones Subject: [PATCH v2 07/10] ARM: dts: STiH410-b2260: Identify the UART RTS line Date: Fri, 27 Jan 2017 17:28:01 +0000 Message-Id: <20170127172804.23881-8-lee.jones@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170127172804.23881-1-lee.jones@linaro.org> References: <20170127172804.23881-1-lee.jones@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org When hardware flow-control is disabled, manual toggling of the UART's reset line (RTS) using userland applications (e.g. stty) is not possible, since the ASC IP does not provide this functionality in the same was as some other IPs do. Thus, we have to do this manually. This patch configures the UART RTS line as a GPIO for manipulation within the UART driver when HW flow-control is not enabled. Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih410-b2260.dts | 1 + 1 file changed, 1 insertion(+) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/stih410-b2260.dts b/arch/arm/boot/dts/stih410-b2260.dts index 06b0696..fa16aba 100644 --- a/arch/arm/boot/dts/stih410-b2260.dts +++ b/arch/arm/boot/dts/stih410-b2260.dts @@ -63,6 +63,7 @@ uart0: serial@9830000 { label = "LS-UART0"; status = "okay"; + rts-gpios = <&pio17 3 GPIO_ACTIVE_LOW>; }; /* Low speed expansion connector */ From patchwork Fri Jan 27 17:28:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 92704 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp341620qgi; Fri, 27 Jan 2017 09:29:43 -0800 (PST) X-Received: by 10.98.18.75 with SMTP id a72mr10340531pfj.16.1485538183874; Fri, 27 Jan 2017 09:29:43 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 36si2421663pgx.397.2017.01.27.09.29.43; Fri, 27 Jan 2017 09:29:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934083AbdA0R3e (ORCPT + 2 others); Fri, 27 Jan 2017 12:29:34 -0500 Received: from mail-wm0-f52.google.com ([74.125.82.52]:36876 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934016AbdA0R3L (ORCPT ); Fri, 27 Jan 2017 12:29:11 -0500 Received: by mail-wm0-f52.google.com with SMTP id c206so149714185wme.0 for ; Fri, 27 Jan 2017 09:28:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8RUGt5sVgKUGCQrOJJgWbHeJqtBP+VzRCcYAYFcSe0Y=; b=SlX56UHhURTZoDjh/POApMfd19T0T4jUTQ61rKUs03op9PC1WWEWawgiUUNPevW65/ QxDNyc5zkG8SOaGlYl/WeI9GuqYfhM6Ny+EeTsQfp5jvGV3cPyF7FS80rYntXzuNC47c OR/kHUYcqe1gZCd8N8EYPmGA9Au0hyOvj25PU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=8RUGt5sVgKUGCQrOJJgWbHeJqtBP+VzRCcYAYFcSe0Y=; b=YDhSyDxEmfBJPt9sXU4T4DDQi4HsMD5sfgEjKxLY0y8FpP3+gb3lO5U3xuQOH8BwN8 JwyEtIgt1mu7z5hP0DIi4KR2CEbYsHzcnJE+60mwgWzQQBd4Dwj1M2H2l7Yx4CGIEP/n fbUtQiJNsP6etcxlbM06r+m4+JsPRfxdbTbmlPwU0hvziD+BXtpvb5zwXnxwjSdybvHT 9MN+xdjlYKrSjgMn8uAV8iQyjp0y+9+MEUthesJvErP27chKwkTUF5qGGTtGQIbZfPyI LxQEiREnTuy8dLvEjwsAktmCO8ExIkgoGRjnqKEJsDnX3jjlbj+nz0Wvj/m5osOl2sCs qyTA== X-Gm-Message-State: AIkVDXJCuZMjLWFq/fhVTQChAmNz0kHcjJiani/yfyoIzF8EV+mgze0m5J//aSnAMSdc7wlf X-Received: by 10.223.160.246 with SMTP id n51mr8226900wrn.158.1485538113688; Fri, 27 Jan 2017 09:28:33 -0800 (PST) Received: from localhost.localdomain ([2a01:4c8:1b:eeec:f122:1b92:9371:359c]) by smtp.gmail.com with ESMTPSA id k4sm4822140wmf.22.2017.01.27.09.28.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Jan 2017 09:28:33 -0800 (PST) From: Lee Jones To: gregkh@linuxfoundation.org, jslaby@suse.com, linux-serial@vger.kernel.org, dt@kernel.org, devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@stlinux.com, patrice.chotard@st.com, Lee Jones Subject: [PATCH v2 08/10] ARM: dts: STiH407-pinctrl: Add Pinctrl group for HW flow-control Date: Fri, 27 Jan 2017 17:28:02 +0000 Message-Id: <20170127172804.23881-9-lee.jones@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170127172804.23881-1-lee.jones@linaro.org> References: <20170127172804.23881-1-lee.jones@linaro.org> Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Each serial port which supports HW flow-control should have 2 Pinctrl groups. Once for when HW flow-control is in progress, where the IP will take over controlling the lines and another group which enables the lines to be toggled using GPIO mechanisms. Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih407-pinctrl.dtsi | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/stih407-pinctrl.dtsi b/arch/arm/boot/dts/stih407-pinctrl.dtsi index daab16b..fbb7f86 100644 --- a/arch/arm/boot/dts/stih407-pinctrl.dtsi +++ b/arch/arm/boot/dts/stih407-pinctrl.dtsi @@ -465,8 +465,16 @@ serial0 { pinctrl_serial0: serial0-0 { st,pins { - tx = <&pio17 0 ALT1 OUT>; - rx = <&pio17 1 ALT1 IN>; + tx = <&pio17 0 ALT1 OUT>; + rx = <&pio17 1 ALT1 IN>; + }; + }; + pinctrl_serial0_flowctrl: serial0-0_flowctrl { + st,pins { + tx = <&pio17 0 ALT1 OUT>; + rx = <&pio17 1 ALT1 IN>; + cts = <&pio17 2 ALT1 IN>; + rts = <&pio17 3 ALT1 OUT>; }; }; }; From patchwork Fri Jan 27 17:28:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 92703 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp341440qgi; Fri, 27 Jan 2017 09:29:18 -0800 (PST) X-Received: by 10.98.91.131 with SMTP id p125mr10366788pfb.165.1485538158034; Fri, 27 Jan 2017 09:29:18 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11si4935625plg.281.2017.01.27.09.29.17; Fri, 27 Jan 2017 09:29:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933991AbdA0R2r (ORCPT + 2 others); Fri, 27 Jan 2017 12:28:47 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:36902 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933972AbdA0R2l (ORCPT ); Fri, 27 Jan 2017 12:28:41 -0500 Received: by mail-wm0-f45.google.com with SMTP id c206so149715539wme.0 for ; Fri, 27 Jan 2017 09:28:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=p3iqFSt9RTkH5rNTtjh+p5yGeibJd/dE/k57tEjCHIs=; b=dVwucHX3IsgjEkciKzQMru+Tj2C9aNQjpdlBUFbeqGOSBzv4nnMLurHCcaw9XNCu9G ST2c13cFTeREQNSqudIn7OnzZZ58kaDOcnGuqrms0SngfspuliTDeFqFyAz8WBDqN0Cg 2CSSpxFCjx9dHInsqXSxLkizLiv/TQCgrIKrc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=p3iqFSt9RTkH5rNTtjh+p5yGeibJd/dE/k57tEjCHIs=; b=qa1M5ccf2oq+PtxdWq7BRUBwvK7kFEsrOucWwZH1caX4tjIaCjtWdXGvumpXclkMdb /Xl7sJaF0yGs+frYWrsXxKKBiEHs0Ut2rNT0i/FPmhQ3JhB6VCd32Na508Vms+7c7xXr O57pw1NV9BMnyRQ8BH0rWuef53rVWpyjATLZJiaJfiuyq8XFsi9OzgKgCsDrhQUxUClu zlS3rtgvM8vpWemVNtZlAOjDdDydu8CzJWam6tQCHXkEhHpZiMXN/IN1HpaZHQzZjJBh iv9wzklPgZ5jAdwc9TuhEfjVLDoZBYlZExIy6Ekpw+s7BwaYixcfgKpQ4Rv0eK1Gfbai OJdQ== X-Gm-Message-State: AIkVDXKXqbqCsE/2Bt/+ObhUCVBrLzIY/qccXxaQVobm29LiPdY1z+e5qnhNoKE2K3AebE9R X-Received: by 10.223.178.146 with SMTP id g18mr8596265wrd.124.1485538115575; Fri, 27 Jan 2017 09:28:35 -0800 (PST) Received: from localhost.localdomain ([2a01:4c8:1b:eeec:f122:1b92:9371:359c]) by smtp.gmail.com with ESMTPSA id k4sm4822140wmf.22.2017.01.27.09.28.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Jan 2017 09:28:35 -0800 (PST) From: Lee Jones To: gregkh@linuxfoundation.org, jslaby@suse.com, linux-serial@vger.kernel.org, dt@kernel.org, devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@stlinux.com, patrice.chotard@st.com, Lee Jones Subject: [PATCH v2 09/10] ARM: dts: STiH407-family: Use new Pinctrl groups Date: Fri, 27 Jan 2017 17:28:03 +0000 Message-Id: <20170127172804.23881-10-lee.jones@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170127172804.23881-1-lee.jones@linaro.org> References: <20170127172804.23881-1-lee.jones@linaro.org> Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Having just defined some new Pinctrl groups for when when HW flow- control is {en,dis}abled, let's reference them for use within the driver. Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih407-family.dtsi | 3 +-- arch/arm/boot/dts/stih410-b2260.dts | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi index c8b2944..e480e32 100644 --- a/arch/arm/boot/dts/stih407-family.dtsi +++ b/arch/arm/boot/dts/stih407-family.dtsi @@ -222,9 +222,8 @@ compatible = "st,asc"; reg = <0x9830000 0x2c>; interrupts = ; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_serial0>; clocks = <&clk_s_c0_flexgen CLK_EXT2F_A9>; + /* Pinctrl moved out to a per-board configuration */ status = "disabled"; }; diff --git a/arch/arm/boot/dts/stih410-b2260.dts b/arch/arm/boot/dts/stih410-b2260.dts index fa16aba..8deecf6 100644 --- a/arch/arm/boot/dts/stih410-b2260.dts +++ b/arch/arm/boot/dts/stih410-b2260.dts @@ -62,8 +62,11 @@ /* Low speed expansion connector */ uart0: serial@9830000 { label = "LS-UART0"; - status = "okay"; + pinctrl-names = "default", "manual-rts"; + pinctrl-0 = <&pinctrl_serial0_flowctrl>; + pinctrl-1 = <&pinctrl_serial0>; rts-gpios = <&pio17 3 GPIO_ACTIVE_LOW>; + status = "okay"; }; /* Low speed expansion connector */ From patchwork Fri Jan 27 17:28:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 92705 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp341910qgi; Fri, 27 Jan 2017 09:30:17 -0800 (PST) X-Received: by 10.98.28.196 with SMTP id c187mr10356578pfc.92.1485538217879; Fri, 27 Jan 2017 09:30:17 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b64si5047697pfg.70.2017.01.27.09.30.17; Fri, 27 Jan 2017 09:30:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934062AbdA0R32 (ORCPT + 2 others); Fri, 27 Jan 2017 12:29:28 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:38825 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934038AbdA0R3L (ORCPT ); Fri, 27 Jan 2017 12:29:11 -0500 Received: by mail-wm0-f45.google.com with SMTP id r144so149532657wme.1 for ; Fri, 27 Jan 2017 09:28:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hgqZPh4SYJM1MXZv+92a1uX48Q4cjbXlQi8L0EB1+sc=; b=fRwn0ej4LFuZc/3Aos3E+Y+HTfuv1RgVMng8MB/G5G65uRYIgkuXKGdRxVxa/lH8un bRuhnluu/9l5lbnHNMLAG45U6QATlHk/G7xQCWMF9tNan+PxG1oqSgsCKU01NMZsHm42 65HJgCOOK9nxJT9z5D1YFMZ8XmY6+UI2wC/1M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=hgqZPh4SYJM1MXZv+92a1uX48Q4cjbXlQi8L0EB1+sc=; b=QJxPA1jghw3ZLkjOadfEi+Fvic8SYHgRKElpRq81Y6i3Was9cLYKptwA1kiVkWaySn Z3Rb8wqkjy9CdZKK6CETodYNhp7gseJtsqeHZH8fUUpJC0A2iK93KSDJLJFfXcokoqcg FfDY4mCL3VDZ65EmMqgAf1IWwXk3u1u6LE2k7NHMXMP4Qe2usHDE3RZJaUjBygSOY5hc ujS/cxXznk4rz9fJNprakFseoHuD9YrV0SzNljv64x2An0XxoB58OUa7pMyHPgt+r4m3 P5O53D4Ko+cCIjyyj4MgOdCSK/iBI1YfN2ZAPzGD1JTGzNtwWO73xXshatrelDOVqeEU 0m/A== X-Gm-Message-State: AIkVDXJVMsY/nxlvBFf70nne5+aER0sw0QPtiODKZAVQpUZAmzKoMUloKgYLJyFNM6ewfCva X-Received: by 10.223.168.111 with SMTP id l102mr8251169wrc.150.1485538118977; Fri, 27 Jan 2017 09:28:38 -0800 (PST) Received: from localhost.localdomain ([2a01:4c8:1b:eeec:f122:1b92:9371:359c]) by smtp.gmail.com with ESMTPSA id k4sm4822140wmf.22.2017.01.27.09.28.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Jan 2017 09:28:38 -0800 (PST) From: Lee Jones To: gregkh@linuxfoundation.org, jslaby@suse.com, linux-serial@vger.kernel.org, dt@kernel.org, devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@stlinux.com, patrice.chotard@st.com, Lee Jones Subject: [PATCH v2 10/10] ARM: dts: STiH410-b2260: Enable HW flow-control Date: Fri, 27 Jan 2017 17:28:04 +0000 Message-Id: <20170127172804.23881-11-lee.jones@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170127172804.23881-1-lee.jones@linaro.org> References: <20170127172804.23881-1-lee.jones@linaro.org> Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Hardware flow-control capability must be specified at a platform level in order to inform the ASC driver that the platform is capable (i.e. are the lines wired up, etc). STiH4{07,10} devices are indeed capable, so let's provide the property. Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih410-b2260.dts | 1 + 1 file changed, 1 insertion(+) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/stih410-b2260.dts b/arch/arm/boot/dts/stih410-b2260.dts index 8deecf6..54a95ae 100644 --- a/arch/arm/boot/dts/stih410-b2260.dts +++ b/arch/arm/boot/dts/stih410-b2260.dts @@ -66,6 +66,7 @@ pinctrl-0 = <&pinctrl_serial0_flowctrl>; pinctrl-1 = <&pinctrl_serial0>; rts-gpios = <&pio17 3 GPIO_ACTIVE_LOW>; + uart-has-rtscts; status = "okay"; };