[PATCH 2/2] sunxi: cortexa7: fix ethernet on a20-olinuxino-lime2

Petr Štetiar ynezz at true.cz
Tue Mar 8 05:06:17 PST 2022


This reverts upstream commit 55dd7e059098ce4bd0a55c251cb78e74604abb57 as
it breaks network on my A20-olinuxino-lime2 hardware revision "K" which
has Micrel KSZ9031RNXCC-TR Gigabit PHY. Bastien has probably some
previous hardware revisions which were based on RTL8211E-VB-CG1 PHY and
thus this fix was working on his board.

Fixes #9153
References: https://lore.kernel.org/all/20220308125531.27305-1-ynezz@true.cz/
Signed-off-by: Petr Štetiar <ynezz at true.cz>
---
 ...un7i-A20-olinuxino-lime2-Fix-etherne.patch | 37 +++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 target/linux/sunxi/patches-5.10/500-Revert-ARM-dts-sun7i-A20-olinuxino-lime2-Fix-etherne.patch

diff --git a/target/linux/sunxi/patches-5.10/500-Revert-ARM-dts-sun7i-A20-olinuxino-lime2-Fix-etherne.patch b/target/linux/sunxi/patches-5.10/500-Revert-ARM-dts-sun7i-A20-olinuxino-lime2-Fix-etherne.patch
new file mode 100644
index 000000000000..d776e62ab5ab
--- /dev/null
+++ b/target/linux/sunxi/patches-5.10/500-Revert-ARM-dts-sun7i-A20-olinuxino-lime2-Fix-etherne.patch
@@ -0,0 +1,37 @@
+From faad85a9b02227d40d02324190add26e2c8ac276 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20=C5=A0tetiar?= <ynezz at true.cz>
+Date: Tue, 8 Mar 2022 13:45:44 +0100
+Subject: [PATCH] Revert "ARM: dts: sun7i: A20-olinuxino-lime2: Fix ethernet
+ phy-mode"
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+This reverts commit 55dd7e059098ce4bd0a55c251cb78e74604abb57 as it
+breaks network on my A20-olinuxino-lime2 hardware revision "K" which has
+Micrel KSZ9031RNXCC-TR Gigabit PHY. Bastien has probably some previous
+hardware revisions which were based on RTL8211E-VB-CG1 PHY and thus this
+fix was working on his board.
+
+Cc: stable at vger.kernel.org
+Cc: Bastien Roucariès <rouca at debian.org>
+References: https://github.com/openwrt/openwrt/issues/9153
+References: https://github.com/OLIMEX/OLINUXINO/blob/master/HARDWARE/A20-OLinuXino-LIME2/hardware_revision_changes_log.txt
+Signed-off-by: Petr Štetiar <ynezz at true.cz>
+---
+ arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts
+index ecb91fb899ff..8077f1716fbc 100644
+--- a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts
++++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts
+@@ -112,7 +112,7 @@ &gmac {
+ 	pinctrl-names = "default";
+ 	pinctrl-0 = <&gmac_rgmii_pins>;
+ 	phy-handle = <&phy1>;
+-	phy-mode = "rgmii-id";
++	phy-mode = "rgmii";
+ 	status = "okay";
+ };
+ 



More information about the openwrt-devel mailing list