[][kernel][mt7986][eth][Change single PHY driver for Maxlinear GPY211]
[Description]
Change single PHY driver for Maxlinear GPY211.
If without this patch, kernel can't get the link speed and dynamic switch link mode for HSGMII.
[Release-log]
N/A
Change-Id: I89b145873eba02726722a783bca37f59aa1ce1c8
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6547293
diff --git a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986a-2500wan-emmc-rfb.dts b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986a-2500wan-emmc-rfb.dts
index 0ee8617..40c41b6 100644
--- a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986a-2500wan-emmc-rfb.dts
+++ b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986a-2500wan-emmc-rfb.dts
@@ -68,7 +68,7 @@
&uart2 {
pinctrl-names = "default";
pinctrl-0 = <&uart2_pins>;
- status = "disabled";
+ status = "okay";
};
&i2c0 {
@@ -102,9 +102,6 @@
speed = <2500>;
full-duplex;
pause;
- link-gpio = <&pio 47 0>;
- phy-handle = <&phy5>;
- label = "lan5";
};
};
@@ -112,14 +109,7 @@
compatible = "mediatek,eth-mac";
reg = <1>;
phy-mode = "2500base-x";
-
- fixed-link {
- speed = <2500>;
- full-duplex;
- pause;
- link-gpio = <&pio 46 0>;
- phy-handle = <&phy6>;
- };
+ phy-handle = <&phy6>;
};
mdio: mdio-bus {
@@ -130,12 +120,12 @@
reset-delay-us = <600>;
phy5: phy@5 {
- compatible = "ethernet-phy-id67c9.de0a";
+ compatible = "ethernet-phy-ieee802.3-c45";
reg = <5>;
};
phy6: phy@6 {
- compatible = "ethernet-phy-id67c9.de0a";
+ compatible = "ethernet-phy-ieee802.3-c45";
reg = <6>;
};
@@ -177,12 +167,7 @@
reg = <5>;
label = "lan5";
phy-mode = "2500base-x";
-
- fixed-link {
- speed = <2500>;
- full-duplex;
- pause;
- };
+ phy-handle = <&phy5>;
};
port@6 {
diff --git a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986a-2500wan-gsw-spim-nand-rfb.dts b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986a-2500wan-gsw-spim-nand-rfb.dts
index c33a8ac..6f23b2f 100644
--- a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986a-2500wan-gsw-spim-nand-rfb.dts
+++ b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986a-2500wan-gsw-spim-nand-rfb.dts
@@ -101,14 +101,7 @@
compatible = "mediatek,eth-mac";
reg = <1>;
phy-mode = "2500base-x";
-
- fixed-link {
- speed = <2500>;
- full-duplex;
- pause;
- link-gpio = <&pio 46 0>;
- phy-handle = <&phy6>;
- };
+ phy-handle = <&phy6>;
};
mdio: mdio-bus {
@@ -124,7 +117,7 @@
};
phy6: phy@6 {
- compatible = "ethernet-phy-id67c9.de0a";
+ compatible = "ethernet-phy-ieee802.3-c45";
reg = <6>;
};
};
@@ -148,7 +141,6 @@
speed = <2500>;
full-duplex;
};
-
};
port6: port@6 {
diff --git a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986a-2500wan-sd-rfb.dts b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986a-2500wan-sd-rfb.dts
index e45224a..32f9320 100644
--- a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986a-2500wan-sd-rfb.dts
+++ b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986a-2500wan-sd-rfb.dts
@@ -59,7 +59,7 @@
&uart2 {
pinctrl-names = "default";
pinctrl-0 = <&uart2_pins>;
- status = "disabled";
+ status = "okay";
};
&i2c0 {
@@ -93,9 +93,6 @@
speed = <2500>;
full-duplex;
pause;
- link-gpio = <&pio 47 0>;
- phy-handle = <&phy5>;
- label = "lan5";
};
};
@@ -103,14 +100,7 @@
compatible = "mediatek,eth-mac";
reg = <1>;
phy-mode = "2500base-x";
-
- fixed-link {
- speed = <2500>;
- full-duplex;
- pause;
- link-gpio = <&pio 46 0>;
- phy-handle = <&phy6>;
- };
+ phy-handle = <&phy6>;
};
mdio: mdio-bus {
@@ -121,12 +111,12 @@
reset-delay-us = <600>;
phy5: phy@5 {
- compatible = "ethernet-phy-id67c9.de0a";
+ compatible = "ethernet-phy-ieee802.3-c45";
reg = <5>;
};
phy6: phy@6 {
- compatible = "ethernet-phy-id67c9.de0a";
+ compatible = "ethernet-phy-ieee802.3-c45";
reg = <6>;
};
@@ -168,12 +158,7 @@
reg = <5>;
label = "lan5";
phy-mode = "2500base-x";
-
- fixed-link {
- speed = <2500>;
- full-duplex;
- pause;
- };
+ phy-handle = <&phy5>;
};
port@6 {
diff --git a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986a-2500wan-spim-nand-rfb.dts b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986a-2500wan-spim-nand-rfb.dts
index 89b80b0..61b68af 100644
--- a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986a-2500wan-spim-nand-rfb.dts
+++ b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986a-2500wan-spim-nand-rfb.dts
@@ -50,7 +50,7 @@
&uart2 {
pinctrl-names = "default";
pinctrl-0 = <&uart2_pins>;
- status = "disabled";
+ status = "okay";
};
&i2c0 {
@@ -84,9 +84,6 @@
speed = <2500>;
full-duplex;
pause;
- link-gpio = <&pio 47 0>;
- phy-handle = <&phy5>;
- label = "lan5";
};
};
@@ -94,14 +91,7 @@
compatible = "mediatek,eth-mac";
reg = <1>;
phy-mode = "2500base-x";
-
- fixed-link {
- speed = <2500>;
- full-duplex;
- pause;
- link-gpio = <&pio 46 0>;
- phy-handle = <&phy6>;
- };
+ phy-handle = <&phy6>;
};
mdio: mdio-bus {
@@ -112,12 +102,12 @@
reset-delay-us = <600>;
phy5: phy@5 {
- compatible = "ethernet-phy-id67c9.de0a";
+ compatible = "ethernet-phy-ieee802.3-c45";
reg = <5>;
};
phy6: phy@6 {
- compatible = "ethernet-phy-id67c9.de0a";
+ compatible = "ethernet-phy-ieee802.3-c45";
reg = <6>;
};
@@ -159,12 +149,7 @@
reg = <5>;
label = "lan5";
phy-mode = "2500base-x";
-
- fixed-link {
- speed = <2500>;
- full-duplex;
- pause;
- };
+ phy-handle = <&phy5>;
};
port@6 {
diff --git a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986a-2500wan-spim-nor-rfb.dts b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986a-2500wan-spim-nor-rfb.dts
index baec4ab..a85a5b7 100644
--- a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986a-2500wan-spim-nor-rfb.dts
+++ b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986a-2500wan-spim-nor-rfb.dts
@@ -84,9 +84,6 @@
speed = <2500>;
full-duplex;
pause;
- link-gpio = <&pio 47 0>;
- phy-handle = <&phy5>;
- label = "lan5";
};
};
@@ -94,14 +91,7 @@
compatible = "mediatek,eth-mac";
reg = <1>;
phy-mode = "2500base-x";
-
- fixed-link {
- speed = <2500>;
- full-duplex;
- pause;
- link-gpio = <&pio 46 0>;
- phy-handle = <&phy6>;
- };
+ phy-handle = <&phy6>;
};
mdio: mdio-bus {
@@ -112,12 +102,12 @@
reset-delay-us = <600>;
phy5: phy@5 {
- compatible = "ethernet-phy-id67c9.de0a";
+ compatible = "ethernet-phy-ieee802.3-c45";
reg = <5>;
};
phy6: phy@6 {
- compatible = "ethernet-phy-id67c9.de0a";
+ compatible = "ethernet-phy-ieee802.3-c45";
reg = <6>;
};
@@ -159,12 +149,7 @@
reg = <5>;
label = "lan5";
phy-mode = "2500base-x";
-
- fixed-link {
- speed = <2500>;
- full-duplex;
- pause;
- };
+ phy-handle = <&phy5>;
};
port@6 {
diff --git a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986b-2500wan-emmc-rfb.dts b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986b-2500wan-emmc-rfb.dts
index f7b9582..09e41f6 100644
--- a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986b-2500wan-emmc-rfb.dts
+++ b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986b-2500wan-emmc-rfb.dts
@@ -64,9 +64,6 @@
speed = <2500>;
full-duplex;
pause;
- link-gpio = <&pio 47 0>;
- phy-handle = <&phy5>;
- label = "lan5";
};
};
@@ -74,14 +71,7 @@
compatible = "mediatek,eth-mac";
reg = <1>;
phy-mode = "2500base-x";
-
- fixed-link {
- speed = <2500>;
- full-duplex;
- pause;
- link-gpio = <&pio 46 0>;
- phy-handle = <&phy6>;
- };
+ phy-handle = <&phy6>;
};
mdio: mdio-bus {
@@ -92,12 +82,12 @@
reset-delay-us = <600>;
phy5: phy@5 {
- compatible = "ethernet-phy-id67c9.de0a";
+ compatible = "ethernet-phy-ieee802.3-c45";
reg = <5>;
};
phy6: phy@6 {
- compatible = "ethernet-phy-id67c9.de0a";
+ compatible = "ethernet-phy-ieee802.3-c45";
reg = <6>;
};
@@ -139,12 +129,7 @@
reg = <5>;
label = "lan5";
phy-mode = "2500base-x";
-
- fixed-link {
- speed = <2500>;
- full-duplex;
- pause;
- };
+ phy-handle = <&phy5>;
};
port@6 {
diff --git a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986b-2500wan-gsw-spim-nand-rfb.dts b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986b-2500wan-gsw-spim-nand-rfb.dts
index 80069eb..997306c 100644
--- a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986b-2500wan-gsw-spim-nand-rfb.dts
+++ b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986b-2500wan-gsw-spim-nand-rfb.dts
@@ -72,14 +72,7 @@
compatible = "mediatek,eth-mac";
reg = <1>;
phy-mode = "2500base-x";
-
- fixed-link {
- speed = <2500>;
- full-duplex;
- pause;
- link-gpio = <&pio 46 0>;
- phy-handle = <&phy6>;
- };
+ phy-handle = <&phy6>;
};
mdio: mdio-bus {
@@ -95,7 +88,7 @@
};
phy6: phy@6 {
- compatible = "ethernet-phy-id67c9.de0a";
+ compatible = "ethernet-phy-ieee802.3-c45";
reg = <6>;
};
};
@@ -119,7 +112,6 @@
speed = <2500>;
full-duplex;
};
-
};
port6: port@6 {
diff --git a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986b-2500wan-sd-rfb.dts b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986b-2500wan-sd-rfb.dts
index 5d8d557..c074239 100644
--- a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986b-2500wan-sd-rfb.dts
+++ b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986b-2500wan-sd-rfb.dts
@@ -64,9 +64,6 @@
speed = <2500>;
full-duplex;
pause;
- link-gpio = <&pio 47 0>;
- phy-handle = <&phy5>;
- label = "lan5";
};
};
@@ -74,14 +71,7 @@
compatible = "mediatek,eth-mac";
reg = <1>;
phy-mode = "2500base-x";
-
- fixed-link {
- speed = <2500>;
- full-duplex;
- pause;
- link-gpio = <&pio 46 0>;
- phy-handle = <&phy6>;
- };
+ phy-handle = <&phy6>;
};
mdio: mdio-bus {
@@ -92,12 +82,12 @@
reset-delay-us = <600>;
phy5: phy@5 {
- compatible = "ethernet-phy-id67c9.de0a";
+ compatible = "ethernet-phy-ieee802.3-c45";
reg = <5>;
};
phy6: phy@6 {
- compatible = "ethernet-phy-id67c9.de0a";
+ compatible = "ethernet-phy-ieee802.3-c45";
reg = <6>;
};
@@ -139,12 +129,7 @@
reg = <5>;
label = "lan5";
phy-mode = "2500base-x";
-
- fixed-link {
- speed = <2500>;
- full-duplex;
- pause;
- };
+ phy-handle = <&phy5>;
};
port@6 {
diff --git a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986b-2500wan-snfi-nand-rfb.dts b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986b-2500wan-snfi-nand-rfb.dts
index 7eb2fc0..dd02baf 100644
--- a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986b-2500wan-snfi-nand-rfb.dts
+++ b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986b-2500wan-snfi-nand-rfb.dts
@@ -55,9 +55,6 @@
speed = <2500>;
full-duplex;
pause;
- link-gpio = <&pio 47 0>;
- phy-handle = <&phy5>;
- label = "lan5";
};
};
@@ -65,14 +62,7 @@
compatible = "mediatek,eth-mac";
reg = <1>;
phy-mode = "2500base-x";
-
- fixed-link {
- speed = <2500>;
- full-duplex;
- pause;
- link-gpio = <&pio 46 0>;
- phy-handle = <&phy6>;
- };
+ phy-handle = <&phy6>;
};
mdio: mdio-bus {
@@ -83,12 +73,12 @@
reset-delay-us = <600>;
phy5: phy@5 {
- compatible = "ethernet-phy-id67c9.de0a";
+ compatible = "ethernet-phy-ieee802.3-c45";
reg = <5>;
};
phy6: phy@6 {
- compatible = "ethernet-phy-id67c9.de0a";
+ compatible = "ethernet-phy-ieee802.3-c45";
reg = <6>;
};
@@ -130,12 +120,7 @@
reg = <5>;
label = "lan5";
phy-mode = "2500base-x";
-
- fixed-link {
- speed = <2500>;
- full-duplex;
- pause;
- };
+ phy-handle = <&phy5>;
};
port@6 {
diff --git a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986b-2500wan-spim-nand-rfb.dts b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986b-2500wan-spim-nand-rfb.dts
index 6dc29fc..1dc1551 100644
--- a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986b-2500wan-spim-nand-rfb.dts
+++ b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986b-2500wan-spim-nand-rfb.dts
@@ -55,9 +55,6 @@
speed = <2500>;
full-duplex;
pause;
- link-gpio = <&pio 47 0>;
- phy-handle = <&phy5>;
- label = "lan5";
};
};
@@ -65,14 +62,7 @@
compatible = "mediatek,eth-mac";
reg = <1>;
phy-mode = "2500base-x";
-
- fixed-link {
- speed = <2500>;
- full-duplex;
- pause;
- link-gpio = <&pio 46 0>;
- phy-handle = <&phy6>;
- };
+ phy-handle = <&phy6>;
};
mdio: mdio-bus {
@@ -83,12 +73,12 @@
reset-delay-us = <600>;
phy5: phy@5 {
- compatible = "ethernet-phy-id67c9.de0a";
+ compatible = "ethernet-phy-ieee802.3-c45";
reg = <5>;
};
phy6: phy@6 {
- compatible = "ethernet-phy-id67c9.de0a";
+ compatible = "ethernet-phy-ieee802.3-c45";
reg = <6>;
};
@@ -130,12 +120,7 @@
reg = <5>;
label = "lan5";
phy-mode = "2500base-x";
-
- fixed-link {
- speed = <2500>;
- full-duplex;
- pause;
- };
+ phy-handle = <&phy5>;
};
port@6 {
diff --git a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986b-2500wan-spim-nor-rfb.dts b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986b-2500wan-spim-nor-rfb.dts
index ab6a61f..4cbfe41 100644
--- a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986b-2500wan-spim-nor-rfb.dts
+++ b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986b-2500wan-spim-nor-rfb.dts
@@ -55,9 +55,6 @@
speed = <2500>;
full-duplex;
pause;
- link-gpio = <&pio 47 0>;
- phy-handle = <&phy5>;
- label = "lan5";
};
};
@@ -65,14 +62,7 @@
compatible = "mediatek,eth-mac";
reg = <1>;
phy-mode = "2500base-x";
-
- fixed-link {
- speed = <2500>;
- full-duplex;
- pause;
- link-gpio = <&pio 46 0>;
- phy-handle = <&phy6>;
- };
+ phy-handle = <&phy6>;
};
mdio: mdio-bus {
@@ -83,12 +73,12 @@
reset-delay-us = <600>;
phy5: phy@5 {
- compatible = "ethernet-phy-id67c9.de0a";
+ compatible = "ethernet-phy-ieee802.3-c45";
reg = <5>;
};
phy6: phy@6 {
- compatible = "ethernet-phy-id67c9.de0a";
+ compatible = "ethernet-phy-ieee802.3-c45";
reg = <6>;
};
@@ -130,12 +120,7 @@
reg = <5>;
label = "lan5";
phy-mode = "2500base-x";
-
- fixed-link {
- speed = <2500>;
- full-duplex;
- pause;
- };
+ phy-handle = <&phy5>;
};
port@6 {