aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-mediatek/patches/101-21-arm-dts-medaitek-convert-gmac-link-mode-to-2500base-.patch
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2023-07-22 18:55:32 +0100
committerDaniel Golle <daniel@makrotopia.org>2023-08-07 16:31:27 +0100
commitb7e9445d6dcea9c4a6cd5f017a797ccc269c8c7a (patch)
treef5dd9278a42cc46723e31fa509e4c35e048b3263 /package/boot/uboot-mediatek/patches/101-21-arm-dts-medaitek-convert-gmac-link-mode-to-2500base-.patch
parent6553b1caed792ff3d3eed36be7ccb2162bbe9945 (diff)
downloadupstream-b7e9445d6dcea9c4a6cd5f017a797ccc269c8c7a.tar.gz
upstream-b7e9445d6dcea9c4a6cd5f017a797ccc269c8c7a.tar.bz2
upstream-b7e9445d6dcea9c4a6cd5f017a797ccc269c8c7a.zip
uboot-mediatek: add patches for MT7988 and builds for RFB
Import pending patches adding support for MT7988 and provide builds for the reference board for all possible boot media. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package/boot/uboot-mediatek/patches/101-21-arm-dts-medaitek-convert-gmac-link-mode-to-2500base-.patch')
-rw-r--r--package/boot/uboot-mediatek/patches/101-21-arm-dts-medaitek-convert-gmac-link-mode-to-2500base-.patch214
1 files changed, 214 insertions, 0 deletions
diff --git a/package/boot/uboot-mediatek/patches/101-21-arm-dts-medaitek-convert-gmac-link-mode-to-2500base-.patch b/package/boot/uboot-mediatek/patches/101-21-arm-dts-medaitek-convert-gmac-link-mode-to-2500base-.patch
new file mode 100644
index 0000000000..27612fd9e4
--- /dev/null
+++ b/package/boot/uboot-mediatek/patches/101-21-arm-dts-medaitek-convert-gmac-link-mode-to-2500base-.patch
@@ -0,0 +1,214 @@
+From 64ef7e977767e3b1305fb94a5169d8b7d3b19b6c Mon Sep 17 00:00:00 2001
+From: Weijie Gao <weijie.gao@mediatek.com>
+Date: Wed, 19 Jul 2023 17:17:18 +0800
+Subject: [PATCH 21/29] arm: dts: mediatek: convert gmac link mode to
+ 2500base-x
+
+Now that individual 2.5Gbps SGMII support has been added to
+mtk-eth, all boards that use 2.5Gbps link with mt7531 must be
+converted to use "2500base-x" instead of "sgmii".
+
+Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
+[also convert BPi-R3]
+Signed-off-by: Daniel Golle <daniel@makrotopia.org>
+---
+ arch/arm/dts/mt7622-bananapi-bpi-r64.dts | 4 ++--
+ arch/arm/dts/mt7622-rfb.dts | 4 ++--
+ arch/arm/dts/mt7629-rfb.dts | 4 ++--
+ arch/arm/dts/mt7981-emmc-rfb.dts | 4 ++--
+ arch/arm/dts/mt7981-rfb.dts | 4 ++--
+ arch/arm/dts/mt7981-sd-rfb.dts | 4 ++--
+ arch/arm/dts/mt7986a-bpi-r3-sd.dts | 4 ++--
+ arch/arm/dts/mt7986a-rfb.dts | 4 ++--
+ arch/arm/dts/mt7986a-sd-rfb.dts | 4 ++--
+ arch/arm/dts/mt7986b-rfb.dts | 4 ++--
+ arch/arm/dts/mt7986b-sd-rfb.dts | 4 ++--
+ 11 files changed, 22 insertions(+), 22 deletions(-)
+
+--- a/arch/arm/dts/mt7622-bananapi-bpi-r64.dts
++++ b/arch/arm/dts/mt7622-bananapi-bpi-r64.dts
+@@ -224,12 +224,12 @@
+ &eth {
+ status = "okay";
+ mediatek,gmac-id = <0>;
+- phy-mode = "sgmii";
++ phy-mode = "2500base-x";
+ mediatek,switch = "mt7531";
+ reset-gpios = <&gpio 54 GPIO_ACTIVE_HIGH>;
+
+ fixed-link {
+- speed = <1000>;
++ speed = <2500>;
+ full-duplex;
+ };
+ };
+--- a/arch/arm/dts/mt7622-rfb.dts
++++ b/arch/arm/dts/mt7622-rfb.dts
+@@ -240,12 +240,12 @@
+ &eth {
+ status = "okay";
+ mediatek,gmac-id = <0>;
+- phy-mode = "sgmii";
++ phy-mode = "2500base-x";
+ mediatek,switch = "mt7531";
+ reset-gpios = <&gpio 54 GPIO_ACTIVE_HIGH>;
+
+ fixed-link {
+- speed = <1000>;
++ speed = <2500>;
+ full-duplex;
+ };
+ };
+--- a/arch/arm/dts/mt7629-rfb.dts
++++ b/arch/arm/dts/mt7629-rfb.dts
+@@ -25,12 +25,12 @@
+ &eth {
+ status = "okay";
+ mediatek,gmac-id = <0>;
+- phy-mode = "sgmii";
++ phy-mode = "2500base-x";
+ mediatek,switch = "mt7531";
+ reset-gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
+
+ fixed-link {
+- speed = <1000>;
++ speed = <2500>;
+ full-duplex;
+ };
+ };
+--- a/arch/arm/dts/mt7981-emmc-rfb.dts
++++ b/arch/arm/dts/mt7981-emmc-rfb.dts
+@@ -46,12 +46,12 @@
+ &eth {
+ status = "okay";
+ mediatek,gmac-id = <0>;
+- phy-mode = "sgmii";
++ phy-mode = "2500base-x";
+ mediatek,switch = "mt7531";
+ reset-gpios = <&gpio 39 GPIO_ACTIVE_HIGH>;
+
+ fixed-link {
+- speed = <1000>;
++ speed = <2500>;
+ full-duplex;
+ };
+ };
+--- a/arch/arm/dts/mt7981-rfb.dts
++++ b/arch/arm/dts/mt7981-rfb.dts
+@@ -37,12 +37,12 @@
+ &eth {
+ status = "okay";
+ mediatek,gmac-id = <0>;
+- phy-mode = "sgmii";
++ phy-mode = "2500base-x";
+ mediatek,switch = "mt7531";
+ reset-gpios = <&gpio 39 GPIO_ACTIVE_HIGH>;
+
+ fixed-link {
+- speed = <1000>;
++ speed = <2500>;
+ full-duplex;
+ };
+ };
+--- a/arch/arm/dts/mt7981-sd-rfb.dts
++++ b/arch/arm/dts/mt7981-sd-rfb.dts
+@@ -46,12 +46,12 @@
+ &eth {
+ status = "okay";
+ mediatek,gmac-id = <0>;
+- phy-mode = "sgmii";
++ phy-mode = "2500base-x";
+ mediatek,switch = "mt7531";
+ reset-gpios = <&gpio 39 GPIO_ACTIVE_HIGH>;
+
+ fixed-link {
+- speed = <1000>;
++ speed = <2500>;
+ full-duplex;
+ };
+ };
+--- a/arch/arm/dts/mt7986a-bpi-r3-sd.dts
++++ b/arch/arm/dts/mt7986a-bpi-r3-sd.dts
+@@ -76,12 +76,12 @@
+ &eth {
+ status = "okay";
+ mediatek,gmac-id = <0>;
+- phy-mode = "sgmii";
++ phy-mode = "2500base-x";
+ mediatek,switch = "mt7531";
+ reset-gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
+
+ fixed-link {
+- speed = <1000>;
++ speed = <2500>;
+ full-duplex;
+ };
+ };
+--- a/arch/arm/dts/mt7986a-rfb.dts
++++ b/arch/arm/dts/mt7986a-rfb.dts
+@@ -55,12 +55,12 @@
+ &eth {
+ status = "okay";
+ mediatek,gmac-id = <0>;
+- phy-mode = "sgmii";
++ phy-mode = "2500base-x";
+ mediatek,switch = "mt7531";
+ reset-gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
+
+ fixed-link {
+- speed = <1000>;
++ speed = <2500>;
+ full-duplex;
+ };
+ };
+--- a/arch/arm/dts/mt7986a-sd-rfb.dts
++++ b/arch/arm/dts/mt7986a-sd-rfb.dts
+@@ -47,12 +47,12 @@
+ &eth {
+ status = "okay";
+ mediatek,gmac-id = <0>;
+- phy-mode = "sgmii";
++ phy-mode = "2500base-x";
+ mediatek,switch = "mt7531";
+ reset-gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
+
+ fixed-link {
+- speed = <1000>;
++ speed = <2500>;
+ full-duplex;
+ };
+ };
+--- a/arch/arm/dts/mt7986b-rfb.dts
++++ b/arch/arm/dts/mt7986b-rfb.dts
+@@ -46,12 +46,12 @@
+ &eth {
+ status = "okay";
+ mediatek,gmac-id = <0>;
+- phy-mode = "sgmii";
++ phy-mode = "2500base-x";
+ mediatek,switch = "mt7531";
+ reset-gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
+
+ fixed-link {
+- speed = <1000>;
++ speed = <2500>;
+ full-duplex;
+ };
+ };
+--- a/arch/arm/dts/mt7986b-sd-rfb.dts
++++ b/arch/arm/dts/mt7986b-sd-rfb.dts
+@@ -47,12 +47,12 @@
+ &eth {
+ status = "okay";
+ mediatek,gmac-id = <0>;
+- phy-mode = "sgmii";
++ phy-mode = "2500base-x";
+ mediatek,switch = "mt7531";
+ reset-gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
+
+ fixed-link {
+- speed = <1000>;
++ speed = <2500>;
+ full-duplex;
+ };
+ };