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.
The software configuration is just for outputting 125M on GPIO_16, since you have already done, no additional operations or configurations are needed.
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 ??
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.
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 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
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 ...