diff --git a/target/linux/rockchip/armv8/base-files/etc/init.d/phy-leds b/target/linux/rockchip/armv8/base-files/etc/init.d/phy-leds index a50dd44ede..a4a5a0e12b 100755 --- a/target/linux/rockchip/armv8/base-files/etc/init.d/phy-leds +++ b/target/linux/rockchip/armv8/base-files/etc/init.d/phy-leds @@ -71,5 +71,23 @@ boot() { led_set "enp1s0-1::lan" "link_10 link_100 link_1000" "0" led_set "enp1s0-1::lan" "rx tx" "1" ;; + lyt,t68m) + led_set "stmmac-0:01:amber:lan" "trigger" "netdev" + led_set "stmmac-0:01:amber:lan" "device_name" "lan1" + led_set "stmmac-0:01:amber:lan" "link_10 link_100 link_1000" "0" + led_set "stmmac-0:01:amber:lan" "rx tx" "1" + led_set "stmmac-0:01:green:lan" "trigger" "netdev" + led_set "stmmac-0:01:green:lan" "device_name" "lan1" + led_set "stmmac-0:01:green:lan" "link_10 link_100 link_1000" "1" + led_set "stmmac-0:01:green:lan" "rx tx" "0" + led_set "stmmac-1:01:amber:lan" "trigger" "netdev" + led_set "stmmac-1:01:amber:lan" "device_name" "lan2" + led_set "stmmac-1:01:amber:lan" "link_10 link_100 link_1000" "0" + led_set "stmmac-1:01:amber:lan" "rx tx" "1" + led_set "stmmac-1:01:green:lan" "trigger" "netdev" + led_set "stmmac-1:01:green:lan" "device_name" "lan2" + led_set "stmmac-1:01:green:lan" "link_10 link_100 link_1000" "1" + led_set "stmmac-1:01:green:lan" "rx tx" "0" + ;; esac } diff --git a/target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3568-lyt-t68m.dts b/target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3568-lyt-t68m.dts index d8a2f9dc99..b672418947 100644 --- a/target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3568-lyt-t68m.dts +++ b/target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3568-lyt-t68m.dts @@ -523,7 +523,25 @@ rgmii_phy0: ethernet-phy@0 { compatible = "ethernet-phy-ieee802.3-c22"; reg = <0>; - realtek,led-data = <0x6d60>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_LAN; + default-state = "keep"; + }; + + led@2 { + reg = <2>; + color = ; + function = LED_FUNCTION_LAN; + default-state = "keep"; + }; + }; }; }; @@ -531,7 +549,25 @@ rgmii_phy1: ethernet-phy@0 { compatible = "ethernet-phy-ieee802.3-c22"; reg = <0>; - realtek,led-data = <0x6d60>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_LAN; + default-state = "keep"; + }; + + led@2 { + reg = <2>; + color = ; + function = LED_FUNCTION_LAN; + default-state = "keep"; + }; + }; }; };