From patchwork Fri Jan 27 17:27:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 92697 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp341072qgi; Fri, 27 Jan 2017 09:28:27 -0800 (PST) X-Received: by 10.99.126.76 with SMTP id o12mr10713937pgn.84.1485538107634; Fri, 27 Jan 2017 09:28:27 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x69si2433785pgd.263.2017.01.27.09.28.27; Fri, 27 Jan 2017 09:28:27 -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 S933408AbdA0R20 (ORCPT + 7 others); Fri, 27 Jan 2017 12:28:26 -0500 Received: from mail-wm0-f46.google.com ([74.125.82.46]:35186 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933253AbdA0R2Z (ORCPT ); Fri, 27 Jan 2017 12:28:25 -0500 Received: by mail-wm0-f46.google.com with SMTP id r126so127042916wmr.0 for ; Fri, 27 Jan 2017 09:28:24 -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=tNKQWDRSdBUW945MoKTO5GckNkoGifGqmD0kMVIDSQk=; b=YSzVD8x7RWtkqCTuI7OdW4Slhd48ZpQDbaUGu3d4pSpKp6d1TQ2B3D2Nw95lRskKpP 1CMBzW0RGJP3vI2fVZ0A5nsmyMVS9J0nJxF69wWqRk5i2e2n1ljvhA6xtDJMhaPiT91M htZykkfXPi2CsUN9vCJWDOZ9O5yv7uOCN7DF8= 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=tNKQWDRSdBUW945MoKTO5GckNkoGifGqmD0kMVIDSQk=; b=OBY9Ks9+hAexM3sa75R8hY2FpnmJDUxTi6wnQbMTq1wo8lDsroLe4CnDmic76sYDTl GvjXUgiEyiW8Wv87g5ss4oe7Xv/FZa33rViK7Z678zGdZ0AmN1qwpdkwROTLNMr/dvh1 vviridwi1LqHPeQOm1HHORs3nS8Jy4qA1siKVle6TznWdbaEma4BxgNPKOGMjNDEM/z3 SSbsQsh5SLVh2GkG/VhFd9KKUnHn7ZEJwLz1Aa9R+BnSrmlqfBvZPrkuGZ3+NIczA8IO n7aiZkmu5vHlTDsTH/+ebgPDczWdGEjPfgXXsJEyKBYHC89ApD8DsqPJEy/EQMb+BnZa W3Hg== X-Gm-Message-State: AIkVDXKTUoGTXJHxl2bUzPOlrjjEor8FlFKmBNgO+WIBLjfwHuakU2ImMAQV3m9IQHLAmSBY X-Received: by 10.28.211.205 with SMTP id k196mr3851298wmg.124.1485538098549; Fri, 27 Jan 2017 09:28:18 -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.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Jan 2017 09:28:17 -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 00/10] serial: st-asc: Allow handling of RTS line Date: Fri, 27 Jan 2017 17:27:54 +0000 Message-Id: <20170127172804.23881-1-lee.jones@linaro.org> X-Mailer: git-send-email 2.9.3 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 (10): 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 serial: st-asc: Use generic DT binding for announcing RTS/CTS lines dt-bindings: serial: Update 'uart-has-rtscts' description 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: STiH410-b2260: Enable HW flow-control .../devicetree/bindings/serial/serial.txt | 3 +- arch/arm/boot/dts/stih407-family.dtsi | 3 +- arch/arm/boot/dts/stih407-pinctrl.dtsi | 12 ++- arch/arm/boot/dts/stih410-b2260.dts | 5 + drivers/tty/serial/st-asc.c | 101 +++++++++++++++++++-- 5 files changed, 110 insertions(+), 14 deletions(-) -- 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