diff --git a/patch/u-boot/v2025.04/board_odroidm2/001-odroid-m2-fix-for-ethernet.patch b/patch/u-boot/v2025.04/board_odroidm2/001-odroid-m2-fix-for-ethernet.patch index a1a4cb36c..60a545aa4 100644 --- a/patch/u-boot/v2025.04/board_odroidm2/001-odroid-m2-fix-for-ethernet.patch +++ b/patch/u-boot/v2025.04/board_odroidm2/001-odroid-m2-fix-for-ethernet.patch @@ -1,47 +1,59 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Milivoje Legenovic +Date: Sat, 22 Mar 2025 13:46:35 +0100 +Subject: odroidm2: Fix for ethernet warnings in dmesg output + +--- + dts/upstream/src/arm64/rockchip/rk3588s-odroid-m2.dts | 14 ++++++++-- + 1 file changed, 12 insertions(+), 2 deletions(-) + diff --git a/dts/upstream/src/arm64/rockchip/rk3588s-odroid-m2.dts b/dts/upstream/src/arm64/rockchip/rk3588s-odroid-m2.dts -index 8f034c6d49..ef0f428004 100644 +index 111111111111..222222222222 100644 --- a/dts/upstream/src/arm64/rockchip/rk3588s-odroid-m2.dts +++ b/dts/upstream/src/arm64/rockchip/rk3588s-odroid-m2.dts @@ -229,9 +229,9 @@ }; - + &gmac1 { - clock_in_out = "output"; + clock_in_out = "input"; - phy-handle = <&rgmii_phy1>; + phy-handle = <&rgmii_phy1>; - phy-mode = "rgmii-id"; + phy-mode = "rgmii"; - phy-supply = <&vcc_3v3_s0>; - pinctrl-names = "default"; - pinctrl-0 = <&gmac1_miim + phy-supply = <&vcc_3v3_s0>; + pinctrl-names = "default"; + pinctrl-0 = <&gmac1_miim @@ -241,6 +241,8 @@ - &gmac1_rgmii_bus - &gmac1_clkinout>; - status = "okay"; + &gmac1_rgmii_bus + &gmac1_clkinout>; + status = "okay"; + tx_delay = <0x3a>; + rx_delay = <0x3e>; }; - + &gpu { @@ -400,6 +402,8 @@ - rgmii_phy1: ethernet-phy@1 { - compatible = "ethernet-phy-id001c.c916"; - reg = <1>; + rgmii_phy1: ethernet-phy@1 { + compatible = "ethernet-phy-id001c.c916"; + reg = <1>; + pinctrl-names = "default"; + pinctrl-0 = <&rtl8211f_rst>; - reset-assert-us = <20000>; - reset-deassert-us = <100000>; - reset-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; + reset-assert-us = <20000>; + reset-deassert-us = <100000>; + reset-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; @@ -475,6 +479,12 @@ - }; - }; - + }; + }; + + rtl8211f { + rtl8211f_rst: rtl8211f-rst { + rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + - usb { - usb2_host_pwren: usb2-host-pwren { - rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; + usb { + usb2_host_pwren: usb2-host-pwren { + rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; +-- +Armbian +