diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-05-18 21:38:00 +0200 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-05-18 21:51:06 +0200 |
commit | be9eab9bca2bd269e839d38e96f5c010d799f4d2 (patch) | |
tree | 3a9c4308193c899029510b56bdfb5d835dea5ebb /target/linux/ramips/dts | |
parent | a1f0fd8cba4d9233b76542fbf54be01e2cc9d5c0 (diff) | |
download | upstream-be9eab9bca2bd269e839d38e96f5c010d799f4d2.tar.gz upstream-be9eab9bca2bd269e839d38e96f5c010d799f4d2.tar.bz2 upstream-be9eab9bca2bd269e839d38e96f5c010d799f4d2.zip |
ramips: set WAN address in DTS for ASUS RT-AC51U/RT-AC54U
The location 0x28 in factory partition is the common one used for
ethernet address on this architecture. Despite, it contains the label
MAC address for the devices at hand.
Consequently, this patch moves 0x28 to the ðernet node in DTS files
(setting the WAN MAC address there) and sets up the lan_mac from 0x22
in 02_network. As a benefit, this allows to use label-mac-device in
DTS instead of ucidef_set_label_macaddr.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/dts')
-rw-r--r-- | target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts | 3 | ||||
-rw-r--r-- | target/linux/ramips/dts/mt7620a_asus_rt-ac54u.dts | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts b/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts index 1dd0e5cfe0..eccbdee717 100644 --- a/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts +++ b/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts @@ -7,6 +7,7 @@ model = "Asus RT-AC51U"; aliases { + label-mac-device = ðernet; led-boot = &led_power; led-failsafe = &led_power; led-running = &led_power; @@ -37,7 +38,7 @@ }; ðernet { - mtd-mac-address = <&factory 0x22>; + mtd-mac-address = <&factory 0x28>; }; &state_default { diff --git a/target/linux/ramips/dts/mt7620a_asus_rt-ac54u.dts b/target/linux/ramips/dts/mt7620a_asus_rt-ac54u.dts index 09e9b780de..f7e64994d8 100644 --- a/target/linux/ramips/dts/mt7620a_asus_rt-ac54u.dts +++ b/target/linux/ramips/dts/mt7620a_asus_rt-ac54u.dts @@ -8,6 +8,7 @@ model = "Asus RT-AC54U"; aliases { + label-mac-device = ðernet; led-boot = &led_power; led-failsafe = &led_power; led-running = &led_power; @@ -38,7 +39,7 @@ }; ðernet { - mtd-mac-address = <&factory 0x22>; + mtd-mac-address = <&factory 0x28>; }; &state_default { |