How to use CLKO2 to ouput 24MHZ clock?

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

How to use CLKO2 to ouput 24MHZ clock?

589 Views
daniel_lee1
Contributor II

Hi,

We would like CLKO2 to output 24MHz clock instead of 20MHz on imx8mq EVKB.

How can I do?

Best regards,

Daniel

Labels (1)
0 Kudos
1 Reply

541 Views
igorpadykov
NXP Employee
NXP Employee

Hi Daniel

one can try to set CLKO2 "assigned-clock-rates" in dts file:

fsl-imx8mq-evk.dts\freescale\dts\boot\arm64\arch - linux-imx - i.MX Linux kernel 

However for producing accurate 24MHz clock it is necessary to set proper parent clock

which could be evenly divided. Clock parents can be found in clk driver:

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

Also may be useful to check

https://community.nxp.com/thread/452513 

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

0 Kudos