rockchip: switch to use upstream phy led binding for lyt t68m

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit bdfbc31db1a3dc7d3b59769e5ed0636737b0ec63)
This commit is contained in:
Tianling Shen
2025-04-15 18:46:55 +08:00
parent f2f3871bb3
commit e7d12e5718
2 changed files with 56 additions and 2 deletions

View File

@@ -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
}

View File

@@ -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 = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_LAN;
default-state = "keep";
};
led@2 {
reg = <2>;
color = <LED_COLOR_ID_GREEN>;
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 = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_LAN;
default-state = "keep";
};
led@2 {
reg = <2>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
default-state = "keep";
};
};
};
};