From: Rosen Penev Date: Sat, 2 May 2026 21:41:43 +0000 (-0700) Subject: ath79: use led-sources for WMAC X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57cfe86c0611d43dadae5bb2f7d187ed6b3a6d73;p=thirdparty%2Fopenwrt.git ath79: 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 Link: https://github.com/openwrt/openwrt/pull/23191 Signed-off-by: Robert Marko --- diff --git a/target/linux/ath79/dts/ar9132_buffalo_wzr-hp-g300nh.dtsi b/target/linux/ath79/dts/ar9132_buffalo_wzr-hp-g300nh.dtsi index e41031d6830..b2e25bbf311 100644 --- a/target/linux/ath79/dts/ar9132_buffalo_wzr-hp-g300nh.dtsi +++ b/target/linux/ath79/dts/ar9132_buffalo_wzr-hp-g300nh.dtsi @@ -174,12 +174,6 @@ gpios = <&gpio 1 GPIO_ACTIVE_LOW>; }; - wireless { - label = "green:wireless"; - gpios = <&gpio 6 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - led_security: security { label = "amber:security"; gpios = <&gpio 17 GPIO_ACTIVE_LOW>; @@ -255,6 +249,11 @@ nvmem-cells = <&cal_art_11000>; nvmem-cell-names = "calibration"; + + led { + led-sources = <6>; + led-active-low; + }; }; &uart { diff --git a/target/linux/ath79/dts/ar9132_tplink_tl-wa901nd-v2.dts b/target/linux/ath79/dts/ar9132_tplink_tl-wa901nd-v2.dts index 3fcc4073fea..953f4212ca1 100644 --- a/target/linux/ath79/dts/ar9132_tplink_tl-wa901nd-v2.dts +++ b/target/linux/ath79/dts/ar9132_tplink_tl-wa901nd-v2.dts @@ -48,13 +48,6 @@ label = "green:qss"; gpios = <&gpio 4 GPIO_ACTIVE_HIGH>; }; - - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 9 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; }; }; @@ -141,4 +134,9 @@ nvmem-cells = <&macaddr_uboot_1fc00>, <&cal_art_1000>; nvmem-cell-names = "mac-address", "calibration"; + + led { + led-sources = <9>; + led-active-low; + }; }; diff --git a/target/linux/ath79/dts/ar9132_tplink_tl-wr1043nd-v1.dts b/target/linux/ath79/dts/ar9132_tplink_tl-wr1043nd-v1.dts index e392771ce84..d336f3550a4 100644 --- a/target/linux/ath79/dts/ar9132_tplink_tl-wr1043nd-v1.dts +++ b/target/linux/ath79/dts/ar9132_tplink_tl-wr1043nd-v1.dts @@ -57,13 +57,6 @@ label = "green:qss"; gpios = <&gpio 5 GPIO_ACTIVE_HIGH>; }; - - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 9 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; }; rtl8366rb { @@ -157,4 +150,9 @@ nvmem-cells = <&macaddr_uboot_1fc00>, <&cal_art_1000>; nvmem-cell-names = "mac-address", "calibration"; + + led { + led-sources = <9>; + led-active-low; + }; }; diff --git a/target/linux/ath79/dts/ar9132_tplink_tl-wr941-v2.dts b/target/linux/ath79/dts/ar9132_tplink_tl-wr941-v2.dts index 3ad058e9597..bebc2b2296a 100644 --- a/target/linux/ath79/dts/ar9132_tplink_tl-wr941-v2.dts +++ b/target/linux/ath79/dts/ar9132_tplink_tl-wr941-v2.dts @@ -53,13 +53,6 @@ label = "green:qss"; gpios = <&gpio 5 GPIO_ACTIVE_HIGH>; }; - - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 9 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; }; }; @@ -179,4 +172,9 @@ nvmem-cells = <&macaddr_uboot_1fc00>, <&cal_art_1000>; nvmem-cell-names = "mac-address", "calibration"; + + led { + led-sources = <9>; + led-active-low; + }; }; diff --git a/target/linux/ath79/dts/ar9330_glinet_gl-ar150.dts b/target/linux/ath79/dts/ar9330_glinet_gl-ar150.dts index 8e38c9f5fba..7e39df97826 100644 --- a/target/linux/ath79/dts/ar9330_glinet_gl-ar150.dts +++ b/target/linux/ath79/dts/ar9330_glinet_gl-ar150.dts @@ -21,13 +21,6 @@ leds { compatible = "gpio-leds"; - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; - linux,default-trigger = "phy0tpt"; - }; - configurable { label = "green:configurable"; gpios = <&gpio 13 GPIO_ACTIVE_HIGH>; @@ -163,4 +156,8 @@ nvmem-cells = <&macaddr_art_0>, <&cal_art_1000>; nvmem-cell-names = "mac-address", "calibration"; + + led { + led-sources = <0>; + }; }; diff --git a/target/linux/ath79/dts/ar9330_openmesh_om2p.dtsi b/target/linux/ath79/dts/ar9330_openmesh_om2p.dtsi index 1a02a8dec50..632085daf42 100644 --- a/target/linux/ath79/dts/ar9330_openmesh_om2p.dtsi +++ b/target/linux/ath79/dts/ar9330_openmesh_om2p.dtsi @@ -53,12 +53,6 @@ gpios = <&gpio 13 GPIO_ACTIVE_LOW>; }; - wifi_green { - label = "green:wifi"; - gpios = <&gpio 15 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - wifi_red { label = "red:wifi"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; @@ -172,4 +166,9 @@ nvmem-cells = <&cal_art_1000>; nvmem-cell-names = "calibration"; + + led { + led-sources = <15>; + led-active-low; + }; }; diff --git a/target/linux/ath79/dts/ar9330_ziking_cpe46b.dts b/target/linux/ath79/dts/ar9330_ziking_cpe46b.dts index b4a4e6894dd..02f3b1e0ef5 100644 --- a/target/linux/ath79/dts/ar9330_ziking_cpe46b.dts +++ b/target/linux/ath79/dts/ar9330_ziking_cpe46b.dts @@ -17,13 +17,6 @@ leds { compatible = "gpio-leds"; - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; - linux,default-trigger = "phy0tpt"; - }; - rssi1 { label = "green:rssi1"; gpios = <&gpio 20 GPIO_ACTIVE_HIGH>; @@ -120,4 +113,8 @@ nvmem-cells = <&cal_art_1000>; nvmem-cell-names = "calibration"; + + led { + led-sources = <0>; + }; }; diff --git a/target/linux/ath79/dts/ar9331_8dev_carambola2.dts b/target/linux/ath79/dts/ar9331_8dev_carambola2.dts index 6c38f54593f..fe4452cdd19 100644 --- a/target/linux/ath79/dts/ar9331_8dev_carambola2.dts +++ b/target/linux/ath79/dts/ar9331_8dev_carambola2.dts @@ -17,13 +17,6 @@ leds { compatible = "gpio-leds"; - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 0 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - eth0 { label = "orange:eth0"; gpios = <&gpio 13 GPIO_ACTIVE_HIGH>; @@ -147,4 +140,9 @@ nvmem-cells = <&macaddr_art_6>, <&cal_art_1000>; nvmem-cell-names = "mac-address", "calibration"; + + led { + led-sources = <0>; + led-active-low; + }; }; diff --git a/target/linux/ath79/dts/ar9331_alfa-network_ap121f.dtsi b/target/linux/ath79/dts/ar9331_alfa-network_ap121f.dtsi index 2d9e17bcf8a..94039303414 100644 --- a/target/linux/ath79/dts/ar9331_alfa-network_ap121f.dtsi +++ b/target/linux/ath79/dts/ar9331_alfa-network_ap121f.dtsi @@ -45,13 +45,6 @@ label = "green:vpn"; gpios = <&gpio 27 GPIO_ACTIVE_LOW>; }; - - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; - linux,default-trigger = "phy0tpt"; - }; }; }; @@ -141,4 +134,8 @@ nvmem-cells = <&cal_art_1000>; nvmem-cell-names = "calibration"; + + led { + led-sources = <0>; + }; }; diff --git a/target/linux/ath79/dts/ar9331_arduino_yun.dts b/target/linux/ath79/dts/ar9331_arduino_yun.dts index bb2a42612f8..9b7c61768f6 100644 --- a/target/linux/ath79/dts/ar9331_arduino_yun.dts +++ b/target/linux/ath79/dts/ar9331_arduino_yun.dts @@ -49,13 +49,6 @@ leds { compatible = "gpio-leds"; - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; - linux,default-trigger = "phy0tpt"; - }; - usb { function = LED_FUNCTION_USB; color = ; @@ -205,4 +198,8 @@ nvmem-cells = <&cal_art_1000>; nvmem-cell-names = "calibration"; + + led { + led-sources = <0>; + }; }; diff --git a/target/linux/ath79/dts/ar9331_etactica_eg200.dts b/target/linux/ath79/dts/ar9331_etactica_eg200.dts index a887056d732..a261a073575 100644 --- a/target/linux/ath79/dts/ar9331_etactica_eg200.dts +++ b/target/linux/ath79/dts/ar9331_etactica_eg200.dts @@ -44,13 +44,6 @@ label = "red:eth0"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; }; - - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 0 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; }; }; @@ -135,4 +128,9 @@ nvmem-cells = <&cal_art_1000>; nvmem-cell-names = "calibration"; + + led { + led-sources = <0>; + led-active-low; + }; }; diff --git a/target/linux/ath79/dts/ar9331_glinet_64xx.dtsi b/target/linux/ath79/dts/ar9331_glinet_64xx.dtsi index be199b5e4fa..663ab26a572 100644 --- a/target/linux/ath79/dts/ar9331_glinet_64xx.dtsi +++ b/target/linux/ath79/dts/ar9331_glinet_64xx.dtsi @@ -21,13 +21,6 @@ leds { compatible = "gpio-leds"; - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; - linux,default-trigger = "phy0tpt"; - }; - lan { function = LED_FUNCTION_LAN; color = ; @@ -71,4 +64,8 @@ &wmac { status = "okay"; + + led { + led-sources = <0>; + }; }; diff --git a/target/linux/ath79/dts/ar9331_glinet_gl-mifi.dts b/target/linux/ath79/dts/ar9331_glinet_gl-mifi.dts index 067d760b04c..fec6e250e74 100644 --- a/target/linux/ath79/dts/ar9331_glinet_gl-mifi.dts +++ b/target/linux/ath79/dts/ar9331_glinet_gl-mifi.dts @@ -17,13 +17,6 @@ leds { compatible = "gpio-leds"; - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; - linux,default-trigger = "phy0tpt"; - }; - lan { function = LED_FUNCTION_LAN; color = ; @@ -162,4 +155,8 @@ nvmem-cells = <&cal_art_1000>; nvmem-cell-names = "calibration"; + + led { + led-sources = <1>; + }; }; diff --git a/target/linux/ath79/dts/ar9331_glinet_gl-usb150.dts b/target/linux/ath79/dts/ar9331_glinet_gl-usb150.dts index f440d63b163..f9a2db332ee 100644 --- a/target/linux/ath79/dts/ar9331_glinet_gl-usb150.dts +++ b/target/linux/ath79/dts/ar9331_glinet_gl-usb150.dts @@ -21,13 +21,6 @@ leds { compatible = "gpio-leds"; - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; - linux,default-trigger = "phy0tpt"; - }; - led_power: power { function = LED_FUNCTION_POWER; color = ; @@ -135,4 +128,8 @@ nvmem-cells = <&cal_art_1000>; nvmem-cell-names = "calibration"; + + led { + led-sources = <0>; + }; }; diff --git a/target/linux/ath79/dts/ar9331_tplink_tl-mr3020-v1.dts b/target/linux/ath79/dts/ar9331_tplink_tl-mr3020-v1.dts index 551782daa8d..e17c00aa876 100644 --- a/target/linux/ath79/dts/ar9331_tplink_tl-mr3020-v1.dts +++ b/target/linux/ath79/dts/ar9331_tplink_tl-mr3020-v1.dts @@ -21,13 +21,6 @@ leds { compatible = "gpio-leds"; - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; - linux,default-trigger = "phy0tpt"; - }; - lan { function = LED_FUNCTION_LAN; color = ; @@ -184,4 +177,8 @@ nvmem-cells = <&macaddr_uboot_1fc00>, <&cal_art_1000>; nvmem-cell-names = "mac-address", "calibration"; + + led { + led-sources = <0>; + }; }; diff --git a/target/linux/ath79/dts/ar9331_tplink_tl-mr3040-v2.dts b/target/linux/ath79/dts/ar9331_tplink_tl-mr3040-v2.dts index 592e8596e30..45b77bbd46c 100644 --- a/target/linux/ath79/dts/ar9331_tplink_tl-mr3040-v2.dts +++ b/target/linux/ath79/dts/ar9331_tplink_tl-mr3040-v2.dts @@ -22,13 +22,6 @@ pinctrl-names = "default"; pinctrl-0 = <&switch_led_disable_pins>; - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 26 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - led_lan: lan { function = LED_FUNCTION_LAN; color = ; @@ -172,4 +165,9 @@ nvmem-cells = <&macaddr_uboot_1fc00>, <&cal_art_1000>; nvmem-cell-names = "mac-address", "calibration"; + + led { + led-sources = <26>; + led-active-low; + }; }; diff --git a/target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi b/target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi index b1b6577ae22..78c4e191d06 100644 --- a/target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi +++ b/target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi @@ -77,13 +77,6 @@ color = ; gpios = <&gpio 13 GPIO_ACTIVE_HIGH>; }; - - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; - linux,default-trigger = "phy0tpt"; - }; }; }; @@ -169,4 +162,8 @@ nvmem-cells = <&macaddr_uboot_1fc00 0>, <&cal_art_1000>; nvmem-cell-names = "mac-address", "calibration"; + + led { + led-sources = <0>; + }; }; diff --git a/target/linux/ath79/dts/ar9341_engenius_eap300-v2.dts b/target/linux/ath79/dts/ar9341_engenius_eap300-v2.dts index 69dd46f0c7f..03d89be0c4b 100644 --- a/target/linux/ath79/dts/ar9341_engenius_eap300-v2.dts +++ b/target/linux/ath79/dts/ar9341_engenius_eap300-v2.dts @@ -38,13 +38,6 @@ gpios = <&gpio 0 GPIO_ACTIVE_LOW>; default-state = "on"; }; - - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 17 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; }; }; @@ -58,6 +51,11 @@ nvmem-cells = <&cal_art_1000>; nvmem-cell-names = "calibration"; + + led { + led-sources = <17>; + led-active-low; + }; }; &art { diff --git a/target/linux/ath79/dts/ar9341_engenius_ens202ext-v1.dts b/target/linux/ath79/dts/ar9341_engenius_ens202ext-v1.dts index 0e455ab9829..d4bf2aa4367 100644 --- a/target/linux/ath79/dts/ar9341_engenius_ens202ext-v1.dts +++ b/target/linux/ath79/dts/ar9341_engenius_ens202ext-v1.dts @@ -39,13 +39,6 @@ default-state = "on"; }; - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 18 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - rssilow { label = "red:rssilow"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; @@ -89,6 +82,11 @@ nvmem-cells = <&cal_art_1000>; nvmem-cell-names = "calibration"; + + led { + led-sources = <18>; + led-active-low; + }; }; &art { diff --git a/target/linux/ath79/dts/ar9341_openmesh_om2p-hs.dtsi b/target/linux/ath79/dts/ar9341_openmesh_om2p-hs.dtsi index 76757028025..ce19fb5cdb9 100644 --- a/target/linux/ath79/dts/ar9341_openmesh_om2p-hs.dtsi +++ b/target/linux/ath79/dts/ar9341_openmesh_om2p-hs.dtsi @@ -42,12 +42,6 @@ default-state = "on"; }; - wifi_green { - label = "green:wifi"; - gpios = <&gpio 13 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - wifi_red { label = "red:wifi"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; @@ -182,4 +176,9 @@ nvmem-cells = <&cal_art_1000>; nvmem-cell-names = "calibration"; + + led { + led-sources = <13>; + led-active-low; + }; }; diff --git a/target/linux/ath79/dts/ar9341_pcs_cr3000.dts b/target/linux/ath79/dts/ar9341_pcs_cr3000.dts index bc75391dc62..7bcb2990573 100644 --- a/target/linux/ath79/dts/ar9341_pcs_cr3000.dts +++ b/target/linux/ath79/dts/ar9341_pcs_cr3000.dts @@ -48,13 +48,6 @@ default-state = "on"; }; - wlan2g { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 13 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - wan { function = LED_FUNCTION_WAN; color = ; @@ -148,6 +141,11 @@ nvmem-cells = <&cal_art_1000>; nvmem-cell-names = "calibration"; + + led { + led-sources = <13>; + led-active-low; + }; }; ð0 { diff --git a/target/linux/ath79/dts/ar9341_tplink.dtsi b/target/linux/ath79/dts/ar9341_tplink.dtsi index 5dff908129a..7e61f4034b5 100644 --- a/target/linux/ath79/dts/ar9341_tplink.dtsi +++ b/target/linux/ath79/dts/ar9341_tplink.dtsi @@ -24,13 +24,6 @@ default-state = "on"; }; - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 13 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - qss { label = "green:qss"; gpios = <&gpio 15 GPIO_ACTIVE_LOW>; @@ -94,4 +87,9 @@ &wmac { status = "okay"; + + led { + led-sources = <13>; + led-active-low; + }; }; diff --git a/target/linux/ath79/dts/ar9341_tplink_tl-wa850re-v1.dts b/target/linux/ath79/dts/ar9341_tplink_tl-wa850re-v1.dts index 08f14f5cc1b..3c8dd7e0bd3 100644 --- a/target/linux/ath79/dts/ar9341_tplink_tl-wa850re-v1.dts +++ b/target/linux/ath79/dts/ar9341_tplink_tl-wa850re-v1.dts @@ -42,13 +42,6 @@ gpios = <&gpio 20 GPIO_ACTIVE_LOW>; }; - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 13 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - led_re: re { label = "blue:re"; gpios = <&gpio 15 GPIO_ACTIVE_LOW>; @@ -80,3 +73,10 @@ }; }; }; + +&wmac { + led { + led-sources = <13>; + led-active-low; + }; +}; diff --git a/target/linux/ath79/dts/ar9341_tplink_tl-wa860re-v1.dts b/target/linux/ath79/dts/ar9341_tplink_tl-wa860re-v1.dts index e1ed0c29359..7f4c9d507ca 100644 --- a/target/linux/ath79/dts/ar9341_tplink_tl-wa860re-v1.dts +++ b/target/linux/ath79/dts/ar9341_tplink_tl-wa860re-v1.dts @@ -62,13 +62,6 @@ gpios = <&gpio 12 GPIO_ACTIVE_LOW>; }; - wlan_green { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 2 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - wlan_orange { function = LED_FUNCTION_WLAN; color = ; @@ -76,3 +69,10 @@ }; }; }; + +&wmac { + led { + led-sources = <2>; + led-active-low; + }; +}; diff --git a/target/linux/ath79/dts/ar9341_tplink_tl-wa901nd-v3.dts b/target/linux/ath79/dts/ar9341_tplink_tl-wa901nd-v3.dts index 696e8f6391e..02565f63443 100644 --- a/target/linux/ath79/dts/ar9341_tplink_tl-wa901nd-v3.dts +++ b/target/linux/ath79/dts/ar9341_tplink_tl-wa901nd-v3.dts @@ -35,13 +35,6 @@ gpios = <&gpio 18 GPIO_ACTIVE_LOW>; }; - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 13 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - qss { label = "green:qss"; gpios = <&gpio 15 GPIO_ACTIVE_LOW>; @@ -53,3 +46,10 @@ }; }; }; + +&wmac { + led { + led-sources = <13>; + led-active-low; + }; +}; diff --git a/target/linux/ath79/dts/ar9342_ubnt_litebeam-m5-xw.dts b/target/linux/ath79/dts/ar9342_ubnt_litebeam-m5-xw.dts index bc01bdffb59..4f9a0f670b3 100644 --- a/target/linux/ath79/dts/ar9342_ubnt_litebeam-m5-xw.dts +++ b/target/linux/ath79/dts/ar9342_ubnt_litebeam-m5-xw.dts @@ -27,13 +27,6 @@ gpios = <&gpio 13 GPIO_ACTIVE_LOW>; }; - led-wlan { - color = ; - function = LED_FUNCTION_WLAN; - linux,default-trigger = "phy0tpt"; - gpios = <&gpio 14 GPIO_ACTIVE_LOW>; - }; - led_status: led-power { color = ; function = LED_FUNCTION_POWER; @@ -57,3 +50,10 @@ phy-handle = <&phy1>; }; + +&wmac { + led { + led-sources = <14>; + led-active-low; + }; +}; diff --git a/target/linux/ath79/dts/ar9344_engenius_eap600.dts b/target/linux/ath79/dts/ar9344_engenius_eap600.dts index 94543cd2557..0cbddc529d9 100644 --- a/target/linux/ath79/dts/ar9344_engenius_eap600.dts +++ b/target/linux/ath79/dts/ar9344_engenius_eap600.dts @@ -23,12 +23,6 @@ color = ; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; }; - - wifi5g { - label = "green:wifi5g"; - gpios = <&gpio 12 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; }; }; @@ -47,6 +41,11 @@ &wmac { nvmem-cells = <&macaddr_art_0 (-1)>, <&calibration_art_1000>; nvmem-cell-names = "mac-address", "calibration"; + + led { + led-sources = <12>; + led-active-low; + }; }; &art { diff --git a/target/linux/ath79/dts/ar9344_engenius_ecb600.dts b/target/linux/ath79/dts/ar9344_engenius_ecb600.dts index 1b75d887f29..acfcafaa652 100644 --- a/target/linux/ath79/dts/ar9344_engenius_ecb600.dts +++ b/target/linux/ath79/dts/ar9344_engenius_ecb600.dts @@ -17,12 +17,6 @@ gpios = <&gpio 14 GPIO_ACTIVE_LOW>; default-state = "on"; }; - - wifi5g { - label = "blue:wifi5g"; - gpios = <&gpio 12 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; }; }; @@ -41,6 +35,11 @@ &wmac { nvmem-cells = <&macaddr_art_0 (-1)>, <&calibration_art_1000>; nvmem-cell-names = "mac-address", "calibration"; + + led { + led-sources = <12>; + led-active-low; + }; }; &art { diff --git a/target/linux/ath79/dts/ar9344_fortinet_fap-221-b.dts b/target/linux/ath79/dts/ar9344_fortinet_fap-221-b.dts index 4474b1be813..1e190cc6c6a 100644 --- a/target/linux/ath79/dts/ar9344_fortinet_fap-221-b.dts +++ b/target/linux/ath79/dts/ar9344_fortinet_fap-221-b.dts @@ -43,12 +43,6 @@ gpios = <&gpio 19 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; - - wifi5g { - label = "green:wifi5g"; - gpios = <&gpio 18 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; }; virtual_flash { @@ -73,6 +67,11 @@ nvmem-cells = <&calibration_wmac>, <&macaddr_uboot_3ff80 1>; nvmem-cell-names = "calibration", "mac-address"; + + led { + led-sources = <18>; + led-active-low; + }; }; &art { diff --git a/target/linux/ath79/dts/ar9344_openmesh_mr600-v2.dts b/target/linux/ath79/dts/ar9344_openmesh_mr600-v2.dts index de7acdbca9a..e25185b3470 100644 --- a/target/linux/ath79/dts/ar9344_openmesh_mr600-v2.dts +++ b/target/linux/ath79/dts/ar9344_openmesh_mr600-v2.dts @@ -52,12 +52,6 @@ gpios = <&gpio 20 GPIO_ACTIVE_LOW>; }; - wifi5g_green { - label = "green:wifi5g"; - gpios = <&gpio 21 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - wifi5g_yellow { label = "yellow:wifi5g"; gpios = <&gpio 22 GPIO_ACTIVE_LOW>; @@ -77,3 +71,10 @@ &wdt { status = "disabled"; }; + +&wmac { + led { + led-sources = <21>; + led-active-low; + }; +}; diff --git a/target/linux/ath79/dts/ar9344_openmesh_om5p-an.dts b/target/linux/ath79/dts/ar9344_openmesh_om5p-an.dts index 24ce6eead67..10da5785699 100644 --- a/target/linux/ath79/dts/ar9344_openmesh_om5p-an.dts +++ b/target/linux/ath79/dts/ar9344_openmesh_om5p-an.dts @@ -57,12 +57,6 @@ gpios = <&gpio 15 GPIO_ACTIVE_LOW>; }; - wifi_green { - label = "green:wifi"; - gpios = <&gpio 16 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - wifi_yellow { label = "yellow:wifi"; gpios = <&gpio 17 GPIO_ACTIVE_LOW>; @@ -227,6 +221,11 @@ nvmem-cells = <&macaddr_art_0 2>, <&calibration_art_1000>; nvmem-cell-names = "mac-address", "calibration"; + + led { + led-sources = <16>; + led-active-low; + }; }; &pcie { diff --git a/target/linux/ath79/dts/ar9344_openmesh_om5p.dts b/target/linux/ath79/dts/ar9344_openmesh_om5p.dts index 7b08d6a5e60..05231860a0c 100644 --- a/target/linux/ath79/dts/ar9344_openmesh_om5p.dts +++ b/target/linux/ath79/dts/ar9344_openmesh_om5p.dts @@ -57,12 +57,6 @@ gpios = <&gpio 15 GPIO_ACTIVE_LOW>; }; - wifi_green { - label = "green:wifi"; - gpios = <&gpio 16 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - wifi_yellow { label = "yellow:wifi"; gpios = <&gpio 17 GPIO_ACTIVE_LOW>; @@ -187,4 +181,9 @@ nvmem-cells = <&cal_art_1000>; nvmem-cell-names = "calibration"; + + led { + led-sources = <16>; + led-active-low; + }; }; diff --git a/target/linux/ath79/dts/ar9344_tplink_cpe605-v1.dts b/target/linux/ath79/dts/ar9344_tplink_cpe605-v1.dts index 1b762896a14..100e10e79be 100644 --- a/target/linux/ath79/dts/ar9344_tplink_cpe605-v1.dts +++ b/target/linux/ath79/dts/ar9344_tplink_cpe605-v1.dts @@ -22,15 +22,16 @@ color = ; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; - - wlan5g { - label = "green:wlan5g"; - gpios = <&gpio 13 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; }; }; ð1 { compatible = "syscon", "simple-mfd"; }; + +&wmac { + led { + led-sources = <13>; + led-active-low; + }; +}; diff --git a/target/linux/ath79/dts/ar9344_tplink_cpe610-v1.dts b/target/linux/ath79/dts/ar9344_tplink_cpe610-v1.dts index c44ad29ccf9..eb929abba8e 100644 --- a/target/linux/ath79/dts/ar9344_tplink_cpe610-v1.dts +++ b/target/linux/ath79/dts/ar9344_tplink_cpe610-v1.dts @@ -22,15 +22,16 @@ color = ; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; - - wlan5g { - label = "green:wlan5g"; - gpios = <&gpio 13 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; }; }; ð1 { compatible = "syscon", "simple-mfd"; }; + +&wmac { + led { + led-sources = <13>; + led-active-low; + }; +}; diff --git a/target/linux/ath79/dts/ar9344_tplink_cpe610-v2.dts b/target/linux/ath79/dts/ar9344_tplink_cpe610-v2.dts index 7228ca9f49c..cd3d1a09e71 100644 --- a/target/linux/ath79/dts/ar9344_tplink_cpe610-v2.dts +++ b/target/linux/ath79/dts/ar9344_tplink_cpe610-v2.dts @@ -22,15 +22,16 @@ color = ; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; - - wlan5g { - label = "green:wlan5g"; - gpios = <&gpio 13 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; }; }; ð1 { compatible = "syscon", "simple-mfd"; }; + +&wmac { + led { + led-sources = <13>; + led-active-low; + }; +}; diff --git a/target/linux/ath79/dts/ar9344_tplink_tl-wdrxxxx.dtsi b/target/linux/ath79/dts/ar9344_tplink_tl-wdrxxxx.dtsi index 4c25d61c5ae..9f15bffbc75 100644 --- a/target/linux/ath79/dts/ar9344_tplink_tl-wdrxxxx.dtsi +++ b/target/linux/ath79/dts/ar9344_tplink_tl-wdrxxxx.dtsi @@ -16,12 +16,6 @@ leds: leds { compatible = "gpio-leds"; - wlan2g { - label = "green:wlan2g"; - gpios = <&gpio 13 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - led_system: system { label = "green:system"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; @@ -115,3 +109,10 @@ }; }; }; + +&wmac { + led { + led-sources = <13>; + led-active-low; + }; +};