]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mediatek: filogic: add support for netis MEX605 22726/head
authorDavid Han <h96643864@gmail.com>
Tue, 28 Apr 2026 17:06:51 +0000 (02:06 +0900)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 14 May 2026 21:07:00 +0000 (23:07 +0200)
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>
package/boot/uboot-mediatek/Makefile
package/boot/uboot-mediatek/patches/461-add-netis-nx30v2.patch
target/linux/mediatek/dts/mt7981b-netis-nx30v2.dts
target/linux/mediatek/image/filogic.mk

index 87d7741ff0497db27562f746b76c7d2634482fd3..4d062749a8bc131ae0719aa2f552ba12080e1a64 100644 (file)
@@ -470,7 +470,7 @@ define U-Boot/mt7981_konka_komi-a31
 endef
 
 define U-Boot/mt7981_netis_nx30v2
-  NAME:=Netis NX30V2
+  NAME:=netis NX30 V2
   BUILD_SUBTARGET:=filogic
   BUILD_DEVICES:=netis_nx30v2
   UBOOT_CONFIG:=mt7981_netis_nx30v2
index 6a376a2b6c54bedde7cf0b499bb88c16c8e66590..66bc031dc60ea8b30bb206e89f4eaaeb8fec555d 100644 (file)
@@ -9,7 +9,7 @@
 +#include <dt-bindings/input/input.h>
 +
 +/ {
-+      model = "Netis NX30V2";
++      model = "netis NX30 V2";
 +      compatible = "mediatek,mt7981", "mediatek,mt7981-rfb";
 +      chosen {
 +              stdout-path = &uart0;
 +
 +#netconsole
 +netconsole=setenv stdout serial,nc;setenv stdin serial,nc
-+nonetconcole=setenv stdout serial;setenv stdin serial
++nonetconsole=setenv stdout serial;setenv stdin serial
 +
 +# button commands
-+button_cmd_0=run netconsole led_on; sleep 5; if button wps; then run nonetconcole offical_upgrade; fi
++button_cmd_0=run netconsole led_on; sleep 5; if button wps; then run nonetconsole offical_upgrade; fi
 +button_cmd_0_name=wps
-+button_cmd_1=run netconsole led_on reset_all; sleep 5; if button reset; then run nonetconcole; while true; do run upgrade_fw && run boot_nand; done; fi
++button_cmd_1=run netconsole led_on reset_all; sleep 5; if button reset; then run nonetconsole; while true; do run upgrade_fw && run boot_nand; done; fi
 +button_cmd_1_name=reset
index cbd6666d49c592b66edf370eaeed414f9c736f85..1e3a6b5577fdf0e2154249480c12cb9db4f00feb 100644 (file)
@@ -4,6 +4,7 @@
 #include "mt7981b-netis-common.dtsi"
 
 / {
+       model = "netis NX30 V2";
        compatible = "netis,nx30v2", "mediatek,mt7981";
 
        aliases {
                        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;
index bddbf26c6e91f4209e105fe56f79edf5200b6fb5..bd23cc09ce36c2c6beb1a414522c7b9aa41fc274 100644 (file)
@@ -2556,16 +2556,19 @@ endef
 TARGET_DEVICES += netgear_wax220
 
 define Device/netis_nx30v2
-  DEVICE_VENDOR := Netis
-  DEVICE_MODEL := NX30V2
+  DEVICE_VENDOR := netis
+  DEVICE_MODEL := NX30
+  DEVICE_VARIANT := V2
   DEVICE_ALT0_VENDOR := Netcore
-  DEVICE_ALT0_MODEL := POWER30AX
+  DEVICE_ALT0_MODEL := POWER 30AX
   DEVICE_ALT1_VENDOR := Netcore
-  DEVICE_ALT1_MODEL := N30PRO
+  DEVICE_ALT1_MODEL := N30 Pro
   DEVICE_ALT2_VENDOR := GWBN
   DEVICE_ALT2_MODEL := GW3001
   DEVICE_ALT3_VENDOR := GLC
   DEVICE_ALT3_MODEL := W7
+  DEVICE_ALT4_VENDOR := netis
+  DEVICE_ALT4_MODEL := MEX605
   DEVICE_DTS := mt7981b-netis-nx30v2
   DEVICE_DTS_DIR := ../dts
   DEVICE_DTC_FLAGS := --pad 4096