diff mbox

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

Message ID 1485878029-14812-4-git-send-email-mr.zoltan.gyarmati@gmail.com
State Changes Requested
Delegated to: John Crispin
Headers show

Commit Message

Zoltan Gyarmati Jan. 31, 2017, 3:53 p.m. UTC
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@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 mbox

Patch

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";
+};