Post Go back to editing

Manual MDI Flip CFG

Category: Hardware
Product Number: ADIN1300

When trying to set the GE_MAN_MDI_FLI_CFG bit on the eval board (or custom board) does not seem top swap the pairs as stated in table 129
When reading from 0xFF26 from both eval board and custom board the default register value is 0xD86 (data sheet says after reset its 0xC86 but D86 is whats common on both devices)
Setting bit 4 (GE_MAN_MDI_FLIP_CFG = 1) changes the register value to 0xD96 when i re-read the register i do see that the value is still the same
But pairs are not swapped

Ive tried the following order of operations
1) Disable auto-link, write to 0xFF26 value of 0xD96, Enable auto link read 0xFF26 (still says the written value) but pairs still the same
2) Enter softpower down mode write to 0xFF26 value of 0xD96, Come out of softpower down 0xFF26 (still says the written value) but pairs still the same
3)  Write to 0xFF26 value of 0xD96, do all reset types, read 0xFF26 but register reseted to 0xD86

Just wondering what if there is anything else that needs to be changed, to get this feature to work all 3 scenarios from above were also tried on the eval board with no luck

Hope you can help with this

Parents
  • Hi, 
    How is the ADIN1300 HW strapped? 
    Can you read back PHY_CTRL_1, too? Is the ADIN1300 configured in Manual or Auto MDIX?

    Can you try the following sequence?
    1. Set the ADIN1300 in Software powerdown
    2. Disable AUTO_MDI_EN in PHY_CTRL_1
    3. Set GE_MAN_MDI_FLIP_CFG in GE_PHY_BASE_CFG
    4. Exit SW power down

    regards,

    Mark

  • Hi  

    Currently I am using the EVALADIN1300 and the ADI ethernet phy GUI
    The straps are the following:
    CFG1 = MODE1
    CFG0/LED0 = MODE4

    Based on the above this sets the phy to 10 HD/FD, 100 HD/FD, and 1000 FD prefer slave (and gui confirms that)

    MDIX = MODE 4 which is Auto MDIX, Prefer MDI

    Default read of PHY_CTRL_1 (Register 0x0012) = 0x402

    This the following sequence i followed based on your suggestions:
    1) Entered sofware powered down mode (using the button on the ADI GUI) confirmed this since the link was no longer there
    2) Read PHY_CTRL_1 which gave 0x402 value, Wrote 0x202 for PHY_CTRL_1 register, read this back to make sure it was written
    3) Read GE_PHY_BASE_CFG which gave 0xD86 (Weird is that in the data sheet it states this should be 0xC86 after reset), Wrote 0xD96 to set the GE_MAN_MDI_FLIP_CFG to 1, read this back to make sure the write stuck
    4) Exited SW power down

    I would have expected that my link would not established as the EVAL board is routed correctly to the RJ45 connector but the link came active
    I also tried the above with both fixed MDI and MDIX settings still no results
    I also tried writing the GE_PHY_BASE_CFG with 0xC96 (since datasheet states C86 is default after reset 0xC96 would set GE_MAN_MDI_FLIP_CFG to 1)
    still no results

    How i can confirm this i made a custom cable with pairs mirrored within the cable to do what GE_MAN_MDI_FLIP_CFG should be doing on the phy level

    Please let me know if there is anything else that needs to be tried

Reply
  • Hi  

    Currently I am using the EVALADIN1300 and the ADI ethernet phy GUI
    The straps are the following:
    CFG1 = MODE1
    CFG0/LED0 = MODE4

    Based on the above this sets the phy to 10 HD/FD, 100 HD/FD, and 1000 FD prefer slave (and gui confirms that)

    MDIX = MODE 4 which is Auto MDIX, Prefer MDI

    Default read of PHY_CTRL_1 (Register 0x0012) = 0x402

    This the following sequence i followed based on your suggestions:
    1) Entered sofware powered down mode (using the button on the ADI GUI) confirmed this since the link was no longer there
    2) Read PHY_CTRL_1 which gave 0x402 value, Wrote 0x202 for PHY_CTRL_1 register, read this back to make sure it was written
    3) Read GE_PHY_BASE_CFG which gave 0xD86 (Weird is that in the data sheet it states this should be 0xC86 after reset), Wrote 0xD96 to set the GE_MAN_MDI_FLIP_CFG to 1, read this back to make sure the write stuck
    4) Exited SW power down

    I would have expected that my link would not established as the EVAL board is routed correctly to the RJ45 connector but the link came active
    I also tried the above with both fixed MDI and MDIX settings still no results
    I also tried writing the GE_PHY_BASE_CFG with 0xC96 (since datasheet states C86 is default after reset 0xC96 would set GE_MAN_MDI_FLIP_CFG to 1)
    still no results

    How i can confirm this i made a custom cable with pairs mirrored within the cable to do what GE_MAN_MDI_FLIP_CFG should be doing on the phy level

    Please let me know if there is anything else that needs to be tried

Children
No Data