From patchwork Wed Feb 1 14:31:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 93035 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp2443618qgi; Wed, 1 Feb 2017 06:32:22 -0800 (PST) X-Received: by 10.84.216.73 with SMTP id f9mr4933104plj.159.1485959542341; 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-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 S1751831AbdBAOcE (ORCPT + 25 others); Wed, 1 Feb 2017 09:32:04 -0500 Received: from mail-wj0-f173.google.com ([209.85.210.173]:34096 "EHLO mail-wj0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751794AbdBAOcB (ORCPT ); Wed, 1 Feb 2017 09:32:01 -0500 Received: by mail-wj0-f173.google.com with SMTP id uo9so20794814wjc.1 for ; Wed, 01 Feb 2017 06:32:01 -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=WIgl74pHSwl2tK6bV6y2eFUFU9Y9AzGj1m+32ins5OQ=; b=XVTTM19I7oF3uSXQKVxdhrMPTo6NZCMQyawSCJig2WvL6Mdk3hxTNAl+2Ca0kEZ64b Zfdw5T6pMSVTNkDQ4US1YVur28dn4i89maS8J64LvPbUinGZbYIz1oL0Ls1JBOykmb4P DVnVQvxnRuk/6Ojq7UCJDdXsuWzlVrkqTP5AE= 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=WIgl74pHSwl2tK6bV6y2eFUFU9Y9AzGj1m+32ins5OQ=; b=ZXkjSY6ubQBqsPsV6q/7SRCgozqhXXBUuGSYmK7HavyZVUs20jSfQOFxnuN8hbH2eP lZloy+W/QFWt2Yrf2La5zMNXf083w3DEkAHpMKQ+zPgVkCyrYHdPjGSDIkjkEm8Qtbcz DP5ZkJYO5Jiceg+e5QOyuqjXU6YQRK3Bu5cuekjG6zduwa0alHGjNKv96BujHSgvW6Px tmYTdzv6lQVU7ef3x2/3OYv/T0uqXPaabHuqn16/VRGa3XTveyjXojJRWC/3vl7ut1ra o0rDzJDE3BgJf21gvMwjK7b+VjHw6FRX1+wHC/JasXhBc+x3k4IDzv2t4ZfmfQ+PWbVR Mxqw== X-Gm-Message-State: AIkVDXL4dsW/fNbaSMiGKqZs+6y3g4lqFSGtmApbk7T22b1Iph00FC34P3+mBkNOLRkVSyQy X-Received: by 10.223.148.2 with SMTP id 2mr3137956wrq.75.1485959520176; Wed, 01 Feb 2017 06:32:00 -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.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Feb 2017 06:31:59 -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 07/10] ARM: dts: STiH410-b2260: Identify the UART RTS line Date: Wed, 1 Feb 2017 14:31:42 +0000 Message-Id: <20170201143145.31962-8-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-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 patch configures the UART RTS line as a GPIO for manipulation within the UART driver when HW flow-control is not enabled. Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih410-b2260.dts | 1 + 1 file changed, 1 insertion(+) -- 2.9.3 diff --git a/arch/arm/boot/dts/stih410-b2260.dts b/arch/arm/boot/dts/stih410-b2260.dts index 06b0696..fa16aba 100644 --- a/arch/arm/boot/dts/stih410-b2260.dts +++ b/arch/arm/boot/dts/stih410-b2260.dts @@ -63,6 +63,7 @@ uart0: serial@9830000 { label = "LS-UART0"; status = "okay"; + rts-gpios = <&pio17 3 GPIO_ACTIVE_LOW>; }; /* Low speed expansion connector */ From patchwork Wed Feb 1 14:31:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 93039 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp2443639qgi; Wed, 1 Feb 2017 06:32:24 -0800 (PST) X-Received: by 10.84.129.67 with SMTP id 61mr4894101plb.103.1485959544268; Wed, 01 Feb 2017 06:32:24 -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:24 -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 S1751903AbdBAOcV (ORCPT + 25 others); Wed, 1 Feb 2017 09:32:21 -0500 Received: from mail-wj0-f173.google.com ([209.85.210.173]:36863 "EHLO mail-wj0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751871AbdBAOcR (ORCPT ); Wed, 1 Feb 2017 09:32:17 -0500 Received: by mail-wj0-f173.google.com with SMTP id n2so20731456wjq.3 for ; Wed, 01 Feb 2017 06:32:17 -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=1LwRPLRmjUEteIiuuk8ks7kj3jKtk8y4GLn/PPIK384=; b=bad2NbJz8lpLtUzAswAlVkK4qGTafiz0vk1qqJRb+A2fv6F+zYL7f8VwmknSJyKUmH hEaZj+P2XmjAGrs+JagkaQavx9/GjMz2Sj2qQ6zzOi3nTBd5SGqIo9kiTkfET7DL5bFg XCToL5oD5JNbk7Avfm8GMZ8yOxrEeERdTk7pE= 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=1LwRPLRmjUEteIiuuk8ks7kj3jKtk8y4GLn/PPIK384=; b=jmwxEQDth4IvP3+vcgeG5kTPk7bXIaDNC7v98QbqPiAkQ6WweOPoo8Xsi0ERVoRLBD z/9D+pWCk1AdOSucFcyVQUd3fbrYks8XQ0o9jU9OXLZ3gE0S1rnCdPWLkXLNKeRyNCiK j9dtJ+7Lj2ACtHFnKAsrsyWWQr41HFy0T8cSR0XHOg2AiPVkNMEtcXW4LuQrTLrBvVez KPsKsso1etQZ6CWWXx6nZOrCZfxZAXmrJed+pjhMxRToIblK6legSSzZcPI9Q53sa251 1EXQ0N7d8vptZyJpIGneHGJ7R2Mzj6iBAVZFqhrtGxi/u5c/Zv8jqhPUmQHOWzZNxGJJ MgLA== X-Gm-Message-State: AIkVDXJi7/hl1t1MsaDKHcBI4qZ/IxZifKi20oo5z1iI+OZXIXr7B7rCJ7J9Ty23i0wiuU7L X-Received: by 10.223.168.87 with SMTP id l81mr3455796wrc.194.1485959522379; Wed, 01 Feb 2017 06:32:02 -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.32.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Feb 2017 06:32:01 -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 09/10] ARM: dts: STiH407-family: Use new Pinctrl groups Date: Wed, 1 Feb 2017 14:31:44 +0000 Message-Id: <20170201143145.31962-10-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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Having just defined some new Pinctrl groups for when HW flow-control is {en,dis}abled, let's reference them for use within the driver. Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih407-family.dtsi | 3 +-- arch/arm/boot/dts/stih410-b2260.dts | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) -- 2.9.3 diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi index c8b2944..e480e32 100644 --- a/arch/arm/boot/dts/stih407-family.dtsi +++ b/arch/arm/boot/dts/stih407-family.dtsi @@ -222,9 +222,8 @@ compatible = "st,asc"; reg = <0x9830000 0x2c>; interrupts = ; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_serial0>; clocks = <&clk_s_c0_flexgen CLK_EXT2F_A9>; + /* Pinctrl moved out to a per-board configuration */ status = "disabled"; }; diff --git a/arch/arm/boot/dts/stih410-b2260.dts b/arch/arm/boot/dts/stih410-b2260.dts index fa16aba..cbcbcb4 100644 --- a/arch/arm/boot/dts/stih410-b2260.dts +++ b/arch/arm/boot/dts/stih410-b2260.dts @@ -62,8 +62,11 @@ /* Low speed expansion connector */ uart0: serial@9830000 { label = "LS-UART0"; - status = "okay"; + pinctrl-names = "default", "no-hw-flowctrl"; + pinctrl-0 = <&pinctrl_serial0_hw_flowctrl>; + pinctrl-1 = <&pinctrl_serial0>; rts-gpios = <&pio17 3 GPIO_ACTIVE_LOW>; + status = "okay"; }; /* Low speed expansion connector */ From patchwork Wed Feb 1 14:31:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 93037 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp2443630qgi; Wed, 1 Feb 2017 06:32:23 -0800 (PST) X-Received: by 10.99.229.17 with SMTP id r17mr3997647pgh.81.1485959543166; 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.22; Wed, 01 Feb 2017 06:32:23 -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 S1751867AbdBAOcN (ORCPT + 25 others); Wed, 1 Feb 2017 09:32:13 -0500 Received: from mail-wm0-f44.google.com ([74.125.82.44]:36860 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751836AbdBAOcJ (ORCPT ); Wed, 1 Feb 2017 09:32:09 -0500 Received: by mail-wm0-f44.google.com with SMTP id c85so41827782wmi.1 for ; Wed, 01 Feb 2017 06:32:09 -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=mX3MvJ/Jj5b1GlDiqRjJBdjaNIZTbHJsvAlr5TYidu4=; b=NrP7u/FLfYiTi3D82plve9w/AV1S13HOqtJ8DUmyTTSPeztw465qZVHI/i35d9qzCD Kj7r0ces+HErEwpTnc5H+E997EDy5ddRmAUf1xCG+uw9xrEyYdQvlOiydFlhf0KFiPgc vvx/iV/PbvbvMQmCD2HXWTtrPB204EUuOK1Xg= 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=mX3MvJ/Jj5b1GlDiqRjJBdjaNIZTbHJsvAlr5TYidu4=; b=mJhn8hdB/QzOr2SYEfwrfWgC9Zr+CWRzjMV7p3ZK7P1g3vm442Ap90y3uFDR2DO6wi 03l3OrsmNAMohraKU6PURVJ25+Mo28AOAtFjSrH71M00gHt0tFBjpnIEFXLkoxLuRpAa yMX92QXey2o3uFOEgViKBfMGuJFIlUCAKjRHV1CcIYAOdVW316v7wEtXBsO3IG4N/175 ab3ZcVwwZ7D+qYVbMJSbr6lgUhNG9vYXsvFFnTNHPrN8rcEs7fpcZf1MHy8VjR1U8gbR RfsfUWa4XWPsq+ve4e8tHExS71lSVxAbo3zk0pnHKJ7R3+5EnwDG4lhrq3s/fn/hMUS4 AciA== X-Gm-Message-State: AIkVDXLB9lhDlRiCqltRCeG2RGyUks/4+ylsVyr8AU/YUCbkavBZPCnB1bCXrRTBD5MfMAd7 X-Received: by 10.28.54.226 with SMTP id y95mr3125573wmh.105.1485959523468; Wed, 01 Feb 2017 06:32:03 -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.32.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Feb 2017 06:32:02 -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 10/10] ARM: dts: STiH410-b2260: Enable HW flow-control Date: Wed, 1 Feb 2017 14:31:45 +0000 Message-Id: <20170201143145.31962-11-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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hardware flow-control capability must be specified at a platform level in order to inform the ASC driver that the platform is capable (i.e. are the lines wired up, etc). STiH4{07,10} devices are indeed capable, so let's provide the property. Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih410-b2260.dts | 1 + 1 file changed, 1 insertion(+) -- 2.9.3 diff --git a/arch/arm/boot/dts/stih410-b2260.dts b/arch/arm/boot/dts/stih410-b2260.dts index cbcbcb4..93c14d1 100644 --- a/arch/arm/boot/dts/stih410-b2260.dts +++ b/arch/arm/boot/dts/stih410-b2260.dts @@ -66,6 +66,7 @@ pinctrl-0 = <&pinctrl_serial0_hw_flowctrl>; pinctrl-1 = <&pinctrl_serial0>; rts-gpios = <&pio17 3 GPIO_ACTIVE_LOW>; + uart-has-rtscts; status = "okay"; };