Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit eb36e52

Browse files
committed
LoongArch: Fix GMAC's phy-mode definitions in dts
The GMAC of Loongson chips cannot insert the correct 1.5-2ns delay. So we need the PHY to insert internal delays for both transmit and receive data lines from/to the PHY device. Fix this by changing the "phy-mode" from "rgmii" to "rgmii-id" in dts. Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
1 parent 1098efd commit eb36e52

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

arch/loongarch/boot/dts/loongson-2k0500-ref.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@
4444
&gmac0 {
4545
status = "okay";
4646

47-
phy-mode = "rgmii";
47+
phy-mode = "rgmii-id";
4848
bus_id = <0x0>;
4949
};
5050

5151
&gmac1 {
5252
status = "okay";
5353

54-
phy-mode = "rgmii";
54+
phy-mode = "rgmii-id";
5555
bus_id = <0x1>;
5656
};
5757

arch/loongarch/boot/dts/loongson-2k1000-ref.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
&gmac0 {
4444
status = "okay";
4545

46-
phy-mode = "rgmii";
46+
phy-mode = "rgmii-id";
4747
phy-handle = <&phy0>;
4848
mdio {
4949
compatible = "snps,dwmac-mdio";
@@ -58,7 +58,7 @@
5858
&gmac1 {
5959
status = "okay";
6060

61-
phy-mode = "rgmii";
61+
phy-mode = "rgmii-id";
6262
phy-handle = <&phy1>;
6363
mdio {
6464
compatible = "snps,dwmac-mdio";

arch/loongarch/boot/dts/loongson-2k2000-ref.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
&gmac2 {
9393
status = "okay";
9494

95-
phy-mode = "rgmii";
95+
phy-mode = "rgmii-id";
9696
phy-handle = <&phy2>;
9797
mdio {
9898
compatible = "snps,dwmac-mdio";

0 commit comments

Comments
 (0)