kirkwood: Add missing phy-mode and fixed links
authorPawel Dembicki <paweldembicki@gmail.com>
Tue, 5 Mar 2024 14:23:31 +0000 (15:23 +0100)
committerRobert Marko <robimarko@gmail.com>
Sun, 24 Mar 2024 20:07:17 +0000 (21:07 +0100)
Copied from original Andrew's Lunn commit message:

    The DSA framework has got more picky about always having a phy-mode
    for the CPU port. The Kirkwood Ethernet is an RGMII port. Set the
    switch to impose the RGMII delays.

    Additionally, the cpu label has never actually been used in the
    binding, so remove it.

This commit backport change from upstream and fix downstream EA3500 dts.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
target/linux/kirkwood/files/arch/arm/boot/dts/kirkwood-ea3500.dts
target/linux/kirkwood/patches-6.1/004-6.4-ARM-dts-kirkwood-Add-missing-phy-mode-and-fixed-link.patch [new file with mode: 0644]

index d0f2e35343ad0d4889b28e06f47ba2c6ac498558..94697866dc32cd27a5bf9d14c388870fe01c6bd4 100644 (file)
 
                        port@5 {
                                reg = <5>;
+                               phy-mode = "rgmii-id";
                                ethernet = <&eth0port>;
                                fixed-link {
                                        speed = <1000>;
        ethernet0-port@0 {
                speed = <1000>;
                duplex = <1>;
+               phy-mode = "rgmii";
        };
 };
 
diff --git a/target/linux/kirkwood/patches-6.1/004-6.4-ARM-dts-kirkwood-Add-missing-phy-mode-and-fixed-link.patch b/target/linux/kirkwood/patches-6.1/004-6.4-ARM-dts-kirkwood-Add-missing-phy-mode-and-fixed-link.patch
new file mode 100644 (file)
index 0000000..fd7adc3
--- /dev/null
@@ -0,0 +1,108 @@
+From 8aea8659a5f3ae8dc63c9f632ce1f676a1483556 Mon Sep 17 00:00:00 2001
+From: Andrew Lunn <andrew@lunn.ch>
+Date: Fri, 7 Apr 2023 17:17:20 +0200
+Subject: [PATCH] ARM: dts: kirkwood: Add missing phy-mode and fixed links
+
+The DSA framework has got more picky about always having a phy-mode
+for the CPU port. The Kirkwood Ethernet is an RGMII port. Set the
+switch to impose the RGMII delays.
+
+Additionally, the cpu label has never actually been used in the
+binding, so remove it.
+
+Signed-off-by: Andrew Lunn <andrew@lunn.ch>
+Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
+---
+ arch/arm/boot/dts/kirkwood-dir665.dts          | 3 ++-
+ arch/arm/boot/dts/kirkwood-l-50.dts            | 2 +-
+ arch/arm/boot/dts/kirkwood-linksys-viper.dts   | 3 ++-
+ arch/arm/boot/dts/kirkwood-mv88f6281gtw-ge.dts | 3 ++-
+ arch/arm/boot/dts/kirkwood-rd88f6281.dtsi      | 2 +-
+ 5 files changed, 8 insertions(+), 5 deletions(-)
+
+--- a/arch/arm/boot/dts/kirkwood-dir665.dts
++++ b/arch/arm/boot/dts/kirkwood-dir665.dts
+@@ -232,7 +232,7 @@
+                       port@6 {
+                               reg = <6>;
+-                              label = "cpu";
++                              phy-mode = "rgmii-id";
+                               ethernet = <&eth0port>;
+                               fixed-link {
+                                       speed = <1000>;
+@@ -251,6 +251,7 @@
+       ethernet0-port@0 {
+               speed = <1000>;
+               duplex = <1>;
++              phy-mode = "rgmii";
+       };
+ };
+--- a/arch/arm/boot/dts/kirkwood-l-50.dts
++++ b/arch/arm/boot/dts/kirkwood-l-50.dts
+@@ -254,7 +254,6 @@
+                       port@6 {
+                               reg = <6>;
+-                              label = "cpu";
+                               phy-mode = "rgmii-id";
+                               ethernet = <&eth1port>;
+                               fixed-link {
+@@ -330,6 +329,7 @@
+       ethernet1-port@0 {
+               speed = <1000>;
+               duplex = <1>;
++              phy-mode = "rgmii";
+       };
+ };
+--- a/arch/arm/boot/dts/kirkwood-linksys-viper.dts
++++ b/arch/arm/boot/dts/kirkwood-linksys-viper.dts
+@@ -198,7 +198,7 @@
+                       port@5 {
+                               reg = <5>;
+-                              label = "cpu";
++                              phy-mode = "rgmii-id";
+                               ethernet = <&eth0port>;
+                               fixed-link {
+                                       speed = <1000>;
+@@ -221,6 +221,7 @@
+       ethernet0-port@0 {
+               speed = <1000>;
+               duplex = <1>;
++              phy-mode = "rgmii";
+       };
+ };
+--- a/arch/arm/boot/dts/kirkwood-mv88f6281gtw-ge.dts
++++ b/arch/arm/boot/dts/kirkwood-mv88f6281gtw-ge.dts
+@@ -149,7 +149,7 @@
+                       port@5 {
+                               reg = <5>;
+-                              label = "cpu";
++                              phy-mode = "rgmii-id";
+                               ethernet = <&eth0port>;
+                               fixed-link {
+                                       speed = <1000>;
+@@ -166,6 +166,7 @@
+       ethernet0-port@0 {
+               speed = <1000>;
+               duplex = <1>;
++              phy-mode = "rgmii";
+       };
+ };
+--- a/arch/arm/boot/dts/kirkwood-rd88f6281.dtsi
++++ b/arch/arm/boot/dts/kirkwood-rd88f6281.dtsi
+@@ -105,7 +105,7 @@
+                       port@5 {
+                               reg = <5>;
+-                              label = "cpu";
++                              phy-mode = "rgmii-id";
+                               ethernet = <&eth0port>;
+                               fixed-link {
+                                       speed = <1000>;