From patchwork Fri Feb 3 10:23:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 93159 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp525024qgi; Fri, 3 Feb 2017 02:23:27 -0800 (PST) X-Received: by 10.84.209.203 with SMTP id y69mr19790041plh.115.1486117407136; Fri, 03 Feb 2017 02:23:27 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x1si25093388pfa.171.2017.02.03.02.23.26; Fri, 03 Feb 2017 02:23: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 S1753117AbdBCKXZ (ORCPT + 7 others); Fri, 3 Feb 2017 05:23:25 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:36982 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752961AbdBCKXY (ORCPT ); Fri, 3 Feb 2017 05:23:24 -0500 Received: by mail-wm0-f45.google.com with SMTP id v77so20720555wmv.0 for ; Fri, 03 Feb 2017 02:23: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=f6CcKS0tQsUF905qQRXJO5SrZcSE+S+HsKWDpgY5SZuEKsw57ysyPjTXRYjZIXdTte YtH/1sk/2zlAoBiah42tCjtEcoLcLEvMrYgRTBkSLqZDeg7Lqena6avEev5+MAxvLYUp iCYD3NhgxVkke8pAMJVnGw5f9R/TsviXffX14= 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=DmWiPhSpqsfDdR/U/fpaoPYBN+NBg7npVAbKRupHF76S1uR4OW93s4j9f1v3TK6wWZ Ji2XjOIOVAU32VbihEPMkTh8xmdf2tlos8/2SsuBs8pZ6ZTLXfgkcjRmI/teVMmeQisQ KxynT8e+OGrk2TwKGG8jP3wtdsKlsk7HxCFhFZ//SSuxyTyOtvrqN5gk4VZc1JCAuVco v+EkkbV5GvBcWOIqR3UhSTBAVVw1F31DlD1puPPiqFDLf1NJ2VPywv5GcnL4rN0iGA6N gRaWr8ou9yV8oiEVuUrORhiriUBkhRZEFrgvWuV+e7YDkr1bLEq5G2XB4BJ7lOFbeKm1 /RmQ== X-Gm-Message-State: AIkVDXJAKjfx3EEfN5sJ/l4ikyTJ6SIDb1pAqtuaSURT5Mabt1sSQMaBYGNrW6Ao8l3gDFdd X-Received: by 10.223.177.202 with SMTP id r10mr11528839wra.94.1486117403213; Fri, 03 Feb 2017 02:23:23 -0800 (PST) Received: from dell.Home ([2a02:c7d:1faf:e900:a188:db10:388f:f973]) by smtp.gmail.com with ESMTPSA id z90sm44668100wrc.24.2017.02.03.02.23.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Feb 2017 02:23:22 -0800 (PST) From: Lee Jones To: gregkh@linuxfoundation.org, jslaby@suse.com, linux-serial@vger.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 v4 00/10] serial: st-asc: Allow handling of RTS lin Date: Fri, 3 Feb 2017 10:23:09 +0000 Message-Id: <20170203102319.23489-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