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 label = "green:power"; // to be removed once #13837 is merged
86 color = <LED_COLOR_ID_GREEN>;
87 function = LED_FUNCTION_POWER;
88 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
97 compatible = "jedec,spi-nor";
99 spi-max-frequency = <25000000>;
102 compatible = "fixed-partitions";
103 #address-cells = <1>;
108 reg = <0x00 0x30000>;
114 reg = <0x30000 0x10000>;
120 reg = <0x40000 0x10000>;
126 reg = <0x50000 0x10000>;
131 label = "isp_config";
132 reg = <0x60000 0x10000>;
138 reg = <0x70000 0x10000>;
142 compatible = "fixed-layout";
143 #address-cells = <1>;
146 macaddr_rom_file_f100: macaddr@f100 {
147 compatible = "mac-base";
149 #nvmem-cell-cells = <1>;
156 reg = <0x80000 0x10000>;
160 radio: partition@90000 {
162 reg = <0x90000 0x20000>;
167 label = "config_bak";
168 reg = <0xb0000 0x10000>;
173 compatible = "denx,fit";
175 reg = <0xc0000 0xf30000>;
187 compatible = "mediatek,mt76";
188 reg = <0x0000 0 0 0 0>;
189 mediatek,mtd-eeprom = <&radio 0x0>;
190 nvmem-cells = <&macaddr_rom_file_f100 0>;
191 nvmem-cell-names = "mac-address";
192 mediatek,disable-radar-background;
197 nvmem-cells = <&macaddr_rom_file_f100 0>;
198 nvmem-cell-names = "mac-address";
204 phy-handle = <ðphy4>;
206 nvmem-cells = <&macaddr_rom_file_f100 1>;
207 nvmem-cell-names = "mac-address";
211 ethphy4: ethernet-phy@4 {
242 groups = "i2c", "uart3", "jtag", "wdt";