Post Go back to editing

ADIN6310 custom hardware verification

Thread Summary

The user had issues connecting to the ADIN6310 switch via Ethernet and flashing firmware. The problem was resolved by strapping the PHY into unmanaged mode and reflowing the ADIN6310 chip. For RGMII MAC speed matching, the user needs to route the PHY's MDINT pin to the host to trigger the host to read the PHY and adjust the switch port speed. Using ADIN1300 PHYs would allow automatic speed matching without additional host intervention.
AI Generated Content
Category: Hardware
Software Version: 5.0

Hello, 

I have been working on verifying some custom hardware with the ADIN6310. I am having some troubles connecting to it, so I have yet to flash the firmware on it for the first time. My goal is to be able to flash firmware/configure the switch on ethernet port 0, which will be driven by a microcontroller. I am still waiting on the software for the switch to be configured by the microcontroller, so I am trying to verify the switch by connecting to port 1, which has a standard ethernet phy.

I believe I have some simple things working and verified, but I am lacking the ability to connect to the host port via Ethernet. Here is what I have verified so far:

 - I can strap the switch for SPI communication and see the pulses on the TIMER0 line every 1.25 seconds. This leads me to believe that my power/pinout/crystal oscillator is in a good enough shape to at least have the switch be able to communicate. 

 - When I strap the board for Ethernet communication, I have scoped the 125MHz clock signal (Px_TXC). It seems to be stable and clean. 

I am trying to connect to it via the "...tsn_evaluation_util.exe" and I am not having any luck. Should I be able to connect to a switch that has never had any firmware flashed to it? 

I know there is a driver example on github (this guy). I went to download it, and I am not able to build the project. It says that I am missing header information. I have provided a screenshot below:

Is there something I am missing for this project?

Any help you can provide would be greatly appreciated. 

Thanks,

BW

Thread Notes

Parents
  • Hi BW, 

    Clarifying my last message,

    Since this is an unmanaged PHY in relation to the switch, we recommend that you trigger the host to read the PHY, allowing the switch to speed match as necessary. 

    Based on your PHY's datasheet, there does not look to be a link pin that we can connect to Px_LINK. Therefore, we can't use the switch's Px_LINK pin to trigger the host.

    However, there is an MDINT pin that we can use. By connecting this interrupt pin to the host, the host can be triggered on a link-up, signalling the host to read the PHY over the switch's MDIO. The switch's Driver API, SES_ReadPhyReg(), can be used to read the PHY, which can be found in the header file, SES_switch.h, in the Driver Library.

    Let me know if you'd like support with triggering the host or reading the PHY. 


    Thanks, 

    Ciara



  • Hi Ciara, 

    Thanks for the clarification. I think I understand your proposal there. 

    For my application, The host is going to be somewhat limited on what we will be able to with that configuration. 

    So, let me ask a follow up question. If I were to swap my phys with the ADIN1300 phys, would the be able to handle the MAC speed change without another interaction from the host? The host would still do the initial configuration, of course. 

    Thanks,

    BW

  • Hi BW, 

    Correct. If the ADIN1300 PHY is being used, the switch's Px_LINK can be connected to the ADIN1300's LINK_ST pin, triggering the switch on link-up to read the PHY and speed match automatically. Exactly, the host will need to load the firmware onto the switch, and then the switch will take care of managing the ADIN1300 PHY. 

    Thanks, 

    Ciara

  • Hi Ciara, 

    Perfect! Thanks for all your help with this, and thank you to Catherine and Karl for your help as well! 

    Thanks,

    BW

  • Hi BW, 

    You're welcome. Let us know how you get on, or if you need support. 

    Thanks, 

    Ciara

Reply Children
No Data

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.