[PATCH] mediatek: fix Ethernet support on UniElec U7623

David Woodhouse dwmw2 at infradead.org
Sun Jul 12 19:53:26 EDT 2020


The definition of the switch in the device-tree was not correct. Make it
look more like the Banana Pi R2, which works.

Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 .../0227-arm-dts-Add-Unielec-U7623-DTS.patch       | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/target/linux/mediatek/patches-5.4/0227-arm-dts-Add-Unielec-U7623-DTS.patch b/target/linux/mediatek/patches-5.4/0227-arm-dts-Add-Unielec-U7623-DTS.patch
index 255445360f..11c674dba6 100644
--- a/target/linux/mediatek/patches-5.4/0227-arm-dts-Add-Unielec-U7623-DTS.patch
+++ b/target/linux/mediatek/patches-5.4/0227-arm-dts-Add-Unielec-U7623-DTS.patch
@@ -44,7 +44,7 @@ Subject: [PATCH] arm: dts: Add Unielec U7623 DTS
 +};
 --- /dev/null
 +++ b/arch/arm/boot/dts/mt7623a-unielec-u7623-02-emmc.dtsi
-@@ -0,0 +1,349 @@
+@@ -0,0 +1,343 @@
 +/*
 + * Copyright 2018 Kristian Evensen <kristian.evensen at gmail.com>
 + *
@@ -141,12 +141,6 @@ Subject: [PATCH] arm: dts: Add Unielec U7623 DTS
 +			default-state = "off";
 +		};
 +	};
-+
-+	mt7530: switch at 0 {
-+		compatible = "mediatek,mt7530";
-+		#address-cells = <1>;
-+		#size-cells = <0>;
-+	};
 +};
 +
 +&crypto {
@@ -171,9 +165,9 @@ Subject: [PATCH] arm: dts: Add Unielec U7623 DTS
 +	mdio: mdio-bus {
 +		#address-cells = <1>;
 +		#size-cells = <0>;
-+		phy5: ethernet-phy at 5 {
-+			reg = <5>;
-+			phy-mode = "rgmii-rxid";
++
++		mt7530: switch at 0 {
++			compatible = "mediatek,mt7530";
 +		};
 +	};
 +};
-- 
2.26.2




More information about the openwrt-devel mailing list