ramips/mt7620: fix portmap based on board.d port assignment

When comparing to the port assignment in board.d/02_network, many
devices seem to use the wrong setup of mediatek,portmap.

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

A previous cleanup of obviously wrong values has already been done in
d3c0a94405 ("ramips: mt7620/mt7621: remove invalid mediatek,portmap")

Cc: Sungbo Eo <mans0n@gorani.run>
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Adrian Schmutzler 2020-08-03 23:11:01 +02:00
parent c487cf8e94
commit 7c07a0f4c3
9 changed files with 8 additions and 10 deletions

View File

@ -124,7 +124,7 @@
&ethernet {
mtd-mac-address = <&factory 0x4>;
mediatek,portmap = "llllw";
mediatek,portmap = "wllll";
};
&wmac {

View File

@ -134,7 +134,7 @@
&ethernet {
mtd-mac-address = <&factory 0x4000>;
mediatek,portmap = "llllw";
mediatek,portmap = "wllll";
};
&wmac {

View File

@ -76,7 +76,7 @@
mtd-mac-address = <&factory 0x4>;
mediatek,portmap = "wllll";
mediatek,portmap = "llllw";
port@5 {
status = "okay";

View File

@ -46,6 +46,4 @@
pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x28>;
mediatek,portmap = "llllw";
};

View File

@ -171,7 +171,7 @@
&ethernet {
mtd-mac-address = <&factory 0x4>;
mediatek,portmap = "wllll";
mediatek,portmap = "llllw";
};
&wmac {

View File

@ -114,7 +114,7 @@
mtd-mac-address = <&factory 0x4>;
mediatek,portmap = "wllll";
mediatek,portmap = "llllw";
};
&wmac {

View File

@ -76,7 +76,7 @@
&ethernet {
mtd-mac-address = <&factory 0x4>;
mediatek,portmap = "wllll";
mediatek,portmap = "llllw";
};
&wmac {

View File

@ -110,7 +110,7 @@
&ethernet {
mtd-mac-address = <&factory 0x4>;
mediatek,portmap = "wllll";
mediatek,portmap = "llllw";
};
&wmac {

View File

@ -96,7 +96,7 @@
&ethernet {
mtd-mac-address = <&factory 0x4>;
mediatek,portmap = "wllll";
mediatek,portmap = "llllw";
};
&wmac {