SG2002 MIPI CSI 4 Lane

Hi,

SG2002 will work in 4 Lane MIPI mode, If Yes can you please guide us to enable 4 lane mode

1 Like

SG2002 should support 4 lane csi mode

I can give you only a basic information here.
there is some ioctl in the driver, with controls the camera for
1C4D one camera with up to 4 lanes
2C2D two cameras with up to 2 lanes each

CVI_MIPI_SET_DEV_ATTR
this is called via the middleware aka userspace.

BTW
is there a 4 lane camera for milkv duo s
I’ve seen this somrwhere and it uses both mipi 16pin and 15pin interfaces
Maybe later on I need something like this

2 Likes

Hey,

Thanks for the reply,

I think there is some problem with VI drivers attached is the log, Not with MIPI driver as we setting it for 4 lanes but not getting data in all four lanes attached is the reference log image for you

1 Like

again only basic information here.

first I need to know where is RAW10 comming form

git grep  -i RAW10 drivers/media/platform/sophgo/
drivers/media/platform/sophgo/cif/cif.c:171:		return "RAW10";
drivers/media/platform/sophgo/cif/cif.c:298:	case DEC_FMT_RAW10:
drivers/media/platform/sophgo/cif/cif.c:299:		return "raw10";
drivers/media/platform/sophgo/cif/sophgo-cif.h:749:	DEC_FMT_RAW10,

This is from my internal repository
I don’t care if anyone, want’s to look inside

So you are in the cif, camera interface module, not even near vi

I saw some limitation, if the two camera setup is used.
and this is (I think) in the vi interface code.
Because of memory bandwith I think
You must use ether YUV422_8 or YUV422_10 video encoding.

And for the vi module itself.
This is horrible code.
I think there are at least 4-5 hardware interfaces.

1 Like