mvebu: use eth0 as DSA CPU port for Linksys WRT
authorDENG Qingfang <dengqf6@mail2.sysu.edu.cn>
Thu, 30 Apr 2020 11:41:39 +0000 (19:41 +0800)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 3 Jun 2020 18:34:14 +0000 (20:34 +0200)
eth0 has HW MAC address while eth2 does not.
Use eth0 instead so we don't have to set LAN MAC manually.
Disable unused eth2, until multi CPU port is supported.

Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
target/linux/mvebu/patches-4.19/241-linksys-use-eth0-as-cpu-port.patch [new file with mode: 0644]
target/linux/mvebu/patches-5.4/241-linksys-use-eth0-as-cpu-port.patch [new file with mode: 0644]

diff --git a/target/linux/mvebu/patches-4.19/241-linksys-use-eth0-as-cpu-port.patch b/target/linux/mvebu/patches-4.19/241-linksys-use-eth0-as-cpu-port.patch
new file mode 100644 (file)
index 0000000..c440530
--- /dev/null
@@ -0,0 +1,27 @@
+diff --git a/arch/arm/boot/dts/armada-385-linksys.dtsi b/arch/arm/boot/dts/armada-385-linksys.dtsi
+index 827e82be2201..b6aecf4cc5eb 100644
+--- a/arch/arm/boot/dts/armada-385-linksys.dtsi
++++ b/arch/arm/boot/dts/armada-385-linksys.dtsi
+@@ -109,7 +109,7 @@
+ };
+ &eth2 {
+-      status = "okay";
++      status = "disabled";
+       phy-mode = "sgmii";
+       buffer-manager = <&bm>;
+       bm,pool-long = <2>;
+@@ -191,10 +191,10 @@
+                               label = "wan";
+                       };
+-                      port@5 {
+-                              reg = <5>;
++                      port@6 {
++                              reg = <6>;
+                               label = "cpu";
+-                              ethernet = <&eth2>;
++                              ethernet = <&eth0>;
+                               fixed-link {
+                                       speed = <1000>;
diff --git a/target/linux/mvebu/patches-5.4/241-linksys-use-eth0-as-cpu-port.patch b/target/linux/mvebu/patches-5.4/241-linksys-use-eth0-as-cpu-port.patch
new file mode 100644 (file)
index 0000000..c440530
--- /dev/null
@@ -0,0 +1,27 @@
+diff --git a/arch/arm/boot/dts/armada-385-linksys.dtsi b/arch/arm/boot/dts/armada-385-linksys.dtsi
+index 827e82be2201..b6aecf4cc5eb 100644
+--- a/arch/arm/boot/dts/armada-385-linksys.dtsi
++++ b/arch/arm/boot/dts/armada-385-linksys.dtsi
+@@ -109,7 +109,7 @@
+ };
+ &eth2 {
+-      status = "okay";
++      status = "disabled";
+       phy-mode = "sgmii";
+       buffer-manager = <&bm>;
+       bm,pool-long = <2>;
+@@ -191,10 +191,10 @@
+                               label = "wan";
+                       };
+-                      port@5 {
+-                              reg = <5>;
++                      port@6 {
++                              reg = <6>;
+                               label = "cpu";
+-                              ethernet = <&eth2>;
++                              ethernet = <&eth0>;
+                               fixed-link {
+                                       speed = <1000>;