AM6442: Configuring DP83869 PHY via MDIO on AM6442 Without MAC Binding

Part Number: AM6442
Other Parts Discussed in Thread: SYSCONFIG, DP83869,

Tool/software:

We are using the TI PHY DP83869 to interface with a MAC port of an external Ethernet switch. The MDIO and MDC lines of this PHY are connected to the CPSW port of the TI AM6442. The PHY's RGMII interface is connected to the switch, but the switch does not support PHY management. We need to configure this PHY using the R5 core of the TI AM6442 running FreeRTOS. We are able to configure the PHY when it is bound to a MAC port in SysConfig. However, in our case, we only need to configure the PHY, as the MAC is already connected to another PHY.

  • Hi Perumalsamy,

    From my understanding, you would like to configure the TI PHY using R5 core, but do not intend to use CPSW for the switch. This is not supported out of box in the platform. But you can do this by using available PHY drivers or enet libraries. Using PHY drivers which are part of board libraries on AM64x, you can configure the PHY by directly writing into the registers. There would be no state machine to handle the PHY link states. The application must implement a mechanism to handle changes in the PHY

    Alternatively, you can enable this using enet library utilities as well for configuration. The link handling and maintenance will have to be taken care by the application itself. You would need to leverage the enet driver, and PHY drivers to configure the PHY. There are external Phy management related drivers included in the SDK for reference. You can find the corresponding documentation in Ethernet PHY Integration Guide

    Regards,
    Teja.

  • Hi Teja,

    Thank you for your detailed explanation and the suggested approach. I will try the recommended steps and see how it works with the PHY configuration. I’ll keep you updated on the results.

    Thanks again for your support!

    Regards,

    Perumal Samy.

  • Hi Perumal Samy,

    Glad that it is helpful. Please reach out to us if any further questions arise.

    Regards,
    Teja.