Configure ENET1_TIME_CLK_ROOT via device tree

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Configure ENET1_TIME_CLK_ROOT via device tree

536 Views
florianharmuth
Contributor II

Hello all,

as already mentioned in the title I'm trying to setup the ENET1_TIME_CLK_ROOT via a device tree entry to use EXT_CLK2 instead of the default OSC_24M value. In theory I need create a dummy clock which represents the EXT_CLK2 and assign this clock to the fec1 device - right? Are there any examples how to setup the correct clock mux and assigning it to a device?

Best Regards,

flo

Labels (2)
Tags (1)
0 Kudos
1 Reply

481 Views
igorpadykov
NXP Employee
NXP Employee

Hi Floarian

one can look at example below and clk driver with documentation

Where pll4_bypass_src is set to choose osc 24MHz or CLK2_N/P as source in linux BSP code? 

clk-imx7d.c\imx\clk\drivers - linux-imx - i.MX Linux kernel 

https://www.kernel.org/doc/Documentation/clk.txt 

https://elinux.org/images/b/b8/Elc2013_Clement.pdf 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos