Greetings,
I was wondering what is the correct way to setup the IMX8MP CSI port 2 as a single camera interface with 4 lanes?
I have tried similar stuff to this as we are running a compulab bsp.
https://github.com/compulab-yokneam/linux-compulab/blob/bca57e9940b5454a8c77a3a1bf50bc2a23c6c68e/arc...
But seems like something is not getting wired correctly and the subdev device in v4l2 is not getting brought up.
When running on CSI1, I get the expected result of (and the expected media graph):
root@ucm-imx8m-plus:~# v4l2-ctl --list-devices
():
/dev/v4l-subdev0
/dev/v4l-subdev1
/dev/v4l-subdev2
(csi0):
/dev/v4l-subdev3
FSL Capture Media Device (platform:32c00000.bus:camera):
/dev/media1
VIV (platform:viv0):
/dev/video2
vsi_v4l2dec (platform:vsi_v4l2dec):
/dev/video1
vsi_v4l2enc (platform:vsi_v4l2enc):
/dev/video0
viv_media (platform:vvcam-video.0):
/dev/media0
and dmesg output of:
[ 8.715165] mx8-img-md: Registered sensor subdevice: imx67x 4-001a (1) [ 8.720058] enter isp_mi_stop [ 8.722050] mx8-img-md: created link [imx67x 4-001a] => [mxc-mipi-csi2.0] [ 8.731969] mxc-md 32c00000.bus:camera: mxc_md_create_links
But when using a DTB for CSI port 2, then I dont get the subdevices linked/registered.
So my question is what is important to get the subdevice up and running? And how are they getting linked? Does the CSI port 2 require ISP2? Does the registers change or what?