Not worked Camera MCLK in Xavier NX

Hello

I want to use 37.125 Mhz clock for working CSI Camera.

So, I added below code in device driver code.

devm_clk_get(dev,“extperiph1”);

And when I checking MCLK with oscilloscope, I could see clock, but it was not 37.125Mhz. It was about 8Mhz ~ 10Mhz and unstable.

How can I get clock with 37.125Mhz?

Thank you.

Fist this clock can’t generated 37.125 but 37.090909
Do you check the by below command after your code?

sudo cat /sys/kernel/debug/bpmp/debug/clk/extperiph1/rate

When I run “sudo cat /sys/kernel/debug/bpmp/debug/clk/extperiph1/rate”,
I saw value “37090909”.

And I also checked that oscilloscope is represented 37Mhz. I guess I measured oscilloscope with wrong way.

After, I’ll trying for working CSI Camera.

Thank you.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.