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";
38 color = <LED_COLOR_ID_AMBER>;
39 function = LED_FUNCTION_LAN;
40 function-enumerator = <0>;
41 linux,default-trigger = "mt7530-0:00:1Gbps";
42 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
47 color = <LED_COLOR_ID_GREEN>;
48 function = LED_FUNCTION_LAN;
49 function-enumerator = <1>;
50 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
55 color = <LED_COLOR_ID_AMBER>;
56 function = LED_FUNCTION_LAN;
57 function-enumerator = <2>;
58 linux,default-trigger = "mt7530-0:01:1Gbps";
59 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
64 color = <LED_COLOR_ID_GREEN>;
65 function = LED_FUNCTION_LAN;
66 function-enumerator = <3>;
67 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
72 color = <LED_COLOR_ID_AMBER>;
73 function = LED_FUNCTION_LAN;
74 function-enumerator = <4>;
75 linux,default-trigger = "mt7530-0:02:1Gbps";
76 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
81 color = <LED_COLOR_ID_AMBER>;
82 function = LED_FUNCTION_LAN;
83 function-enumerator = <5>;
84 linux,default-trigger = "mt7530-0:03:1Gbps";
85 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
90 color = <LED_COLOR_ID_GREEN>;
91 function = LED_FUNCTION_LAN;
92 function-enumerator = <6>;
93 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
98 color = <LED_COLOR_ID_AMBER>;
99 function = LED_FUNCTION_WAN;
100 function-enumerator = <0>;
101 linux,default-trigger = "mt7530-0:04:1Gbps";
102 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
107 color = <LED_COLOR_ID_GREEN>;
108 function = LED_FUNCTION_WAN;
109 function-enumerator = <1>;
110 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
114 label = "green:lan2";
115 color = <LED_COLOR_ID_GREEN>;
116 function = LED_FUNCTION_LAN;
117 function-enumerator = <7>;
118 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
122 label = "white:wlan2g";
123 color = <LED_COLOR_ID_WHITE>;
124 function = LED_FUNCTION_WLAN;
125 function-enumerator = <0>;
126 linux,default-trigger = "phy1radio";
127 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
131 function = LED_FUNCTION_WPS;
132 function-enumerator = <0>;
133 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
138 label = "white:status";
139 color = <LED_COLOR_ID_WHITE>;
140 function = LED_FUNCTION_STATUS;
141 function-enumerator = <0>;
142 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
146 label = "white:wlan5g";
147 color = <LED_COLOR_ID_WHITE>;
148 function = LED_FUNCTION_WLAN;
149 function-enumerator = <1>;
150 linux,default-trigger = "phy0radio";
151 gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
157 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
161 nvmem-cells = <&macaddr_factory_1000>;
162 nvmem-cell-names = "mac-address";
168 partitions: partitions {
169 compatible = "fixed-partitions";
170 #address-cells = <1>;
175 reg = <0x0 0x100000>;
179 factory: partition@100000 {
181 reg = <0x100000 0x100000>;
184 compatible = "nvmem-cells";
185 #address-cells = <1>;
188 macaddr_factory_1000: macaddr@1000 {
195 reg = <0x1600000 0x100000>;
200 reg = <0x1700000 0x400000>;
205 reg = <0x1b00000 0x400000>;
214 reset-gpios = <&gpio 8 GPIO_ACTIVE_LOW>,
215 <&gpio 19 GPIO_ACTIVE_LOW>;
220 compatible = "mediatek,mt76";
221 reg = <0x0000 0 0 0 0>;
222 ieee80211-freq-limit = <5000000 6000000>;
223 mediatek,mtd-eeprom = <&factory 0x8000>;
225 nvmem-cells = <&macaddr_factory_1000>;
226 nvmem-cell-names = "mac-address";
227 mac-address-increment = <2>;
233 compatible = "mediatek,mt76";
234 reg = <0x0000 0 0 0 0>;
235 ieee80211-freq-limit = <2400000 2500000>;
236 mediatek,mtd-eeprom = <&factory 0x0>;
238 nvmem-cells = <&macaddr_factory_1000>;
239 nvmem-cell-names = "mac-address";
245 groups = "wdt", "uart3", "jtag", "uart2", "i2c", "rgmii2";
276 nvmem-cells = <&macaddr_factory_1000>;
277 nvmem-cell-names = "mac-address";
278 mac-address-increment = <1>;