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.

Connection of AM3357 PRU RXLINK singals

Guru 15510 points
Other Parts Discussed in Thread: AM3357, TLK105L, TLK110

Hi,

I have a question about AM3357 PRU signal.

My customer are going to use AM3357 for PROFINET and EtherCAT.

They are trying to connect Ether PHY(not TI PHY) to AM3357 PRU signal. But we don't know where to connect the "pr1_mii0_rxlink" and "pr1_mii1_rxlink" signal against Ether PHY.

For EtherCAT, from the following ti wiki page, it seem these signal are recommended to connect to the LED_LINK or LED_Speed pin of PHY. processors.wiki.ti.com/.../AM335x_EtherCAT_firmware_API_guide

How about PROFINET? Where these signals must be connected to?

best regards,

g.f.

  • Hi g.f,

    On the ICE EVM v2.1 these signals are connected to the PHY signal named LED_SPEED. This board supports both industrial protocols that you ask about. However you haven't posted what PHY your customer is using.
  • Hi Biser,

    Thank you for the repy.
    Sorry, I don't have information which PHY the customer are going to use.

    Yes, I checked the ICE EVM2.1 schematics and found it is connected to LED_SPEED.
    So, this signal can be connect to LED_LINK or LED_SPEED if the PHY have these signal, is it correct?
    If the PHY does not have LED_LINK/LED_SPEED signal, can "pr1_mii0_rxlink" and "pr1_mii1_rxlink" be left floating?

    By the way, on AM437x IDK board, "pr1_mii0_rxlink" is connected to COL signal of TLK105L and Yellow LED of RJ45.
    I understand that AM335x and AM437x are differenct device but it has same signal("pr1_mii0_rxlink") and connected to
    different signal. So, I'm confusing little.

    best regards,
    g.f.
  • As these questions are also PRU firmware - related, I have asked the ISDK team to comment.
  • Hi Biser,

    Thank you. I will wait for the comment.

    best regards,
    g.f.
  • Beckhoff provides an excellent Phy selection guide to assist in Phy selection and  configuration.

    https://download.beckhoff.com/download/Document/io/ethercat-development-products/an_phy_selection_guidev2.3.pdf

    This document also specifies the LED display requirements for Ethernet phy signals.

     

    >> If the PHY does not have LED_LINK/LED_SPEED signal, can "pr1_mii0_rxlink" and "pr1_mii1_rxlink" be left floating?

    Yes – however - then in tiescbsp,c,

    in the function bsp_init, before calling bsp_pruss_mdio_init 

    Set   mdioParamsInit.enhancedlink_enable = TIESC_MDIO_RX_LINK_DISABLE;

    //This forces MDIO h/w state to a m/c based link detection

     

    On the AM335x this signal is connected to the TLK110 LED_SPEED (pin 27).

    The LED_SPEED indicates whether the link is AN_1 100Mb/s or 10Mb/s.

     The LED is ON when the link speed is 100Mbs and OFF when it is 10Mbs.

    On the AM437x IDK EVM, a TLK105L phy is used. 

    The TLK105l is a smaller 32 pin device compared to the larger 48 pin TLK110 device.

    On the TLK105L, the COL (MLED)/PHYADD0  (pin 29) can be configured to output the Multi LED. 

    The AM437x software configures this pin to output the Multi LED in mode 0x05.

    As a result this pin outputs a high when the link speed is 100Mbs.

    David

  • Hi David,

    Thank you for the reply.
    I understood for the EtherCAT application.

    But my customer also making PROFINET application with AM3357.
    In such case, can "pr1_mii0_rxlink" and "pr1_mii1_rxlink" be left floating as EtherCAT application?
    Do they need to modify PRU firmware?If yes, which source file should be modified?

    best regards,
    g.f.
  • Hi David,

    Is there any information about PROFINET which is my last question?

    By the way, my customer are using EtherPHY which have LED_SPEED.
    In there EtherCAT application, if LED_SPEED is High level it is indicating 100Mbps.
    So, they can connect "pr1_mii0_rxlink" and "pr1_mii1_rxlink" without any modification of tiescbsp.c.
    Am I correct?

    best regards,
    g.f.
  • Hi g.f.

    PROFINET does not use these signals.  No software modification is required.

    TheEtherCAT high speed signal is configured for Active High or Active Low by setting the polarity argument when calling the PRU ICSS EtherCAT firmware API  bsp_pruss_mdio_init.

    This is documented in http://processors.wiki.ti.com/index.php/PRU_ICSS_EtherCAT_firmware_API_guide#bsp_pruss_mdio_init

    The polarity can be found by looking at  the PRU_ICSS MDIO Link register (0x4A33240C)

    David

  • Hi David,

    Thank you for the reply.
    I understood. So, in PROFINET the user can leave those signal pin floating and set the PINMUX to GPIO(output) or
    can use as other function pin.

    By the way, I'm searching the details about PRU_ICSS MDIO Link Register.
    But I can't find from TRM and AM335x Datasheet. From TRM, address 0x4A33240C is reserved area.
    Can you give me a details of this register?

    best regards,
    g.f.
  • Hi g.f.

    For the AM335x and AM437 the register is defined as

    MDIOLink - MDIO Link Reg (Base Addr + 0x0c)

    Field

    Name

    Description

    31:0

    link

    MDIO Link state. This register is updated after a read of the Generic Status Register of a PHY. The bit is set if the PHY with the corresponding address has link and the PHY acknowledges the read transaction. Writes to the register have no effect. In addition, the status of the two PHYs specified in the MDIOUserPhySel registers can be determine using the MLINK input pins. This is determined by the linksel bit in the MDIOUserPhySel register.

     

    David