Platform: P3668 + P3509
OS: Jetpack 4.6.1
I have a custom camera board without crystal.
Because I still cannot get i2c ack from my camera, I find out the problem is mclk not working.
I try to add the device setting below into imx219, and add the clock implement in imx219 driver, beacuse there is a crystal in rpi camera:
clocks = <&bpmp_clks TEGRA194_CLK_EXTPERIPH1>,
<&bpmp_clks TEGRA194_CLK_PLLP_OUT0>;
clock-names = “extperiph1”, “pllp_grtba”;
mclk = “extperiph1”;
clock-frequency = <24000000>;
And I check the enable count in /sys/kernel/debug/clk/clk_summary.
Streaming:
extperiph1 1 1 24000000 24000000 0 0
Without streaming:
extperiph1 0 0 24000000 24000000 0 0
When streaming, I cannot detect any signal from CAM0_MCLK by oscilloscope.
Any help is very thankful.
There is no error message about clock setting, only no ack from i2c.
I connected our camera board at CAM0(J9) yesterday.
And now I just try to connect CAM1(J1), I can find the mclk at CAM1 connector.
Does this mean the CAM0_MCLK in CAM0 hardware is broken? How to verify it?
But IMX219 can work at CAM0.
no ack from i2c usually caused by regulator settings.
since this is your own camera driver bring-up. had you modify device tree to enable regulator settings?