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>
10 compatible = "tplink,ec330-g5u-v1", "mediatek,mt7621-soc";
11 model = "TP-Link EC330-G5u v1";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
21 bootargs = "console=ttyS0,115200";
25 compatible = "gpio-leds";
28 color = <LED_COLOR_ID_BLUE>;
29 function = LED_FUNCTION_USB;
30 function-enumerator = <0>;
31 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
32 trigger-sources = <&xhci_ehci_port1>;
33 linux,default-trigger = "usbport";
38 color = <LED_COLOR_ID_BLUE>;
39 function = LED_FUNCTION_WPS;
40 function-enumerator = <0>;
41 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
45 label = "blue:ethernet";
46 color = <LED_COLOR_ID_BLUE>;
47 function = LED_FUNCTION_LAN;
48 function-enumerator = <0>;
49 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
53 label = "amber:internet";
54 color = <LED_COLOR_ID_AMBER>;
55 function = LED_FUNCTION_WAN;
56 function-enumerator = <0>;
57 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
61 label = "blue:internet";
62 color = <LED_COLOR_ID_BLUE>;
63 function = LED_FUNCTION_WAN;
64 function-enumerator = <1>;
65 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
69 label = "blue:wireless_5g";
70 color = <LED_COLOR_ID_BLUE>;
71 function = LED_FUNCTION_WLAN;
72 function-enumerator = <0>;
73 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
74 linux,default-trigger = "phy1radio";
78 label = "blue:wireless_2g";
79 color = <LED_COLOR_ID_BLUE>;
80 function = LED_FUNCTION_WLAN;
81 function-enumerator = <1>;
82 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
83 linux,default-trigger = "phy0radio";
88 color = <LED_COLOR_ID_BLUE>;
89 function = LED_FUNCTION_STATUS;
90 function-enumerator = <0>;
91 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
96 compatible = "gpio-keys";
100 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
101 debounce-interval = <60>;
102 linux,code = <KEY_LIGHTS_TOGGLE>;
106 label = "wifi on/off";
107 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
108 debounce-interval = <60>;
109 linux,code = <KEY_RFKILL>;
114 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
115 debounce-interval = <60>;
116 linux,code = <KEY_RESTART>;
121 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
122 debounce-interval = <60>;
123 linux,code = <KEY_WPS_BUTTON>;
128 compatible = "gpio-export";
131 gpio-export,name = "led-light";
132 gpio-export,output = <0>;
133 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
138 compatible = "mtd-concat";
139 devices = <&ubiconcat0 &ubiconcat1>;
142 compatible = "fixed-partitions";
143 #address-cells = <1>;
148 reg = <0x0 0x3c00000>;
158 compatible = "fixed-partitions";
159 #address-cells = <1>;
164 reg = <0x0 0x400000>;
167 compatible = "fixed-partitions";
168 #address-cells = <1>;
172 label = "u-boot-first";
178 label = "u-boot-main";
179 reg = <0x20000 0x40000>;
184 label = "u-boot-main-reserve";
185 reg = <0x60000 0x40000>;
192 reg = <0x400000 0x3000000>;
194 compatible = "fixed-partitions";
195 #address-cells = <1>;
200 reg = <0x0 0x400000>;
203 ubiconcat0: partition@400000 {
205 reg = <0x400000 0x2c00000>;
211 reg = <0x3400000 0x3000000>;
215 ubiconcat1: partition@6400000 {
217 reg = <0x6400000 0x1000000>;
221 label = "u-boot-env";
222 reg = <0x7400000 0x400000>;
225 factory: partition@7800000 {
227 reg = <0x7800000 0x400000>;
231 partition@0_wholeflash {
232 label = "wholeflash";
233 reg = <0x0 0x7f80000>;
245 compatible = "mediatek,mt76";
246 reg = <0x0000 0 0 0 0>;
247 mediatek,mtd-eeprom = <&factory 0x8000>;
248 ieee80211-freq-limit = <2400000 2500000>;
254 compatible = "mediatek,mt76";
255 reg = <0x0000 0 0 0 0>;
256 mediatek,mtd-eeprom = <&factory 0x14000>;
257 ieee80211-freq-limit = <5000000 6000000>;
264 phy-handle = <ðphy0>;
268 ethphy0: ethernet-phy@0 {
299 groups = "i2c", "jtag", "uart2", "uart3", "wdt";