[OpenWrt-Devel] [PATCH 3/3] RT5350F-OLINUXINO(-EVB) dts: enable i2c port

Zoltan Gyarmati mr.zoltan.gyarmati at gmail.com
Tue Jan 31 10:53:49 EST 2017


 The RT5350F's i2c port is available on the base module and on the EVB
as well, so enable it in the dts.

Signed-off-by: Zoltan Gyarmati <mr.zoltan.gyarmati at gmail.com>
---
 target/linux/ramips/dts/RT5350F-OLINUXINO-EVB.dts | 14 ++++++++++++++
 target/linux/ramips/dts/RT5350F-OLINUXINO.dts     | 19 +++++++++++++++++++
 2 files changed, 33 insertions(+)

diff --git a/target/linux/ramips/dts/RT5350F-OLINUXINO-EVB.dts b/target/linux/ramips/dts/RT5350F-OLINUXINO-EVB.dts
index bab08c8..9557412 100644
--- a/target/linux/ramips/dts/RT5350F-OLINUXINO-EVB.dts
+++ b/target/linux/ramips/dts/RT5350F-OLINUXINO-EVB.dts
@@ -10,6 +10,12 @@
 		compatible = "gpio-export";
 		#size-cells = <0>;
 
+		gpio0 {
+			gpio-export,name = "gpio0";
+			gpio-export,direction_may_change = <1>;
+			gpios = <&gpio0 0 0>;
+		};
+
 		relay1 {
 			gpio-export,name = "relay1";
 			gpio-export,output = <0>;
@@ -107,3 +113,11 @@
 &ohci {
 	status = "okay";
 };
+
+&gpio1 {
+	status = "okay";
+};
+
+&i2c {
+	status = "okay";
+};
diff --git a/target/linux/ramips/dts/RT5350F-OLINUXINO.dts b/target/linux/ramips/dts/RT5350F-OLINUXINO.dts
index 78871e4..6fe90b9 100644
--- a/target/linux/ramips/dts/RT5350F-OLINUXINO.dts
+++ b/target/linux/ramips/dts/RT5350F-OLINUXINO.dts
@@ -5,6 +5,17 @@
 / {
 	compatible = "RT5350F-OLINUXINO", "ralink,rt5350-soc";
 	model = "Olimex RT5350F-OLinuXino";
+
+	gpio_export {
+		compatible = "gpio-export";
+		#size-cells = <0>;
+
+		gpio0 {
+			gpio-export,name = "gpio0";
+			gpio-export,direction_may_change = <1>;
+			gpios = <&gpio0 0 0>;
+		};
+	};
 };
 
 &uart {
@@ -84,3 +95,11 @@
 &ohci {
 	status = "okay";
 };
+
+&gpio1 {
+	status = "okay";
+};
+
+&i2c {
+	status = "okay";
+};
-- 
2.7.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list