ramips: rt305x: use flash location for wan_mac in 02_network
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 8 Dec 2019 15:15:00 +0000 (16:15 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Thu, 12 Dec 2019 12:11:58 +0000 (13:11 +0100)
commit772af7f98d23f9d616928d89315860dade3d704b
tree7028db3e842f3fb458967a68fed5c9074d43e4ce
parenta858d6d0e2864e0293a6eb721cbcd193adf711cd
ramips: rt305x: use flash location for wan_mac in 02_network

This uses the flash locations instead of eth0 MAC address to
calculate MAC address increments for WAN.

The change will make the MAC address setup of a particular device
more obvious and removes the dependency of 02_network on the eth0
initialization.

This removes the wan_mac setup for the following devices as they
do not set up a MAC address for ethernet in the first place:
- asiarf,awapn2403
- belkin,f7c027
- dlink,dir-615-d
- mofinetwork,mofi3500-3gn
- prolink,pwh2004
- ralink,v22rw-2x2
- unbranded,wr512-3gn-4m
- unbranded,wr512-3gn-8m

While at it, make some DT node labels consistent with the label
property.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts
target/linux/ramips/dts/rt5350_7links_px-4885-4m.dts
target/linux/ramips/dts/rt5350_7links_px-4885-8m.dts
target/linux/ramips/dts/rt5350_7links_px-4885.dtsi
target/linux/ramips/rt305x/base-files/etc/board.d/02_network