mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 14:13:16 +00:00
862b820f15
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>
33 lines
594 B
Plaintext
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>;
|
|
};
|
|
};
|
|
};
|