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 label-mac-device = &gmac0;
12 led-boot = &led_power_orange;
13 led-failsafe = &led_power_white;
14 led-running = &led_power_white;
15 led-upgrade = &led_net_orange;
19 compatible = "gpio-keys";
23 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
24 linux,code = <KEY_RESTART>;
29 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_WPS_BUTTON>;
35 compatible = "gpio-leds";
37 led_power_orange: power_orange {
38 function = LED_FUNCTION_POWER;
39 color = <LED_COLOR_ID_ORANGE>;
40 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
43 led_power_white: power_white {
44 function = LED_FUNCTION_POWER;
45 color = <LED_COLOR_ID_WHITE>;
46 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
49 led_net_orange: net_orange {
51 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
56 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
65 compatible = "fixed-partitions";
77 reg = <0x80000 0x80000>;
83 reg = <0x100000 0x40000>;
87 compatible = "fixed-layout";
91 eeprom_factory_0: eeprom@0 {
95 eeprom_factory_8000: eeprom@8000 {
96 reg = <0x8000 0x4da8>;
99 macaddr_factory_e000: macaddr@e000 {
100 compatible = "mac-base";
102 #nvmem-cell-cells = <1>;
105 macaddr_factory_e006: macaddr@e006 {
113 reg = <0x140000 0x40000>;
119 compatible = "openwrt,uimage", "denx,uimage";
120 openwrt,padding = <96>;
121 reg = <0x180000 0x2800000>;
126 reg = <0x2980000 0x2000000>;
132 reg = <0x4980000 0x2800000>;
137 reg = <0x7180000 0x600000>;
143 reg = <0x7780000 0x880000>;
155 compatible = "mediatek,mt76";
156 reg = <0x0000 0 0 0 0>;
157 nvmem-cells = <&macaddr_factory_e000 1>;
158 nvmem-cell-names = "eeprom";
159 ieee80211-freq-limit = <2400000 2500000>;
169 compatible = "mediatek,mt76";
170 reg = <0x0000 0 0 0 0>;
171 nvmem-cells = <&macaddr_factory_e000 2>;
172 nvmem-cell-names = "eeprom";
173 ieee80211-freq-limit = <5000000 6000000>;
182 nvmem-cells = <&macaddr_factory_e000 0>;
183 nvmem-cell-names = "mac-address";
189 phy-handle = <ðphy4>;
191 nvmem-cells = <&macaddr_factory_e006>;
192 nvmem-cell-names = "mac-address";
196 ethphy4: ethernet-phy@4 {
227 groups = "i2c", "uart3", "jtag", "wdt";