From af76d60bc2f3907810b04b6811cc7dd43df69bd8 Mon Sep 17 00:00:00 2001 From: Andrii Kuiukoff Date: Wed, 9 Sep 2026 11:29:06 -0400 Subject: [PATCH] mediatek: filogic: comfast cf-wa933: name dedicated WAN interface Set openwrt,netdev-name to wan on the dedicated GMAC and update the default network and WAN LED configuration for both existing CF-WA933 variants. Filogic preinit reads this property to rename the interface. Keep the physical port, PHY and MAC address assignment intact. This follows the dedicated WAN naming used by similar Filogic devices, using the explicit OpenWrt naming property as on the MERCUSYS MR85X. Compat version can be avoided here, since the device hasn't shipped in any stable builds yet. Signed-off-by: Andrii Kuiukoff Signed-off-by: Guillaume RISCHARD Link: https://github.com/openwrt/openwrt/pull/24590 Signed-off-by: Jonas Jelonek --- .../mediatek/dts/mt7981a-comfast-cf-wa933-common.dtsi | 1 + .../linux/mediatek/filogic/base-files/etc/board.d/01_leds | 2 +- .../mediatek/filogic/base-files/etc/board.d/02_network | 8 +++----- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/target/linux/mediatek/dts/mt7981a-comfast-cf-wa933-common.dtsi b/target/linux/mediatek/dts/mt7981a-comfast-cf-wa933-common.dtsi index a372c6befaf..72f1392b403 100644 --- a/target/linux/mediatek/dts/mt7981a-comfast-cf-wa933-common.dtsi +++ b/target/linux/mediatek/dts/mt7981a-comfast-cf-wa933-common.dtsi @@ -86,6 +86,7 @@ /* WAN */ compatible = "mediatek,eth-mac"; reg = <1>; + openwrt,netdev-name = "wan"; phy-mode = "gmii"; phy-handle = <&int_gbe_phy>; nvmem-cells = <&macaddr_factory_e000 1>; diff --git a/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds b/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds index 6d832722380..7f32905a23c 100644 --- a/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds +++ b/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds @@ -44,7 +44,7 @@ comfast,cf-wa933|\ comfast,cf-wa933-128m) ucidef_set_led_netdev "lan1" "lan1" "blue:lan-1" "lan1" "link tx rx" ucidef_set_led_netdev "lan2" "lan2" "blue:lan-2" "lan2" "link tx rx" - ucidef_set_led_netdev "wan" "wan" "blue:wan" "eth1" "link tx rx" + ucidef_set_led_netdev "wan" "wan" "blue:wan" "wan" "link tx rx" ;; confiabits,mt7981) ucidef_set_led_netdev "lan1" "lan1" "blue:lan-1" "lan1" "link tx rx" diff --git a/target/linux/mediatek/filogic/base-files/etc/board.d/02_network b/target/linux/mediatek/filogic/base-files/etc/board.d/02_network index 73d929f6f6f..f6151306621 100644 --- a/target/linux/mediatek/filogic/base-files/etc/board.d/02_network +++ b/target/linux/mediatek/filogic/base-files/etc/board.d/02_network @@ -41,7 +41,9 @@ mediatek_setup_interfaces() acer,vero-w6m) ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" internet ;; - airtel,aap4221zy) + airtel,aap4221zy|\ + comfast,cf-wa933|\ + comfast,cf-wa933-128m) ucidef_set_interfaces_lan_wan "lan1 lan2" wan ;; arcadyan,mozart) @@ -135,10 +137,6 @@ mediatek_setup_interfaces() comfast,cf-e393ax) ucidef_set_interfaces_lan_wan "lan1" eth1 ;; - comfast,cf-wa933|\ - comfast,cf-wa933-128m) - ucidef_set_interfaces_lan_wan "lan1 lan2" eth1 - ;; cudy,ap3000wall-v1) ucidef_set_interface_lan "lan1 lan2 lan3 lan4 lan5" ;;