Device tree config for single lane MIPI camera

Hi. I am trying to connect an Omnivision single lane mipi camera to CAM0 on a jetson orin nano. I have written the driver, i2c works fine, camera configures etc. but the debug log reports this…
[ 456.069356] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 456.069386] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 456.070631] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
My device tree is a modified copy of the IMX219-A dtsi file, and I have tested a 219 camera with this DT. Does anyone know, or better have an example Device tree config for a single lane camera on CAM0 ? Thanks…

Do you modify the bus-width to 1?

Hi Shane,

We are also encountering similar difficulties with the single-lane configuration. Besides modifying bus-width, num_lanes, and camera_mipi_lanes, are there any other parameters that need to be adjusted for single-lane operation?

We are attempting to receive the camera signal using a single lane. Previously, we successfully received the signal with a 4-lane configuration. Now, we are working with the same 4-lane device tree, adjusting it for single-lane operation. Can we achieve the desired single-lane functionality by changing only the three configurations mentioned above, or are additional modifications required?

Regards,
Kamalesh.C

Hi,
Thanks for the suggestion.
I’ve been referencing this for the device tree config, and have bus-width set to 1.

My camera is 8/10 bit monochrome and a weird resolution (400x400), so I’ve also had to modify the tegra_camera module code, which is another unknown. Unfortunately we have to use this specific module in our application for various reasons. Any pointers on getting more debug information out of the CSI interface or tegra camera module would be really helpful ?

Only need to modify the bus-width for Jetson. However you need to configurate the sensor output by single lane, too.

Yes Camera is configured for single lane. I’ve rechecked the schematics for carrier board and the camera I’m working with and we have the following…
Camera MIPI CLK → pins 14,15 (CSI1_CLK)
Camera MIPI DATA → pins 11,12 (CSI0_DATA)
Since Clock 0 only goes to test points on the carrier board… Can this setup work without changing the DATA to CSI1_D0 ?
I see comments about being able to swap data lanes for camera 0 and 1. Is this implemented, and is there a device tree entry or some other way to enable it ?

Please confirm single lane on the CAM1(CSI-C) first.

Thanks

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