The same device is used on the Compex WPJ428,
is the device using double VLAN tags ? ( tagged VLAN 1 and 2 from devicetree )
There is only 1 switch ( QCA8072 ) that has ports 4 and 5 connected to the external RJ45 sockets, so the LuCi switch web config doesn't always work on this system :
I have to set it in /etc/config/network and specify eth1.x or eth0.x even tho they are both on the same switch- makes it look like they are on separate switches ( or the same switch with 2 gmac / mdio busses ) .. strange indeed
I've gotten VLANs to work with it by manually adding the switch configs to /etc/config/network : ( part of a mwan3 config we were doing - the compex only has 2 physical ports on the board so I extended the ports via a managed switch)
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan 'eth1_11'
option device 'switch0'
option vlan '11'
option vid '11'
option ports '0t 4t 5t'
config switch_vlan 'eth1_12'
option device 'switch0'
option vlan '12'
option vid '12'
option ports '0t 4t 5t'
config switch_vlan 'eth0_15'
option device 'switch0'
option vlan '15'
option vid '15'
option ports '0t 4t 5t'
from the devicetree it looks like vlan tags are set for "wan" and "lan"
&gmac0 {
qcom,phy_mdio_addr = <4>;
qcom,poll_required = <1>;
qcom,forced_speed = <1000>;
qcom,forced_duplex = <1>;
vlan_tag = <2 0x20>;
};
&gmac1 {
qcom,phy_mdio_addr = <3>;
qcom,poll_required = <1>;
qcom,forced_speed = <1000>;
qcom,forced_duplex = <1>;
vlan_tag = <1 0x10>;
};
but in 02_network its called"eth0 and eth1"
compex,wpj428
ucidef_set_interface_lan "eth0 eth1"