2017-07-30 11:50:36 +00:00
|
|
|
#include "rt3050.dtsi"
|
|
|
|
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include <dt-bindings/input/input.h>
|
2024-02-07 13:48:43 +00:00
|
|
|
#include <dt-bindings/leds/common.h>
|
2017-07-30 11:50:36 +00:00
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "alphanetworks,asl26555", "ralink,rt3050-soc";
|
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
aliases {
|
2018-08-28 04:54:27 +00:00
|
|
|
led-boot = &led_power_green;
|
|
|
|
led-failsafe = &led_power_green;
|
|
|
|
led-running = &led_power_green;
|
|
|
|
led-upgrade = &led_power_green;
|
2018-07-16 08:27:22 +00:00
|
|
|
};
|
|
|
|
|
2018-12-30 11:17:25 +00:00
|
|
|
keys {
|
2017-07-30 11:50:36 +00:00
|
|
|
compatible = "gpio-keys-polled";
|
|
|
|
poll-interval = <20>;
|
|
|
|
|
|
|
|
reset {
|
|
|
|
label = "reset";
|
|
|
|
gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
|
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
};
|
|
|
|
|
|
|
|
wps {
|
|
|
|
label = "wps";
|
|
|
|
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
|
|
|
|
linux,code = <KEY_WPS_BUTTON>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-30 11:42:53 +00:00
|
|
|
leds {
|
2017-07-30 11:50:36 +00:00
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
eth {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:eth";
|
2017-07-30 11:50:36 +00:00
|
|
|
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
wan-red {
|
2024-02-07 13:48:43 +00:00
|
|
|
function = LED_FUNCTION_WAN;
|
|
|
|
color = <LED_COLOR_ID_RED>;
|
2017-07-30 11:50:36 +00:00
|
|
|
gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
|
|
|
wan-green {
|
2024-02-07 13:48:43 +00:00
|
|
|
function = LED_FUNCTION_WAN;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
2017-07-30 11:50:36 +00:00
|
|
|
gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
|
|
|
wlan {
|
2024-02-07 13:48:43 +00:00
|
|
|
function = LED_FUNCTION_WLAN;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
2017-07-30 11:50:36 +00:00
|
|
|
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
led_power_green: power-green {
|
2024-02-07 13:48:43 +00:00
|
|
|
function = LED_FUNCTION_POWER;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
2017-07-30 11:50:36 +00:00
|
|
|
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
|
|
|
power-red {
|
2024-02-07 13:48:43 +00:00
|
|
|
function = LED_FUNCTION_POWER;
|
|
|
|
color = <LED_COLOR_ID_RED>;
|
2017-07-30 11:50:36 +00:00
|
|
|
gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
|
|
|
3g-green {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:3g";
|
2017-07-30 11:50:36 +00:00
|
|
|
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
|
2018-08-13 15:14:08 +00:00
|
|
|
trigger-sources = <&otg_port1>;
|
|
|
|
linux,default-trigger = "usbport";
|
2017-07-30 11:50:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
3g-red {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "red:3g";
|
2017-07-30 11:50:36 +00:00
|
|
|
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-12-22 20:26:01 +00:00
|
|
|
&state_default {
|
|
|
|
gpio {
|
2020-04-12 12:58:29 +00:00
|
|
|
groups = "i2c", "jtag", "rgmii", "mdio", "uartf";
|
|
|
|
function = "gpio";
|
2017-07-30 11:50:36 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&esw {
|
|
|
|
mediatek,portmap = <0x1e>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&wmac {
|
2023-10-02 02:12:02 +00:00
|
|
|
nvmem-cells = <&eeprom_devdata_4000>;
|
|
|
|
nvmem-cell-names = "eeprom";
|
2017-07-30 11:50:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&otg {
|
|
|
|
status = "okay";
|
|
|
|
};
|