Hi,
Can RMII1_REFCLK output 25Mhz clock at u-boot level ?
Thanks & Regards
Keldy
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.
Hi Keldy,
What is your use-case?
We can modify PLL configurations (M5) to get the RMII clock as 25MHz, but some of the other clocks get affected like CPTS, remaining MII clocks. Details can be found from TRM section "8.1.1.6.6 Core PLL Description"
Regards
AnilKumar
Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question. Thanks!
Hi AnilKumar,
my use-case is i want to enable ethenet at u-boot, but my custom board will use RMII1_REFCLK as clock for ethernet PHY.
can i use the u-boot.img come from the AM335x EVM ? the AM335x EVM use externel crystal as clock for PHY, so any changes needed to the u-boot code?
Thanks & Regards
Keldy
Keldy said:can i use the u-boot.img come from the AM335x EVM ? the AM335x EVM use externel crystal as clock for PHY, so any changes needed to the u-boot code?
AnilKumar
Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question. Thanks!
Hi Keldy,
Code is present at (board/ti/am335x/pll.c, core_pll_config()), this file using the macro defined in the header file.
Modifications required in "arch/arm/include/asm/arch-ti81xx/clocks_am335x.h" file
Replace #define COREPLL_M5 8 with #define COREPLL_M5 16
Regards
AnilKumar
Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question. Thanks!
Hi AnilKumar,
Think i can enable RMII_REFCLK by setting the register GMII_SEL.rmii1_io_clk_en. But as you said, configure RMII_REFCLK will affect other clock.
My objective is provide 25Mhz clock to gigabit ethernet PHY instead of using external 25Mhz crystal.
From your opinion, do you think i can use CLKOUT2 instead of RMII_REFCLK ?
will it have any differences between using CLKOUT2, RMII1_REFCLK, or external crystal as 25Mhz clock source?
Thanks & Regards
Keldy
Hi Keldy,
Can you check the pinmux settings of "conf_rmii1_refclk" pin is configured for rmii or some other. Section "9.3.1.50" in TRM
In your case you should use this pin as RMII
Regards
AnilKumar
Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question. Thanks!