I am working on integrating the old SDK 4.6.1 changes into SDK 5.1.3, specifically to add a 4-lane MIPI camera to the development board. I edited the tegra194-camera-rbpcv2.dtsi file to include the new 4-lane MIPI camera. After applying these changes and rebuilding the system, neither the IMX219 camera (which uses 2 lanes) nor the newly added 4-lane MIPI camera is functioning. However, when I revert the changes in the dtsi file, the IMX219 camera works as expected.
Could you please help me identify what might be causing this issue? The new camera driver log is as follows:
[ 7.097889] ar1820 0-003c: tegracam sensor driver:ar1820_v2.0.6
[ 7.098459] ar1820 0-003c: Got PWM for trigger
[ 11.562351] ar1820_lane_configuration: Setting 4-lanes on sensor
[ 11.564897] ar1820 0-003c: unsupported control in the list
[ 11.565068] ar1820 0-003c: Failed to init ctrls ar1820
[ 11.565206] ar1820 0-003c: tegra camera subdev registration failed
[ 11.565972] ar1820: probe of 0-003c failed with error -25
Thank you.
Since you mentioned that you are porting the driver from JP4.6.1 into JP5.1.3, it means that the driver worked as expected on the older Jetpack, is that correct ?
Now, from the error log that you shared, this line catches my attention:
ar1820 0-003c: unsupported control in the list
It seems like there is a problem with a control you are trying to register with your driver.
Now, allow me to ask just a couple of questions:
Did you develop the original driver?
Are you aware of the controls in the driver, or if there are custom ones ?
Since you mention that the IMX219 stops working when you add your driver, isn’t this expected? Should your driver support both cameras ?
Since you are modifying the device tree, probably you are modifying the remote-endpoint of NVCSI node in order to connect it to the new ar1820 camera node, in this case is expected that IMX219 is not going to work.