[openwrt/openwrt] qualcommax: dl-wrx36: fix 2.5G port LED-s

LEDE Commits lede-commits at lists.infradead.org
Sat Jan 18 07:10:05 PST 2025


robimarko pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/a1c781675a16d26eebb70fc3410ef6b8728c109c

commit a1c781675a16d26eebb70fc3410ef6b8728c109c
Author: Robert Marko <robimarko at gmail.com>
AuthorDate: Sat Jan 18 12:25:01 2025 +0100

    qualcommax: dl-wrx36: fix 2.5G port LED-s
    
    Currently, 2.5G port LED-s on Dynalink are incorrectly configured and thus
    they will light up all of the time.
    
    So, lets fix this by:
    1. Current green LED is actually yellow, change the color
    2. Fix its polarity as its actually active-low
    3. The yellow LED that was registered as being connected to LED_1 pin on
    the PHY is not actually connected at all, so remove it.
    4. The actual green LED is connected to LED_2 on the PHY so add it.
    
    Fixes: 75ad5c24142a ("qualcommax: switch to qca8081 upstream PHY driver")
    Fixes: #14502
    Link: https://github.com/openwrt/openwrt/pull/17656
    Signed-off-by: Robert Marko <robimarko at gmail.com>
    (cherry picked from commit 2d077913cd53cad33123c8a9bf6da8a1c5576c69)
---
 .../files/arch/arm64/boot/dts/qcom/ipq8072-dl-wrx36.dts          | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-dl-wrx36.dts b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-dl-wrx36.dts
index c5c089c00f..d25bc90153 100644
--- a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-dl-wrx36.dts
+++ b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-dl-wrx36.dts
@@ -178,14 +178,15 @@
 
 			led at 0 {
 				reg = <0>;
-				color = <LED_COLOR_ID_GREEN>;
+				color = <LED_COLOR_ID_YELLOW>;
 				function = LED_FUNCTION_WAN;
 				default-state = "keep";
+				active-low;
 			};
 
-			led at 1 {
-				reg = <1>;
-				color = <LED_COLOR_ID_YELLOW>;
+			led at 2 {
+				reg = <2>;
+				color = <LED_COLOR_ID_GREEN>;
 				function = LED_FUNCTION_WAN;
 				default-state = "keep";
 			};




More information about the lede-commits mailing list