mvebu: Fix mac addresses for GL.iNet GL-MV1000
authorSven Eckelmann <sven@narfation.org>
Thu, 25 Mar 2021 12:26:15 +0000 (13:26 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sat, 27 Mar 2021 15:56:50 +0000 (16:56 +0100)
The original GL.iNet firmware has two different mac addresses in the
factory/art partition. The first one is for the WAN interface only and the
second one is for both lan0 and lan1.

But the original submission for OpenWrt didn't initialize the mac
addresses of the LAN ports for the DSA device at all. The ethernet mac
address was then used for all DSA ports.

Fixes: 050c24f05c85 ("mvebu: add support for GL.iNet GL-MV1000")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
target/linux/mvebu/files/arch/arm64/boot/dts/marvell/armada-3720-gl-mv1000.dts

index 7c85ab4a9dae7eb9dfbff57429e6c7d497732fe9..80b078cfaa1ab73043f8535e29896053518dd819 100644 (file)
                                reg = <2>;
                                label = "lan0";
                                phy-handle = <&switch0phy1>;
+
+                               mtd-mac-address = <&factory 0x6>;
                        };
 
                        port@3 {
                                reg = <3>;
                                label = "lan1";
                                phy-handle = <&switch0phy2>;
+
+                               mtd-mac-address = <&factory 0x6>;
                        };
                };