ath79: ar7161: swap phy0 and phy1

For whatever reason, in the transition from ar71xx to ath79, the second
interface ends up as phy0.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22705
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
Rosen Penev 2026-03-30 19:44:58 -07:00 committed by Robert Marko
parent eba6fa859e
commit c38d4da72c
5 changed files with 14 additions and 14 deletions

View File

@ -24,13 +24,13 @@
wlan5g {
label = "green:wifi5g";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
linux,default-trigger = "phy0tpt";
};
wlan2g {
label = "green:wifi2g";
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
linux,default-trigger = "phy1tpt";
};
led_status_green: status_green {

View File

@ -41,13 +41,13 @@
band2g_g {
label = "green:band2g";
gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
linux,default-trigger = "phy1tpt";
};
band5g_g {
label = "green:band5g";
gpios = <&ath9k1 1 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
linux,default-trigger = "phy0tpt";
};
router {

View File

@ -69,25 +69,25 @@
wlan2g-green {
label = "green:wlan2g";
gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
linux,default-trigger = "phy1tpt";
};
wlan2g-yellow {
label = "yellow:wlan2g";
gpios = <&ath9k0 3 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0assoc";
linux,default-trigger = "phy1assoc";
};
wlan5g-green {
label = "green:wlan5g";
gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
linux,default-trigger = "phy0tpt";
};
wlan5g-yellow {
label = "yellow:wlan5g";
gpios = <&ath9k1 3 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1assoc";
linux,default-trigger = "phy0assoc";
};
};

View File

@ -67,12 +67,12 @@
wlan2g {
label = "green:wlan2g";
gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
linux,default-trigger = "phy1tpt";
};
wlan5g {
label = "blue:wlan5g";
gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
linux,default-trigger = "phy0tpt";
};
};

View File

@ -57,25 +57,25 @@
wlan2g-green {
label = "green:wlan2g";
gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0assoc";
linux,default-trigger = "phy1assoc";
};
wlan2g-yellow {
label = "yellow:wlan2g";
gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0tpt";
linux,default-trigger = "phy1tpt";
};
wlan5g-green {
label = "green:wlan5g";
gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy1assoc";
linux,default-trigger = "phy0assoc";
};
wlan5g-yellow {
label = "yellow:wlan5g";
gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy1tpt";
linux,default-trigger = "phy0tpt";
};
};