1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 model = "Arcadyan WE420223-99";
11 compatible = "arcadyan,we420223-99", "mediatek,mt7621-soc";
14 led-boot = &led_power_green;
15 led-failsafe = &led_power_red;
16 led-running = &led_power_green;
17 led-upgrade = &led_wps_green;
18 led-wifi = &led_wifi_green;
22 bootargs = "console=ttyS0,57600 ubi.mtd=5 root=/dev/ubiblock0_0";
26 compatible = "gpio-keys";
30 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
36 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_WPS_BUTTON>;
42 compatible = "gpio-leds";
44 led_power_green: power_green {
45 label = "green:power";
46 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
47 color = <LED_COLOR_ID_GREEN>;
48 function = LED_FUNCTION_POWER;
52 led_power_red: power_red {
54 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
55 color = <LED_COLOR_ID_RED>;
56 function = LED_FUNCTION_FAULT;
59 led_wifi_blue: wifi_blue {
61 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
62 color = <LED_COLOR_ID_BLUE>;
63 function = LED_FUNCTION_WLAN;
66 led_wifi_green: wifi_green {
68 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
69 color = <LED_COLOR_ID_GREEN>;
70 function = LED_FUNCTION_WLAN;
73 led_wps_red: wps_red {
75 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
76 color = <LED_COLOR_ID_RED>;
77 function = LED_FUNCTION_WPS;
80 led_wps_green: wps_green {
82 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
83 color = <LED_COLOR_ID_GREEN>;
84 function = LED_FUNCTION_WPS;
87 led_followme_r: followme_red {
88 label = "red:followme";
89 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
90 color = <LED_COLOR_ID_RED>;
93 led_followme_g: followme_green {
94 label = "green:followme";
95 gpios = <&gpio 48 GPIO_ACTIVE_LOW>;
96 color = <LED_COLOR_ID_GREEN>;
105 compatible = "jedec,spi-nor";
108 spi-max-frequency = <70000000>;
111 compatible = "fixed-partitions";
112 #address-cells = <1>;
117 reg = <0x0 0x2000000>;
122 label = "Bootloader";
129 reg = <0x30000 0x10000>;
132 factory: partition@40000 {
134 reg = <0x40000 0x10000>;
140 reg = <0x50000 0x1f60000>;
145 reg = <0x490000 0x1b20000>;
150 reg = <0x1000000 0xfb0000>;
155 reg = <0x1440000 0xb70000>;
160 reg = <0x1fb0000 0x10000>;
165 label = "board_data";
166 reg = <0x1fc0000 0x10000>;
172 reg = <0x1fd0000 0x10000>;
177 label = "board_data2";
178 reg = <0x1fe0000 0x10000>;
201 phy-handle = <ðphy0>;
205 ethphy0: ethernet-phy@0 {
216 reg = <0x0000 0 0 0 0>;
217 mediatek,mtd-eeprom = <&factory 0x0000>;