Skip to contentSkip to conversation

ARM: shmobile: External Salvator-X SCIF3/HSCIF3 loop

PATCH In review Magnus Damm 1 participant 1 message Dec 15, 2015

Subsystems (3)
lore
Share & tools
lore

Magnus Damm

author maintainer
#0 lore raw

PATCH 1/3 ARM: shmobile: External Salvator-X SCIF3/HSCIF3 loop

From: Magnus Damm <[email protected]>

Add SCIF3 and HSCIF3 as two new serial ports to the r8a7795 Salvator-X DT file.

---

 arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts |   28 ++++++++++++++++++++
 1 file changed, 28 insertions(+)
arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts +28 -0
@@ -41,6 +41,8 @@
 	aliases {
 		serial0 = &scif2;
 		serial1 = &scif1;
+		serial2 = &scif3;
+		serial3 = &hscif3;
 		ethernet0 = &avb;
 	};
 
@@ -135,6 +137,16 @@
 		renesas,groups = "scif2_data_a";
 		renesas,function = "scif2";
 	};
+	
+	scif3_pins: scif3 { /* TX: 1_11, RX: 1_8 */
+		renesas,groups = "scif3_data_b";
+		renesas,function = "scif3";
+	};
+
+	hscif3_pins: hscif3 { /* TX: 2_8, RX: 2_7 */
+		renesas,groups = "hscif3_data_d";
+		renesas,function = "hscif3";
+	};
 
 	i2c2_pins: i2c2 {
 		renesas,groups = "i2c2_a";
@@ -169,6 +181,22 @@
 	pinctrl-names = "default";
 
 	status = "okay";
+};
+
+&scif3 {
+	pinctrl-0 = <&scif3_pins>;
+	pinctrl-names = "default";
+
+	status = "okay";
+};
+
+/* SCIF3 TX -> HSCIF3 RX, HSCIF3 TX -> SCIF3 RX */
+
+&hscif3 {
+	pinctrl-0 = <&hscif3_pins>;
+	pinctrl-names = "default";
+
+	status = "okay";
 };
 
 &i2c2 {