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.

AM3352: Ethernet switch issue

Part Number: AM3352


Hi Sir,

  We are using Ethernet Switch part number KSZ8895MQXI One of our Project.
Port5(using as a Phy) is connected to am3352 Processor Through MII Ineterface.

We are Probed TXCLK,RXCLK in switch side.it shows 25MHz
Then we are probed all MII signals while ping at that time TXD[0...3] burst data coming out from am3352 processor.But Ethernet PHY doesn't response (Link status shows DOWN) to processor while ping.

Here with attached our Ethernet schematic.Can you please verify and give us the solution as soon as possible.


RegardsETHERNET SWITCH.PDF

  • Most likely you have a software issue. What software are you using?
  • Hi Biser,

    We are using U-Boot SPL 2017.07 . We are trying to ping the Ethernet switch through U-Boot.

    Regards,
    Avinash N
  • Please follow this checklist and post your results here: processors.wiki.ti.com/.../5x_CPSW
  • Hi Biser,

    While I am trying to ping the External IP from uboot
    I got the following prints from my uboot
    Please check and suggest us what could be wrong ( my MII_BMSR registers always shows the value 0x7808 )
    =====================================================
    U-Boot 2017.01-00319-geae4602-dirty (Oct 25 2017 - 14:54:50 +0530)

    CPU : AM3352
    DRAM: 1 GiB
    WARNING: Caches not enabled
    NAND: 512 MiB
    MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
    In: serial@44e09000
    Out: serial@44e09000
    Err: serial@44e09000
    Net: Enabling MII Mode ....Done.
    Detected PHY ID = 0x221450
    Phy ID = 0x221450
    cpsw connected to Generic PHY
    cpsw
    Hit any key to stop autoboot: 0
    =>
    =>
    =>
    => pri ipaddr
    ipaddr=172.17.1.123
    => ping 172.17.0.1
    *** mii_reg = 0x7808
    mac_control = 0x8021
    link up on port 0, speed 100, full duplex
    MAC Control = 0x8021
    Using cpsw device

    ARP Retry count exceeded; starting again
    ping failed; host 172.17.0.1 is not alive
    ===================================================

    Thanks for the Help.
  • Hi,

    Unfortunately TI currently does not support interfacing to external switches on the MAC interface.

    I can only provide some suggestions. First the when connecting to external switch the PHY mode between the MAC and the Switch should be fixed, 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. There is a linux community effort around this topic that will probably be able to provide additional support.

    Best Regards,
    Schuyler
  • You have connected AM335x MII interface to the PM... MII pins of the switch device. These are attached to the PHY5 of the switch which are not connected in your schematics.

     If you want the AM335x MII data to be passed to the switch, you need to connect AM335x MII port to SM... MII pins of the switch. Alternatively connect a magnetics/jack to RX5/TX5, then you should be able to connect using this port.

    tom