[LEDE-DEV] [PATCH] ramips: replace remaining instances of ralink, port-map

Daniel Golle daniel at makrotopia.org
Tue Feb 14 05:08:59 PST 2017


Some boards were apparently forgotten when ralink,portmap was renamed
to mediatek,portmap -- probably because they used the long obsolete
ralink,port-map attribute.
If this commit breaks ethernet wan/lan assignment, this is because
the port-map attribute wasn't actually parsed, you'll have to replace
"wllll" by "llllw" in the dts file belonging to that board (and send
a patch doing that!)

Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---

Having a closer look now I find it very confusing that a numerical
value is used on rt305x devices which the (supposedly) legacy string
value is used by mt762x based boards. This also prevents unused ports
from being disabled, which could be nice for power/heat management
reasons, at least that helped quite a on previous generation chips.

 target/linux/ramips/dts/D240.dts       | 2 +-
 target/linux/ramips/dts/GL-MT300A.dts  | 2 +-
 target/linux/ramips/dts/GL-MT300N.dts  | 2 +-
 target/linux/ramips/dts/GL-MT750.dts   | 2 +-
 target/linux/ramips/dts/MAC1200RV2.dts | 2 +-
 target/linux/ramips/dts/NBG-419N2.dts  | 2 +-
 target/linux/ramips/dts/WL-WN575A3.dts | 2 +-
 target/linux/ramips/dts/WRTNODE2.dtsi  | 2 +-
 target/linux/ramips/dts/ZBT-WE826.dts  | 2 +-
 target/linux/ramips/dts/kn_rc.dts      | 2 +-
 target/linux/ramips/dts/kn_rf.dts      | 2 +-
 11 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/target/linux/ramips/dts/D240.dts b/target/linux/ramips/dts/D240.dts
index 3da96f2a9e..ef45d38e61 100644
--- a/target/linux/ramips/dts/D240.dts
+++ b/target/linux/ramips/dts/D240.dts
@@ -136,7 +136,7 @@
 
 &ethernet {
 	mtd-mac-address = <&factory 0x4>;
-	ralink,port-map = "wllll";
+	mediatek,portmap = "wllll";
 };
 
 &wmac {
diff --git a/target/linux/ramips/dts/GL-MT300A.dts b/target/linux/ramips/dts/GL-MT300A.dts
index a700558a03..d4c8351f1e 100644
--- a/target/linux/ramips/dts/GL-MT300A.dts
+++ b/target/linux/ramips/dts/GL-MT300A.dts
@@ -133,7 +133,7 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&ephy_pins>;
 	mtd-mac-address = <&factory 0x4000>;
-	ralink,port-map = "wllll";
+	mediatek,portmap = "wllll";
 };
 
 &wmac {
diff --git a/target/linux/ramips/dts/GL-MT300N.dts b/target/linux/ramips/dts/GL-MT300N.dts
index be78a72b50..927ea54d0e 100644
--- a/target/linux/ramips/dts/GL-MT300N.dts
+++ b/target/linux/ramips/dts/GL-MT300N.dts
@@ -122,7 +122,7 @@
 
 &ethernet {
 	mtd-mac-address = <&factory 0x4000>;
-	ralink,port-map = "wllll";
+	mediatek,portmap = "wllll";
 };
 
 &wmac {
diff --git a/target/linux/ramips/dts/GL-MT750.dts b/target/linux/ramips/dts/GL-MT750.dts
index ad1e3f9173..1266dd3230 100644
--- a/target/linux/ramips/dts/GL-MT750.dts
+++ b/target/linux/ramips/dts/GL-MT750.dts
@@ -128,7 +128,7 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&ephy_pins>;
 	mtd-mac-address = <&factory 0x4000>;
-	ralink,port-map = "llllw";
+	mediatek,portmap = "llllw";
 };
 
 &wmac {
diff --git a/target/linux/ramips/dts/MAC1200RV2.dts b/target/linux/ramips/dts/MAC1200RV2.dts
index 73ba493c5d..6d58b25b87 100644
--- a/target/linux/ramips/dts/MAC1200RV2.dts
+++ b/target/linux/ramips/dts/MAC1200RV2.dts
@@ -72,7 +72,7 @@
 &ethernet {
 	pinctrl-names = "default";
 	mtd-mac-address = <&factory 0xd>;
-	ralink,port-map = "llllw";
+	mediatek,portmap = "llllw";
 };
 
 &wmac {
diff --git a/target/linux/ramips/dts/NBG-419N2.dts b/target/linux/ramips/dts/NBG-419N2.dts
index 18e7902397..73143bd642 100644
--- a/target/linux/ramips/dts/NBG-419N2.dts
+++ b/target/linux/ramips/dts/NBG-419N2.dts
@@ -102,7 +102,7 @@
 };
 
 &esw {
-	ralink,portmap = <0x2f>;
+	mediatek,portmap = <0x2f>;
 };
 
 &wmac {
diff --git a/target/linux/ramips/dts/WL-WN575A3.dts b/target/linux/ramips/dts/WL-WN575A3.dts
index 98716beb49..213cf9c70b 100644
--- a/target/linux/ramips/dts/WL-WN575A3.dts
+++ b/target/linux/ramips/dts/WL-WN575A3.dts
@@ -125,5 +125,5 @@
 
 &ethernet {
 	mtd-mac-address = <&factory 0x2e>;
-	ralink,port-map = "llllw";
+	mediatek,portmap = "llllw";
 };
diff --git a/target/linux/ramips/dts/WRTNODE2.dtsi b/target/linux/ramips/dts/WRTNODE2.dtsi
index 294616c0f7..ca7aa3befc 100644
--- a/target/linux/ramips/dts/WRTNODE2.dtsi
+++ b/target/linux/ramips/dts/WRTNODE2.dtsi
@@ -75,7 +75,7 @@
 
 &ethernet {
 	mtd-mac-address = <&factory 0x4>;
-	ralink,port-map = "llllw";
+	mediatek,portmap = "llllw";
 };
 
 &sdhci {
diff --git a/target/linux/ramips/dts/ZBT-WE826.dts b/target/linux/ramips/dts/ZBT-WE826.dts
index de7fa42d91..8a453bca32 100644
--- a/target/linux/ramips/dts/ZBT-WE826.dts
+++ b/target/linux/ramips/dts/ZBT-WE826.dts
@@ -102,7 +102,7 @@
 
 &ethernet {
 	mtd-mac-address = <&factory 0x4>;
-	ralink,port-map = "wllll";
+	mediatek,portmap = "wllll";
 };
 
 &wmac {
diff --git a/target/linux/ramips/dts/kn_rc.dts b/target/linux/ramips/dts/kn_rc.dts
index 2709b5188a..e25783f685 100644
--- a/target/linux/ramips/dts/kn_rc.dts
+++ b/target/linux/ramips/dts/kn_rc.dts
@@ -115,7 +115,7 @@
 
 &ethernet {
 	mtd-mac-address = <&factory 0x4>;
-	ralink,port-map = "wllll";
+	mediatek,portmap = "wllll";
 };
 
 &wmac {
diff --git a/target/linux/ramips/dts/kn_rf.dts b/target/linux/ramips/dts/kn_rf.dts
index 1190eab714..4f2b71035e 100644
--- a/target/linux/ramips/dts/kn_rf.dts
+++ b/target/linux/ramips/dts/kn_rf.dts
@@ -115,7 +115,7 @@
 
 &ethernet {
 	mtd-mac-address = <&factory 0x4>;
-	ralink,port-map = "wllll";
+	mediatek,portmap = "wllll";
 };
 
 &wmac {
-- 
2.11.0




More information about the Lede-dev mailing list