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>
zte,mf289f)
ucidef_set_interfaces_lan_wan "eth0" "eth1"
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"
ess-switch@c000000 {
status = "okay";
+ switch_lan_bmp = <0x20>;
+ switch_wan_bmp = <0x4>;
};
edma@c080000 {
&gmac0 {
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_mac_0>;
+ vlan_tag = <1 0x20>;
};
&gmac1 {
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_mac_0>;
mac-address-increment = <1>;
+ vlan_tag = <2 0x4>;
};