From patchwork Wed Feb 1 14:31:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 93031 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp2443447qgi; Wed, 1 Feb 2017 06:31:56 -0800 (PST) X-Received: by 10.99.113.82 with SMTP id b18mr4086347pgn.118.1485959516194; Wed, 01 Feb 2017 06:31:56 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 19si19265145pfx.116.2017.02.01.06.31.55; Wed, 01 Feb 2017 06:31:56 -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 S1751708AbdBAOby (ORCPT + 25 others); Wed, 1 Feb 2017 09:31:54 -0500 Received: from mail-wm0-f53.google.com ([74.125.82.53]:34716 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751637AbdBAObw (ORCPT ); Wed, 1 Feb 2017 09:31:52 -0500 Received: by mail-wm0-f53.google.com with SMTP id 196so26435180wmm.1 for ; Wed, 01 Feb 2017 06:31:51 -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=A3pAQ9EBU4/jJl9fYLAnH4H8TpCzhTNln/QQ5+5TGiPC7Vecm2645DQdUECq3cPwR2 D7fPpMtA6HEfmpZAew2iRyEr49I/+iyqeLrKbd2Vn4hyWPnd1qM7WLodUosDa4komBeJ Nq4V0ZwvwoyhbcgNbgR69gRmKPc9r9JlOf9tc= 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=FCEc6Kcqo853VTQDTO0Tz+m+PaggOuaNLTCT4RpwpJkorP6ZkMCST+fAkRnIkZJ6rK 0Ff47ZGKtpRUiidxAD0tvxOXQRnaXg7kTJPvaehozEVfgYVFIspAo8v2+8gPubO+Y4hR xJGQ4wrhJbgo9XbarK3mEmwztfmSuFI/Ui43eZi6opYdB1dLrbuFnBHoEuzTLwe2yVP/ L8n3mTbTVi0gOXjj3MFRlvQ6nnzbBEuBkDW+JNkz8YJLYMTT1yzr0iLYxtaxRGEIgcWD xY0TqP6vc0lIHPMOmNdzzZz8TWNkdNUFhKUHWWxdH97uo62ejPCvLS4bF2da+26nJv68 flpQ== X-Gm-Message-State: AIkVDXIWGGo+FGfTYvZMAbf7mncZy210CTTe48Ym/nnheXYXIadOoN2ea08YSwlckFmj4Z2G X-Received: by 10.28.209.202 with SMTP id i193mr3204502wmg.20.1485959511153; Wed, 01 Feb 2017 06:31:51 -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.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Feb 2017 06:31:50 -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: Wed, 1 Feb 2017 14:31:35 +0000 Message-Id: <20170201143145.31962-1-lee.jones@linaro.org> X-Mailer: git-send-email 2.9.3 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 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 Acked-by: Peter Griffin Acked-by: Peter Griffin