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-0 {
21 color = <LED_COLOR_ID_GREEN>;
22 function = LED_FUNCTION_STATUS;
23 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
26 led_status_red: led-1 {
27 color = <LED_COLOR_ID_RED>;
28 function = LED_FUNCTION_STATUS;
29 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
34 compatible = "gpio-keys";
38 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_RESTART>;
44 compatible = "mtd-concat";
45 devices = <&ubiconcat0 &ubiconcat1>;
48 compatible = "fixed-partitions";
54 reg = <0x0 0x5240000>;
64 compatible = "fixed-partitions";
76 reg = <0x100000 0x100000>;
81 reg = <0x200000 0x100000>;
85 compatible = "fixed-layout";
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 {
107 reg = <0x300000 0x2000000>;
109 compatible = "fixed-partitions";
110 #address-cells = <1>;
115 reg = <0x0 0x440000>;
118 ubiconcat0: partition@400000 {
119 label = "ubiconcat0";
120 reg = <0x440000 0x1bc0000>;
126 reg = <0x2300000 0x2000000>;
132 reg = <0x4300000 0x200000>;
137 label = "board_data";
138 reg = <0x4500000 0x100000>;
144 reg = <0x4600000 0x200000>;
149 label = "board_data2";
150 reg = <0x4800000 0x100000>;
154 ubiconcat1: partition@4900000 {
155 label = "ubiconcat1";
156 reg = <0x4900000 0x3680000>;
167 compatible = "mediatek,mt76";
168 reg = <0x0000 0 0 0 0>;
169 nvmem-cells = <&eeprom_factory_0>;
170 nvmem-cell-names = "eeprom";
175 nvmem-cells = <&macaddr_factory_fff0>;
176 nvmem-cell-names = "mac-address";
182 phy-handle = <ðphy4>;
184 nvmem-cells = <&macaddr_factory_fff0>;
185 nvmem-cell-names = "mac-address";
189 ethphy4: ethernet-phy@4 {
210 groups = "i2c", "jtag";