ramips: merge ethernet setup for RT-AC51U/RT-AC54U
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 27 Sep 2020 22:04:33 +0000 (00:04 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 27 Sep 2020 22:20:24 +0000 (00:20 +0200)
The ethernet setup/label MAC address for RT-AC51U and RT-AC54U are
the same, so move them into the shared DTSI.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts
target/linux/ramips/dts/mt7620a_asus_rt-ac54u.dts
target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi

index fb0d8a632db6e044b197c99111dd8dc44d8ff2b9..f517e2c0e2ca02fc3fa63bdb3f66a9280687418e 100644 (file)
@@ -5,7 +5,6 @@
        model = "Asus RT-AC51U";
 
        aliases {
-               label-mac-device = &ethernet;
                led-boot = &led_power;
                led-failsafe = &led_power;
                led-running = &led_power;
        };
 };
 
-&ethernet {
-       mtd-mac-address = <&factory 0x28>;
-};
-
 &state_default {
        gpio {
                groups = "i2c", "wled", "uartf";
index 3e150feb152eaeaf6fd1204601e28f24e3d45a5f..d0ff5d6d703c8b5e870248a6874b1fd7ef1f61b7 100644 (file)
@@ -7,7 +7,6 @@
        model = "Asus RT-AC54U";
 
        aliases {
-               label-mac-device = &ethernet;
                led-boot = &led_power;
                led-failsafe = &led_power;
                led-running = &led_power;
        };
 };
 
-&ethernet {
-       mtd-mac-address = <&factory 0x28>;
-};
-
 &state_default {
        gpio {
                groups = "i2c", "wled", "uartf";
index 3813efaa538837050d7b2797a36433d570fde42c..adec8a1a6fa7ad73a382aae612e002588ece855d 100644 (file)
@@ -4,6 +4,10 @@
 #include <dt-bindings/input/input.h>
 
 / {
+       aliases {
+               label-mac-device = &ethernet;
+       };
+
        keys {
                compatible = "gpio-keys";
 
@@ -85,6 +89,8 @@
 };
 
 &ethernet {
+       mtd-mac-address = <&factory 0x28>;
+
        mediatek,portmap = "wllll";
 };