diff mbox

[PATCH/RFC,04/12] ARM: shmobile: armadillo dts: Add overlay for SCIFB on CON15

Message ID 1431452235-11692-5-git-send-email-geert+renesas@glider.be (mailing list archive)
State RFC
Headers show

Commit Message

Geert Uytterhoeven May 12, 2015, 5:37 p.m. UTC
Provide access to SCIFB on the Expansion Interface Connector (CON15), as
documented in Table 18.15 of the "Armadillo-800 EVA Product Manual".

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm/boot/dts/Makefile                         |  1 +
 .../dts/r8a7740-armadillo800eva-con15-scifb.dtso   | 52 ++++++++++++++++++++++
 2 files changed, 53 insertions(+)
 create mode 100644 arch/arm/boot/dts/r8a7740-armadillo800eva-con15-scifb.dtso
diff mbox

Patch

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 5366e2112ad1ea18..1f2478d6254ea70f 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -670,6 +670,7 @@  dtb-$(CONFIG_ARCH_MEDIATEK) += \
 ifeq ($(CONFIG_OF_OVERLAY),y)
 dtb-$(CONFIG_ARCH_SHMOBILE_MULTI) += \
 	r8a7740-armadillo800eva-con15-scifa0.dtbo \
+	r8a7740-armadillo800eva-con15-scifb.dtbo \
 endif
 endif
 
diff --git a/arch/arm/boot/dts/r8a7740-armadillo800eva-con15-scifb.dtso b/arch/arm/boot/dts/r8a7740-armadillo800eva-con15-scifb.dtso
new file mode 100644
index 0000000000000000..34e46580e09565a9
--- /dev/null
+++ b/arch/arm/boot/dts/r8a7740-armadillo800eva-con15-scifb.dtso
@@ -0,0 +1,52 @@ 
+/*
+ * Device Tree Overlay for SCIFB on r8a7740/Armadillo-800 EVA Expansion
+ * Interface Connector
+ *
+ * Copyright (C) 2015 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.
+ *
+ * Pinout:
+ *   - RXD = CON15 pin 41
+ *   - TXD = CON15 pin 40
+ *   - SCK = CON15 pin 42
+ */
+
+/dts-v1/;
+/plugin/;
+
+/ {
+	fragment@0 {
+		target-path = "/aliases";
+
+		__overlay__ {
+			/* serial8 = &scifb; */
+			serial8 = "/serial@e6c30000";
+		};
+	};
+
+	fragment@1 {
+		target = <&pfc>;
+
+		__overlay__ {
+			scifb_pins: serial8 {
+				renesas,groups = "scifb_data_0";
+				renesas,function = "scifb";
+			};
+		};
+	};
+
+	fragment@2 {
+		target = <&scifb>;
+
+		__overlay__ {
+			pinctrl-0 = <&scifb_pins>;
+			pinctrl-names = "default";
+
+			ctsrts;
+			status = "okay";
+		};
+	};
+};