[openwrt/openwrt] ramips: merge ethernet setup for RT-AC51U/RT-AC54U

LEDE Commits lede-commits at lists.infradead.org
Sun Sep 27 18:20:34 EDT 2020


adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/315904a459f5d40c1f20dc390f5101f058e6e6e1

commit 315904a459f5d40c1f20dc390f5101f058e6e6e1
Author: Adrian Schmutzler <freifunk at adrianschmutzler.de>
AuthorDate: Mon Sep 28 00:04:33 2020 +0200

    ramips: merge ethernet setup for RT-AC51U/RT-AC54U
    
    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 at adrianschmutzler.de>
---
 target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts | 5 -----
 target/linux/ramips/dts/mt7620a_asus_rt-ac54u.dts | 5 -----
 target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi | 6 ++++++
 3 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts b/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts
index fb0d8a632d..f517e2c0e2 100644
--- a/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts
+++ b/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts
@@ -5,7 +5,6 @@
 	model = "Asus RT-AC51U";
 
 	aliases {
-		label-mac-device = ðernet;
 		led-boot = &led_power;
 		led-failsafe = &led_power;
 		led-running = &led_power;
@@ -35,10 +34,6 @@
 	};
 };
 
-&ethernet {
-	mtd-mac-address = <&factory 0x28>;
-};
-
 &state_default {
 	gpio {
 		groups = "i2c", "wled", "uartf";
diff --git a/target/linux/ramips/dts/mt7620a_asus_rt-ac54u.dts b/target/linux/ramips/dts/mt7620a_asus_rt-ac54u.dts
index 3e150feb15..d0ff5d6d70 100644
--- a/target/linux/ramips/dts/mt7620a_asus_rt-ac54u.dts
+++ b/target/linux/ramips/dts/mt7620a_asus_rt-ac54u.dts
@@ -7,7 +7,6 @@
 	model = "Asus RT-AC54U";
 
 	aliases {
-		label-mac-device = ðernet;
 		led-boot = &led_power;
 		led-failsafe = &led_power;
 		led-running = &led_power;
@@ -37,10 +36,6 @@
 	};
 };
 
-&ethernet {
-	mtd-mac-address = <&factory 0x28>;
-};
-
 &state_default {
 	gpio {
 		groups = "i2c", "wled", "uartf";
diff --git a/target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi b/target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi
index 3813efaa53..adec8a1a6f 100644
--- a/target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi
+++ b/target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi
@@ -4,6 +4,10 @@
 #include <dt-bindings/input/input.h>
 
 / {
+	aliases {
+		label-mac-device = ðernet;
+	};
+
 	keys {
 		compatible = "gpio-keys";
 
@@ -85,6 +89,8 @@
 };
 
 &ethernet {
+	mtd-mac-address = <&factory 0x28>;
+
 	mediatek,portmap = "wllll";
 };
 



More information about the lede-commits mailing list