Ov5640 camera bringup on qcomlt-5.15 kernel with platform(820)

We are trying to enable ov5640 camera on qcomlt-5.15 kernel. In the device tree(apq8096-db820c.dtsi) we do not see any default nodes present w.r.t camera sensor. Also, we see msm8996-pins.dtsi file is missing in the kernel.

Any ideas? if any camera sensor has been already validated on this qcomlt-5.15 kernel 820 SoM? If yes then the reference patch will be very useful for us.

Note:
On the same platform(820) with kernel 4.14, ov5640 sensor is working fine for us…

@robertfoss, isn’t ov5640 with 820 something you already tried in the past?

I’ve only tried it with RB3 / SDM845

@robertfoss this is w.r.t kernel 5.15? If yes, where can I see these changes.

@Loic Thank you so much for quick response. Can I know is there any camera sensor is validated with platform(820) with kernel 5.15?

@Loic @robertfoss
I am able to get Snapshot and live preview working on qcomlt-5.15 kernel 820 SoM. With the default ov5640 driver itself I was able to get these things working fine. I used below configs:

sudo media-ctl -d /dev/media0 -l ‘“msm_csiphy0”:1->“msm_csid0”:0[1],“msm_csid0”:1->“msm_ispif0”:0[1],“msm_ispif0”:1->“msm_vfe0_rdi0”:0[1]’
sudo media-ctl -d /dev/media0 -V ‘“ov5640 4-003b”:0[fmt:UYVY8_2X8/1920x1080 field:none],“msm_csiphy0”:0[fmt:UYVY8_2X8/1920x1080 field:none],“msm_csid0”:0[fmt:UYVY8_2X8/1920x1080 field:none],“msm_ispif0”:0[fmt:UYVY8_2X8/1920x1080 field:none],“msm_vfe0_rdi0”:0[fmt:UYVY8_2X8/1920x1080 field:none]’

Currently I am trying to use msm_vfe0_pix instead of msm_vfe0_rdi0. But I am facing below error’s

362.287714] qcom-camss a34000.camss: VFE0 pix0 overflow
[ 362.321047] qcom-camss a34000.camss: VFE0 pix0 overflow
[ 367.054373] ispif_isr_8x96: 141 callbacks suppressed
[ 367.054394] qcom-camss a34000.camss: VFE0 pix0 overflow
[ 367.087713] qcom-camss a34000.camss: VFE0 pix0 overflow
[ 367.121047] qcom-camss a34000.camss: VFE0 pix0 overflow
[ 367.154380] qcom-camss a34000.camss: VFE0 pix0 overflow
[ 367.187715] qcom-camss a34000.camss: VFE0 pix0 overflow
[ 367.221047] qcom-camss a34000.camss: VFE0 pix0 overflow
[ 367.254381] qcom-camss a34000.camss: VFE0 pix0 overflow
[ 367.287713] qcom-camss a34000.camss: VFE0 pix0 overflow
[ 367.321048] qcom-camss a34000.camss: VFE0 pix0 overflow
[ 367.354380] qcom-camss a34000.camss: VFE0 pix0 overflow
[ 370.508726] qcom-camss a34000.camss: VFE sof timeout
[ 371.020622] qcom-camss a34000.camss: VFE reg update timeout
[ 372.021732] qcom-camss a34000.camss: vfe_camif_wait_for_stop: camif stop timeout

Below command’s I am trying for Snapshot:

sudo media-ctl -v -d /dev/media0 -l ‘“msm_csiphy0”:1->“msm_csid0”:0[1],“msm_csid0”:1->“msm_ispif0”:0[1],“msm_ispif0”:1->“msm_vfe0_pix”:0[1]’
sudo media-ctl -v -d /dev/media0 -V ‘“ov5640 4-003b”:0[fmt:UYVY8_2X8/1920x1080 field:none],“msm_csiphy0”:0[fmt:UYVY8_2X8/1920x1080 field:none],“msm_csid0”:0[fmt:UYVY8_2X8/1920x1080 field:none],“msm_ispif0”:0[fmt:UYVY8_2X8/1920x1080 field:none],“msm_vfe0_pix”:0[fmt:UYVY8_2X8/1920x1080 field:none],“msm_vfe0_pix”:1[fmt:UYVY8_1_5X8/1920x1080 field:none]’

gst-launch-1.0 v4l2src device=/dev/video5 num-buffers=1 ! ‘video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1’ ! jpegenc ! filesink location=image02.jpg