From 02c320a0cf1e794f8ea129e7790c8fce8a7b8a2f Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Fri, 25 Oct 2024 21:20:26 +0800 Subject: [PATCH] mediatek: minor fixes for openembed som7981 (#12598) Signed-off-by: Tianling Shen --- .../mediatek/dts/mt7981b-openembed-som7981.dts | 16 ++++++++-------- .../filogic/base-files/etc/board.d/01_leds | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/target/linux/mediatek/dts/mt7981b-openembed-som7981.dts b/target/linux/mediatek/dts/mt7981b-openembed-som7981.dts index 777b7f269ecd97..024fb383685e58 100644 --- a/target/linux/mediatek/dts/mt7981b-openembed-som7981.dts +++ b/target/linux/mediatek/dts/mt7981b-openembed-som7981.dts @@ -45,12 +45,12 @@ compatible = "gpio-leds"; led-0 { - label = "amber:lan"; + label = "green:lan"; gpios = <&pio 8 GPIO_ACTIVE_LOW>; }; led-1 { - label = "green:lan"; + label = "amber:lan"; gpios = <&pio 13 GPIO_ACTIVE_LOW>; }; @@ -120,11 +120,11 @@ compatible = "ethernet-phy-ieee802.3-c45"; phy-mode = "2500base-x"; reset-gpios = <&pio 14 GPIO_ACTIVE_LOW>; - reset-assert-us = <10000>; - reset-deassert-us = <50000>; + reset-assert-us = <15000>; + reset-deassert-us = <68000>; realtek,aldps-enable; realtek,led-link-select = <0x0 0xa7 0xa7>; - realtek,led-act-select = <0x2612>; + realtek,led-act-select = <0x2614>; realtek,led-polarity-select = <0x63>; }; }; @@ -231,14 +231,14 @@ uart1_pins: uart1-pins { mux { - function = "uart1"; - groups = "uart1_1_tx_rx"; + function = "uart"; + groups = "uart1_3"; }; }; uart2_pins: uart2-pins { mux { - function = "uart2"; + function = "uart"; groups = "uart2_0_tx_rx"; }; }; diff --git a/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds b/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds index 38a3e8c2679d3f..cfbbac13abb4aa 100644 --- a/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds +++ b/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds @@ -40,8 +40,8 @@ nokia,ea0326gmp) ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1" ;; openembed,som7981) - ucidef_set_led_netdev "lanact" "LANACT" "green:lan" "eth1" "rx tx" - ucidef_set_led_netdev "lanlink" "LANLINK" "amber:lan" "eth1" "link" + ucidef_set_led_netdev "lanact" "LANACT" "amber:lan" "eth1" "rx tx" + ucidef_set_led_netdev "lanlink" "LANLINK" "green:lan" "eth1" "link" ucidef_set_led_netdev "wlan2g" "WLAN2G" "green:wlan2g" "wlan0" ucidef_set_led_netdev "wlan5g" "WLAN5G" "red:wlan5g" "wlan1" ;;