[OpenWrt-Devel] lantiq/xrx200-net: separate lan and wan ports

Martin Schiller mschiller at tdt.de
Tue Feb 16 02:06:46 EST 2016


Hi!

I need to set up the xrx200 switch with one LAN switch part (phy2-phy5) and one WAN port (phy1).

The problem is, that I can see the LAN traffic on the WAN port and vice versa.

It doesn't also matter if SW_PORTMAP is defined or not.

I think it maybe has something to do with the PCE_PMAPx setup, but how to set this port mappings to get separated LAN and WAN groups?

The dts configuration is a follow:

wan: interface at 0 {
compatible = "lantiq,xrx200-pdi";
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
mac-address = [ 00 11 22 33 44 56 ];
lantiq,wan;

ethernet at 1 {
compatible = "lantiq,xrx200-pdi-port";
reg = <1>;
phy-mode = "rgmii";
phy-handle = <&phy1>;
};
};

lan: interface at 1 {
compatible = "lantiq,xrx200-pdi";
#address-cells = <1>;
#size-cells = <0>;
reg = <1>;
mac-address = [ 00 11 22 33 44 55 ];
lantiq,switch;

ethernet at 2 {
compatible = "lantiq,xrx200-pdi-port";
reg = <2>;
phy-mode = "mii";
phy-handle = <&phy11>;
};
ethernet at 3 {
compatible = "lantiq,xrx200-pdi-port";
reg = <3>;
phy-mode = "mii";
phy-handle = <&phy12>;
};
ethernet at 4 {
compatible = "lantiq,xrx200-pdi-port";
reg = <4>;
phy-mode = "mii";
phy-handle = <&phy13>;
};
ethernet at 5 {
compatible = "lantiq,xrx200-pdi-port";
reg = <5>;
phy-mode = "mii";
phy-handle = <&phy14>;
};
};


Regards,
Martin


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list