This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM3352: CPSW port connected to Ethernet switch

Part Number: AM3352

Tool/software: Linux

The internal ethernet switch of our am335x (CPSW) is connected to a 3 port ethernet swtich chip (one port facing the am335x and two external ports). 

This is a problem for the cpsw kernel driver because the driver will always adjust the mac speed/duplex based on the phy status (see: drivers/net/ethernet/ti/cpsw.c:_cpsw_adjust_link()).

In our case the switch port facing the cpsw will always be 100/full whatever the phys state are.

How can the am335x handle this use-case?

  • Hi,

    Unfortunately TI currently does not support interfacing to external switches on the MAC interface. I can only provide some suggestions. First when connecting to external switch the PHY mode between the MAC and the Switch should be fixed mode, as the link is always present. I think you will need to verify with the switch manufacturer about Distributed Switch Architecture support for the switch driver.