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.gyarm...@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@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel