1
1

ath79: qca955x: use led-sources for WMAC

The ath9k driver creates an ath9k LED by default. Instead of having a
non functional LED, configure it properly and remove the extra as it's
not needed.

It's also a bit funny matching against phy0 and phy1 when both differ
between ath9k and ath10k.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/23191
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
Rosen Penev 2025-05-24 17:40:41 -07:00 committed by Robert Marko
parent 5003a2158d
commit c6c2ebdb61
4 changed files with 20 additions and 26 deletions

View File

@ -45,13 +45,6 @@
default-state = "on";
};
wifi1_green {
function = LED_FUNCTION_WLAN_2GHZ;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};
wifi1_amber {
function = LED_FUNCTION_WLAN_2GHZ;
color = <LED_COLOR_ID_AMBER>;
@ -200,6 +193,11 @@
nvmem-cells = <&calibration_wmac>, <&macaddr_uboot_3ff80 1>;
nvmem-cell-names = "calibration", "mac-address";
led {
led-sources = <13>;
led-active-low;
};
};
&pcie0 {

View File

@ -64,13 +64,6 @@
linux,default-trigger = "phy1assoc";
};
led-5 {
color = <LED_COLOR_ID_YELLOW>;
function = LED_FUNCTION_WLAN_2GHZ;
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};
led-6 {
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_WLAN_5GHZ;
@ -279,6 +272,11 @@
nvmem-cells = <&macaddr_board_data_60>, <&cal_board_data_41000>;
nvmem-cell-names = "mac-address", "calibration";
led {
led-sources = <2>;
led-active-low;
};
};
&usb_phy0 {

View File

@ -48,12 +48,6 @@
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
radio-24-green {
label = "green:radio-24";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
radio-24-amber {
label = "amber:radio-24";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
@ -199,6 +193,11 @@
nvmem-cells = <&macaddr_oemdata_1d 0>, <&cal_oemdata_1000>;
nvmem-cell-names = "mac-address", "calibration";
led {
led-sources = <13>;
led-active-low;
};
};
&mdio0 {

View File

@ -53,12 +53,6 @@
default-state = "on";
};
wlan2g_green {
label = "green:wlan2g";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};
wlan2g_red {
label = "red:wlan2g";
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
@ -209,4 +203,9 @@
nvmem-cells = <&macaddr_info_8 0>, <&cal_art_1000>;
nvmem-cell-names = "mac-address", "calibration";
led {
led-sources = <16>;
led-active-low;
};
};