1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include <dt-bindings/leds/common.h>
5 #include "mt7620a_tplink_8m.dtsi"
8 compatible = "tplink,ec220-g5-v2", "ralink,mt7620a-soc";
9 model = "TP-Link EC220-G5 v2";
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
16 label-mac-device = ðernet;
20 compatible = "gpio-leds";
23 function = LED_FUNCTION_POWER;
24 color = <LED_COLOR_ID_GREEN>;
25 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
29 function = LED_FUNCTION_WAN;
30 color = <LED_COLOR_ID_ORANGE>;
31 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
35 function = LED_FUNCTION_WAN;
36 color = <LED_COLOR_ID_GREEN>;
37 gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
41 function = LED_FUNCTION_LAN;
42 color = <LED_COLOR_ID_GREEN>;
43 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
47 function = LED_FUNCTION_WLAN_2GHZ;
48 color = <LED_COLOR_ID_GREEN>;
49 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
50 linux,default-trigger = "phy0tpt";
54 function = LED_FUNCTION_WLAN_5GHZ;
55 color = <LED_COLOR_ID_GREEN>;
56 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
57 linux,default-trigger = "phy1tpt";
61 function = LED_FUNCTION_WPS;
62 color = <LED_COLOR_ID_GREEN>;
63 gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
68 compatible = "gpio-keys";
72 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
73 linux,code = <KEY_RESTART>;
78 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
79 linux,code = <KEY_RFKILL>;
84 compatible = "realtek,rtl8367b";
86 realtek,extif2 = <1 0 1 1 1 1 1 1 2>;
101 groups = "i2c", "uartf", "ephy", "rgmii2";
107 pinctrl-names = "default";
108 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
112 mediatek,fixed-link = <1000 1 1 1>;
118 reset-gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
119 reset-delay-us = <10000>;
132 pinctrl-names = "default", "pa_gpio";
133 pinctrl-0 = <&pa_pins>;
134 pinctrl-1 = <&pa_gpio_pins>;
136 nvmem-cells = <&eeprom_radio_0>, <&macaddr_rom_f100 0>;
137 nvmem-cell-names = "eeprom", "mac-address";
142 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_rom_f100 2>;
143 nvmem-cell-names = "eeprom", "mac-address";