2017-07-30 11:08:03 +02:00
|
|
|
#include "rt5350.dtsi"
|
|
|
|
|
2017-07-29 10:14:07 +08:00
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
2017-07-30 11:08:03 +02:00
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "asiarf,awm002-evb", "ralink,rt5350-soc";
|
|
|
|
|
2018-12-30 12:42:53 +01:00
|
|
|
leds {
|
2017-07-30 11:08:03 +02:00
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
tx {
|
2020-09-27 19:40:51 +02:00
|
|
|
label = "green:tx";
|
2017-07-29 10:14:07 +08:00
|
|
|
gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
|
2017-07-30 11:08:03 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
rx {
|
2020-09-27 19:40:51 +02:00
|
|
|
label = "green:rx";
|
2017-07-29 10:14:07 +08:00
|
|
|
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
|
2017-07-30 11:08:03 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
wps {
|
2020-09-27 19:40:51 +02:00
|
|
|
label = "green:wps";
|
2017-07-29 10:14:07 +08:00
|
|
|
gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
|
2017-07-30 11:08:03 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-30 12:17:25 +01:00
|
|
|
keys {
|
2017-07-30 11:08:03 +02:00
|
|
|
compatible = "gpio-keys-polled";
|
|
|
|
poll-interval = <20>;
|
|
|
|
|
|
|
|
reset_wps {
|
|
|
|
label = "reset_wps";
|
2017-07-29 10:14:07 +08:00
|
|
|
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
|
2017-07-30 11:08:03 +02:00
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
};
|
|
|
|
|
|
|
|
mode {
|
|
|
|
label = "mode";
|
2017-07-29 10:14:07 +08:00
|
|
|
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
|
2017-07-30 11:08:03 +02:00
|
|
|
linux,code = <BTN_0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
|
|
|
mtd-mac-address = <&factory 0x28>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&wmac {
|
2020-05-07 22:13:27 +09:00
|
|
|
ralink,mtd-eeprom = <&factory 0x0>;
|
2017-07-30 11:08:03 +02:00
|
|
|
};
|
|
|
|
|
2019-12-22 21:26:01 +01:00
|
|
|
&state_default {
|
|
|
|
gpio {
|
2020-04-12 20:58:29 +08:00
|
|
|
groups = "i2c", "jtag";
|
|
|
|
function = "gpio";
|
2017-07-30 11:08:03 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&esw {
|
|
|
|
mediatek,portmap = <0x3f>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&ehci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&ohci {
|
|
|
|
status = "okay";
|
|
|
|
};
|