From patchwork Wed Feb 1 14:31:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 93041 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp2444435qgi; Wed, 1 Feb 2017 06:34:07 -0800 (PST) X-Received: by 10.99.38.2 with SMTP id m2mr3962147pgm.169.1485959647896; Wed, 01 Feb 2017 06:34:07 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w77si19252961pfk.62.2017.02.01.06.34.07; Wed, 01 Feb 2017 06:34:07 -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 S1751143AbdBAOeA (ORCPT + 2 others); Wed, 1 Feb 2017 09:34:00 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:35418 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751668AbdBAObx (ORCPT ); Wed, 1 Feb 2017 09:31:53 -0500 Received: by mail-wm0-f41.google.com with SMTP id b65so41914871wmf.0 for ; Wed, 01 Feb 2017 06:31:53 -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=RfPAtTP+EnH0ppPKWtAtdufrnNgPQOFwH97t7k2f8K+D8qcF8rWR4hLg4GW2/W3Ps6 ThAAwMqEUUxjyKlm5d5AotSLqXi8cB3eCGbyssxp0Zqj0sIf+dspIltSff8luToNHP4P mwvSgFfJMhre5S5uIVlj5r+pth24RKl5HS9uE= 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=VfXR05mxOGfbyvCdQNeUG1JpkfQOVt21j2fWpzVSnMCPKHHTMOr398HxK2/XyIYNg4 bCm1oqkzAEnJoeXacX1+L9XORQwsfZzpakXL5JjO1+375QlN5RvpcAgJG9u7v3jWXikH U6wKYZI0cKpIodrQADU9TwdanueQq1mnWTYn8tozjdcrzm94mKifWcEXhNL9mT1uri5D iJFtGqV/zJxr+TMfIQVktbC6hzFmmvWIQpMvNeZmi4zteH5MqXzKgVV8h53xfs7a/v+s 3WqCQ2qWOtf3B5uJk2N3Zjrz9OI7ZRyOcNTimDQg3ackgH/Ps7FRi1hk0hRP2gFIiehN gk+g== X-Gm-Message-State: AIkVDXK+FNCjp1lZUI1HbssXrD08IcuMB7x53mb5EtYDGU0zKujmwmzZUJhbIarNxnmaDsH+ X-Received: by 10.223.139.142 with SMTP id o14mr2990636wra.6.1485959512200; Wed, 01 Feb 2017 06:31:52 -0800 (PST) Received: from localhost.localdomain (host81-158-165-111.range81-158.btcentralplus.com. [81.158.165.111]) by smtp.gmail.com with ESMTPSA id l37sm34420245wrc.41.2017.02.01.06.31.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Feb 2017 06:31:51 -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 01/10] serial: st-asc: Ignore the parity error bit if 8-bit mode is enabled Date: Wed, 1 Feb 2017 14:31:36 +0000 Message-Id: <20170201143145.31962-2-lee.jones@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170201143145.31962-1-lee.jones@linaro.org> References: <20170201143145.31962-1-lee.jones@linaro.org> Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.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 -- 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/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 Wed Feb 1 14:31:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 93032 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp2443595qgi; Wed, 1 Feb 2017 06:32:20 -0800 (PST) X-Received: by 10.99.102.135 with SMTP id a129mr4027239pgc.220.1485959540313; Wed, 01 Feb 2017 06:32:20 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m32si19326794pld.31.2017.02.01.06.32.20; Wed, 01 Feb 2017 06:32:20 -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 S1751722AbdBAOb4 (ORCPT + 2 others); Wed, 1 Feb 2017 09:31:56 -0500 Received: from mail-wm0-f51.google.com ([74.125.82.51]:38105 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751694AbdBAOby (ORCPT ); Wed, 1 Feb 2017 09:31:54 -0500 Received: by mail-wm0-f51.google.com with SMTP id r141so41166160wmg.1 for ; Wed, 01 Feb 2017 06:31:54 -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=Cl47T1k+1yfQv+bczL2EGud1S5wFTOL8UU37tjHcLAIhM62X7IGXdQlgg7rrNRgzMz s+RR3T6vaYfSbZsVrtKUM9Y2v+3H1dRgHEiGm8smxW3AvShUPVApKyOSBezS0fFKWg2z KvAY4ca1Zt/6+haQLjB/llcZPoyWib13BILn4= 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=ljC9fX0OneMonaC0+RTSU63D1CtAhmkqhx2XBLLbCh2SEg+X6UdDPQPeMuIXL2WFYD QVCzyG42E1fQSoXr9SbHGAjlpA+f+2y+/HqAXmBigPy2M6RcbQr8qrrsUyOyngVTDSgm babRGRusofovWm7rT4z0JH84YCi6m5zT/5zi2DMWLjLstwD5nmIdb7qsR0PbhlFiJYoO tAfZyIseyO1XFLxfA8UbFy4FHHiH/C5wPqTP67jnuK5i2CoILBOVW7FZ8FIwdW1/8UL0 adLPLBf/3AjTvqbNbV2+/wWuZ+1eJkRrRP4U+TJhE66r52Z5BFRjuYWd6hYoUPz8knc8 ggmA== X-Gm-Message-State: AIkVDXL7tHYJCcLzVvNymtz4oTQ3vsQGVD4BK/IqtBK39je+PpbrmNlDXrVHsi4OtLsTlf1c X-Received: by 10.28.218.4 with SMTP id r4mr22580783wmg.105.1485959513193; Wed, 01 Feb 2017 06:31:53 -0800 (PST) Received: from localhost.localdomain (host81-158-165-111.range81-158.btcentralplus.com. [81.158.165.111]) by smtp.gmail.com with ESMTPSA id l37sm34420245wrc.41.2017.02.01.06.31.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Feb 2017 06:31:52 -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: Wed, 1 Feb 2017 14:31:37 +0000 Message-Id: <20170201143145.31962-3-lee.jones@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170201143145.31962-1-lee.jones@linaro.org> References: <20170201143145.31962-1-lee.jones@linaro.org> Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@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 -- 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/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 Wed Feb 1 14:31:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 93038 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp2443632qgi; Wed, 1 Feb 2017 06:32:23 -0800 (PST) X-Received: by 10.99.51.76 with SMTP id z73mr4031414pgz.137.1485959543454; Wed, 01 Feb 2017 06:32:23 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m32si19326794pld.31.2017.02.01.06.32.23; Wed, 01 Feb 2017 06:32:23 -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 S1751873AbdBAOcR (ORCPT + 2 others); Wed, 1 Feb 2017 09:32:17 -0500 Received: from mail-wj0-f178.google.com ([209.85.210.178]:36835 "EHLO mail-wj0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751847AbdBAOcN (ORCPT ); Wed, 1 Feb 2017 09:32:13 -0500 Received: by mail-wj0-f178.google.com with SMTP id n2so20730215wjq.3 for ; Wed, 01 Feb 2017 06:32:02 -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=Nz6EcBz3574CcrlMAxjV2FdHcsra/7R+6yMcnHO9ZTA=; b=QZqEtxbJaAwjhluOCHRbfBz0Vzpu3RRdbwtfDDHXKNMHVPVW+83XObO56Eoc1krOAW /KkEqYpj9i1oVhFBogx3qY52vskgORWpduzjWuU//4salyxLkpnCk7SO//fdihxBkpSV QSEuL/iDO1ooX7UKYlsLD4AFH7WmP6Euc/cz4= 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=Nz6EcBz3574CcrlMAxjV2FdHcsra/7R+6yMcnHO9ZTA=; b=WBAY4tb/l+TnAMwZClpqIOj3UrwwYM62mvgJTxhxq72wrQJ7DzdyTmqVr8LvpFrdl2 kKtCRycRKbUJ9s3BeqcMQ95uLkpd0JkKZl64ubJxJKJ4IIjCrCQdK8vAURLr48NoDBkm yyWCmn9GedGlZk6CVq+TWJhvCVIUISavqS/8C3yTjMW5q+KvnF9WAGLZ3t9HIrfZlPh1 MTmkGkXcPi0FrXXcgkxMC5aMsin7sUFL+pnWDcl2kqRq5KYCT53M0oqgIsxSTZZdlIES laP3KBHY7gupyeL7TMYOmaHhYTxc3siIdJEwnvpSyQ6ZWqtdQ6YKWMh+QLs5j1bAv4fH Oi2A== X-Gm-Message-State: AIkVDXKiz0Kb04ALVwle9siqAwBdFvJNFv4y9ZeDB1hWiZDpIj8SrQ+1E8N8n6LVVPJs9XoD X-Received: by 10.223.150.34 with SMTP id b31mr2969464wra.196.1485959516900; Wed, 01 Feb 2017 06:31:56 -0800 (PST) Received: from localhost.localdomain (host81-158-165-111.range81-158.btcentralplus.com. [81.158.165.111]) by smtp.gmail.com with ESMTPSA id l37sm34420245wrc.41.2017.02.01.06.31.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Feb 2017 06:31:56 -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: Wed, 1 Feb 2017 14:31:39 +0000 Message-Id: <20170201143145.31962-5-lee.jones@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170201143145.31962-1-lee.jones@linaro.org> References: <20170201143145.31962-1-lee.jones@linaro.org> Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@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 -- 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/drivers/tty/serial/st-asc.c b/drivers/tty/serial/st-asc.c index 1058020..e521078 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[NO_HW_FLOWCTRL]) { + pinctrl_select_state(ascport->pinctrl, + ascport->states[NO_HW_FLOWCTRL]); + + 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 Wed Feb 1 14:31:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 93036 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp2443620qgi; Wed, 1 Feb 2017 06:32:22 -0800 (PST) X-Received: by 10.99.36.7 with SMTP id k7mr3953339pgk.201.1485959542525; Wed, 01 Feb 2017 06:32:22 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m32si19326794pld.31.2017.02.01.06.32.22; Wed, 01 Feb 2017 06:32:22 -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 S1751833AbdBAOcH (ORCPT + 2 others); Wed, 1 Feb 2017 09:32:07 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:35519 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751794AbdBAOcF (ORCPT ); Wed, 1 Feb 2017 09:32:05 -0500 Received: by mail-wm0-f48.google.com with SMTP id b65so41919649wmf.0 for ; Wed, 01 Feb 2017 06:32:00 -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=HIhv/pqP4yNuIBIHxulSIKYFJVbj31gIVixiBfcE8Sw2DKfww3LcFJeXcHcOSleB51 WxiRaUSvyx/mbk6d44l+HHGqfh1mVsFtAtPzRb35tNtmQeyUwzKmRA8hzGFBS/ZmUcI4 l2ShvUYmHIfA3X9f/IY2iJLu38NTXdwM/HuEs= 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=n4CcJ1Blio6LbAmwrByeceqO/6pk/A86dEzTL5u02DxIetkNtVmnK8mA4Go+vzLlNu dCiNilXxfa2bOtOoohArIPZfODzDuCJCVHNWjSxP3pMDH7+5+Aaei6dcxjXWPcE9REaX ZRoGclW9IRrulXzXu/lbokp9BRNsoK9TopKA+8yxzGyzAJIQp1fJR5e9YgqSSXv3oR2W LiK3IT6seS2A4A8fX0eeLaADf6gdtvY2h1z3MbTC1NRwuimcV4Ycx+Z+Gos+NA62JKh6 BAvc26UNA8AJTLICZ0XeJ3MXLrpcX0iyzX/3oFDHZvaSZQghHdT5WMPk2kvK545csGd5 uqTQ== X-Gm-Message-State: AIkVDXI1K9f73+MnK7Vhouuay/rqfkxkigLgRo1BgNRl3BgldJRKuXsshXYkfDuZisJKiM+J X-Received: by 10.223.171.12 with SMTP id q12mr2883770wrc.74.1485959519221; Wed, 01 Feb 2017 06:31:59 -0800 (PST) Received: from localhost.localdomain (host81-158-165-111.range81-158.btcentralplus.com. [81.158.165.111]) by smtp.gmail.com with ESMTPSA id l37sm34420245wrc.41.2017.02.01.06.31.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Feb 2017 06:31:58 -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: Wed, 1 Feb 2017 14:31:41 +0000 Message-Id: <20170201143145.31962-7-lee.jones@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170201143145.31962-1-lee.jones@linaro.org> References: <20170201143145.31962-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: Peter Griffin 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: