]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mediatek: fix gmac definition for cudy m3000 21560/head
authorMaximilian Baumgartner <aufhaxer@googlemail.com>
Thu, 15 Jan 2026 22:46:46 +0000 (23:46 +0100)
committerRobert Marko <robimarko@gmail.com>
Sun, 18 Jan 2026 10:36:17 +0000 (11:36 +0100)
The gmac definition has an offset of 1 compared to the label MAC.
Fixes: a55ab9e1343e85021253e9c55f67adf33ad68f09 ("mediatek: filogic: prevent faulty mac address assignment")
Signed-off-by: Maximilian Baumgartner <aufhaxer@googlemail.com>
Link: https://github.com/openwrt/openwrt/pull/21560
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/mediatek/dts/mt7981b-cudy-m3000-v1.dts

index 09b72699fdaf9579ea441ba3eb1123112194c76c..5cbd6834184c64d60bf359f06527eb1d0f768884 100644 (file)
@@ -86,7 +86,7 @@
                phy-handle = <&rtl8221b_phy>;
 
                nvmem-cell-names = "mac-address";
-               nvmem-cells = <&macaddr_bdinfo_de00 1>;
+               nvmem-cells = <&macaddr_bdinfo_de00 0>;
        };
 
        gmac1: mac@1 {
@@ -96,7 +96,7 @@
                phy-handle = <&int_gbe_phy>;
 
                nvmem-cell-names = "mac-address";
-               nvmem-cells = <&macaddr_bdinfo_de00 0>;
+               nvmem-cells = <&macaddr_bdinfo_de00 1>;
        };
 };