openwrt/target/linux/ramips/dts/RT5350F-OLINUXINO-EVB.dts
Zoltan Gyarmati 862b820f15 ramips: introduce RT5350F-OLINUXINO.dtsi
The RT5350F-OLINUXINO(-EVB).dts files' content are nearly the same, so to avoid
code duplication this patch creates RT5350F-OLINUXINO.dtsi file which
covers the base board's features. The corresponding RT5350F-OLINUXINO.dts
just includes the new .dtsi and the RT5350F-OLINUXINO-EVB.dts adds the EVB
specific GPIO config.

Signed-off-by: Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
2017-09-28 09:20:36 +02:00

33 lines
594 B
Plaintext

/dts-v1/;
#include "RT5350F-OLINUXINO.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ {
compatible = "olimex,rt5350f-olinuxino-evb", "ralink,rt5350-soc";
model = "Olimex RT5350F-OLinuXino-EVB";
gpio_export {
compatible = "gpio-export";
#size-cells = <0>;
relay1 {
gpio-export,name = "relay1";
gpio-export,output = <0>;
gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
};
relay2 {
gpio-export,name = "relay2";
gpio-export,output = <0>;
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
};
button {
gpio-export,name = "button";
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
};
};
};