mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-18 18:56:37 +00:00
ramips: mt76x8: fix bogus mediatek,portmap
mt76x8 uses esw_rt3050 driver, which does not accept mediatek,portmap with string values. Convert the strings to integers to make it work. According to its switch setup, WRTnode 2P/2R have a WAN port at port 0, so the correct value should be 0x3e. tplink_8m.dtsi uses "llllw", but it does not match switch setups of any device using the DTSI. Remove it from the DTSI and add correct value to DTS for each device. These devices have a WAN port at port 0. Set the value to 0x3e. - tplink,archer-c20-v4 - tplink,archer-c50-v3 - tplink,tl-mr3420-v5 - tplink,tl-wr840n-v4 - tplink,tl-wr841n-v13 - tplink,tl-wr842n-v5 These devices have only one ethernet port. They don't need portmap setting. - tplink,tl-wa801nd-v5 - tplink,tl-wr802n-v4 - tplink,tl-wr902ac-v3 Signed-off-by: Sungbo Eo <mans0n@gorani.run>
This commit is contained in:
parent
d3c0a94405
commit
7a387bf9a0
@ -136,5 +136,8 @@
|
||||
|
||||
ðernet {
|
||||
mtd-mac-address = <&factory 0x28>;
|
||||
mediatek,portmap = "llllw";
|
||||
};
|
||||
|
||||
&esw {
|
||||
mediatek,portmap = <0x2f>;
|
||||
};
|
||||
|
@ -82,7 +82,10 @@
|
||||
ðernet {
|
||||
pinctrl-names = "default";
|
||||
mtd-mac-address = <&factory 0xd>;
|
||||
mediatek,portmap = "llllw";
|
||||
};
|
||||
|
||||
&esw {
|
||||
mediatek,portmap = <0x2f>;
|
||||
};
|
||||
|
||||
&wmac {
|
||||
|
@ -84,5 +84,8 @@
|
||||
|
||||
ðernet {
|
||||
mtd-mac-address = <&rom 0xf100>;
|
||||
mediatek,portmap = "wllll";
|
||||
};
|
||||
|
||||
&esw {
|
||||
mediatek,portmap = <0x3e>;
|
||||
};
|
||||
|
@ -66,5 +66,4 @@
|
||||
|
||||
ðernet {
|
||||
mtd-mac-address = <&factory 0xf100>;
|
||||
mediatek,portmap = "llllw";
|
||||
};
|
||||
|
@ -78,8 +78,8 @@
|
||||
mtd-mac-address-increment = <(-2)>;
|
||||
};
|
||||
|
||||
ðernet {
|
||||
mediatek,portmap = "wllll";
|
||||
&esw {
|
||||
mediatek,portmap = <0x3e>;
|
||||
};
|
||||
|
||||
&state_default {
|
||||
|
@ -80,6 +80,10 @@
|
||||
};
|
||||
};
|
||||
|
||||
&esw {
|
||||
mediatek,portmap = <0x3e>;
|
||||
};
|
||||
|
||||
&pcie {
|
||||
status = "okay";
|
||||
};
|
||||
|
@ -88,3 +88,7 @@
|
||||
ralink,function = "gpio";
|
||||
};
|
||||
};
|
||||
|
||||
&esw {
|
||||
mediatek,portmap = <0x3e>;
|
||||
};
|
||||
|
@ -46,5 +46,4 @@
|
||||
|
||||
ðernet {
|
||||
mtd-mac-address = <&factory 0xf100>;
|
||||
mediatek,portmap = "l";
|
||||
};
|
||||
|
@ -62,3 +62,7 @@
|
||||
ralink,function = "gpio";
|
||||
};
|
||||
};
|
||||
|
||||
&esw {
|
||||
mediatek,portmap = <0x3e>;
|
||||
};
|
||||
|
@ -95,7 +95,10 @@
|
||||
|
||||
ðernet {
|
||||
mtd-mac-address = <&factory 0xf100>;
|
||||
mediatek,portmap = "wllll";
|
||||
};
|
||||
|
||||
&esw {
|
||||
mediatek,portmap = <0x3e>;
|
||||
};
|
||||
|
||||
&state_default {
|
||||
|
@ -88,3 +88,7 @@
|
||||
ralink,function = "gpio";
|
||||
};
|
||||
};
|
||||
|
||||
&esw {
|
||||
mediatek,portmap = <0x3e>;
|
||||
};
|
||||
|
@ -109,7 +109,10 @@
|
||||
|
||||
ðernet {
|
||||
mtd-mac-address = <&factory 0xf100>;
|
||||
mediatek,portmap = "wllll";
|
||||
};
|
||||
|
||||
&esw {
|
||||
mediatek,portmap = <0x3e>;
|
||||
};
|
||||
|
||||
&state_default {
|
||||
|
@ -88,3 +88,7 @@
|
||||
ralink,function = "gpio";
|
||||
};
|
||||
};
|
||||
|
||||
&esw {
|
||||
mediatek,portmap = <0x3e>;
|
||||
};
|
||||
|
@ -123,5 +123,8 @@
|
||||
|
||||
ðernet {
|
||||
mtd-mac-address = <&factory 0x2e>;
|
||||
mediatek,portmap = "llllw";
|
||||
};
|
||||
|
||||
&esw {
|
||||
mediatek,portmap = <0x2f>;
|
||||
};
|
||||
|
@ -118,5 +118,8 @@
|
||||
|
||||
ðernet {
|
||||
mtd-mac-address = <&factory 0x28>;
|
||||
mediatek,portmap = "llllw";
|
||||
};
|
||||
|
||||
&esw {
|
||||
mediatek,portmap = <0x2f>;
|
||||
};
|
||||
|
@ -71,7 +71,10 @@
|
||||
|
||||
ðernet {
|
||||
mtd-mac-address = <&factory 0x4>;
|
||||
mediatek,portmap = "llllw";
|
||||
};
|
||||
|
||||
&esw {
|
||||
mediatek,portmap = <0x3e>;
|
||||
};
|
||||
|
||||
&sdhci {
|
||||
|
@ -107,5 +107,8 @@
|
||||
|
||||
ðernet {
|
||||
mtd-mac-address = <&factory 0x2e>;
|
||||
mediatek,portmap = "llllw";
|
||||
};
|
||||
|
||||
&esw {
|
||||
mediatek,portmap = <0x2f>;
|
||||
};
|
||||
|
@ -179,7 +179,10 @@
|
||||
|
||||
ðernet {
|
||||
mtd-mac-address = <&factory 0x4>;
|
||||
mediatek,portmap = "wllll";
|
||||
};
|
||||
|
||||
&esw {
|
||||
mediatek,portmap = <0x3e>;
|
||||
};
|
||||
|
||||
&wmac {
|
||||
|
Loading…
Reference in New Issue
Block a user