diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2023-11-15 01:35:04 +0100 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2024-02-11 21:13:50 +0100 |
commit | 4d7b1f92a488cb37aa7005f6856340833520eb1d (patch) | |
tree | 49557ce7e6c77d79fdb116986b4abab1113d8aca /target | |
parent | 0ab4b9201e44f244383b7b77d6032b400c75ecb5 (diff) | |
download | openwrt-4d7b1f92a488cb37aa7005f6856340833520eb1d.tar.gz openwrt-4d7b1f92a488cb37aa7005f6856340833520eb1d.tar.bz2 openwrt-4d7b1f92a488cb37aa7005f6856340833520eb1d.zip |
qualcommax: apply special PHY LEDs configuration for Xiaomi AX3600
Xiaomi AX3600 apply a special PHY LEDs configuration where the unique
green LED for each qca807x PHY port is turned on also on 1000Mbps link.
Apply this special configuration to reflect original implementation.
Also enable CONFIG_PHYLIB_LEDS to actually expose the PHY LEDs if
defined in DT.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8071-ax3600.dts | 57 | ||||
-rw-r--r-- | target/linux/qualcommax/ipq807x/base-files/etc/board.d/01_leds | 8 |
2 files changed, 64 insertions, 1 deletions
diff --git a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8071-ax3600.dts b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8071-ax3600.dts index f3e82e2251..c6889df25d 100644 --- a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8071-ax3600.dts +++ b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8071-ax3600.dts @@ -4,6 +4,7 @@ /dts-v1/; #include "ipq8071-ax3600.dtsi" +#include <dt-bindings/leds/common.h> / { model = "Xiaomi AX3600"; @@ -71,3 +72,59 @@ &wifi { qcom,ath11k-calibration-variant = "Xiaomi-AX3600"; }; + +&qca8075_1 { + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = <LED_COLOR_ID_GREEN>; + function = LED_FUNCTION_WAN; + default-state = "keep"; + }; + }; +}; + +&qca8075_2 { + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = <LED_COLOR_ID_GREEN>; + function = LED_FUNCTION_LAN; + default-state = "keep"; + }; + }; +}; + +&qca8075_3 { + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = <LED_COLOR_ID_GREEN>; + function = LED_FUNCTION_LAN; + default-state = "keep"; + }; + }; +}; + +&qca8075_4 { + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = <LED_COLOR_ID_GREEN>; + function = LED_FUNCTION_LAN; + 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 f3e67311c3..fc965bc445 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 @@ -32,8 +32,14 @@ netgear,wax630) ucidef_set_led_netdev "lan1" "LAN1" "lan1:green" "lan1" ucidef_set_led_netdev "lan2" "LAN2" "lan2:green" "lan2" ;; -redmi,ax6|\ +redmi,ax6) + ucidef_set_led_netdev "wan" "WAN" "blue:network" "wan" + ;; xiaomi,ax3600) + ucidef_set_led_netdev "wan-port-link" "WAN-PORT-LINK" "90000.mdio-1:01:green:wan" "wan" "tx rx link_10 link_100 link_1000" + ucidef_set_led_netdev "lan1-port-link" "LAN1-PORT-LINK" "90000.mdio-1:02:green:lan" "lan1" "tx rx link_10 link_100 link_1000" + ucidef_set_led_netdev "lan2-port-link" "LAN2-PORT-LINK" "90000.mdio-1:03:green:lan" "lan2" "tx rx link_10 link_100 link_1000" + ucidef_set_led_netdev "lan3-port-link" "LAN3-PORT-LINK" "90000.mdio-1:04:green:lan" "lan3" "tx rx link_10 link_100 link_1000" ucidef_set_led_netdev "wan" "WAN" "blue:network" "wan" ;; xiaomi,ax9000) |