In R35.4.1, using Orin nano for mipi camera imx299 requires nano output mclk clock

I needed the cam1_mclk pin to output a 24Mhz clock when adapting the imx299 camera. So I did the following configuration in the device tree.


But when I loaded it, the oscilloscope could not measure the clock signal of the cam1_mclk pin.
Load the dmesg log of the driver as follows:
image
Is there anything else I need to configure to enable cam1_clk? If so, please point it out. thank you.

Do you add mclk_khz to the mode* ?

            mode0 { // E2832_1920x1080_60Fps
                mclk_khz = "24000";
                num_lanes = "4";
                tegra_sinterface = "serial_a";

yes,i add.
image
My current problem is that when I load the driver, the measuring cam1_mclk pin does not have a clock signal, I need to enter the following command to manually open it:

cd /sys/kernel/debug/bpmp/debug/clk/extperiph2/
echo 1 > state

How else do I need to configure cam1_mclk to output the clock after the driver is loaded?

You need enable it in your sensor driver.
Have reference to nv_imx219.c

I’m sure it’s enabled in my drive.

Looks like your device tree need modify to extperiph2.

yes, I modify.
image
However, after loading the driver, the CAM1_MCLK pin cannot measure the clock signal.

Try to open it by v4l-ctl and check it.

v4l2-ctl --stream-mmap -c bypass_mode=0 -d /dev/video0

yes, think you!