Re: [PATCH net-next v3 4/6] net: dsa: mt7530: Add the support of MT7531 switch

2020-09-05 Thread Jakub Kicinski
On Fri, 4 Sep 2020 22:21:59 +0800 Landen Chao wrote: > +static int > +mt7531_cpu_port_config(struct dsa_switch *ds, int port) > +{ > + struct mt7530_priv *priv = ds->priv; > + phy_interface_t interface; > + int speed; > + > + switch (port) { > + case 5: > + if

[PATCH net-next v3 4/6] net: dsa: mt7530: Add the support of MT7531 switch

2020-09-04 Thread Landen Chao
Add new support for MT7531: MT7531 is the next generation of MT7530. It is also a 7-ports switch with 5 giga embedded phys, 2 cpu ports, and the same MAC logic of MT7530. Cpu port 6 only supports SGMII interface. Cpu port 5 supports either RGMII or SGMII in different HW sku, but cannot be muxed