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.
Hello,
Is there a way to dump the PLL and clock settings like there was in omapconf on device?
I see there's a k3conf utility, is this the recommended alternative on AM62? Or is there another script that would allow a user to dump the clock settings?
Munan
Hi Munan,
Yes, K3Conf is the recommended way to view clock settings. There are no publicly available scripts to dump the clock settings. You can also see it by reading the register values which can be found in the Technical Reference Manual: https://www.ti.com/lit/ug/spruiv7b/spruiv7b.pdf
Best Regards,
Anshu
Hi Anshu,
Are there plans to have a publicly available script in the future for dumping clock settings? My customer can't be the only one who needs to do this and based on your phrasing it seems like maybe such a script exists internally? Can we share with customer under NDA?
Munan
Hi Munan,
There is no internal script or tool. I've written a simple python script to dump a few registers I wanted to track. So it is possible do an equivalent to K3Conf via python, but it would be very tedious.
Best Regards,
Anshu
Hi Anshu,
Is this something we can put together? For omapconf this was one of the most useful features was being able to dump the opp configuration and clock tree in userspace.
Munan
Hi Munan,
Its not something I can put together, but I can provide help where needed.
What is stopping you from using K3Conf?
Thanks,
Anshu
Hi Anshu,
Like you mentioned coming up with the list of registers to dump the clock tree is likely tedious and somewhat error prone to do manually, would be good to have an option built into k3conf to do this automatically.
Munan
Hi Munan,
Thanks for the clarification.
The k3conf tool provides a dump of clocks: k3conf dump clock or k3conf dump device
And to set: k3conf set parent_clock <dev_id> <clk_id> <parent_clk_id>
Here is the help file if needed: https://git.ti.com/cgit/k3conf/k3conf/tree/common/help.c
If these commands don't work for the use-case, then writing a script is the next option.
Best Regards,
Anshu
Hi Anshu,
Thanks!
I also found that in sysconfig/ AM6x CTT it does actually generate a python script to dump the clock tree registers for import into CTT in case anyone else needs this in the future.
Munan