1 // SPDX-License-Identifier: GPL-2.0-or-later
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;
12 led-running = &led_status;
13 led-upgrade = &led_wps;
14 led-failsafe = &led_wps;
18 compatible = "gpio-keys";
22 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
28 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_WPS_BUTTON>;
34 compatible = "gpio-leds";
37 color = <LED_COLOR_ID_AMBER>;
38 function = LED_FUNCTION_LAN;
39 function-enumerator = <4>;
40 linux,default-trigger = "mt7530-0:00:1Gbps";
41 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
45 color = <LED_COLOR_ID_GREEN>;
46 function = LED_FUNCTION_LAN;
47 function-enumerator = <4>;
48 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
52 color = <LED_COLOR_ID_AMBER>;
53 function = LED_FUNCTION_LAN;
54 function-enumerator = <3>;
55 linux,default-trigger = "mt7530-0:01:1Gbps";
56 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
60 color = <LED_COLOR_ID_GREEN>;
61 function = LED_FUNCTION_LAN;
62 function-enumerator = <3>;
63 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
67 color = <LED_COLOR_ID_AMBER>;
68 function = LED_FUNCTION_LAN;
69 function-enumerator = <2>;
70 linux,default-trigger = "mt7530-0:02:1Gbps";
71 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
75 color = <LED_COLOR_ID_AMBER>;
76 function = LED_FUNCTION_LAN;
77 function-enumerator = <1>;
78 linux,default-trigger = "mt7530-0:03:1Gbps";
79 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
83 color = <LED_COLOR_ID_GREEN>;
84 function = LED_FUNCTION_LAN;
85 function-enumerator = <1>;
86 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
90 color = <LED_COLOR_ID_AMBER>;
91 function = LED_FUNCTION_WAN;
92 linux,default-trigger = "mt7530-0:04:1Gbps";
93 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
97 color = <LED_COLOR_ID_GREEN>;
98 function = LED_FUNCTION_WAN;
99 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
103 color = <LED_COLOR_ID_GREEN>;
104 function = LED_FUNCTION_LAN;
105 function-enumerator = <2>;
106 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
110 color = <LED_COLOR_ID_WHITE>;
111 function = LED_FUNCTION_WLAN;
112 function-enumerator = <24>;
113 linux,default-trigger = "phy1tpt";
114 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
118 function = LED_FUNCTION_WPS;
119 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
124 color = <LED_COLOR_ID_WHITE>;
125 function = LED_FUNCTION_STATUS;
126 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
130 color = <LED_COLOR_ID_WHITE>;
131 function = LED_FUNCTION_WLAN;
132 function-enumerator = <50>;
133 linux,default-trigger = "phy0tpt";
134 gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
140 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
144 nvmem-cells = <&macaddr_factory_1000 0>;
145 nvmem-cell-names = "mac-address";
151 partitions: partitions {
152 compatible = "fixed-partitions";
153 #address-cells = <1>;
158 reg = <0x0 0x100000>;
162 factory: partition@100000 {
164 reg = <0x100000 0x100000>;
168 compatible = "fixed-layout";
169 #address-cells = <1>;
172 eeprom_factory_0: eeprom@0 {
176 eeprom_factory_8000: eeprom@8000 {
177 reg = <0x8000 0x200>;
180 macaddr_factory_1000: macaddr@1000 {
181 compatible = "mac-base";
183 #nvmem-cell-cells = <1>;
190 reg = <0x1600000 0x100000>;
195 reg = <0x1700000 0x400000>;
200 reg = <0x1b00000 0x400000>;
209 reset-gpios = <&gpio 8 GPIO_ACTIVE_LOW>,
210 <&gpio 19 GPIO_ACTIVE_LOW>;
215 compatible = "mediatek,mt76";
216 reg = <0x0000 0 0 0 0>;
217 ieee80211-freq-limit = <5000000 6000000>;
219 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_1000 2>;
220 nvmem-cell-names = "eeprom", "mac-address";
226 groups = "wdt", "uart3", "jtag", "uart2", "i2c", "rgmii2";
257 nvmem-cells = <&macaddr_factory_1000 1>;
258 nvmem-cell-names = "mac-address";