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>,
clock-names = “extperiph1”, “pllp_grtba”;
mclk = “extperiph1”;
clock-frequency = <24000000>;
And I check the enable count in /sys/kernel/debug/clk/clk_summary.
extperiph1 1 1 24000000 24000000 0 0
extperiph1 0 0 24000000 24000000 0 0
When streaming, I cannot detect any signal from CAM0_MCLK by oscilloscope.
Any help is very thankful.
it’s baseboard camera clock, and the maximum frequency for
extperiph1 is 24-MHz.
may I know what’s the failure messages from kernel side,
could you please also review the port bindings? thanks
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?
My camera can work at CAM1 connector, but not work at CAM0, because the CAM0_MCLK is no signal.
The device setting is same at CAM0 and CAM1.
had you update device tree? there’s default device tree settings to define the configurations.
Yes, I check the device tree is mine.
it usually regulator settings cause the failure. please share your device tree for reference, thanks
But my problem is mclk not work. Is this caused by regulator?
it might be, please start with checking regulator settings.
Could you suggest how to check it?
please review your schematic, you should have corresponding device tree settings to assign them, especially, 3.3v, 1.8v, 1.2v…etc.
had you also check Jetson Xavier NX Camera Design Guide,
you should have MUX to direct CAM_I2C correctly.
As I know MCLK and MUX is independent, please correct me.
they’re independent, but it should power-on then providing the clock.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.