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>
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>;
nvmem-cells = <&calibration_wmac>, <&macaddr_uboot_3ff80 1>;
nvmem-cell-names = "calibration", "mac-address";
+
+ led {
+ led-sources = <13>;
+ led-active-low;
+ };
};
&pcie0 {
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;
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 {
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>;
nvmem-cells = <&macaddr_oemdata_1d 0>, <&cal_oemdata_1000>;
nvmem-cell-names = "mac-address", "calibration";
+
+ led {
+ led-sources = <13>;
+ led-active-low;
+ };
};
&mdio0 {
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>;
nvmem-cells = <&macaddr_info_8 0>, <&cal_art_1000>;
nvmem-cell-names = "mac-address", "calibration";
+
+ led {
+ led-sources = <16>;
+ led-active-low;
+ };
};