I am developing a module with i.mx6 solo and used 3ports ethernet switch(ksz8873) which includes phys.
Now, I want to change the interface from GRMII to MII on the i.mx6solo.
I guess, I must change the related register, but I am a beginner on the Linux. Can anybody help me?
Hi igor,
Thank you for your help. But, as I said, I am a beginner on the Linux so, I need your step by step explanation.
1. how to change the interface mode from RGMII to MII?
2. In the BSP porting guide file, "In MII mode there are 18 signals defined by the IEEE 802.3 standard" and " Please note that the pin FEC_PHY_RESET_B is used as a simple GPIO to reset the FEC
PHY before enabling phy clock, otherwise some phys will not work correctly."
I want to know whether MII also needs this reset pin or not.
3. Is there RGMII to MII patch? like you attached patch file. (U-boot + kernel)
Best regards,
Colin
Hi Coiln
it is similar to rmii, so one can look at rmii patches
https://community.nxp.com/thread/304346?commentID=331971#comment-331971
please check Chapter 12 Using the RMII Interface i.MX6 System Development User’s Guide
http://cache.freescale.com/files/32bit/doc/user_guide/IMX6DQ6SDLHDG.pdf
clock should be 25MHz according to sect.4.11.5.1 ENET MII Mode Timing i.MX6DQ Datasheet
http://cache.freescale.com/files/32bit/doc/data_sheet/IMX6DQCEC.pdf
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------