Просмотр исходного кода

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
d3c0a944059b ("ramips: mt7620/mt7621: remove invalid mediatek,portmap")

Cc: Sungbo Eo <[email protected]>
Signed-off-by: Adrian Schmutzler <[email protected]>
Adrian Schmutzler 5 лет назад
Родитель
Сommit
7c07a0f4c3

+ 1 - 1
target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts

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

+ 1 - 1
target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts

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

+ 1 - 1
target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts

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

+ 0 - 2
target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts

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

+ 1 - 1
target/linux/ramips/dts/mt7620a_sanlinking_d240.dts

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

+ 1 - 1
target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts

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

+ 1 - 1
target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi

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

+ 1 - 1
target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts

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

+ 1 - 1
target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts

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