Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1571604

[PATCH v2 08/10] ARM: dts: STiH407-pinctrl: Add Pinctrl group for HW flow-control

Path csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod
From Lee Jones <lee.jones@linaro.org>
Newsgroups linux.kernel
Subject [PATCH v2 08/10] ARM: dts: STiH407-pinctrl: Add Pinctrl group for HW flow-control
Date Wed, 01 Feb 2017 15:40:03 +0100
Message-ID <t64eL-77f-41@gated-at.bofh.it> (permalink)
References <t64eJ-77f-5@gated-at.bofh.it>
X-Original-To gregkh@linuxfoundation.org, jslaby@suse.com, linux-serial@vger.kernel.org, dt@kernel.org, devicetree@vger.kernel.org
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=dSspGU4dezopvbtIYWj9ViX150SC5ihDtLhvs1BmA+U=; b=iT1ZhQnVzg+gTdWYjfK8um5i+wIK5fHr0Ks/IgSuPeIYG2/mCmA/FcHRyHekNZmdf1 WZM9ClyhIuzrkk+HBHitUfrsHxtEcnLE1SfgTpdPvZjSK3NpKNYezW/ShD/oNvWRkrZM ML7E8Ts3x6Kn9FUmZszzge3MAV/f+vJdkqAVc=
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=dSspGU4dezopvbtIYWj9ViX150SC5ihDtLhvs1BmA+U=; b=PiV0+c8z8BIFMEqG/0q0UnGrnziZ2RfnPFrspcoml/nCT6FM2aDtIlR1j9zVO8rdz6 OXM0pw6eKI8N3p1wjh3ySkZbB9gCm3JWY9mSvryUB/pw7NZNb0zlqEppflNWhLalC6bL 4suRY9eFqIEMWtV3A27xdjnAnIIWUM26YgRfERbIqpXpMw+jI/hU2B10O+5xzIC2P/sw jyC5FcaKwdWZ8mMB7u+Ar5pISpldZ09+J+Y9DzF+9bDFGiAqEh8wL3nvwJBkY0t+C2Ps 6jpuzBs0/ycQJxxffWHdLq2JgLwGo0sp2YPZAMcs7PkHcWgawwaobUznCOWkjpETQh9F kLKA==
X-Gm-Message-State AIkVDXJnYdFbY7XMSAq/yROqWILu6QtdfX1WB1bWIL4NUl+aFyGNLcsHssAisrse/vCmckOx
X-Received by 10.223.167.66 with SMTP id e2mr2878023wrd.48.1485959521217; Wed, 01 Feb 2017 06:32:01 -0800 (PST)
X-Mailer git-send-email 2.9.3
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 36
Organization linux.* mail to news gateway
X-Original-Cc linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@stlinux.com, patrice.chotard@st.com, Lee Jones <lee.jones@linaro.org>
X-Original-Date Wed, 1 Feb 2017 14:31:43 +0000
X-Original-Message-ID <20170201143145.31962-9-lee.jones@linaro.org>
X-Original-References <20170201143145.31962-1-lee.jones@linaro.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1571604

Show key headers only | View raw


Each serial port which supports HW flow-control should have 2 Pinctrl
groups.  One for when HW flow-control is in progress, where the IP
will take over controlling the lines and another group which enables
the lines to be toggled using GPIO mechanisms.

Acked-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
 arch/arm/boot/dts/stih407-pinctrl.dtsi | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/stih407-pinctrl.dtsi b/arch/arm/boot/dts/stih407-pinctrl.dtsi
index daab16b..bd1a82e 100644
--- a/arch/arm/boot/dts/stih407-pinctrl.dtsi
+++ b/arch/arm/boot/dts/stih407-pinctrl.dtsi
@@ -465,8 +465,16 @@
 			serial0 {
 				pinctrl_serial0: serial0-0 {
 					st,pins {
-						tx = <&pio17 0 ALT1 OUT>;
-						rx = <&pio17 1 ALT1 IN>;
+						tx =  <&pio17 0 ALT1 OUT>;
+						rx =  <&pio17 1 ALT1 IN>;
+					};
+				};
+				pinctrl_serial0_hw_flowctrl: serial0-0_hw_flowctrl {
+					st,pins {
+						tx =  <&pio17 0 ALT1 OUT>;
+						rx =  <&pio17 1 ALT1 IN>;
+						cts = <&pio17 2 ALT1 IN>;
+						rts = <&pio17 3 ALT1 OUT>;
 					};
 				};
 			};
-- 
2.9.3

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 00/10] serial: st-asc: Allow handling of RTS line Lee Jones <lee.jones@linaro.org> - 2017-02-01 15:40 +0100
  [PATCH v2 04/10] serial: st-asc: (De)Register GPIOD and swap Pinctrl profiles Lee Jones <lee.jones@linaro.org> - 2017-02-01 15:40 +0100
  [PATCH v2 08/10] ARM: dts: STiH407-pinctrl: Add Pinctrl group for HW flow-control Lee Jones <lee.jones@linaro.org> - 2017-02-01 15:40 +0100
  [PATCH v2 03/10] serial: st-asc: Read in all Pinctrl states Lee Jones <lee.jones@linaro.org> - 2017-02-01 15:40 +0100
    Re: [STLinux Kernel] [PATCH v2 03/10] serial: st-asc: Read in all  Pinctrl states Peter Griffin <peter.griffin@linaro.org> - 2017-02-01 16:00 +0100
  Re: [PATCH v2 00/10] serial: st-asc: Allow handling of RTS line Greg KH <gregkh@linuxfoundation.org> - 2017-02-03 10:20 +0100
    Re: [PATCH v2 00/10] serial: st-asc: Allow handling of RTS line Lee Jones <lee.jones@linaro.org> - 2017-02-03 11:20 +0100

csiph-web