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>
11 led-boot = &led_status_red;
12 led-failsafe = &led_status_red;
13 led-running = &led_status_green;
14 led-upgrade = &led_status_red;
18 compatible = "gpio-leds";
20 led_status_green: led-1 {
21 label = "green:status";
22 color = <LED_COLOR_ID_GREEN>;
23 function = LED_FUNCTION_STATUS;
24 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
27 led_status_red: led-2 {
29 color = <LED_COLOR_ID_RED>;
30 function = LED_FUNCTION_STATUS;
31 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
36 compatible = "gpio-keys";
40 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_RESTART>;
46 compatible = "mtd-concat";
47 devices = <&ubiconcat0 &ubiconcat1>;
50 compatible = "fixed-partitions";
56 reg = <0x0 0x5240000>;
66 compatible = "fixed-partitions";
78 reg = <0x100000 0x100000>;
81 factory: partition@200000 {
82 compatible = "nvmem-cells";
84 reg = <0x200000 0x100000>;
89 eeprom_factory_0: eeprom@0 {
93 /* We keep the block below to prevent eth0 MAC
94 * from randomization. Unique WAN, LAN, WLAN MACs
95 * are stored in u-boot-env.
98 /* Default Ralink MAC (00:0c:43:28:80:xx) */
99 macaddr_factory_fff0: macaddr@fff0 {
106 reg = <0x300000 0x2000000>;
108 compatible = "fixed-partitions";
109 #address-cells = <1>;
114 reg = <0x0 0x440000>;
117 ubiconcat0: partition@400000 {
118 label = "ubiconcat0";
119 reg = <0x440000 0x1bc0000>;
125 reg = <0x2300000 0x2000000>;
131 reg = <0x4300000 0x200000>;
136 label = "board_data";
137 reg = <0x4500000 0x100000>;
143 reg = <0x4600000 0x200000>;
148 label = "board_data2";
149 reg = <0x4800000 0x100000>;
153 ubiconcat1: partition@4900000 {
154 label = "ubiconcat1";
155 reg = <0x4900000 0x3680000>;
166 compatible = "mediatek,mt76";
167 reg = <0x0000 0 0 0 0>;
168 nvmem-cells = <&eeprom_factory_0>;
169 nvmem-cell-names = "eeprom";
174 nvmem-cells = <&macaddr_factory_fff0>;
175 nvmem-cell-names = "mac-address";
181 phy-handle = <ðphy4>;
183 nvmem-cells = <&macaddr_factory_fff0>;
184 nvmem-cell-names = "mac-address";
188 ethphy4: ethernet-phy@4 {
209 groups = "i2c", "jtag";