2017-07-30 09:08:03 +00:00
|
|
|
#include "rt5350.dtsi"
|
|
|
|
|
2017-07-29 02:14:07 +00:00
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
2017-07-30 09:08:03 +00:00
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "asiarf,awm002-evb", "ralink,rt5350-soc";
|
|
|
|
|
|
|
|
gpio-leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
tx {
|
|
|
|
label = "awm002-evb:green:tx";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
|
2017-07-30 09:08:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
rx {
|
|
|
|
label = "awm002-evb:green:rx";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
|
2017-07-30 09:08:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
wps {
|
|
|
|
label = "awm002-evb:green:wps";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
|
2017-07-30 09:08:03 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio-keys-polled {
|
|
|
|
compatible = "gpio-keys-polled";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
poll-interval = <20>;
|
|
|
|
|
|
|
|
reset_wps {
|
|
|
|
label = "reset_wps";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
|
2017-07-30 09:08:03 +00:00
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
};
|
|
|
|
|
|
|
|
mode {
|
|
|
|
label = "mode";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
|
2017-07-30 09:08:03 +00:00
|
|
|
linux,code = <BTN_0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
|
|
|
mtd-mac-address = <&factory 0x28>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&wmac {
|
|
|
|
ralink,mtd-eeprom = <&factory 0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&pinctrl {
|
|
|
|
state_default: pinctrl0 {
|
|
|
|
gpio {
|
|
|
|
ralink,group = "i2c", "jtag";
|
|
|
|
ralink,function = "gpio";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&esw {
|
|
|
|
mediatek,portmap = <0x3f>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&ehci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&ohci {
|
|
|
|
status = "okay";
|
|
|
|
};
|