ramips/mt7620: fix portmap based on board.d port assignment
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 3 Aug 2020 21:11:01 +0000 (23:11 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Fri, 7 Aug 2020 11:01:18 +0000 (13:01 +0200)
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
d3c0a944059b ("ramips: mt7620/mt7621: remove invalid mediatek,portmap")

Cc: Sungbo Eo <mans0n@gorani.run>
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts
target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts
target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts
target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts
target/linux/ramips/dts/mt7620a_sanlinking_d240.dts
target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts
target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi
target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts
target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts

index c9ecf785732b8b3c394f6ad0017d3f545d9dde66..c8d67db884a23b69bd76bce1721ecaa0ddc79100 100644 (file)
 &ethernet {
        mtd-mac-address = <&factory 0x4>;
 
-       mediatek,portmap = "llllw";
+       mediatek,portmap = "wllll";
 };
 
 &wmac {
index a772bca605d5415aed7b39acc52e12ff91e5e3e0..c9b2abd5fba3068a8495c143f077adb2c6de2d5a 100644 (file)
 &ethernet {
        mtd-mac-address = <&factory 0x4000>;
 
-       mediatek,portmap = "llllw";
+       mediatek,portmap = "wllll";
 };
 
 &wmac {
index 8951044f6391477594ee5469e35aac8eeb8c2d55..fc4b807ffde9d1c42e1aade5b951c5edca2e1522 100644 (file)
@@ -76,7 +76,7 @@
 
        mtd-mac-address = <&factory 0x4>;
 
-       mediatek,portmap = "wllll";
+       mediatek,portmap = "llllw";
 
        port@5 {
                status = "okay";
index 2932b5a3dc6eee63fe3f078eea2e4865ee444326..f003df68597e787b696f7e2a9a83cd361e344473 100644 (file)
@@ -46,6 +46,4 @@
        pinctrl-0 = <&ephy_pins>;
 
        mtd-mac-address = <&factory 0x28>;
-
-       mediatek,portmap = "llllw";
 };
index 79649a59900f828fd259d561e27d0decebaf8cce..9a9201b6aeae33ed0c330ab57addac9f0badaa79 100644 (file)
 &ethernet {
        mtd-mac-address = <&factory 0x4>;
 
-       mediatek,portmap = "wllll";
+       mediatek,portmap = "llllw";
 };
 
 &wmac {
index 4aa404542f6290166b346359ad65cbdd2517c60d..53d98cf35a84f308e420f9ee1a0317b9d224e77f 100644 (file)
 
        mtd-mac-address = <&factory 0x4>;
 
-       mediatek,portmap = "wllll";
+       mediatek,portmap = "llllw";
 };
 
 &wmac {
index 9ebd10bbb0d1f17de5987ebb4ed4ac488d9649e0..0e3d689b4fa29600d14dadbaec0a758de63922b7 100644 (file)
@@ -76,7 +76,7 @@
 &ethernet {
        mtd-mac-address = <&factory 0x4>;
 
-       mediatek,portmap = "wllll";
+       mediatek,portmap = "llllw";
 };
 
 &wmac {
index 5e610be862857969cb1b6841cdcee0dfccabaf26..64f32ac5d4cda6e17f9da3ff01f6eb75d2ec2088 100644 (file)
 &ethernet {
        mtd-mac-address = <&factory 0x4>;
 
-       mediatek,portmap = "wllll";
+       mediatek,portmap = "llllw";
 };
 
 &wmac {
index e5d3cc0a29d951f4ebad3a4bae025bf35592a7fb..5f6925bb88c18bb8e044fe2ad3a7016e33de8e48 100644 (file)
@@ -96,7 +96,7 @@
 &ethernet {
        mtd-mac-address = <&factory 0x4>;
 
-       mediatek,portmap = "wllll";
+       mediatek,portmap = "llllw";
 };
 
 &wmac {