ramips/mt7628: fix portmap based on board.d port assignment
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Fri, 7 Aug 2020 10:18:41 +0000 (12:18 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 10 Aug 2020 10:33:38 +0000 (12:33 +0200)
When comparing to the port assignment in board.d/02_network, a few
devices seem to use the wrong setup of mediatek,portmap.

The corrects the values for mt76x8 subtarget based on the location
of the wan port.

A previous cleanup of obviously wrong values has already been done in
7a387bf9a0d7 ("ramips: mt76x8: fix bogus mediatek,portmap")

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ramips/dts/mt7628an_duzun_dm06.dts
target/linux/ramips/dts/mt7628an_xiaomi_mir4a-100m.dts

index 447e0dcf7baf5be08662521a73c144e5e789ac8a..96e60b55f1673edb81cd576bf297367342170c38 100644 (file)
@@ -72,7 +72,7 @@
 };
 
 &esw {
-       mediatek,portmap = <0x3>;
+       mediatek,portmap = <0x3e>;
        mediatek,portdisable = <0x3c>;
 };
 
index 377f71186cab813c0ca384c087a3970a08881310..009a75a9d05ad2f9e89fd33dbc0b46e6f823f290 100644 (file)
 };
 
 &esw {
-       mediatek,portmap = <0x2f>;
+       mediatek,portmap = <0x3e>;
        mediatek,portdisable = <0x2a>;
 };