ramips: mt76x8: fix bogus mediatek,portmap
authorSungbo Eo <mans0n@gorani.run>
Wed, 1 Jan 2020 12:34:10 +0000 (21:34 +0900)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 21 Jan 2020 12:54:18 +0000 (13:54 +0100)
commit1d56a7b75db0558c9aafaac9c94bfd8b1a1b7ed7
treea4caa4b30ee64d3183f2e6fec06cb57a67d4b4f3
parent49b240cde8380c26f36240e3574b2f6f8b9e2de6
ramips: mt76x8: fix bogus mediatek,portmap

mt76x8 uses esw_rt3050 driver, which does not accept mediatek,portmap with
string values. Convert the strings to integers to make it work.

According to its switch setup, WRTnode 2P/2R have a WAN port at port 0,
so the correct value should be 0x3e.

tplink_8m.dtsi uses "llllw", but it does not match switch setups of any
device using the DTSI. Remove it from the DTSI and add correct value to DTS
for each device.

These devices have a WAN port at port 0. Set the value to 0x3e.
- tplink,archer-c20-v4
- tplink,archer-c50-v3
- tplink,tl-mr3420-v5
- tplink,tl-wr840n-v4
- tplink,tl-wr841n-v13
- tplink,tl-wr842n-v5

These devices have only one ethernet port. They don't need portmap setting.
- tplink,tl-wa801nd-v5
- tplink,tl-wr802n-v4
- tplink,tl-wr902ac-v3

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
(backported from commit 7a387bf9a0d73f7c581e2c9aeae6476588100e2c)
[removed TL-WR841N v14 which is not present in 19.07]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
17 files changed:
target/linux/ramips/dts/ArcherC20v4.dts
target/linux/ramips/dts/ArcherC50V3.dts
target/linux/ramips/dts/MAC1200RV2.dts
target/linux/ramips/dts/TL-MR3420V5.dts
target/linux/ramips/dts/TL-WR802NV4.dts
target/linux/ramips/dts/TL-WR840NV4.dts
target/linux/ramips/dts/TL-WR840NV5.dts
target/linux/ramips/dts/TL-WR841NV13.dts
target/linux/ramips/dts/TL-WR842NV5.dts
target/linux/ramips/dts/TPLINK-8M-SPLIT-UBOOT.dtsi
target/linux/ramips/dts/TPLINK-8M.dtsi
target/linux/ramips/dts/WL-WN570HA1.dts
target/linux/ramips/dts/WL-WN575A3.dts
target/linux/ramips/dts/WR1000.dts
target/linux/ramips/dts/WRTNODE2.dtsi
target/linux/ramips/dts/ZBT-WE1226.dts
target/linux/ramips/dts/ki_rb.dts