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,ex220-v1", "mediatek,mt7621-soc";
11 model = "TP-Link EX220 v1";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = &gmac0;
22 bootargs = "console=ttyS0,115200";
26 compatible = "gpio-keys";
30 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RFKILL>;
36 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
42 compatible = "gpio-leds";
45 color = <LED_COLOR_ID_GREEN>;
46 function = LED_FUNCTION_WPS;
47 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
51 color = <LED_COLOR_ID_GREEN>;
52 function = LED_FUNCTION_LAN;
53 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
57 color = <LED_COLOR_ID_AMBER>;
58 function = LED_FUNCTION_WAN;
59 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
63 color = <LED_COLOR_ID_GREEN>;
64 function = LED_FUNCTION_WAN;
65 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
69 color = <LED_COLOR_ID_GREEN>;
70 function = LED_FUNCTION_WLAN;
71 function-enumerator = <5>;
72 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
73 linux,default-trigger = "phy1tpt";
77 color = <LED_COLOR_ID_GREEN>;
78 function = LED_FUNCTION_WLAN;
79 function-enumerator = <2>;
80 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
81 linux,default-trigger = "phy0tpt";
84 led_power: led-power {
85 color = <LED_COLOR_ID_GREEN>;
86 function = LED_FUNCTION_POWER;
87 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
96 compatible = "jedec,spi-nor";
98 spi-max-frequency = <25000000>;
101 compatible = "fixed-partitions";
102 #address-cells = <1>;
107 reg = <0x00 0x30000>;
113 reg = <0x30000 0x10000>;
119 reg = <0x40000 0x10000>;
125 reg = <0x50000 0x10000>;
130 label = "isp_config";
131 reg = <0x60000 0x10000>;
137 reg = <0x70000 0x10000>;
141 compatible = "fixed-layout";
142 #address-cells = <1>;
145 macaddr_rom_file_f100: macaddr@f100 {
146 compatible = "mac-base";
148 #nvmem-cell-cells = <1>;
155 reg = <0x80000 0x10000>;
161 reg = <0x90000 0x20000>;
165 compatible = "fixed-layout";
166 #address-cells = <1>;
169 eeprom_radio_0: eeprom@0 {
173 precal_radio_e10: precal@e10 {
174 reg = <0xe10 0x19c10>;
180 label = "config_bak";
181 reg = <0xb0000 0x10000>;
186 compatible = "denx,fit";
188 reg = <0xc0000 0xf30000>;
200 compatible = "mediatek,mt76";
201 reg = <0x0000 0 0 0 0>;
202 nvmem-cells = <&eeprom_radio_0>, <&precal_radio_e10>, <&macaddr_rom_file_f100 0>;
203 nvmem-cell-names = "eeprom", "precal", "mac-address";
204 mediatek,disable-radar-background;
209 nvmem-cells = <&macaddr_rom_file_f100 0>;
210 nvmem-cell-names = "mac-address";
216 phy-handle = <ðphy4>;
218 nvmem-cells = <&macaddr_rom_file_f100 1>;
219 nvmem-cell-names = "mac-address";
223 ethphy4: ethernet-phy@4 {
254 groups = "i2c", "uart3", "jtag", "wdt";