mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 18:19:02 +00:00
ipq40xx: fix ZTE MF289F port mapping
With initial support, the mapping of LAN1/WAN and LAN2 ports was swapped. Fix it to match labels on the device, keeping the "WAN" personality of the first port - in line with current state of DSA setup in master for this device. Tested-by: Marcin Gajda <mgajda@o2.pl> Tested-by: Christian Heuff <christian@heuff.at> Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
This commit is contained in:
parent
71178a8506
commit
26b58991b0
@ -153,7 +153,7 @@ ipq40xx_setup_interfaces()
|
|||||||
zte,mf289f)
|
zte,mf289f)
|
||||||
ucidef_set_interfaces_lan_wan "eth0" "eth1"
|
ucidef_set_interfaces_lan_wan "eth0" "eth1"
|
||||||
ucidef_add_switch "switch0" \
|
ucidef_add_switch "switch0" \
|
||||||
"0u@eth0" "0u@eth1" "2:lan:1" "5:lan:2"
|
"0u@eth0" "5:lan:2" "0u@eth1" "2:wan"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unsupported hardware. Network interfaces not initialized"
|
echo "Unsupported hardware. Network interfaces not initialized"
|
||||||
|
@ -103,6 +103,8 @@
|
|||||||
|
|
||||||
ess-switch@c000000 {
|
ess-switch@c000000 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
switch_lan_bmp = <0x20>;
|
||||||
|
switch_wan_bmp = <0x4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
edma@c080000 {
|
edma@c080000 {
|
||||||
@ -322,12 +324,14 @@
|
|||||||
&gmac0 {
|
&gmac0 {
|
||||||
nvmem-cell-names = "mac-address";
|
nvmem-cell-names = "mac-address";
|
||||||
nvmem-cells = <&macaddr_mac_0>;
|
nvmem-cells = <&macaddr_mac_0>;
|
||||||
|
vlan_tag = <1 0x20>;
|
||||||
};
|
};
|
||||||
|
|
||||||
&gmac1 {
|
&gmac1 {
|
||||||
nvmem-cell-names = "mac-address";
|
nvmem-cell-names = "mac-address";
|
||||||
nvmem-cells = <&macaddr_mac_0>;
|
nvmem-cells = <&macaddr_mac_0>;
|
||||||
mac-address-increment = <1>;
|
mac-address-increment = <1>;
|
||||||
|
vlan_tag = <2 0x4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user