In RGMII Mode, only the pin "ENET_REF_CLK" could used as 125M reference clock input.
The 125M reference clock could be from PHY chip, or external oscillator, and could also be routed from GPIO_16(need software configuration).
In RMII Mode, only two pins "GPIO_16" and "RGMII_TX_CTL" could be used as the 50M reference clock. The clock source could be from external oscillator or internal PLL, need software configuration. Please refer the document "I.MX6 Hardware Development Guide", Chapter 11.
hello Fei Liu
You said "The 125M reference clock could be from PHY chip, or external oscillator, and could also be routed from GPIO_16(need software configuration)."
I want to ask how to routed from GPIO_16?What is the detail configuration?
Now I can generate the 125M clock at the GPIO_16.
Thank you very much
ENET_REF_CLK is the input pin for RGMII reference clock, so if you want to use GPIO_16 to provide the 125M clock, you should connect GPIO_16 to ENENT_REF_CLK, and be careful, the voltage level might be different, you might need an level shift.
thank you very much!
But I see you say"need software configuration",is there any method though software?
The software configuration is just for outputting 125M on GPIO_16, since you have already done, no additional operations or configurations are needed.
ok,I know,thank you very much!
Hi Fei Liu
We follow "I.MX6 Hardware Development Guide", Chapter 11,
and modify below pin for RMII interface
but we still have problem on RMII,
is anything else I should check in the kernel driver ??
How to config below pins ? Should I modify it to other function ??
Kernel driver don’t support RMII, but we have patch for this. （You can email to me to get it： email@example.com）
Don’t care about RGMII pad control.
How can i use RMII on imx6D on kernel 4.1.15?
For RMII you need to set 50Mhz clock for enet, the best option would be to set it in u-boot using the following call and have the clock already set in the kernel
Thanks for this patch !
I also use LAN8720 and RMII connection to it from a IMX6S and it works well in U-Boot but last kernel 3.10.17 from imx git seems to disable 50MHz PLL.
How to force it in DTS ?
I've yet tried to replace clks190 - "ptp" by "enet_ref" in fec controller description (imx6qdl.dtsi) without success.
is it working your i.MX6S kernel 3.10.17 with LAN8720 and RMII connection?
sorry for the late reply.
Yes, it was worked in our platform. (i.MX6S kernel 3.10.17 with LAN8720 and RMII)
Here it is at last ;-)
Cordiali Saluti / Kindest Regards / Mit freundlichen Grüßen
Marco Cavallini | KOAN sas | Bergamo - Italia
embedded and real-time software engineering
Phone:+39-035-255.235 - Fax:+39-178-22.39.748
We are also facing the same issue. Did you have any luck in 3.10.17?
we have similar problem with custom board with MX6S/DL. PHY is LAN8720 and i u-boot works ok.
In kernel, iomux and clock generated by gpio_16 is ok.
I don't understand - kernel driver don't support RMII, but on MX6SL dev board (and processor) is only RMII.
I know this is allmost another processor, but changes in u-boot are inpired by mx6slevk.c
Ist about RMII support for MX6S/DL/Q ?
For what kernel branch is patch applicable - is RMII support better in some branches - I use imx_3.0.35_1.1.0
Hi Fugang Duan
it is sloved, thanks!!
Thanks, this document told about GPIO_16 refclock connections, but sabresd, sabresdlite boards use ENET_REF_CLK pin for reference clock and this document don't have any for it ...