[PATCH/RFC 2/2] arm64: dts: salvator-x: Add overlay for HSCIF3/HSCIF4 loop testing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add an overlay to enable SCIF4 and HSCIF4 on EXIO Connector D, and do
loop testing.

Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
---
 .../r8a7795-salvator-x-hscif3-hscif4-loop.dtso     | 68 ++++++++++++++++++++++
 1 file changed, 68 insertions(+)
 create mode 100644 arch/arm64/boot/dts/renesas/r8a7795-salvator-x-hscif3-hscif4-loop.dtso

diff --git a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x-hscif3-hscif4-loop.dtso b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x-hscif3-hscif4-loop.dtso
new file mode 100644
index 0000000000000000..614334c3376a85fa
--- /dev/null
+++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x-hscif3-hscif4-loop.dtso
@@ -0,0 +1,68 @@
+/*
+ * Device Tree Overlay for HSCIF3/HSCIF4 loop on r8a7795/Salvator-X
+ *
+ * Copyright (C) 2016 Glider bvba
+ *
+ * This file is licensed under the terms of the GNU General Public License
+ * version 2.  This program is licensed "as is" without any warranty of any
+ * kind, whether express or implied.
+ *
+ * EXIO Pinout:
+ *   - HSCIF3 TXD = EXIO D pin 30 -> HSCIF4 RXD = EXIO D pin 27
+ *   - HSCIF4 TXD = EXIO D pin 21 -> HSCIF3 RXD = EXIO D pin 28
+ */
+
+/dts-v1/ /plugin/;
+
+#include <dt-bindings/clock/r8a7795-cpg-mssr.h>
+
+/ {
+	fragment@0 {
+		target-path = "/aliases";
+
+		__overlay__ {
+			/* serial2 = &hscif3; */
+			serial2 = "/soc/serial@e66a0000";
+			/* serial3 = &hscif4; */
+			serial3 = "/soc/serial@e66b0000";
+		};
+	};
+
+	fragment@1 {
+		target = <&pfc>;
+
+		__overlay__ {
+			hscif3_pins: hscif3 {
+				renesas,groups = "hscif3_data_d";
+				renesas,function = "hscif3";
+			};
+
+			hscif4_pins: hscif4 {
+				renesas,groups = "hscif4_data_b";
+				renesas,function = "hscif4";
+			};
+		};
+	};
+
+	fragment@2 {
+		target = <&hscif3>;
+
+		__overlay__ {
+			pinctrl-0 = <&hscif3_pins>;
+			pinctrl-names = "default";
+
+			status = "okay";
+		};
+	};
+
+	fragment@3 {
+		target = <&hscif4>;
+
+		__overlay__ {
+			pinctrl-0 = <&hscif4_pins>;
+			pinctrl-names = "default";
+
+			status = "okay";
+		};
+	};
+};
-- 
1.9.1




[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux