diff options
author | DENG Qingfang <dengqf6@mail2.sysu.edu.cn> | 2020-04-30 19:41:39 +0800 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-06-03 20:34:14 +0200 |
commit | 4149d2b91c43784ada37efe928c5f6b610c74259 (patch) | |
tree | ee3a9279a752a7510eb2645599488f5bd2a78626 /target/linux | |
parent | f799c65946e147258fbea2ea18fae82ad567f7dc (diff) | |
download | upstream-4149d2b91c43784ada37efe928c5f6b610c74259.tar.gz upstream-4149d2b91c43784ada37efe928c5f6b610c74259.tar.bz2 upstream-4149d2b91c43784ada37efe928c5f6b610c74259.zip |
mvebu: use eth0 as DSA CPU port for Linksys WRT
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>
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/mvebu/patches-4.19/241-linksys-use-eth0-as-cpu-port.patch | 27 | ||||
-rw-r--r-- | target/linux/mvebu/patches-5.4/241-linksys-use-eth0-as-cpu-port.patch | 27 |
2 files changed, 54 insertions, 0 deletions
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 index 0000000000..c440530fc3 --- /dev/null +++ b/target/linux/mvebu/patches-4.19/241-linksys-use-eth0-as-cpu-port.patch @@ -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 @@ + }; + + ð2 { +- 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 = <ð2>; ++ ethernet = <ð0>; + + 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 index 0000000000..c440530fc3 --- /dev/null +++ b/target/linux/mvebu/patches-5.4/241-linksys-use-eth0-as-cpu-port.patch @@ -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 @@ + }; + + ð2 { +- 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 = <ð2>; ++ ethernet = <ð0>; + + fixed-link { + speed = <1000>; |