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";
|
|
|
|
|
2018-12-30 11:42:53 +00:00
|
|
|
leds {
|
2017-07-30 09:08:03 +00:00
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
tx {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "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 {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "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 {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:wps";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
|
2017-07-30 09:08:03 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-30 11:17:25 +00:00
|
|
|
keys {
|
2017-07-30 09:08:03 +00:00
|
|
|
compatible = "gpio-keys-polled";
|
|
|
|
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 {
|
2020-05-07 13:13:27 +00:00
|
|
|
ralink,mtd-eeprom = <&factory 0x0>;
|
2017-07-30 09:08:03 +00:00
|
|
|
};
|
|
|
|
|
2019-12-22 20:26:01 +00:00
|
|
|
&state_default {
|
|
|
|
gpio {
|
2020-04-12 12:58:29 +00:00
|
|
|
groups = "i2c", "jtag";
|
|
|
|
function = "gpio";
|
2017-07-30 09:08:03 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&esw {
|
|
|
|
mediatek,portmap = <0x3f>;
|
|
|
|
};
|