ramips: improve support for WeVO 11AC NAS and W2914NS v2
authorSungbo Eo <mans0n@gorani.run>
Mon, 7 Oct 2019 12:36:05 +0000 (21:36 +0900)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 6 Nov 2019 13:31:32 +0000 (14:31 +0100)
commit62b1559b569c47e3b5596b190f3e077f8e70d7f0
tree0ff29ee761f87bc77f961c770643ae4882c37f44
parent15dc60e727e591a214c9ec1006ced29c3f706728
ramips: improve support for WeVO 11AC NAS and W2914NS v2

- remove WAN port index
- load WAN MAC address directly from the flash
- provide label MAC address
- increase flash's SPI frequency to 80MHz
- add mt76 led nodes to make WiFi LEDs work
- drop unnecessary pinmux groups

The factory partition scheme for MAC addresses (verified on both devices):
0x4   : WiFi 2.4GHz (label_mac-9)
0x28  : unused
0x2e  : WAN (label_mac)
0x8004: WiFi 5GHz (label_mac-5)
0xe000: LAN (label_mac-1)
0xe006: unused

By improving flash speed,
`time dd if=/dev/mtdblock3 of=/dev/null bs=64k`
has been reduced from 14.51s to 3.11s.

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
[rebased]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi
target/linux/ramips/mt7621/base-files/etc/board.d/02_network