Has anyone had any luck finding a patch for multiple CSI support? I am currently trying to get this functionality working myself. I've seen several threads talking about it, but haven't seen any patches posted.
Any assistance would be greatly appreciated!
One of my colleagues has the same problem.
Actually, I'm a little disappointed by FreeScale because such a big problem/bug is not fixed even in the latest BSP release. And even there is no any explicit declaration about it.
Has anybody fixed the problem of supporting two cameras simultaneously?
Thank you !
Could you tell me what i should do if I want to use the CSI2 on MX51 ?
I cannot make the CSI2 work normal , the set of CSI2 is almost the same as CSI1 now
Our BSP and demo codes only sets by-pass settings for CSI1 for some reason, here is what we usually have:
Now we need the following register settings to by-pass both CSI1 and CSI2
reg32_write(MIPI_HSC_BASE_ADDR+HSC_MCD_OFFSET, 0x00000F00); // @ECA
reg32_write(MIPI_HSC_BASE_ADDR+MCG_MCCMC_OFFSET, 0x0000000C); // @ECA
reg32_write(MIPI_HSC_BASE_ADDR+MXT_CONF_OFFSET, 0xF003008B); // @ECA
So a solution for automatically switching between CSI ports in a system with two cameras is really quite simple. In the case of the ADV7180, add an int csi; in the platform definition then store the .csi parameter into a static var during the probe function of the sensor driver. Modify your second camera (e.g., ov3640) to store the csi parameter in the field already in it's ov3640_data structure.
Next add and ioctl_g_ext_ctrl function to both sensors and define it in the appropriate .h files (e.g., ./include/media/v4l2-int-device.h)
Modify the kconfig file in the .drivers/media/video/mxc/capture directory to allow selecting two sensors both as modules, Update the platform data for each and place a call to the g_ext_ctrl function in mxc_v4l_open to get the csi number. Update all of the places in the FSL code where the nasty hard coded parameters are and when your done the mxc_capture file will work the way it should have out of the factory (allow selecting the CSI number for each sensor in the platform data in the ./arch/arm/mach-mx5/mx53-XXX.c file.
Now if only I could get multiple cameras working at the same time, The first challenge is to get rid of the hard coding of dma channels and interrupts in csi-enc.c as well as some other oversights.