Not detecting the ov13850 camera module in CCI1 line

Hi,

I am using the kernel version 4.14 and sd820c board.
Trying to use the CCI-I2C1 bus for the secondary camera.
While doing the modeprobe, am getting the following logs. The sensor ID is always showing as 0x000.

Could anyone please help me on the same.

root@820-devkit:~# modprobe ov13850
[ 72.084483] ov13850 4-0010: probing…
[ 72.087278] ov13850 4-0010: could not get default pinstate
[ 72.087305] ov13850 4-0010: could not get sleep pinstate
[ 72.198837] i2c-qcom-cci a0c000.cci: master 1 queue 0 timeout
[ 72.198984] i2c-qcom-cci a0c000.cci: cci master 1 reset and init done:
[ 72.204009] ov13850 4-0010: Unexpected sensor id(000000), ret(0)
[ 72.218325] ov13850 4-0010: probing successful

@Loic

Hi Loic,

I am able to detect the ov13850 camera in the CCI-I2C1 bus for the secondary camera.

I was able to configure the secondary camera using the following commands:-

media-ctl -d /dev/media0 -l ‘“msm_csiphy1”:1->“msm_csid1”:0[1],“msm_csid1”:1->“msm_ispif1”:0[1],“msm_ispif1”:1->“msm_vfe0_rdi1”:0[1]’;sudo media-ctl -d /dev/media0 -V ‘“ov13850 4-0010”:0[fmt:SBGGR10_1X10/2112x1568 field:none],“msm_csiphy1”:0[fmt:SBGGR10_1X10/2112x1568 field:non’

But am not able to capture the image.

I used the following yavta command for capturing the image:-
yavta -B capture-mplane -c1 -I -n 1 -f SBGGR10P -s 2112x1568 /dev/video1 -F

The command is halt by giving the following logs:-

Device /dev/video1 opened.
Device Qualcomm Camera Subsystem' on platform:a34000.camss’ (driver ‘qcom-camss’) supports video, capture, with mplanes.
Video format set: SBGGR10P (41414270) 2112x1568 field none, 1 planes:

  • Stride 2640, buffer size 4139520
    Video format: SBGGR10P (41414270) 2112x1568 field none, 1 planes:
  • Stride 2640, buffer size 4139520
    1 buffers requested.
    length: 1 offset: 3481658584 timestamp type/source: mono/EoF
    Buffer 0/0 mapped at address 0xffffac5f2000.

Could anyone please help me on the same.

The media-ctl details are given below:-

media-ctl -p -d /dev/media0

Media controller API version 4.14.96

Media device information

driver qcom-camss
model Qualcomm Camera Subsystem
serial
bus info
hw revision 0x0
driver version 4.14.96

Device topology

  • entity 1: msm_csiphy0 (2 pads, 4 links)
    type Node subtype V4L flags 0
    device node name /dev/v4l-subdev0
    pad0: Sink
    pad1: Source
    → “msm_csid0”:0 []
    → “msm_csid1”:0 []
    → “msm_csid2”:0 []
    → “msm_csid3”:0 []

  • entity 4: msm_csiphy1 (2 pads, 5 links)
    type Node subtype V4L flags 0
    device node name /dev/v4l-subdev1
    pad0: Sink
    ← “ov13850 4-0010”:0 [ENABLED,IMMUTABLE]
    pad1: Source
    → “msm_csid0”:0 []
    → “msm_csid1”:0 [ENABLED]
    → “msm_csid2”:0 []
    → “msm_csid3”:0 []

  • entity 7: msm_csiphy2 (2 pads, 4 links)
    type Node subtype V4L flags 0
    device node name /dev/v4l-subdev2
    pad0: Sink
    pad1: Source
    → “msm_csid0”:0 []
    → “msm_csid1”:0 []
    → “msm_csid2”:0 []
    → “msm_csid3”:0 []

  • entity 10: msm_csid0 (2 pads, 7 links)
    type Node subtype V4L flags 0
    device node name /dev/v4l-subdev3
    pad0: Sink
    ← “msm_csiphy0”:1 []
    ← “msm_csiphy1”:1 []
    ← “msm_csiphy2”:1 []
    pad1: Source
    → “msm_ispif0”:0 [ENABLED]
    → “msm_ispif1”:0 []
    → “msm_ispif2”:0 []
    → “msm_ispif3”:0 []

  • entity 13: msm_csid1 (2 pads, 7 links)
    type Node subtype V4L flags 0
    device node name /dev/v4l-subdev4
    pad0: Sink
    ← “msm_csiphy0”:1 []
    ← “msm_csiphy1”:1 [ENABLED]
    ← “msm_csiphy2”:1 []
    pad1: Source
    → “msm_ispif0”:0 []
    → “msm_ispif1”:0 [ENABLED]
    → “msm_ispif2”:0 []
    → “msm_ispif3”:0 []

  • entity 16: msm_csid2 (2 pads, 7 links)
    type Node subtype V4L flags 0
    device node name /dev/v4l-subdev5
    pad0: Sink
    ← “msm_csiphy0”:1 []
    ← “msm_csiphy1”:1 []
    ← “msm_csiphy2”:1 []
    pad1: Source
    → “msm_ispif0”:0 []
    → “msm_ispif1”:0 []
    → “msm_ispif2”:0 []
    → “msm_ispif3”:0 []

  • entity 19: msm_csid3 (2 pads, 7 links)
    type Node subtype V4L flags 0
    device node name /dev/v4l-subdev6
    pad0: Sink
    ← “msm_csiphy0”:1 []
    ← “msm_csiphy1”:1 []
    ← “msm_csiphy2”:1 []
    pad1: Source
    → “msm_ispif0”:0 []
    → “msm_ispif1”:0 []
    → “msm_ispif2”:0 []
    → “msm_ispif3”:0 []

  • entity 22: msm_ispif0 (2 pads, 12 links)
    type Node subtype V4L flags 0
    device node name /dev/v4l-subdev7
    pad0: Sink
    ← “msm_csid0”:1 [ENABLED]
    ← “msm_csid1”:1 []
    ← “msm_csid2”:1 []
    ← “msm_csid3”:1 []
    pad1: Source
    → “msm_vfe0_rdi0”:0 [ENABLED]
    → “msm_vfe0_rdi1”:0 []
    → “msm_vfe0_rdi2”:0 []
    → “msm_vfe0_pix”:0 []
    → “msm_vfe1_rdi0”:0 []
    → “msm_vfe1_rdi1”:0 []
    → “msm_vfe1_rdi2”:0 []
    → “msm_vfe1_pix”:0 []

  • entity 25: msm_ispif1 (2 pads, 12 links)
    type Node subtype V4L flags 0
    device node name /dev/v4l-subdev8
    pad0: Sink
    ← “msm_csid0”:1 []
    ← “msm_csid1”:1 [ENABLED]
    ← “msm_csid2”:1 []
    ← “msm_csid3”:1 []
    pad1: Source
    → “msm_vfe0_rdi0”:0 []
    → “msm_vfe0_rdi1”:0 [ENABLED]
    → “msm_vfe0_rdi2”:0 []
    → “msm_vfe0_pix”:0 []
    → “msm_vfe1_rdi0”:0 []
    → “msm_vfe1_rdi1”:0 []
    → “msm_vfe1_rdi2”:0 []
    → “msm_vfe1_pix”:0 []

  • entity 28: msm_ispif2 (2 pads, 12 links)
    type Node subtype V4L flags 0
    device node name /dev/v4l-subdev9
    pad0: Sink
    ← “msm_csid0”:1 []
    ← “msm_csid1”:1 []
    ← “msm_csid2”:1 []
    ← “msm_csid3”:1 []
    pad1: Source
    → “msm_vfe0_rdi0”:0 []
    → “msm_vfe0_rdi1”:0 []
    → “msm_vfe0_rdi2”:0 []
    → “msm_vfe0_pix”:0 []
    → “msm_vfe1_rdi0”:0 []
    → “msm_vfe1_rdi1”:0 []
    → “msm_vfe1_rdi2”:0 []
    → “msm_vfe1_pix”:0 []

  • entity 31: msm_ispif3 (2 pads, 12 links)
    type Node subtype V4L flags 0
    device node name /dev/v4l-subdev10
    pad0: Sink
    ← “msm_csid0”:1 []
    ← “msm_csid1”:1 []
    ← “msm_csid2”:1 []
    ← “msm_csid3”:1 []
    pad1: Source
    → “msm_vfe0_rdi0”:0 []
    → “msm_vfe0_rdi1”:0 []
    → “msm_vfe0_rdi2”:0 []
    → “msm_vfe0_pix”:0 []
    → “msm_vfe1_rdi0”:0 []
    → “msm_vfe1_rdi1”:0 []
    → “msm_vfe1_rdi2”:0 []
    → “msm_vfe1_pix”:0 []

  • entity 34: msm_vfe0_rdi0 (2 pads, 5 links)
    type V4L2 subdev subtype Unknown flags 0
    device node name /dev/v4l-subdev11
    pad0: Sink
    [fmt:SBGGR10_1X10/2112x1568 field:none colorspace:srgb]
    ← “msm_ispif0”:1 [ENABLED]
    ← “msm_ispif1”:1 []
    ← “msm_ispif2”:1 []
    ← “msm_ispif3”:1 []
    pad1: Source
    [fmt:SBGGR10_1X10/2112x1568 field:none colorspace:srgb]
    → “msm_vfe0_video0”:0 [ENABLED,IMMUTABLE]

  • entity 37: msm_vfe0_video0 (1 pad, 1 link)
    type Node subtype V4L flags 0
    device node name /dev/video0
    pad0: Sink
    ← “msm_vfe0_rdi0”:1 [ENABLED,IMMUTABLE]

  • entity 43: msm_vfe0_rdi1 (2 pads, 5 links)
    type V4L2 subdev subtype Unknown flags 0
    device node name /dev/v4l-subdev12
    pad0: Sink
    [fmt:SBGGR10_1X10/2112x1568 field:none colorspace:srgb]
    ← “msm_ispif0”:1 []
    ← “msm_ispif1”:1 [ENABLED]
    ← “msm_ispif2”:1 []
    ← “msm_ispif3”:1 []
    pad1: Source
    [fmt:SBGGR10_1X10/2112x1568 field:none colorspace:srgb]
    → “msm_vfe0_video1”:0 [ENABLED,IMMUTABLE]

  • entity 46: msm_vfe0_video1 (1 pad, 1 link)
    type Node subtype V4L flags 0
    device node name /dev/video1
    pad0: Sink
    ← “msm_vfe0_rdi1”:1 [ENABLED,IMMUTABLE]

  • entity 52: msm_vfe0_rdi2 (2 pads, 5 links)
    type V4L2 subdev subtype Unknown flags 0
    device node name /dev/v4l-subdev13
    pad0: Sink
    [fmt:UYVY8_2X8/1920x1080 field:none colorspace:srgb]
    ← “msm_ispif0”:1 []
    ← “msm_ispif1”:1 []
    ← “msm_ispif2”:1 []
    ← “msm_ispif3”:1 []
    pad1: Source
    [fmt:UYVY8_2X8/1920x1080 field:none colorspace:srgb]
    → “msm_vfe0_video2”:0 [ENABLED,IMMUTABLE]

  • entity 55: msm_vfe0_video2 (1 pad, 1 link)
    type Node subtype V4L flags 0
    device node name /dev/video2
    pad0: Sink
    ← “msm_vfe0_rdi2”:1 [ENABLED,IMMUTABLE]

  • entity 61: msm_vfe0_pix (2 pads, 5 links)
    type V4L2 subdev subtype Unknown flags 0
    device node name /dev/v4l-subdev14
    pad0: Sink
    [fmt:UYVY8_2X8/1920x1080 field:none colorspace:srgb
    compose.bounds:(0,0)/1920x1080
    compose:(0,0)/1920x1080]
    ← “msm_ispif0”:1 []
    ← “msm_ispif1”:1 []
    ← “msm_ispif2”:1 []
    ← “msm_ispif3”:1 []
    pad1: Source
    [fmt:UYVY8_2X8/1920x1080 field:none colorspace:srgb
    crop.bounds:(0,0)/1920x1080
    crop:(0,0)/1920x1080]
    → “msm_vfe0_video3”:0 [ENABLED,IMMUTABLE]

  • entity 64: msm_vfe0_video3 (1 pad, 1 link)
    type Node subtype V4L flags 0
    device node name /dev/video3
    pad0: Sink
    ← “msm_vfe0_pix”:1 [ENABLED,IMMUTABLE]

  • entity 70: msm_vfe1_rdi0 (2 pads, 5 links)
    type V4L2 subdev subtype Unknown flags 0
    device node name /dev/v4l-subdev15
    pad0: Sink
    [fmt:UYVY8_2X8/1920x1080 field:none colorspace:srgb]
    ← “msm_ispif0”:1 []
    ← “msm_ispif1”:1 []
    ← “msm_ispif2”:1 []
    ← “msm_ispif3”:1 []
    pad1: Source
    [fmt:UYVY8_2X8/1920x1080 field:none colorspace:srgb]
    → “msm_vfe1_video0”:0 [ENABLED,IMMUTABLE]

  • entity 73: msm_vfe1_video0 (1 pad, 1 link)
    type Node subtype V4L flags 0
    device node name /dev/video4
    pad0: Sink
    ← “msm_vfe1_rdi0”:1 [ENABLED,IMMUTABLE]

  • entity 79: msm_vfe1_rdi1 (2 pads, 5 links)
    type V4L2 subdev subtype Unknown flags 0
    device node name /dev/v4l-subdev16
    pad0: Sink
    [fmt:UYVY8_2X8/1920x1080 field:none colorspace:srgb]
    ← “msm_ispif0”:1 []
    ← “msm_ispif1”:1 []
    ← “msm_ispif2”:1 []
    ← “msm_ispif3”:1 []
    pad1: Source
    [fmt:UYVY8_2X8/1920x1080 field:none colorspace:srgb]
    → “msm_vfe1_video1”:0 [ENABLED,IMMUTABLE]

  • entity 82: msm_vfe1_video1 (1 pad, 1 link)
    type Node subtype V4L flags 0
    device node name /dev/video5
    pad0: Sink
    ← “msm_vfe1_rdi1”:1 [ENABLED,IMMUTABLE]

  • entity 88: msm_vfe1_rdi2 (2 pads, 5 links)
    type V4L2 subdev subtype Unknown flags 0
    device node name /dev/v4l-subdev17
    pad0: Sink
    [fmt:UYVY8_2X8/1920x1080 field:none colorspace:srgb]
    ← “msm_ispif0”:1 []
    ← “msm_ispif1”:1 []
    ← “msm_ispif2”:1 []
    ← “msm_ispif3”:1 []
    pad1: Source
    [fmt:UYVY8_2X8/1920x1080 field:none colorspace:srgb]
    → “msm_vfe1_video2”:0 [ENABLED,IMMUTABLE]

  • entity 91: msm_vfe1_video2 (1 pad, 1 link)
    type Node subtype V4L flags 0
    device node name /dev/video6
    pad0: Sink
    ← “msm_vfe1_rdi2”:1 [ENABLED,IMMUTABLE]

  • entity 97: msm_vfe1_pix (2 pads, 5 links)
    type V4L2 subdev subtype Unknown flags 0
    device node name /dev/v4l-subdev18
    pad0: Sink
    [fmt:UYVY8_2X8/1920x1080 field:none colorspace:srgb
    compose.bounds:(0,0)/1920x1080
    compose:(0,0)/1920x1080]
    ← “msm_ispif0”:1 []
    ← “msm_ispif1”:1 []
    ← “msm_ispif2”:1 []
    ← “msm_ispif3”:1 []
    pad1: Source
    [fmt:UYVY8_2X8/1920x1080 field:none colorspace:srgb
    crop.bounds:(0,0)/1920x1080
    crop:(0,0)/1920x1080]
    → “msm_vfe1_video3”:0 [ENABLED,IMMUTABLE]

  • entity 100: msm_vfe1_video3 (1 pad, 1 link)
    type Node subtype V4L flags 0
    device node name /dev/video7
    pad0: Sink
    ← “msm_vfe1_pix”:1 [ENABLED,IMMUTABLE]

  • entity 226: ov13850 4-0010 (1 pad, 1 link)
    type V4L2 subdev subtype Sensor flags 0
    device node name /dev/v4l-subdev19
    pad0: Source
    [fmt:SBGGR10_1X10/2112x1568 field:none]
    → “msm_csiphy1”:0 [ENABLED,IMMUTABLE]