Fix ODROID-C2 Ethernet on some boards (#1202) (#1305)

This commit is contained in:
Stefan Agner 2021-04-08 14:03:46 +02:00
parent dd4918c855
commit 342b8efe75
No known key found for this signature in database
GPG Key ID: AE01353D1E44747D

View File

@ -0,0 +1,40 @@
From 825686fdd92e44c4a136f8105e91fb1e05f4c64b Mon Sep 17 00:00:00 2001
Message-Id: <825686fdd92e44c4a136f8105e91fb1e05f4c64b.1617883279.git.stefan@agner.ch>
In-Reply-To: <526ccae8321b9b48925c44999611c3c5a374328e.1617883279.git.stefan@agner.ch>
References: <526ccae8321b9b48925c44999611c3c5a374328e.1617883279.git.stefan@agner.ch>
From: Stefan Agner <stefan@agner.ch>
Date: Thu, 1 Apr 2021 14:33:57 +0200
Subject: [PATCH 4/4] 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 <stefan@agner.ch>
---
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 484b40504d..f11b8fa591 100644
--- a/arch/arm/dts/meson-gxbb-odroidc2-u-boot.dtsi
+++ b/arch/arm/dts/meson-gxbb-odroidc2-u-boot.dtsi
@@ -6,6 +6,12 @@
#include "meson-gx-u-boot.dtsi"
+&ethmac {
+ snps,reset-gpio = <&gpio GPIOZ_14 0>;
+ snps,reset-delays-us = <0 10000 1000000>;
+ snps,reset-active-low;
+};
+
&usb0 {
status = "disabled";
};
--
2.31.1