lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 17 Jan 2017 16:46:55 +0000
From:   Peter Griffin <peter.griffin@...aro.org>
To:     linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
        kernel@...inux.com, patrice.chotard@...com
Cc:     peter.griffin@...aro.org, lee.jones@...aro.org
Subject: [PATCH] ARM: DT: STiH407: Add RTS / CTS pinctrl definition for UARTs.

The uart IP is capable of doing hardware flow control. Define
the RTS and CTS pins for STiH407 family Socs so we can use this
feature in the future if we wish to.

Signed-off-by: Peter Griffin <peter.griffin@...aro.org>
---
 arch/arm/boot/dts/stih407-pinctrl.dtsi | 50 ++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/arch/arm/boot/dts/stih407-pinctrl.dtsi b/arch/arm/boot/dts/stih407-pinctrl.dtsi
index daab16b..3bbb0c0 100644
--- a/arch/arm/boot/dts/stih407-pinctrl.dtsi
+++ b/arch/arm/boot/dts/stih407-pinctrl.dtsi
@@ -149,6 +149,16 @@
 						rx = <&pio3 5 ALT1 IN>;
 					};
 				};
+				pinctrl_sbc_serial0_rts: sbc_serial0-0_rts {
+					st,pins {
+						rts = <&pio3 7 ALT1 OUT>;
+					};
+				};
+				pinctrl_sbc_serial0_cts: sbc_serial0-0_cts {
+					st,pins {
+						cts = <&pio3 6 ALT1 IN>;
+					};
+				};
 			};
 			/* SBC_ASC1 - UART11 */
 			sbc_serial1 {
@@ -158,6 +168,16 @@
 						rx = <&pio2 7 ALT3 IN>;
 					};
 				};
+				pinctrl_sbc_serial1_rts: sbc_serial1-0_rts {
+					st,pins {
+						rts = <&pio3 1 ALT3 OUT>;
+					};
+				};
+				pinctrl_sbc_serial1_cts: sbc_serial1-0_cts {
+					st,pins {
+						cts = <&pio3 0 ALT3 IN>;
+					};
+				};
 			};
 
 			i2c10 {
@@ -469,6 +489,16 @@
 						rx = <&pio17 1 ALT1 IN>;
 					};
 				};
+				pinctrl_serial0_rts: serial0-0_rts {
+					st,pins {
+						rts = <&pio17 3	ALT1 OUT>;
+					};
+				};
+				pinctrl_serial0_cts: serial0-0_cts {
+					st,pins {
+						cts = <&pio17 2	ALT1 IN>;
+					};
+				};
 			};
 
 			serial1 {
@@ -478,6 +508,16 @@
 						rx = <&pio16 1 ALT1 IN>;
 					};
 				};
+				pinctrl_serial1_rts: serial1-0_rts {
+					st,pins {
+						rts = <&pio16 3	ALT1 OUT>;
+					};
+				};
+				pinctrl_serial1_cts: serial1-0_cts {
+					st,pins {
+						cts = <&pio16 2 ALT1 IN>;
+					};
+				};
 			};
 
 			serial2 {
@@ -487,6 +527,16 @@
 						rx = <&pio15 1 ALT1 IN>;
 					};
 				};
+				pinctrl_serial2_rts: serial2-0_rts {
+					st,pins {
+						rts = <&pio15 3	ALT1 OUT>;
+					};
+				};
+				pinctrl_serial2_cts: serial2-0_cts {
+					st,pins {
+						cts = <&pio15 2	ALT1 IN>;
+					};
+				};
 			};
 
 			mmc1 {
-- 
2.7.4

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ