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 fcfe1f2f0c..746bcfafba 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 @@ -54,6 +54,16 @@ boot() { led_set "enp1s0-2::lan" "link_10 link_100 link_1000" "0" led_set "enp1s0-2::lan" "rx tx" "1" ;; + friendlyarm,nanopi-r5s) + led_set "stmmac-0:01:amber:lan" "trigger" "netdev" + led_set "stmmac-0:01:amber:lan" "device_name" "eth0" + led_set "stmmac-0:01:amber:lan" "link_10 link_100 link_1000" "1" + led_set "stmmac-0:01:amber:lan" "rx tx" "0" + led_set "stmmac-0:01:green:lan" "trigger" "netdev" + led_set "stmmac-0:01:green:lan" "device_name" "eth0" + led_set "stmmac-0:01:green:lan" "link_10 link_100 link_1000" "0" + led_set "stmmac-0:01:green:lan" "rx tx" "1" + ;; huake,guangmiao-g4c) led_set "enp1s0-0::lan" "link_10 link_100 link_1000" "1" led_set "enp1s0-0::lan" "rx tx" "0" diff --git a/target/linux/rockchip/patches-6.6/610-arm64-rockchip-add-OF-node-for-eth.patch b/target/linux/rockchip/patches-6.6/610-arm64-rockchip-add-OF-node-for-eth.patch index 323a877411..724913eed7 100644 --- a/target/linux/rockchip/patches-6.6/610-arm64-rockchip-add-OF-node-for-eth.patch +++ b/target/linux/rockchip/patches-6.6/610-arm64-rockchip-add-OF-node-for-eth.patch @@ -320,15 +320,33 @@ Signed-off-by: David Bauer &pinctrl { --- a/arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dts -@@ -78,6 +78,7 @@ +@@ -78,6 +78,25 @@ reg = <1>; pinctrl-0 = <ð_phy0_reset_pin>; pinctrl-names = "default"; -+ 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"; ++ }; ++ }; }; }; -@@ -85,6 +86,19 @@ +@@ -85,6 +104,19 @@ num-lanes = <1>; reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>; status = "okay"; @@ -348,7 +366,7 @@ Signed-off-by: David Bauer }; &pcie30phy { -@@ -97,6 +111,19 @@ +@@ -97,6 +129,19 @@ reset-gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>; vpcie3v3-supply = <&vcc3v3_pcie>; status = "okay";