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

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

 



Add an overlay to enable SCIF3 and HSCIF3 on EXIO Connector D, and do
loop testing.

Based on a plain DTS patch by Magnus Damm <damm+renesas@xxxxxxxxxxxxx>.

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

diff --git a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x-scif3-hscif3-loop.dtso b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x-scif3-hscif3-loop.dtso
new file mode 100644
index 0000000000000000..3541d19a60f6de0e
--- /dev/null
+++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x-scif3-hscif3-loop.dtso
@@ -0,0 +1,68 @@
+/*
+ * Device Tree Overlay for SCIF3/HSCIF3 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 -> SCIF3 RXD  = EXIO D pin 27
+ *   - SCIF3 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 = &scif3; */
+			serial2 = "/soc/serial@e6c50000";
+			/* serial3 = &hscif3; */
+			serial3 = "/soc/serial@e66a0000";
+		};
+	};
+
+	fragment@1 {
+		target = <&pfc>;
+
+		__overlay__ {
+			scif3_pins: scif3 {
+				renesas,groups = "scif3_data_b";
+				renesas,function = "scif3";
+			};
+
+			hscif3_pins: hscif3 {
+				renesas,groups = "hscif3_data_d";
+				renesas,function = "hscif3";
+			};
+		};
+	};
+
+	fragment@2 {
+		target = <&scif3>;
+
+		__overlay__ {
+			pinctrl-0 = <&scif3_pins>;
+			pinctrl-names = "default";
+
+			status = "okay";
+		};
+	};
+
+	fragment@3 {
+		target = <&hscif3>;
+
+		__overlay__ {
+			pinctrl-0 = <&hscif3_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