[openwrt/openwrt] qualcommax: AW1000: add qca8081 PHY LED configuration

LEDE Commits lede-commits at lists.infradead.org
Fri Feb 16 04:50:28 PST 2024


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/ee047edd2a4cda99d69480e8ccdfe2ec9d84b0bc

commit ee047edd2a4cda99d69480e8ccdfe2ec9d84b0bc
Author: Chukun Pan <amadeus at jmu.edu.cn>
AuthorDate: Tue Jan 30 23:25:27 2024 +0800

    qualcommax: AW1000: add qca8081 PHY LED configuration
    
    Since we can configure the PHY LED of the qca8081,
    add a configuration for this device.
    
    Signed-off-by: Chukun Pan <amadeus at jmu.edu.cn>
    Reviewed-by: Robert Marko <robimarko at gmail.com>
---
 .../files/arch/arm64/boot/dts/qcom/ipq8072-aw1000.dts       | 13 +++++++++++++
 .../linux/qualcommax/ipq807x/base-files/etc/board.d/01_leds |  1 +
 2 files changed, 14 insertions(+)

diff --git a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-aw1000.dts b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-aw1000.dts
index 10799d1986..c85e9f1993 100644
--- a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-aw1000.dts
+++ b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-aw1000.dts
@@ -280,6 +280,19 @@
 		reg = <28>;
 		reset-deassert-us = <10000>;
 		reset-gpios = <&tlmm 64 GPIO_ACTIVE_LOW>;
+
+		leds {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			led at 2 {
+				reg = <2>;
+				active-low;
+				color = <LED_COLOR_ID_GREEN>;
+				function = LED_FUNCTION_WAN;
+				default-state = "keep";
+			};
+		};
 	};
 };
 
diff --git a/target/linux/qualcommax/ipq807x/base-files/etc/board.d/01_leds b/target/linux/qualcommax/ipq807x/base-files/etc/board.d/01_leds
index 8bf1ea8fa2..d6f5db7093 100644
--- a/target/linux/qualcommax/ipq807x/base-files/etc/board.d/01_leds
+++ b/target/linux/qualcommax/ipq807x/base-files/etc/board.d/01_leds
@@ -9,6 +9,7 @@ case "$board" in
 arcadyan,aw1000)
 	ucidef_set_led_netdev "5g" "5G" "green:5g" "wwan0"
 	ucidef_set_led_netdev "wan" "WAN" "green:internet" "wan"
+	ucidef_set_led_netdev "wan-port-link" "WAN-PORT-LINK" "90000.mdio-1:1c:green:wan" "wan" "tx rx link_10 link_100 link_1000 link_2500"
 	;;
 dynalink,dl-wrx36)
 	ucidef_set_led_netdev "wan-port-link-green" "WAN-PORT-LINK-GREEN" "90000.mdio-1:1c:green:wan" "wan" "link_2500"




More information about the lede-commits mailing list