diff mbox series

[LEDE-DEV,v1,4/4] ramips/RT5350F-OLINUXINO(-EVB) dts: enable ttyS1

Message ID 1505858396-23822-5-git-send-email-mr.zoltan.gyarmati@gmail.com
State Accepted
Headers show
Series ramips/RT5350F-OLINUXINO(-EVB) improve device tree support | expand

Commit Message

Zoltan Gyarmati Sept. 19, 2017, 9:59 p.m. UTC
The RT5350F's second UART pins are available on the base module and on
the EVB as well, so enable it in the device tree.
 In order to keep the origian serial port numbering (ttyS0 is the serial
console), aliases added for the UART devices.

Signed-off-by: Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
---
 target/linux/ramips/dts/RT5350F-OLINUXINO.dtsi | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/target/linux/ramips/dts/RT5350F-OLINUXINO.dtsi b/target/linux/ramips/dts/RT5350F-OLINUXINO.dtsi
index 955a13c..629dab8 100644
--- a/target/linux/ramips/dts/RT5350F-OLINUXINO.dtsi
+++ b/target/linux/ramips/dts/RT5350F-OLINUXINO.dtsi
@@ -2,8 +2,14 @@ 
 
 / {
 	compatible = "olimex,rt5350f-olinuxino", "ralink,rt5350-soc";
+
+    aliases {
+        serial0 = &uartlite;
+        serial1 = &uart;
+    };
 };
 
+
 &spi0 {
 	status = "okay";
 
@@ -46,9 +52,13 @@ 
 &pinctrl {
 	state_default: pinctrl0 {
 		gpio {
-			ralink,group = "jtag", "rgmii", "mdio", "uartf";
+			ralink,group = "jtag", "rgmii", "mdio";
 			ralink,function = "gpio";
 		};
+		uartf_gpio {
+			ralink,group = "uartf";
+			ralink,function = "gpio uartf";
+		};
 	};
 };
 
@@ -77,3 +87,8 @@ 
 &i2c {
 	status = "okay";
 };
+
+&uart {
+	status = "okay";
+};
+