This commit adds support for the netis MEX605, which is a variant based on the netis NX30 V2. 1. Update brand naming from Netis to netis to follow the official branding. 2. Rename NX30V2 to NX30 V2 to correctly reflect it as the second version of the NX30. 3. Update variant notation for consistency. cherry picked from commit c982357 1. Add 'model' to the DTS for netis NX30 V2 and define WiFi LED. 4. Fix typo. Signed-off-by: Zhiwei Cao <bfdeh@126.com> Signed-off-by: David Han <h96643864@gmail.com> Link: https://github.com/openwrt/openwrt/pull/22726 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
80 lines
1.4 KiB
Devicetree
80 lines
1.4 KiB
Devicetree
/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */
|
|
|
|
/dts-v1/;
|
|
#include "mt7981b-netis-common.dtsi"
|
|
|
|
/ {
|
|
model = "netis NX30 V2";
|
|
compatible = "netis,nx30v2", "mediatek,mt7981";
|
|
|
|
aliases {
|
|
label-mac-device = &gmac0;
|
|
led-boot = &led_power;
|
|
led-failsafe = &led_power;
|
|
led-running = &led_power;
|
|
led-upgrade = &led_wps;
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
led_power: power {
|
|
color = <LED_COLOR_ID_BLUE>;
|
|
function = LED_FUNCTION_POWER;
|
|
gpios = <&pio 4 GPIO_ACTIVE_LOW>;
|
|
default-state = "on";
|
|
};
|
|
|
|
internet {
|
|
color = <LED_COLOR_ID_BLUE>;
|
|
function = LED_FUNCTION_WAN_ONLINE;
|
|
gpios = <&pio 7 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
led_wps: wps {
|
|
color = <LED_COLOR_ID_BLUE>;
|
|
function = LED_FUNCTION_WPS;
|
|
gpios = <&pio 5 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
wifi2g {
|
|
color = <LED_COLOR_ID_BLUE>;
|
|
function = LED_FUNCTION_WLAN_2GHZ;
|
|
gpios = <&pio 34 GPIO_ACTIVE_LOW>;
|
|
linux,default-trigger = "phy0tpt";
|
|
};
|
|
|
|
wifi5g {
|
|
color = <LED_COLOR_ID_BLUE>;
|
|
function = LED_FUNCTION_WLAN_5GHZ;
|
|
gpios = <&pio 35 GPIO_ACTIVE_LOW>;
|
|
linux,default-trigger = "phy1tpt";
|
|
};
|
|
|
|
wan {
|
|
color = <LED_COLOR_ID_BLUE>;
|
|
function = LED_FUNCTION_WAN;
|
|
gpios = <&pio 8 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&switch {
|
|
ports {
|
|
port@0 {
|
|
reg = <1>;
|
|
label = "lan1";
|
|
};
|
|
|
|
port@1 {
|
|
reg = <2>;
|
|
label = "lan2";
|
|
};
|
|
|
|
port@2 {
|
|
reg = <3>;
|
|
label = "lan3";
|
|
};
|
|
};
|
|
};
|