From patchwork Tue Jan 24 13:43: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: 92346 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1717536qgi; Tue, 24 Jan 2017 05:41:20 -0800 (PST) X-Received: by 10.98.112.134 with SMTP id l128mr38536130pfc.81.1485265280078; Tue, 24 Jan 2017 05:41:20 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k68si19214254pfb.181.2017.01.24.05.41.19; Tue, 24 Jan 2017 05:41:20 -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 S1751052AbdAXNlS (ORCPT + 7 others); Tue, 24 Jan 2017 08:41:18 -0500 Received: from mail-wm0-f43.google.com ([74.125.82.43]:34999 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751025AbdAXNlQ (ORCPT ); Tue, 24 Jan 2017 08:41:16 -0500 Received: by mail-wm0-f43.google.com with SMTP id r126so182631341wmr.0 for ; Tue, 24 Jan 2017 05:41:16 -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; bh=sU+a/k4x1b1d1qAz8fD9dYCepkU8Otrr5FctIXAtk6c=; b=HBifUZwRXNomYkAdqlDo/BVM1VjcuboUkAmy3D0xyze/VDfd4b+bCiPemMC1CMykjj 2jtKxV52nDlQdjqDpe4JVkV/ZjUGCuFvjdOgRKWi6m63TGA1iDGgHwaHzGsWEgpdh0jT i1Y30d/J+5QIUeWy7TyLJ5fvvLOyDr4O7eORc= 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; bh=sU+a/k4x1b1d1qAz8fD9dYCepkU8Otrr5FctIXAtk6c=; b=rPX6oit7HVlnlqB77DAK1XtZbXOcBJ4mfMtVnYgZ+u5XQT30GoCowYVjxly4qJHjXn ZJrrE31a3Rpb5N1AgocSgeTTyRnxv6wdIzM2WSZcXUeZ/Tnre0lzi+I73qtGjTZK/Jbc 4tY4le/G/Df8wo/QI5BK8ZyokTo86LqRGQuKYcvHMgjO9ZZDhUy3TLW4UqIQuO1fWmOy GDTA/MjOCxL9OC0q4xMxGqF3AsAGA7ZnIPGTx1fL4V8ib9x2Q1H1hfIg7mwXfApe+CAP UOohVJMl9Y7MX86YhQkmSTzqFXF9IjWowogRtfU2+vQT95uIcLjhR5Gq+UHQkt7ZXh9u 61Kg== X-Gm-Message-State: AIkVDXLYlwAmFRSCoJOxd7KBelXdt8dsAewhlIN4z6QJ7VMrI3TiW3eeve/9U4Yf9WburlKC X-Received: by 10.28.212.82 with SMTP id l79mr17246027wmg.101.1485265275292; Tue, 24 Jan 2017 05:41:15 -0800 (PST) Received: from localhost.localdomain (host81-129-172-30.range81-129.btcentralplus.com. [81.129.172.30]) by smtp.gmail.com with ESMTPSA id d42sm19966165wrd.7.2017.01.24.05.41.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Jan 2017 05:41:14 -0800 (PST) From: Lee Jones To: gregkh@linuxfoundation.org, jslaby@suse.com, linux-serial@vger.kernel.org, robh+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 0/8] serial: st-asc: Allow handling of RTS line Date: Tue, 24 Jan 2017 13:43:02 +0000 Message-Id: <20170124134310.27512-1-lee.jones@linaro.org> X-Mailer: git-send-email 2.10.2 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 set ensures the correct Pinctrl groups are configured and obtained for both manual toggling of the RTS line and for the IP to take over the lines when HW flow-control is requested by the user. Lee Jones (8): serial: st-asc: Ignore the parity error bit if 8-bit mode is enabled serial: st-asc: Provide RTS functionality serial: st-asc: Read in all Pinctrl states serial: st-asc: (De)Register GPIOD and swap Pinctrl profiles ARM: dts: STiH410-b2260: Identify the UART RTS line ARM: dts: STiH407-pinctrl: Add Pinctrl group for HW flow-control ARM: dts: STiH407-family: Use new Pinctrl groups ARM: dts: STiH407-family: Enable HW flow-control arch/arm/boot/dts/stih407-family.dtsi | 7 +-- arch/arm/boot/dts/stih407-pinctrl.dtsi | 12 ++++- arch/arm/boot/dts/stih410-b2260.dts | 1 + drivers/tty/serial/st-asc.c | 98 +++++++++++++++++++++++++++++++--- 4 files changed, 105 insertions(+), 13 deletions(-) -- 2.10.2 -- 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