mediatek: Cudy WR3000: simplify mac address setup
authorChukun Pan <amadeus@jmu.edu.cn>
Wed, 20 Dec 2023 15:15:31 +0000 (23:15 +0800)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 14 Jan 2024 23:11:57 +0000 (23:11 +0000)
The mac address of the network port under the switch is
the same as the corresponding gmac by default, so there
is no need to repeat the setting. Compile test only.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
target/linux/mediatek/dts/mt7981b-cudy-wr3000-v1.dts

index e2fa8bf5d3fbf9d409ac2a0b9ed0db833a4783c0..f4ba629525155aaa9e613b740f0583e764e92cde 100644 (file)
@@ -10,7 +10,7 @@
 
        aliases {
                ethernet0 = &gmac0;
-               label-mac-device = &lan1;
+               label-mac-device = &gmac0;
                led-boot = &led_status;
                led-failsafe = &led_status;
                led-running = &led_status;
                        nvmem-cells = <&macaddr_bdinfo_de00 1>;
                };
 
-               lan1: port@1 {
+               port@1 {
                        reg = <1>;
                        label = "lan1";
-
-                       nvmem-cell-names = "mac-address";
-                       nvmem-cells = <&macaddr_bdinfo_de00 0>;
                };
 
                port@2 {
                        reg = <2>;
                        label = "lan2";
-
-                       nvmem-cell-names = "mac-address";
-                       nvmem-cells = <&macaddr_bdinfo_de00 0>;
                };
 
                port@3 {
                        reg = <3>;
                        label = "lan3";
-
-                       nvmem-cell-names = "mac-address";
-                       nvmem-cells = <&macaddr_bdinfo_de00 0>;
                };
 
                port@6 {