CAM1_MCLK

What is the maximum clock the pin supports i am connecting this to a sensor which needs a input clock 6to 36 MHZ how to configure this clock ?

The default value of CAM1_MCLK is 24Mhz, so it can be used by you directly.

Hi Trumany
can the CAM1_MCLK/CAM2_MCLK be set at 37.125MHz and 74.25 MHz? What is the range of MCLK?

Hi chinaQin

You can check which clock by cat /sys/kernel/debug/clock/vi_sensor/max (min) to know it.

Hi ShaneCCC,
Thank you for your reply.
the command line is: [code]
root@tegra-ubuntu:/sys/kernel/debug/clock/vi_sensor# cat /sys/kernel/debug/clock/vi_sensor/min
0
root@tegra-ubuntu:/sys/kernel/debug/clock/vi_sensor# cat /sys/kernel/debug/clock/vi_sensor/max
408000000

[code]
1 so it means i can set the MCLK at any value bettewn 0 and 408000000?
2 how can i set or change the MCLK value?

Hi chinaQin
You can define it in your DT like below.

ov5693_c@36 {
    compatible = "nvidia,ov5693";
    reg = <0x36>;
    devnode = "video2";
 
    physical_w = "3.674";
    physical_h = "2.738";
    sensor_model = "ov5693";
 
    avdd-reg = "vana";
    iovdd-reg = "vif";
 
    mode0 { // OV5693_MODE_2592X1944
        mclk_khz = "24000";
        num_lanes = "2";