1 // SPDX-License-Identifier: GPL-2.0-only
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "mediatek,mt7621-soc";
13 label-mac-device = &gmac0;
14 led-boot = &led_power_white;
15 led-failsafe = &led_power_orange;
16 led-running = &led_power_white;
17 led-upgrade = &led_power_orange;
21 compatible = "gpio-keys";
25 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_WPS_BUTTON>;
31 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RFKILL>;
37 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_RESTART>;
43 compatible = "gpio-leds";
45 led_power_orange: power_orange {
46 gpios = <&gpio_expander 0 GPIO_ACTIVE_LOW>;
47 function = LED_FUNCTION_POWER;
48 color = <LED_COLOR_ID_ORANGE>;
51 led_power_white: power_white {
52 gpios = <&gpio_expander 1 GPIO_ACTIVE_LOW>;
53 function = LED_FUNCTION_POWER;
54 color = <LED_COLOR_ID_WHITE>;
58 gpios = <&gpio_expander 2 GPIO_ACTIVE_LOW>;
59 function = LED_FUNCTION_WAN;
60 color = <LED_COLOR_ID_ORANGE>;
64 gpios = <&gpio_expander 3 GPIO_ACTIVE_LOW>;
65 function = LED_FUNCTION_WAN;
66 color = <LED_COLOR_ID_WHITE>;
70 gpios = <&gpio_expander 4 GPIO_ACTIVE_LOW>;
71 label = "white:wlan2g";
72 linux,default-trigger = "phy0radio";
76 gpios = <&gpio_expander 5 GPIO_ACTIVE_LOW>;
77 label = "white:wlan5g";
78 linux,default-trigger = "phy1radio";
82 gpios = <&gpio_expander 7 GPIO_ACTIVE_LOW>;
84 linux,default-trigger = "usbport";
85 trigger-sources = <&xhci_ehci_port1>;
89 gpios = <&gpio_expander 8 GPIO_ACTIVE_LOW>;
90 label = "orange:lan1";
94 gpios = <&gpio_expander 9 GPIO_ACTIVE_LOW>;
99 gpios = <&gpio_expander 10 GPIO_ACTIVE_LOW>;
100 label = "orange:lan2";
104 gpios = <&gpio_expander 11 GPIO_ACTIVE_LOW>;
105 label = "white:lan2";
109 gpios = <&gpio_expander 12 GPIO_ACTIVE_LOW>;
110 label = "orange:lan3";
114 gpios = <&gpio_expander 13 GPIO_ACTIVE_LOW>;
115 label = "white:lan3";
119 gpios = <&gpio_expander 14 GPIO_ACTIVE_LOW>;
120 label = "orange:lan4";
124 gpios = <&gpio_expander 15 GPIO_ACTIVE_LOW>;
125 label = "white:lan4";
129 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
130 function = LED_FUNCTION_WPS;
131 color = <LED_COLOR_ID_WHITE>;
135 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
136 function = LED_FUNCTION_WLAN;
137 color = <LED_COLOR_ID_WHITE>;
144 groups = "uart3", "uart2", "jtag", "wdt";
155 compatible = "mediatek,mt76";
157 nvmem-cells = <&eeprom_factory_0>;
158 nvmem-cell-names = "eeprom";
159 ieee80211-freq-limit = <2400000 2500000>;
165 compatible = "mediatek,mt76";
167 nvmem-cells = <&eeprom_factory_8000>;
168 nvmem-cell-names = "eeprom";
169 ieee80211-freq-limit = <5000000 6000000>;
174 nvmem-cells = <&macaddr_factory_4 0>;
175 nvmem-cell-names = "mac-address";
181 phy-handle = <ðphy4>;
183 nvmem-cells = <&macaddr_factory_4 2>;
184 nvmem-cell-names = "mac-address";
188 ethphy4: ethernet-phy@4 {
220 gpio_expander: i2c0gpio-expander@20{
222 #interrupt-cells = <2>;
223 compatible = "semtech,sx1503q";
227 interrupt-controller;
235 compatible = "sercomm,sc-partitions", "fixed-partitions";
236 #address-cells = <1>;
241 reg = <0x0 0x100000>;
242 sercomm,scpart-id = <0>;
247 label = "SC PART_MAP";
248 reg = <0x100000 0x100000>;
249 sercomm,scpart-id = <1>;
255 reg = <0x200000 0x400000>;
256 sercomm,scpart-id = <2>;
261 reg = <0x600000 0x2800000>;
262 sercomm,scpart-id = <3>;
266 label = "English UI";
267 reg = <0x2e00000 0x200000>;
268 sercomm,scpart-id = <4>;
274 reg = <0x3000000 0x200000>;
275 sercomm,scpart-id = <5>;
281 reg = <0x3200000 0x200000>;
282 sercomm,scpart-id = <6>;
288 reg = <0x3400000 0x200000>;
289 sercomm,scpart-id = <7>;
295 reg = <0x3600000 0x200000>;
296 sercomm,scpart-id = <8>;
302 reg = <0x3800000 0x200000>;
303 sercomm,scpart-id = <9>;
309 reg = <0x3a00000 0x200000>;
310 sercomm,scpart-id = <10>;
316 reg = <0x3c00000 0x200000>;
317 sercomm,scpart-id = <11>;
323 reg = <0x3e00000 0x200000>;
324 sercomm,scpart-id = <12>;
330 reg = <0x4000000 0x200000>;
331 sercomm,scpart-id = <13>;
337 reg = <0x4200000 0x200000>;
338 sercomm,scpart-id = <14>;
344 reg = <0x4400000 0x200000>;
345 sercomm,scpart-id = <15>;
351 reg = <0x4600000 0x200000>;
352 sercomm,scpart-id = <16>;
356 compatible = "fixed-layout";
357 #address-cells = <1>;
360 eeprom_factory_0: eeprom@0 {
364 eeprom_factory_8000: eeprom@8000 {
365 reg = <0x8000 0x4da8>;
368 macaddr_factory_4: macaddr@4 {
369 compatible = "mac-base";
371 #nvmem-cell-cells = <1>;
377 label = "SC Private Data";
378 reg = <0x4800000 0x200000>;
379 sercomm,scpart-id = <17>;
385 reg = <0x4a00000 0x200000>;
386 sercomm,scpart-id = <18>;
391 label = "Traffic Meter";
392 reg = <0x4c00000 0x200000>;
393 sercomm,scpart-id = <19>;
399 reg = <0x4e00000 0x200000>;
400 sercomm,scpart-id = <20>;
406 reg = <0x5000000 0x200000>;
407 sercomm,scpart-id = <21>;
412 label = "Ralink Nvram";
413 reg = <0x5200000 0x200000>;
414 sercomm,scpart-id = <22>;
420 reg = <0x5400000 0x200000>;
421 sercomm,scpart-id = <23>;
427 reg = <0x5600000 0x200000>;
428 sercomm,scpart-id = <24>;
434 reg = <0x5800000 0x200000>;
435 sercomm,scpart-id = <25>;
441 reg = <0x5a00000 0x200000>;
442 sercomm,scpart-id = <26>;
448 reg = <0x5c00000 0x200000>;
449 sercomm,scpart-id = <27>;
455 reg = <0x5e00000 0x2180000>;
456 sercomm,scpart-id = <28>;