From: Rosen Penev Date: Tue, 12 Aug 2025 18:22:27 +0000 (-0700) Subject: mpc85xx: tl-wdr4900: add back 5ghz LED X-Git-Tag: v24.10.3~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d193d9b6549bd63117e17e22895b3cfb6de562b;p=thirdparty%2Fopenwrt.git mpc85xx: tl-wdr4900: add back 5ghz LED In the conversion to dts, qca,led-pin was used for both interfaces. Unfortunately, it's mutually exclusive with gpio-controller which made it not do anything. Fixes: 949e1a0 ("mpc85xx: tl-wdr4900: move platform code to dts") Signed-off-by: Rosen Penev Link: https://github.com/openwrt/openwrt/pull/19758 Signed-off-by: Robert Marko (cherry picked from commit cc0ff28f235a14283138559249d413b7aa2a9a4d) --- diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts index 4fd9767d2d4..861f4511de4 100644 --- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts +++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts @@ -395,18 +395,25 @@ compatible = "gpio-leds"; led-0 { + gpios = <&ath9k 0 GPIO_ACTIVE_LOW>; + color = ; + function = LED_FUNCTION_WLAN_5GHZ; + linux,default-trigger = "phy0tpt"; + }; + + led-1 { gpios = <&ath9k 1 GPIO_ACTIVE_LOW>; color = ; function = LED_FUNCTION_WPS; }; - system_green: led-1 { + system_green: led-2 { gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; color = ; function = LED_FUNCTION_STATUS; }; - led-2 { + led-3 { gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; color = ; function = LED_FUNCTION_USB; @@ -415,7 +422,7 @@ trigger-sources = <&hub_port1>; }; - led-3 { + led-4 { gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; color = ; function = LED_FUNCTION_USB;