diff --git a/0015-arm64-dts-meson-odroidc2-readd-PHY-.patch b/0015-arm64-dts-meson-odroidc2-readd-PHY-.patch new file mode 100644 index 0000000..ee0d739 --- /dev/null +++ b/0015-arm64-dts-meson-odroidc2-readd-PHY-.patch @@ -0,0 +1,36 @@ +From 51704b586d230b6903a69d02ffe2dc99a251a792 Mon Sep 17 00:00:00 2001 +From: Stefan Agner +Date: Thu, 8 Apr 2021 10:25:28 +0200 +Subject: [PATCH] arm64: dts: meson: odroidc2: readd PHY reset properties + +The sync of the device tree and dt-bindings from Linux v5.6-rc2 +11a48a5a18c6 ("Linux 5.6-rc2") causes Ethernet to break on some +ODROID-C2. The PHY seems to need proper reset timing to be functional +in U-Boot and Linux afterwards. Readd the old PHY reset bindings for +dwmac until we support the new bindings in the PHY node. + +Fixes: dd5f2351e99a ("arm64: dts: meson: sync dt and bindings from v5.6-rc2") +Signed-off-by: Stefan Agner +Signed-off-by: Neil Armstrong +(cherry picked from commit a246e21351778a93805b3f52302a420f4b268601) +--- + arch/arm/dts/meson-gxbb-odroidc2-u-boot.dtsi | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/arch/arm/dts/meson-gxbb-odroidc2-u-boot.dtsi b/arch/arm/dts/meson-gxbb-odroidc2-u-boot.dtsi +index 90087b00db..5a2be8171e 100644 +--- a/arch/arm/dts/meson-gxbb-odroidc2-u-boot.dtsi ++++ b/arch/arm/dts/meson-gxbb-odroidc2-u-boot.dtsi +@@ -29,6 +29,12 @@ + }; + }; + ++ðmac { ++ snps,reset-gpio = <&gpio GPIOZ_14 0>; ++ snps,reset-delays-us = <0 10000 1000000>; ++ snps,reset-active-low; ++}; ++ + &usb0 { + status = "disabled"; + }; diff --git a/u-boot.changes b/u-boot.changes index e268b4d..6bc0f8e 100644 --- a/u-boot.changes +++ b/u-boot.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Wed Jun 9 10:41:11 UTC 2021 - Matthias Brugger + +Fix Ethernet PHY initialization on OdroidC2 (boo#1187095) + +Patch queue updated from https://github.com/openSUSE/u-boot.git tumbleweed-2021.04 +* Patches added: + 0015-arm64-dts-meson-odroidc2-readd-PHY-.patch + ------------------------------------------------------------------- Tue May 18 20:35:23 UTC 2021 - Stefan BrĂ¼ns diff --git a/u-boot.spec b/u-boot.spec index e45c6a8..2989e41 100644 --- a/u-boot.spec +++ b/u-boot.spec @@ -234,6 +234,7 @@ Patch0011: 0011-Disable-CONFIG_CMD_BTRFS-in-xilinx_.patch Patch0012: 0012-smbios-Fix-table-when-no-string-is-.patch Patch0013: 0013-configs-rpi-Enable-SMBIOS-sysinfo-d.patch Patch0014: 0014-fs-btrfs-fix-the-false-alert-of-dec.patch +Patch0015: 0015-arm64-dts-meson-odroidc2-readd-PHY-.patch # Patches: end BuildRequires: bc BuildRequires: bison