diff --git a/target/linux/ath79/dts/qca9531_comfast_cf-e560ac.dts b/target/linux/ath79/dts/qca9531_comfast_cf-e560ac.dts index ca44106ba0..0517a455f4 100644 --- a/target/linux/ath79/dts/qca9531_comfast_cf-e560ac.dts +++ b/target/linux/ath79/dts/qca9531_comfast_cf-e560ac.dts @@ -65,13 +65,6 @@ color = ; gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; - - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 0 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; }; watchdog { @@ -191,4 +184,9 @@ nvmem-cells = <&macaddr_art_0 10>, <&cal_art_1000>; nvmem-cell-names = "mac-address", "calibration"; + + led { + led-sources = <0>; + led-active-low; + }; }; diff --git a/target/linux/ath79/dts/qca9531_comfast_cf-ew72.dts b/target/linux/ath79/dts/qca9531_comfast_cf-ew72.dts index b5dcab0b02..8e24c7a982 100644 --- a/target/linux/ath79/dts/qca9531_comfast_cf-ew72.dts +++ b/target/linux/ath79/dts/qca9531_comfast_cf-ew72.dts @@ -34,13 +34,6 @@ color = ; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; - - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 14 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; }; keys { @@ -158,4 +151,9 @@ nvmem-cells = <&macaddr_art_0 3>, <&cal_art_1000>; nvmem-cell-names = "mac-address", "calibration"; + + led { + led-sources = <14>; + led-active-low; + }; }; diff --git a/target/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts b/target/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts index f83618afac..fdb95dedf6 100644 --- a/target/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts +++ b/target/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts @@ -27,9 +27,3 @@ function = LED_FUNCTION_STATUS; color = ; }; - -&led_wlan { - function = LED_FUNCTION_WLAN; - color = ; -}; - diff --git a/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi b/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi index 3084baa1e6..af00dc5b8d 100644 --- a/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi +++ b/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi @@ -64,13 +64,6 @@ color = ; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; }; - - led_wlan: wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 14 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; }; i2c: i2c { @@ -188,6 +181,11 @@ nvmem-cells = <&cal_art_1000>; nvmem-cell-names = "calibration"; + + led { + led-sources = <14>; + led-active-low; + }; }; &pinmux { diff --git a/target/linux/ath79/dts/qca9531_glinet_gl-x300b.dts b/target/linux/ath79/dts/qca9531_glinet_gl-x300b.dts index 5135155472..9f969a4613 100644 --- a/target/linux/ath79/dts/qca9531_glinet_gl-x300b.dts +++ b/target/linux/ath79/dts/qca9531_glinet_gl-x300b.dts @@ -26,12 +26,6 @@ leds { compatible = "gpio-leds"; - wlan2g { - label = "green:wlan2g"; - gpios = <&gpio 4 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - wan { function = LED_FUNCTION_WAN; color = ; @@ -157,4 +151,9 @@ nvmem-cells = <&cal_art_1000>; nvmem-cell-names = "calibration"; + + led { + led-sources = <4>; + led-active-low; + }; }; diff --git a/target/linux/ath79/dts/qca9531_glinet_gl-xe300.dts b/target/linux/ath79/dts/qca9531_glinet_gl-xe300.dts index ae80e30000..c855f70f99 100644 --- a/target/linux/ath79/dts/qca9531_glinet_gl-xe300.dts +++ b/target/linux/ath79/dts/qca9531_glinet_gl-xe300.dts @@ -58,13 +58,6 @@ color = ; }; - wlan { - gpios = <&gpio 12 GPIO_ACTIVE_LOW>; - function = LED_FUNCTION_WLAN; - color = ; - linux,default-trigger = "phy0tpt"; - }; - lte { gpios = <&gpio 13 GPIO_ACTIVE_LOW>; label = "green:lte"; @@ -179,4 +172,9 @@ nvmem-cells = <&cal_art_1000>; nvmem-cell-names = "calibration"; + + led { + led-sources = <12>; + led-active-low; + }; }; diff --git a/target/linux/ath79/dts/qca9531_qxwlan_e600g-v2-16m.dts b/target/linux/ath79/dts/qca9531_qxwlan_e600g-v2-16m.dts index c3c313f3c6..75e8a9fa80 100644 --- a/target/linux/ath79/dts/qca9531_qxwlan_e600g-v2-16m.dts +++ b/target/linux/ath79/dts/qca9531_qxwlan_e600g-v2-16m.dts @@ -9,15 +9,6 @@ compatible = "qxwlan,e600g-v2-16m", "qca,qca9531"; }; -&leds { - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 4 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; -}; - &partitions { partition@70000 { compatible = "denx,uimage"; @@ -26,6 +17,13 @@ }; }; +&wmac { + led { + led-sources = <4>; + led-active-low; + }; +}; + &pcie0 { /delete-node/ wifi@0,0; }; diff --git a/target/linux/ath79/dts/qca9531_qxwlan_e600g-v2-8m.dts b/target/linux/ath79/dts/qca9531_qxwlan_e600g-v2-8m.dts index c417a8ff4c..7f2b8eed4e 100644 --- a/target/linux/ath79/dts/qca9531_qxwlan_e600g-v2-8m.dts +++ b/target/linux/ath79/dts/qca9531_qxwlan_e600g-v2-8m.dts @@ -9,15 +9,6 @@ compatible = "qxwlan,e600g-v2-8m", "qca,qca9531"; }; -&leds { - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 4 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; -}; - &partitions { partition@70000 { compatible = "denx,uimage"; @@ -26,6 +17,13 @@ }; }; +&wmac { + led { + led-sources = <4>; + led-active-low; + }; +}; + &pcie0 { /delete-node/ wifi@0,0; }; diff --git a/target/linux/ath79/dts/qca9531_telco_t1.dts b/target/linux/ath79/dts/qca9531_telco_t1.dts index 1cb40b3aae..af41dd66a5 100644 --- a/target/linux/ath79/dts/qca9531_telco_t1.dts +++ b/target/linux/ath79/dts/qca9531_telco_t1.dts @@ -45,13 +45,6 @@ gpios = <&gpio 16 GPIO_ACTIVE_LOW>; }; - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 0 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - led_rssi0: rssi0 { label = "blue:rssi0"; gpios = <&gpio 2 GPIO_ACTIVE_LOW>; @@ -154,6 +147,11 @@ nvmem-cells = <&cal_art_1000>; nvmem-cell-names = "calibration"; + + led { + led-sources = <0>; + led-active-low; + }; }; &pinmux { diff --git a/target/linux/ath79/dts/qca9531_tplink_tl-mr3420-v3.dts b/target/linux/ath79/dts/qca9531_tplink_tl-mr3420-v3.dts index ca005d3722..89bd3b105d 100644 --- a/target/linux/ath79/dts/qca9531_tplink_tl-mr3420-v3.dts +++ b/target/linux/ath79/dts/qca9531_tplink_tl-mr3420-v3.dts @@ -96,13 +96,6 @@ gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>; }; - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - usb { function = LED_FUNCTION_USB; color = ; @@ -212,6 +205,11 @@ nvmem-cells = <&macaddr_uboot_1fc00 0>, <&cal_art_1000>; nvmem-cell-names = "mac-address", "calibration"; + + led { + led-sources = <6>; + led-active-low; + }; }; &usb0 { diff --git a/target/linux/ath79/dts/qca9531_tplink_tl-mr6400-v1.dts b/target/linux/ath79/dts/qca9531_tplink_tl-mr6400-v1.dts index 0d8654b18c..e48eccdbcd 100644 --- a/target/linux/ath79/dts/qca9531_tplink_tl-mr6400-v1.dts +++ b/target/linux/ath79/dts/qca9531_tplink_tl-mr6400-v1.dts @@ -41,14 +41,6 @@ gpios = <&gpio 3 GPIO_ACTIVE_HIGH>; }; - /* D3 */ - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 11 GPIO_ACTIVE_HIGH>; - linux,default-trigger = "phy0tpt"; - }; - /* D2 */ led_power: power { function = LED_FUNCTION_POWER; @@ -170,6 +162,10 @@ nvmem-cells = <&macaddr_uboot_1fc00 0>, <&cal_art_1000>; nvmem-cell-names = "mac-address", "calibration"; + + led { + led-sources = <11>; + }; }; &usb0 { diff --git a/target/linux/ath79/dts/qca9531_tplink_tl-wr902ac-v1.dts b/target/linux/ath79/dts/qca9531_tplink_tl-wr902ac-v1.dts index 5acd59595b..99bf4ead1a 100644 --- a/target/linux/ath79/dts/qca9531_tplink_tl-wr902ac-v1.dts +++ b/target/linux/ath79/dts/qca9531_tplink_tl-wr902ac-v1.dts @@ -33,12 +33,6 @@ gpios = <&gpio 12 GPIO_ACTIVE_LOW>; }; - wlan2g { - label = "green:wlan2g"; - gpios = <&gpio 11 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - usb { function = LED_FUNCTION_USB; color = ; @@ -191,6 +185,11 @@ nvmem-cells = <&macaddr_info_8 0>, <&cal_art_1000>; nvmem-cell-names = "mac-address", "calibration"; + + led { + led-sources = <11>; + led-active-low; + }; }; &pcie0 { diff --git a/target/linux/ath79/dts/qca9533_comfast_cf-e110n-v2.dts b/target/linux/ath79/dts/qca9533_comfast_cf-e110n-v2.dts index 8331ec7247..51e4853c70 100644 --- a/target/linux/ath79/dts/qca9533_comfast_cf-e110n-v2.dts +++ b/target/linux/ath79/dts/qca9533_comfast_cf-e110n-v2.dts @@ -56,17 +56,6 @@ }; }; - ath9k-leds { - compatible = "gpio-leds"; - - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 0 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - }; - keys { compatible = "gpio-keys"; @@ -178,4 +167,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/qca9533_kuwfi_c910.dts b/target/linux/ath79/dts/qca9533_kuwfi_c910.dts index b1d40ddc05..f3648f26c4 100644 --- a/target/linux/ath79/dts/qca9533_kuwfi_c910.dts +++ b/target/linux/ath79/dts/qca9533_kuwfi_c910.dts @@ -55,12 +55,6 @@ gpios = <&gpio 1 GPIO_ACTIVE_LOW>; }; - wifi { - label = "white:wifi"; - gpios = <&gpio 2 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - internet_green { label = "green:internet"; gpios = <&gpio 3 GPIO_ACTIVE_LOW>; @@ -196,4 +190,9 @@ nvmem-cells = <&calibration_art_1000>; nvmem-cell-names = "calibration"; + + led { + led-sources = <2>; + led-active-low; + }; }; diff --git a/target/linux/ath79/dts/qca9533_mikrotik_routerboard-lhg-hb.dtsi b/target/linux/ath79/dts/qca9533_mikrotik_routerboard-lhg-hb.dtsi index a65c4fd8ed..56af08cd6d 100644 --- a/target/linux/ath79/dts/qca9533_mikrotik_routerboard-lhg-hb.dtsi +++ b/target/linux/ath79/dts/qca9533_mikrotik_routerboard-lhg-hb.dtsi @@ -38,13 +38,6 @@ gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 11 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - rssilow { label = "green:rssilow"; gpios = <&gpio 9 GPIO_ACTIVE_LOW>; @@ -75,6 +68,11 @@ status = "okay"; qca,no-eeprom; + + led { + led-sources = <11>; + led-active-low; + }; }; ð0 { diff --git a/target/linux/ath79/dts/qca9533_mikrotik_routerboard-mapl-2nd.dts b/target/linux/ath79/dts/qca9533_mikrotik_routerboard-mapl-2nd.dts index 8d18df8abb..6f495ea0df 100644 --- a/target/linux/ath79/dts/qca9533_mikrotik_routerboard-mapl-2nd.dts +++ b/target/linux/ath79/dts/qca9533_mikrotik_routerboard-mapl-2nd.dts @@ -33,13 +33,6 @@ gpios = <&gpio 4 GPIO_ACTIVE_HIGH>; }; - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 11 GPIO_ACTIVE_HIGH>; - linux,default-trigger = "phy0tpt"; - }; - led_user: user { label = "green:user"; gpios = <&gpio 14 GPIO_ACTIVE_HIGH>; @@ -51,6 +44,10 @@ status = "okay"; qca,no-eeprom; + + led { + led-sources = <11>; + }; }; ð0 { diff --git a/target/linux/ath79/dts/qca9533_mikrotik_routerboard-wap-2nd.dts b/target/linux/ath79/dts/qca9533_mikrotik_routerboard-wap-2nd.dts index 10841591b5..2a88324d5e 100644 --- a/target/linux/ath79/dts/qca9533_mikrotik_routerboard-wap-2nd.dts +++ b/target/linux/ath79/dts/qca9533_mikrotik_routerboard-wap-2nd.dts @@ -26,13 +26,6 @@ gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 11 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - led_user: user { label = "green:user"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; @@ -44,6 +37,11 @@ status = "okay"; qca,no-eeprom; + + led { + led-sources = <11>; + led-active-low; + }; }; ð0 { diff --git a/target/linux/ath79/dts/qca9533_mikrotik_routerboard-wapr-2nd.dts b/target/linux/ath79/dts/qca9533_mikrotik_routerboard-wapr-2nd.dts index 942030e4c9..1fa1507bb4 100644 --- a/target/linux/ath79/dts/qca9533_mikrotik_routerboard-wapr-2nd.dts +++ b/target/linux/ath79/dts/qca9533_mikrotik_routerboard-wapr-2nd.dts @@ -33,13 +33,6 @@ label = "green:rssihigh"; gpios = <&gpio 3 GPIO_ACTIVE_HIGH>; }; - - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 14 GPIO_ACTIVE_HIGH>; - linux,default-trigger = "phy0tpt"; - }; }; gpio-export { @@ -57,6 +50,10 @@ status = "okay"; qca,no-eeprom; + + led { + led-sources = <14>; + }; }; ð0 { diff --git a/target/linux/ath79/dts/qca9533_openmesh_om2p-v4.dtsi b/target/linux/ath79/dts/qca9533_openmesh_om2p-v4.dtsi index 28737c9e96..059c9de4c1 100644 --- a/target/linux/ath79/dts/qca9533_openmesh_om2p-v4.dtsi +++ b/target/linux/ath79/dts/qca9533_openmesh_om2p-v4.dtsi @@ -42,12 +42,6 @@ default-state = "on"; }; - wifi_green { - label = "green:wifi"; - gpios = <&gpio 2 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - wifi_yellow { label = "yellow:wifi"; gpios = <&gpio 3 GPIO_ACTIVE_LOW>; @@ -179,4 +173,9 @@ nvmem-cells = <&macaddr_art_0 2>, <&cal_art_1000>; nvmem-cell-names = "mac-address", "calibration"; + + led { + led-sources = <2>; + led-active-low; + }; }; diff --git a/target/linux/ath79/dts/qca9533_qca_ap143.dtsi b/target/linux/ath79/dts/qca9533_qca_ap143.dtsi index e7cb1f605d..1b2e8982e9 100644 --- a/target/linux/ath79/dts/qca9533_qca_ap143.dtsi +++ b/target/linux/ath79/dts/qca9533_qca_ap143.dtsi @@ -24,13 +24,6 @@ gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 12 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - lan1 { label = "green:lan1"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; @@ -112,6 +105,11 @@ &wmac { status = "okay"; + + led { + led-sources = <12>; + led-active-low; + }; }; &usb0 { diff --git a/target/linux/ath79/dts/qca9533_tplink_tl-wa801nd.dtsi b/target/linux/ath79/dts/qca9533_tplink_tl-wa801nd.dtsi index 377c37cc20..2d65bfcb14 100644 --- a/target/linux/ath79/dts/qca9533_tplink_tl-wa801nd.dtsi +++ b/target/linux/ath79/dts/qca9533_tplink_tl-wa801nd.dtsi @@ -29,13 +29,6 @@ gpios = <&gpio 11 GPIO_ACTIVE_HIGH>; }; - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 12 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - led_system: system { label = "green:system"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; @@ -138,4 +131,9 @@ nvmem-cells = <&macaddr_uboot_1fc00>, <&cal_art_1000>; nvmem-cell-names = "mac-address", "calibration"; + + led { + led-sources = <12>; + led-active-low; + }; }; diff --git a/target/linux/ath79/dts/qca9533_tplink_tl-wa850re-v2.dts b/target/linux/ath79/dts/qca9533_tplink_tl-wa850re-v2.dts index bec3a47aa0..4410ae33f5 100644 --- a/target/linux/ath79/dts/qca9533_tplink_tl-wa850re-v2.dts +++ b/target/linux/ath79/dts/qca9533_tplink_tl-wa850re-v2.dts @@ -59,13 +59,6 @@ label = "blue:signal5"; gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; - - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 13 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; }; keys { @@ -184,4 +177,9 @@ nvmem-cells = <&macaddr_info_8>, <&cal_art_1000>; nvmem-cell-names = "mac-address", "calibration"; + + led { + led-sources = <13>; + led-active-low; + }; }; diff --git a/target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi b/target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi index 29633865b6..715c879d1d 100644 --- a/target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi +++ b/target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi @@ -14,13 +14,6 @@ leds: leds { compatible = "gpio-leds"; - wifi { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 13 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - led_qss: qss { label = "green:qss"; gpios = <&gpio 3 GPIO_ACTIVE_LOW>; @@ -147,4 +140,9 @@ nvmem-cells = <&macaddr_uboot_1fc00 0>, <&cal_art_1000>; nvmem-cell-names = "mac-address", "calibration"; + + led { + led-sources = <13>; + led-active-low; + }; }; diff --git a/target/linux/ath79/dts/qca9533_tplink_tl-wr841hp-v3.dts b/target/linux/ath79/dts/qca9533_tplink_tl-wr841hp-v3.dts index c931e62607..1314d6a12e 100644 --- a/target/linux/ath79/dts/qca9533_tplink_tl-wr841hp-v3.dts +++ b/target/linux/ath79/dts/qca9533_tplink_tl-wr841hp-v3.dts @@ -21,12 +21,6 @@ leds { compatible = "gpio-leds"; - wifi { - label = "green:wifi"; - gpios = <&gpio 15 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - led_power: power { function = LED_FUNCTION_POWER; color = ; @@ -172,4 +166,9 @@ nvmem-cells = <&macaddr_uboot_1fc00 0>, <&cal_art_1000>; nvmem-cell-names = "mac-address", "calibration"; + + led { + led-sources = <15>; + led-active-low; + }; }; diff --git a/target/linux/ath79/dts/qca9533_tplink_tl-wr842n-v3.dts b/target/linux/ath79/dts/qca9533_tplink_tl-wr842n-v3.dts index 59863fd52c..f56c4e1164 100644 --- a/target/linux/ath79/dts/qca9533_tplink_tl-wr842n-v3.dts +++ b/target/linux/ath79/dts/qca9533_tplink_tl-wr842n-v3.dts @@ -28,13 +28,6 @@ default-state = "on"; }; - wifi { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 3 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - qss { label = "green:qss"; gpios = <&gpio 17 GPIO_ACTIVE_LOW>; @@ -183,4 +176,9 @@ nvmem-cells = <&macaddr_uboot_1fc00 0>, <&cal_art_1000>; nvmem-cell-names = "mac-address", "calibration"; + + led { + led-sources = <3>; + led-active-low; + }; }; diff --git a/target/linux/ath79/dts/qca9533_yuncore_a930.dts b/target/linux/ath79/dts/qca9533_yuncore_a930.dts index 518d88e62c..c20712e8cb 100644 --- a/target/linux/ath79/dts/qca9533_yuncore_a930.dts +++ b/target/linux/ath79/dts/qca9533_yuncore_a930.dts @@ -36,12 +36,6 @@ gpios = <&gpio 12 GPIO_ACTIVE_LOW>; default-state = "keep"; }; - - wlan2g { - label = "blue:wlan2g"; - gpios = <&gpio 13 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; }; }; @@ -121,4 +115,9 @@ nvmem-cells = <&cal_art_1000>; nvmem-cell-names = "calibration"; + + led { + led-sources = <13>; + led-active-low; + }; }; diff --git a/target/linux/ath79/dts/qca9533_yuncore_cpe830.dts b/target/linux/ath79/dts/qca9533_yuncore_cpe830.dts index 31b0f2c610..de1a9b135e 100644 --- a/target/linux/ath79/dts/qca9533_yuncore_cpe830.dts +++ b/target/linux/ath79/dts/qca9533_yuncore_cpe830.dts @@ -38,13 +38,6 @@ default-state = "on"; }; - wlan { - function = LED_FUNCTION_WLAN; - color = ; - gpios = <&gpio 12 GPIO_ACTIVE_HIGH>; - linux,default-trigger = "phy0tpt"; - }; - link1 { label = "green:signal0"; color = ; @@ -150,4 +143,8 @@ status = "okay"; nvmem-cells = <&cal_art_1000>; nvmem-cell-names = "calibration"; + + led { + led-sources = <12>; + }; };