rockchip: switch to use upstream phy led binding for mrkaio m68s

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

View File

@@ -16,7 +16,8 @@ led_set() {
boot() {
case "$(board_name)" in
lunzn,fastrhino-r68s)
lunzn,fastrhino-r68s|\
ezpro,mrkaio-m68s)
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" "0"

View File

@@ -111,7 +111,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";
};
};
};
};
@@ -119,7 +137,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_WAN;
default-state = "keep";
};
led@2 {
reg = <2>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_WAN;
default-state = "keep";
};
};
};
};