Apalis TK1 OV5640 can't work on MIPI CSI-2 CSI_3 channel

Dear Support Team,

We are testing dual camera function on Apalis TK1 with Apalis Evaluation board/Apalis Tk1 Mezzanine and toradex OV5640 camera, according to below articles:

And before working with 2 cameras simultaneously, first we are testing 1 OV5640 camera connected to CSI_1 4x (X5 on Mezzanine) or CSI_3 4x (X7 on Mezzanine) separately, it works well on CSI_1 4x port but failed on CSI_3 4x port, detailed operation and log are as below.

BTW, for HW, have tested both OV5640 V1.1A and V1.1B; For SW, have tested with LXDE image V2.8b3, 2.8b6, 2.8b7, all give the same issue.

The Angstrom Distribution apalis-tk1 ttyS0

Angstrom v2017.12 - Kernel 

Apalis-TK1_LXDE-Image 2.8b7. 20200610

apalis-tk1 login: root
Last login: Wed Jun 10 23:20:08 UTC 2020 on ttyS0
root@apalis-tk1:~# echo 195 > /sys/class/gpio/export
root@apalis-tk1:~# echo low > /sys/class/gpio/gpio195/direction
root@apalis-tk1:~# echo 234 > /sys/class/gpio/export
root@apalis-tk1:~# echo low > /sys/class/gpio/gpio234/direction
root@apalis-tk1:~# echo high > /sys/class/gpio/gpio195/direction
root@apalis-tk1:~# [  160.354160] nf_conntrack: automatic helper assignment is deprecated and it will be.

root@apalis-tk1:~# modprobe videobuf2-dma-contig
root@apalis-tk1:~# modprobe ov5640
root@apalis-tk1:~# modprobe tegra_camera
[  190.435618] vi vi.0: initialized
[  190.449458] platform vi.1: Driver vi requests probe deferral
[  190.465047] soc-camera-pdrv soc-camera-pdrv.1: Probing soc-camera-pdrv.1
[  190.482105] imx135_v4l2 2-0010: Failed to get regulator vana
[  190.489897] i2c 2-0010: Driver imx135_v4l2 requests probe deferral
[  190.510826] soc-camera-pdrv soc-camera-pdrv.3: Probing soc-camera-pdrv.3
[  190.529763] [ar0330]: sensor driver loading
[  190.537106] [ar0330]: probing sensor.
[  190.541185] ar0330_v4l2 2-0018: ar0330_regulator_get vdig ERR: -517
[  190.548257] ar0330_v4l2 2-0018: ar0330_regulator_get vana ERR: -517
[  190.554579] ar0330_v4l2 2-0018: ar0330_regulator_get vif ERR: -517
[  190.560803] ------------[ cut here ]------------
[  190.565443] WARNING: at /workdir/oe/tmp-glibc/work-shared/apalis-tk1/kernel-source/drivers/media/i2c/)
[  190.580750] Modules linked in: ar0330_v4l2 imx135_v4l2 tegra_camera(+) ov5640 videobuf2_dma_contig jod
[  190.601287] CPU: 1 PID: 769 Comm: modprobe Not tainted 3.10.40-2.8.7+g063d16eceb57 #1
[  190.609137] [<c00154c8>] (unwind_backtrace+0x0/0x120) from [<c0012090>] (show_stack+0x18/0x1c)
[  190.617773] [<c0012090>] (show_stack+0x18/0x1c) from [<c00584a0>] (warn_slowpath_common+0x54/0x74)
[  190.626738] [<c00584a0>] (warn_slowpath_common+0x54/0x74) from [<c0058568>] (warn_slowpath_null+0x20/)
[  190.636394] [<c0058568>] (warn_slowpath_null+0x20/0x28) from [<bf08c36c>] (ar0330_power_on+0x38/0xd4 )
[  190.646854] [<bf08c36c>] (ar0330_power_on+0x38/0xd4 [ar0330_v4l2]) from [<bf08c784>] (ar0330_probe+0x)
[  190.658158] [<bf08c784>] (ar0330_probe+0x118/0x1ec [ar0330_v4l2]) from [<c050af90>] (i2c_device_probe)
[  190.668343] [<c050af90>] (i2c_device_probe+0xac/0xf8) from [<c0411a28>] (driver_probe_device+0x1d8/0x)
[  190.677912] [<c0411a28>] (driver_probe_device+0x1d8/0x330) from [<c040fe9c>] (bus_for_each_drv+0x8c/0)
[  190.687477] [<c040fe9c>] (bus_for_each_drv+0x8c/0x94) from [<c04117e0>] (device_attach+0x78/0x90)
[  190.696354] [<c04117e0>] (device_attach+0x78/0x90) from [<c0410c7c>] (bus_probe_device+0x30/0xa0)
[  190.705223] [<c0410c7c>] (bus_probe_device+0x30/0xa0) from [<c040f17c>] (device_add+0x3a8/0x588)
[  190.714007] [<c040f17c>] (device_add+0x3a8/0x588) from [<c0509040>] (i2c_new_device+0x14c/0x1b4)
[  190.722800] [<c0509040>] (i2c_new_device+0x14c/0x1b4) from [<c051b414>] (v4l2_i2c_new_subdev_board+0x)
[  190.732712] [<c051b414>] (v4l2_i2c_new_subdev_board+0xe0/0xe8) from [<c05239d4>] (soc_camera_host_reg)
[  190.743499] [<c05239d4>] (soc_camera_host_register+0x384/0x7e8) from [<bf07a564>] (tegra_camera_probe)
[  190.755145] [<bf07a564>] (tegra_camera_probe+0x2d4/0x34c [tegra_camera]) from [<c0411a28>] (driver_pr)
[  190.766356] [<c0411a28>] (driver_probe_device+0x1d8/0x330) from [<c0411c20>] (__driver_attach+0x54/0x)
[  190.775832] [<c0411c20>] (__driver_attach+0x54/0x94) from [<c040fde4>] (bus_for_each_dev+0x84/0x94)
[  190.784869] [<c040fde4>] (bus_for_each_dev+0x84/0x94) from [<c0410f74>] (bus_add_driver+0x16c/0x248)
[  190.793997] [<c0410f74>] (bus_add_driver+0x16c/0x248) from [<c0412468>] (driver_register+0xa8/0x124)
[  190.803119] [<c0412468>] (driver_register+0xa8/0x124) from [<c00087e8>] (do_one_initcall+0x138/0x168)
[  190.812332] [<c00087e8>] (do_one_initcall+0x138/0x168) from [<c00b317c>] (load_module+0xd48/0xf70)
[  190.821283] [<c00b317c>] (load_module+0xd48/0xf70) from [<c00b3784>] (SyS_finit_module+0x1d4/0x268)
[  190.830321] [<c00b3784>] (SyS_finit_module+0x1d4/0x268) from [<c000e5e0>] (ret_fast_syscall+0x0/0x30)
[  190.839528] ---[ end trace 870115b0442d0037 ]---
[  190.844211] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x18
[  190.850770] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x18
[  190.857703] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x18
[  190.864717] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x18
[  190.871341] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x18
[  190.877947] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x18
[  190.885060] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x18
[  190.892179] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x18
[  190.898995] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x18
[  190.905500] [ar0330]: chip version 0x0000
[  190.909519] [ar0330]: failed to read sensor id
[  190.913989] ------------[ cut here ]------------
[  190.918631] WARNING: at /workdir/oe/tmp-glibc/work-shared/apalis-tk1/kernel-source/drivers/media/i2c/)
[  190.934000] Modules linked in: ar0330_v4l2 imx135_v4l2 tegra_camera(+) ov5640 videobuf2_dma_contig jod
[  190.954539] CPU: 1 PID: 769 Comm: modprobe Tainted: G        W    3.10.40-2.8.7+g063d16eceb57 #1
[  190.963637] [<c00154c8>] (unwind_backtrace+0x0/0x120) from [<c0012090>] (show_stack+0x18/0x1c)
[  190.972627] [<c0012090>] (show_stack+0x18/0x1c) from [<c00584a0>] (warn_slowpath_common+0x54/0x74)
[  190.982015] [<c00584a0>] (warn_slowpath_common+0x54/0x74) from [<c0058568>] (warn_slowpath_null+0x20/)
[  190.991733] [<c0058568>] (warn_slowpath_null+0x20/0x28) from [<bf08c440>] (ar0330_power_off+0x38/0x88)
[  191.002362] [<bf08c440>] (ar0330_power_off+0x38/0x88 [ar0330_v4l2]) from [<bf08c7f4>] (ar0330_probe+0)
[  191.013860] [<bf08c7f4>] (ar0330_probe+0x188/0x1ec [ar0330_v4l2]) from [<c050af90>] (i2c_device_probe)
[  191.024053] [<c050af90>] (i2c_device_probe+0xac/0xf8) from [<c0411a28>] (driver_probe_device+0x1d8/0x)
[  191.033636] [<c0411a28>] (driver_probe_device+0x1d8/0x330) from [<c040fe9c>] (bus_for_each_drv+0x8c/0)
[  191.043205] [<c040fe9c>] (bus_for_each_drv+0x8c/0x94) from [<c04117e0>] (device_attach+0x78/0x90)
[  191.052076] [<c04117e0>] (device_attach+0x78/0x90) from [<c0410c7c>] (bus_probe_device+0x30/0xa0)
[  191.060952] [<c0410c7c>] (bus_probe_device+0x30/0xa0) from [<c040f17c>] (device_add+0x3a8/0x588)
[  191.069736] [<c040f17c>] (device_add+0x3a8/0x588) from [<c0509040>] (i2c_new_device+0x14c/0x1b4)
[  191.078524] [<c0509040>] (i2c_new_device+0x14c/0x1b4) from [<c051b414>] (v4l2_i2c_new_subdev_board+0x)
[  191.088444] [<c051b414>] (v4l2_i2c_new_subdev_board+0xe0/0xe8) from [<c05239d4>] (soc_camera_host_reg)
[  191.099222] [<c05239d4>] (soc_camera_host_register+0x384/0x7e8) from [<bf07a564>] (tegra_camera_probe)
[  191.110873] [<bf07a564>] (tegra_camera_probe+0x2d4/0x34c [tegra_camera]) from [<c0411a28>] (driver_pr)
[  191.122078] [<c0411a28>] (driver_probe_device+0x1d8/0x330) from [<c0411c20>] (__driver_attach+0x54/0x)
[  191.131558] [<c0411c20>] (__driver_attach+0x54/0x94) from [<c040fde4>] (bus_for_each_dev+0x84/0x94)
[  191.140603] [<c040fde4>] (bus_for_each_dev+0x84/0x94) from [<c0410f74>] (bus_add_driver+0x16c/0x248)
[  191.149727] [<c0410f74>] (bus_add_driver+0x16c/0x248) from [<c0412468>] (driver_register+0xa8/0x124)
[  191.159333] [<c0412468>] (driver_register+0xa8/0x124) from [<c00087e8>] (do_one_initcall+0x138/0x168)
[  191.168558] [<c00087e8>] (do_one_initcall+0x138/0x168) from [<c00b317c>] (load_module+0xd48/0xf70)
[  191.177512] [<c00b317c>] (load_module+0xd48/0xf70) from [<c00b3784>] (SyS_finit_module+0x1d4/0x268)
[  191.186789] [<c00b3784>] (SyS_finit_module+0x1d4/0x268) from [<c000e5e0>] (ret_fast_syscall+0x0/0x30)
[  191.196019] ---[ end trace 870115b0442d0038 ]---
[  191.200647] [ar0330]: fail to read out sensor ID.
[  191.205702] soc-camera-pdrv soc-camera-pdrv.4: Probing soc-camera-pdrv.4
[  191.421889] AP1302 chip id = 0x0000
[  191.425710] ap1302: probe of 2-003c failed with error -1
[  191.432429] soc-camera-pdrv soc-camera-pdrv.5: Probing soc-camera-pdrv.5
[  191.456013] ov5640 2-003c: Chip ID 0x5640
[  191.465999] vi vi.1: initialized
[  191.470899] vi vi.0: Supporting mbus format code 0x2006 using YUV422 (UYVY) packed
[  191.487983] vi vi.0: Supporting mbus format code 0x2006 using YUV422 (VYUY) packed
[  191.496380] vi vi.0: Supporting mbus format code 0x2006 using YUV422 (YUYV) packed
[  191.504928] vi vi.0: Supporting mbus format code 0x2006 using YUV422 (YVYU) packed
[  191.513231] vi vi.0: Supporting mbus format code 0x2006 using YUV420 (YU12) planar
[  191.520826] vi vi.0: Supporting mbus format code 0x2006 using YVU420 (YV12) planar
[  191.529740] soc-camera-pdrv soc-camera-pdrv.6: Probing soc-camera-pdrv.6
[  191.539307] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x3d
[  191.545920] ov5640 2-003d: Failure to read Chip ID (high byte)
[  191.551808] ov5640: probe of 2-003d failed with error -22
[  191.558003] soc-camera-pdrv soc-camera-pdrv.7: Probing soc-camera-pdrv.7
[  191.569848] tegra-i2c tegra12-i2c.2: no acknowledge from address 0xf
[  191.576352] i2c_wr:write reg error:reg=4,val=0
[  191.580969] tegra-i2c tegra12-i2c.2: no acknowledge from address 0xf
[  191.587417] i2c_wr:write reg error:reg=8502,val=0
[  191.592347] tegra-i2c tegra12-i2c.2: no acknowledge from address 0xf
[  191.598780] tc358743_write_edid:write reg error:reg=8c00,val=8
[  191.604808] tc358743_probe: Fail to write EDID to tc35874!
[  191.610379] tegra-i2c tegra12-i2c.2: no acknowledge from address 0xf
[  191.616798] i2c_wr:write reg error:reg=8544,val=0
[  192.122146] tegra-i2c tegra12-i2c.2: no acknowledge from address 0xf
[  192.129149] i2c_wr:write reg error:reg=8544,val=10
[  192.134035] tc358743: probe of 2-000f failed with error -1
[  192.140520] soc-camera-pdrv soc-camera-pdrv.8: Probing soc-camera-pdrv.8
[  192.151419] tegra-i2c tegra12-i2c.0: no acknowledge from address 0xf
[  192.158342] i2c_wr:write reg error:reg=4,val=0
[  192.162970] tegra-i2c tegra12-i2c.0: no acknowledge from address 0xf
[  192.169820] i2c_wr:write reg error:reg=8502,val=0
[  192.174675] tegra-i2c tegra12-i2c.0: no acknowledge from address 0xf
[  192.181441] tc358743_write_edid:write reg error:reg=8c00,val=8
[  192.187379] tc358743_probe: Fail to write EDID to tc35874!
[  192.193512] tegra-i2c tegra12-i2c.0: no acknowledge from address 0xf
[  192.200386] i2c_wr:write reg error:reg=8544,val=0
[  192.705666] tegra-i2c tegra12-i2c.0: no acknowledge from address 0xf
[  192.712532] i2c_wr:write reg error:reg=8544,val=10
[  192.717413] tc358743: probe of 0-000f failed with error -1
[  192.723876] soc-camera-pdrv soc-camera-pdrv.9: Probing soc-camera-pdrv.9
[  192.737946] probe, id=adv7280
[  192.741981] adv7280 2-0020: chip found @ 0x40 (Tegra I2C adapter)
[  192.748285] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x20
[  192.755308] adv7280 2-0020: ident reg is 0x87
[  192.759892] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x20
[  192.777288] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x20
[  192.784480] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x20
[  192.791641] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x20
[  192.798827] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x20
[  192.806071] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x20
[  192.813165] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x20
[  192.820345] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x20
[  192.827450] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x20
[  192.834521] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x20
[  192.841567] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x20
[  192.848587] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x20
[  192.856512] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x20
[  192.863625] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x20
[  192.870605] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x20
[  192.877589] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x20
[  192.884593] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x20
[  192.891571] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x42
[  192.898535] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x42
[  192.905512] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x42
[  192.912450] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x20
[  192.922144] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x44
[  192.930926] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x44
[  192.937914] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x44
[  192.946290] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x44
[  192.953299] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x44
[  192.960425] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x44
[  192.967564] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x44
[  192.974513] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x20
[  192.981446] vi vi.0: Supporting mbus format code 0x2006 using YUV422 (UYVY) packed
[  192.989433] vi vi.0: Supporting mbus format code 0x2006 using YUV422 (VYUY) packed
[  192.997369] vi vi.0: Supporting mbus format code 0x2006 using YUV422 (YUYV) packed
[  193.005289] vi vi.0: Supporting mbus format code 0x2006 using YUV422 (YVYU) packed
[  193.013239] vi vi.0: Supporting mbus format code 0x2006 using YUV420 (YU12) planar
[  193.021177] vi vi.0: Supporting mbus format code 0x2006 using YVU420 (YV12) planar
[  193.030434] soc-camera-pdrv soc-camera-pdrv.0: Probing soc-camera-pdrv.0
[  193.037502] vi vi.0: Tegra camera driver loaded.
[  193.051567] vi vi.1: Supporting mbus format code 0x100e using RGBA 8-8-8-8
[  193.061056] soc-camera-pdrv soc-camera-pdrv.2: Probing soc-camera-pdrv.2
[  193.075030] [ar0261]: sensor driver loading
[  193.080993] [ar0261]: probing sensor.
[  193.085323] ar0261_v4l2 2-0036: ar0261_regulator_get vdig ERR: -517
[  193.091624] ar0261_v4l2 2-0036: ar0261_regulator_get vana ERR: -517
[  193.097896] ar0261_v4l2 2-0036: ar0261_regulator_get vif ERR: -517
[  193.104139] ar0261_v4l2 2-0036: ar0261_regulator_get avdd_af1_cam ERR: -517
[  193.111109] ------------[ cut here ]------------
[  193.115731] WARNING: at /workdir/oe/tmp-glibc/work-shared/apalis-tk1/kernel-source/drivers/media/i2c/)
[  193.131111] Modules linked in: ar0261_v4l2 soc_camera_platform adv7280 tc358743 ap1302 ar0330_v4l2 imd
[  193.156460] CPU: 1 PID: 6 Comm: kworker/u8:0 Tainted: G        W    3.10.40-2.8.7+g063d16eceb57 #1
[  193.165413] Workqueue: deferwq deferred_probe_work_func
[  193.170665] [<c00154c8>] (unwind_backtrace+0x0/0x120) from [<c0012090>] (show_stack+0x18/0x1c)
[  193.179276] [<c0012090>] (show_stack+0x18/0x1c) from [<c00584a0>] (warn_slowpath_common+0x54/0x74)
[  193.188230] [<c00584a0>] (warn_slowpath_common+0x54/0x74) from [<c0058568>] (warn_slowpath_null+0x20/)
[  193.197883] [<c0058568>] (warn_slowpath_null+0x20/0x28) from [<bf0b2344>] (ar0261_power_on+0x44/0x11c)
[  193.208407] [<bf0b2344>] (ar0261_power_on+0x44/0x11c [ar0261_v4l2]) from [<bf0b27d0>] (ar0261_probe+0)
[  193.219792] [<bf0b27d0>] (ar0261_probe+0x128/0x1fc [ar0261_v4l2]) from [<c050af90>] (i2c_device_probe)
[  193.229958] [<c050af90>] (i2c_device_probe+0xac/0xf8) from [<c0411a28>] (driver_probe_device+0x1d8/0x)
[  193.239538] [<c0411a28>] (driver_probe_device+0x1d8/0x330) from [<c040fe9c>] (bus_for_each_drv+0x8c/0)
[  193.249143] [<c040fe9c>] (bus_for_each_drv+0x8c/0x94) from [<c04117e0>] (device_attach+0x78/0x90)
[  193.258026] [<c04117e0>] (device_attach+0x78/0x90) from [<c0410c7c>] (bus_probe_device+0x30/0xa0)
[  193.266916] [<c0410c7c>] (bus_probe_device+0x30/0xa0) from [<c040f17c>] (device_add+0x3a8/0x588)
[  193.279531] [<c040f17c>] (device_add+0x3a8/0x588) from [<c0509040>] (i2c_new_device+0x14c/0x1b4)
[  193.289798] [<c0509040>] (i2c_new_device+0x14c/0x1b4) from [<c051b414>] (v4l2_i2c_new_subdev_board+0x)
[  193.300086] [<c051b414>] (v4l2_i2c_new_subdev_board+0xe0/0xe8) from [<c05239d4>] (soc_camera_host_reg)
[  193.311033] [<c05239d4>] (soc_camera_host_register+0x384/0x7e8) from [<bf07a564>] (tegra_camera_probe)
[  193.322836] [<bf07a564>] (tegra_camera_probe+0x2d4/0x34c [tegra_camera]) from [<c0411a28>] (driver_pr)
[  193.334370] [<c0411a28>] (driver_probe_device+0x1d8/0x330) from [<c040fe9c>] (bus_for_each_drv+0x8c/0)
[  193.344061] [<c040fe9c>] (bus_for_each_drv+0x8c/0x94) from [<c04117e0>] (device_attach+0x78/0x90)
[  193.353016] [<c04117e0>] (device_attach+0x78/0x90) from [<c0410c7c>] (bus_probe_device+0x30/0xa0)
[  193.362038] [<c0410c7c>] (bus_probe_device+0x30/0xa0) from [<c04111f0>] (deferred_probe_work_func+0x9)
[  193.371987] [<c04111f0>] (deferred_probe_work_func+0x94/0xb4) from [<c0075518>] (process_one_work+0x2)
[  193.382295] [<c0075518>] (process_one_work+0x278/0x3ec) from [<c00764cc>] (worker_thread+0x1b0/0x328)
[  193.391598] [<c00764cc>] (worker_thread+0x1b0/0x328) from [<c007c1a4>] (kthread+0xc0/0xcc)
[  193.399977] [<c007c1a4>] (kthread+0xc0/0xcc) from [<c000e678>] (ret_from_fork+0x14/0x20)
[  193.408184] ---[ end trace 870115b0442d0039 ]---
[  193.412960] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x36
[  193.419991] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x36
[  193.426977] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x36
[  193.433912] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x36
[  193.440858] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x36
[  193.447748] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x36
[  193.454709] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x36
[  193.461648] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x36
[  193.468548] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x36
[  193.475391] [ar0261]: chip version 0x0000
[  193.479523] [ar0261]: failed to read sensor id
[  193.484053] ------------[ cut here ]------------
[  193.488734] WARNING: at /workdir/oe/tmp-glibc/work-shared/apalis-tk1/kernel-source/drivers/media/i2c/)
[  193.504251] Modules linked in: ar0261_v4l2 soc_camera_platform adv7280 tc358743 ap1302 ar0330_v4l2 imd
[  193.529793] CPU: 0 PID: 6 Comm: kworker/u8:0 Tainted: G        W    3.10.40-2.8.7+g063d16eceb57 #1
[  193.538939] Workqueue: deferwq deferred_probe_work_func
[  193.544443] [<c00154c8>] (unwind_backtrace+0x0/0x120) from [<c0012090>] (show_stack+0x18/0x1c)
[  193.553222] [<c0012090>] (show_stack+0x18/0x1c) from [<c00584a0>] (warn_slowpath_common+0x54/0x74)
[  193.562249] [<c00584a0>] (warn_slowpath_common+0x54/0x74) from [<c0058568>] (warn_slowpath_null+0x20/)
[  193.572010] [<c0058568>] (warn_slowpath_null+0x20/0x28) from [<bf0b246c>] (ar0261_power_off+0x50/0xb0)
[  193.582597] [<bf0b246c>] (ar0261_power_off+0x50/0xb0 [ar0261_v4l2]) from [<bf0b283c>] (ar0261_probe+0)
[  193.594079] [<bf0b283c>] (ar0261_probe+0x194/0x1fc [ar0261_v4l2]) from [<c050af90>] (i2c_device_probe)
[  193.604319] [<c050af90>] (i2c_device_probe+0xac/0xf8) from [<c0411a28>] (driver_probe_device+0x1d8/0x)
[  193.613979] [<c0411a28>] (driver_probe_device+0x1d8/0x330) from [<c040fe9c>] (bus_for_each_drv+0x8c/0)
[  193.623609] [<c040fe9c>] (bus_for_each_drv+0x8c/0x94) from [<c04117e0>] (device_attach+0x78/0x90)
[  193.632570] [<c04117e0>] (device_attach+0x78/0x90) from [<c0410c7c>] (bus_probe_device+0x30/0xa0)
[  193.641508] [<c0410c7c>] (bus_probe_device+0x30/0xa0) from [<c040f17c>] (device_add+0x3a8/0x588)
[  193.650385] [<c040f17c>] (device_add+0x3a8/0x588) from [<c0509040>] (i2c_new_device+0x14c/0x1b4)
[  193.659259] [<c0509040>] (i2c_new_device+0x14c/0x1b4) from [<c051b414>] (v4l2_i2c_new_subdev_board+0x)
[  193.669273] [<c051b414>] (v4l2_i2c_new_subdev_board+0xe0/0xe8) from [<c05239d4>] (soc_camera_host_reg)
[  193.680121] [<c05239d4>] (soc_camera_host_register+0x384/0x7e8) from [<bf07a564>] (tegra_camera_probe)
[  193.691862] [<bf07a564>] (tegra_camera_probe+0x2d4/0x34c [tegra_camera]) from [<c0411a28>] (driver_pr)
[  193.703139] [<c0411a28>] (driver_probe_device+0x1d8/0x330) from [<c040fe9c>] (bus_for_each_drv+0x8c/0)
[  193.712797] [<c040fe9c>] (bus_for_each_drv+0x8c/0x94) from [<c04117e0>] (device_attach+0x78/0x90)
[  193.721732] [<c04117e0>] (device_attach+0x78/0x90) from [<c0410c7c>] (bus_probe_device+0x30/0xa0)
[  193.730707] [<c0410c7c>] (bus_probe_device+0x30/0xa0) from [<c04111f0>] (deferred_probe_work_func+0x9)
[  193.740600] [<c04111f0>] (deferred_probe_work_func+0x94/0xb4) from [<c0075518>] (process_one_work+0x2)
[  193.750690] [<c0075518>] (process_one_work+0x278/0x3ec) from [<c00764cc>] (worker_thread+0x1b0/0x328)
[  193.759973] [<c00764cc>] (worker_thread+0x1b0/0x328) from [<c007c1a4>] (kthread+0xc0/0xcc)
[  193.768333] [<c007c1a4>] (kthread+0xc0/0xcc) from [<c000e678>] (ret_from_fork+0x14/0x20)
[  193.776501] ---[ end trace 870115b0442d003a ]---
[  193.781210] [ar0261]: fail to read out sensor ID.
[  193.792422] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x20
[  193.799438] vi vi.1: Tegra camera driver loaded.
root@apalis-tk1:~# [  193.806021] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x20

t=480' ! xvimagesinkst-launch-1.0 v4l2src device=/dev/video0 ! 'video/x-raw,format={UYVY},width=640,heigt
[  207.422884] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x20
[  207.430452] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x20
[  207.615989] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x20
[  207.623540] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x20
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[  207.860497] vi vi.0: MIPI calibration timeout!
[  208.069320] vi vi.0: CSI_A syncpt timeout, syncpt = 1, err = -11
[  208.079687] TEGRA_CSI_CSI_CIL_A_STATUS 0x00000010
[  208.085241] TEGRA_CSI_CSI_CILA_STATUS 0x00040040
[  208.090086] TEGRA_CSI_CSI_CIL_B_STATUS 0x00000000
[  208.094906] TEGRA_CSI_CSI_CIL_C_STATUS 0x00000000
[  208.099723] TEGRA_CSI_CSI_CIL_D_STATUS 0x00000000
[  208.104600] TEGRA_CSI_CSI_CIL_E_STATUS 0x00000000
[  208.109461] TEGRA_CSI_CSI_PIXEL_PARSER_A_STATUS 0x00000000
[  208.115061] TEGRA_CSI_CSI_PIXEL_PARSER_B_STATUS 0x00000000
[  208.120713] TEGRA_VI_CSI_0_ERROR_STATUS 0x00000000
[  208.125764] TEGRA_VI_CSI_1_ERROR_STATUS 0x00000000
[  208.140018] vi vi.0: Failed to create debugfs directory
[  208.344730] vi vi.0: MIPI calibration timeout!
[  208.553447] vi vi.0: CSI_A syncpt timeout, syncpt = 2, err = -11
[  208.563731] TEGRA_CSI_CSI_CIL_A_STATUS 0x00000010
[  208.569582] TEGRA_CSI_CSI_CILA_STATUS 0x00040040
[  208.574424] TEGRA_CSI_CSI_CIL_B_STATUS 0x00000000
[  208.579251] TEGRA_CSI_CSI_CIL_C_STATUS 0x00000000
[  208.584066] TEGRA_CSI_CSI_CIL_D_STATUS 0x00000000
[  208.588931] TEGRA_CSI_CSI_CIL_E_STATUS 0x00000000
[  208.593972] TEGRA_CSI_CSI_PIXEL_PARSER_A_STATUS 0x00000000
[  208.599564] TEGRA_CSI_CSI_PIXEL_PARSER_B_STATUS 0x00000000
[  208.605205] TEGRA_VI_CSI_0_ERROR_STATUS 0x00000000
[  208.610099] TEGRA_VI_CSI_1_ERROR_STATUS 0x00000000
[  208.615209] vi vi.0: Failed to create debugfs directory
[  208.827815] vi vi.0: MIPI calibration timeout!
[  209.034473] vi vi.0: CSI_A syncpt timeout, syncpt = 3, err = -11
[  209.044807] TEGRA_CSI_CSI_CIL_A_STATUS 0x00000010
[  209.050607] TEGRA_CSI_CSI_CILA_STATUS 0x00040040
[  209.055867] TEGRA_CSI_CSI_CIL_B_STATUS 0x00000000
[  209.060789] TEGRA_CSI_CSI_CIL_C_STATUS 0x00000000
[  209.065605] TEGRA_CSI_CSI_CIL_D_STATUS 0x00000000
[  209.070511] TEGRA_CSI_CSI_CIL_E_STATUS 0x00000000
[  209.075344] TEGRA_CSI_CSI_PIXEL_PARSER_A_STATUS 0x00000000
[  209.080941] TEGRA_CSI_CSI_PIXEL_PARSER_B_STATUS 0x00000000
[  209.086590] TEGRA_VI_CSI_0_ERROR_STATUS 0x00000000
[  209.091491] TEGRA_VI_CSI_1_ERROR_STATUS 0x00000000
[  209.096716] vi vi.0: Failed to create debugfs directory
[  209.299021] vi vi.0: MIPI calibration timeout!
[  209.507444] vi vi.0: CSI_A syncpt timeout, syncpt = 4, err = -11
[  210.023392] ------------[ cut here --------[  210.027416] WARNING: at /workdir/oe-glibc/wshared/as-tk)
[  210.038709] Modules linked in: ar0261_v4l2 soc_camera_platform adv7280 tc358743 ap1302 ar0330_v4l2 imd
[  210.062869] CPU: 0 PID: Comm: tevi/captuinted: G    W   0.40-2.8063d16ec #1
[  210.077561] [<c0012090>] (show_stac18/0x1c)m [<c005>] (warnwpath_co+0x54/0x
[  210.091925] [<c0058568>] (warn_slow_null+0xx28) froc058b7b8tegra_hictlr_irqdler+0x34c)40] [<c00584a0>)
[  210.099847] [<c058b7b8>] (tegra_hietlr_irq_ler+0x3cc) from 0c6d7c>]ndle_irqnt_percpa0/0x250[  210.108)
[  210.122736] [<c00c9cc0>] (handle_fai_irq+0xxfc) froc00c6638generic_le_irq+00x38)
[  210.130133] [<c00c6638>] (generic_he_irq+0xx38) froc000ef04handle_Ix80/0x98[  210.136924] [<c000ef04>)
[  210.143715] [<c0008534>] (gic_handlq+0x4c/0) from [0e1c0>] rq_svc+00x70)
[  210.150413] Exception stack(0xebd37to 0xebd8)
[  210.154773] 7de0:                             00000c0a880c0a09c0 0000
[  210.161214] 7e00: ebd36000 0000000000202 fd00 c0abcebd37ec888080 0040
[  210.167653] 7e20: 00000000 ebd37e38602ec c060 200f0ffffffff[  210.173059] [<c000e1c0>] (__irq_svc0/0x)
[  210.179590] [<c0060360>] (__do_soft0x8c/0x2from [<c5e8>] (dftirq+0xx58)
[  210.186206] [<c00605e8>] (do_softir4c/0x58)m [<c006>] (irq_+0x7c/0x
                                                                      [  210.192391] [<c0060864>] (irq_ex
                                                                                                        )
[  210.205363] [<c0008534>] (gic_handlq+0x4c/0) from [0e1c0>] rq_svc+00x70)
[  210.212061] Exception stack(0xebd37to 0xebd0)
[  210.216421] 7ec0:                  00034 0000 013affe48000089210 0001
[  210.222860] 7ee0: fffffff5 ed47c410892e4 0000 0000000000000306d4 eb10
[  210.229299] 7f00: bf07d794 bf07d7a0f0013 ffff
[  210.233671] [<c000e1c0>] (__irq_svc0/0x70)  [<bf07d] (vi2_cre_startd8/0x52cgra_came
[  210.241336] [<bf07d7a0>] (vi2_captutart+0x1x52c [tecamera])m [<bf07>] (tegrmera_kth_capturert+0x1b4b8)
[  210.251598] [<bf07a9b4>] (tegra_camkthread_ure_star1b4/0x2begra_cam) from [7c1a4>] read+0xccc)
[  210.260210] [<c007c1a4>] (kthread+00xcc) fr<c000e67(ret_frork+0x14/)
[  210.266563] ---[ end trace 870115b0003b ]

My advice is to get rid of any Linux Kernel module that you are not really using and just leaving the ov5640 plus of course the dma and camera controller ones.

Hi @marcel.tx

I have tried remove all the other camera kernel module drivers except ov5640, but the issue is still the same, please find log as below.

The Angstrom Distribution apalis-tk1 ttyS0
Angstrom v2017.12 - Kernel 
Apalis-TK1_LXDE-Image 2.8b6.184 20190401
apalis-tk1 login: root
Last login: Mon Apr  1 21:03:04 UTC 2019 on ttyS0

root@apalis-tk1:~# ls /lib/modules/3.10.40-2.8.6+g2c7a3c3af726/kernel/drivers/media/i2c/soc_camera/
ov5640.ko                                                                             

root@apalis-tk1:~# echo 195 > /sys/class/gpio/export                                  
root@apalis-tk1:~# echo low > /sys/class/gpio/gpio195/direction                       
root@apalis-tk1:~# echo 234 > /sys/class/gpio/export                                  
root@apalis-tk1:~# echo low > /sys/class/gpio/gpio234/direction                       
root@apalis-tk1:~# echo high > /sys/class/gpio/gpio195/direction                      
                                                                
root@apalis-tk1:~# modprobe videobuf2-dma-contig                                      
root@apalis-tk1:~# modprobe ov5640                                                    
root@apalis-tk1:~# modprobe tegra_camera
[  130.214569] vi vi.0: initialized
[  130.227399] platform vi.1: Driver vi requests probe deferral
[  130.239429] soc-camera-pdrv soc-camera-pdrv.1: Probing soc-camera-pdrv.1
[  130.252703] soc-camera-pdrv soc-camera-pdrv.3: Probing soc-camera-pdrv.3
[  130.275965] soc-camera-pdrv soc-camera-pdrv.4: Probing soc-camera-pdrv.4
[  130.288304] soc-camera-pdrv soc-camera-pdrv.5: Probing soc-camera-pdrv.5
[  130.299999] ov5640 2-003c: Chip ID 0x5640
[  130.305859] vi vi.1: initialized
[  130.309323] vi vi.0: Supporting mbus format code 0x2006 using YUV422 (UYVY) packed
[  130.317293] vi vi.0: Supporting mbus format code 0x2006 using YUV422 (VYUY) packed
[  130.325413] vi vi.0: Supporting mbus format code 0x2006 using YUV422 (YUYV) packed
[  130.333002] vi vi.0: Supporting mbus format code 0x2006 using YUV422 (YVYU) packed
[  130.340615] vi vi.0: Supporting mbus format code 0x2006 using YUV420 (YU12) planar
[  130.348427] vi vi.0: Supporting mbus format code 0x2006 using YVU420 (YV12) planar
[  130.356391] soc-camera-pdrv soc-camera-pdrv.6: Probing soc-camera-pdrv.6
[  130.366744] tegra-i2c tegra12-i2c.2: no acknowledge from address 0x3d
[  130.373375] ov5640 2-003d: Failure to read Chip ID (high byte)
[  130.379237] ov5640: probe of 2-003d failed with error -22
[  130.388396] soc-camera-pdrv soc-camera-pdrv.7: Probing soc-camera-pdrv.7
[  130.399991] soc-camera-pdrv soc-camera-pdrv.8: Probing soc-camera-pdrv.8
[  130.411866] soc-camera-pdrv soc-camera-pdrv.9: Probing soc-camera-pdrv.9
[  130.422728] vi vi.0: Tegra camera driver loaded.
[  130.422757] soc-camera-pdrv soc-camera-pdrv.0: Probing soc-camera-pdrv.0
[  130.430693] vi vi.1: Supporting mbus format code 0x100e using RGBA 8-8-8-8
[  130.431175] soc-camera-pdrv soc-camera-pdrv.2: Probing soc-camera-pdrv.2
[  130.436137] vi vi.1: Tegra camera driver loaded.

root@apalis-tk1:~# gst-launch-1.0 v4l2src device=/dev/video0 ! 'video/x-raw,format={UYVY},width=640,heigh
t=480' ! xvimagesink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[  155.062851] vi vi.0: MIPI calibration timeout!
[  155.270065] vi vi.0: CSI_A syncpt timeout, syncpt = 2, err = -11
[  155.283530] TEGRA_CSI_CSI_CIL_A_STATUS 0x00000010
[  155.289007] TEGRA_CSI_CSI_CILA_STATUS 0x00040040
[  155.301493] TEGRA_CSI_CSI_CIL_B_STATUS 0x00000000
[  155.309345] TEGRA_CSI_CSI_CIL_C_STATUS 0x00000000
[  155.316589] TEGRA_CSI_CSI_CIL_D_STATUS 0x00000000
[  155.321985] TEGRA_CSI_CSI_CIL_E_STATUS 0x00000000
[  155.326870] TEGRA_CSI_CSI_PIXEL_PARSER_A_STATUS 0x00000000
[  155.332464] TEGRA_CSI_CSI_PIXEL_PARSER_B_STATUS 0x00000000
[  155.338258] TEGRA_VI_CSI_0_ERROR_STATUS 0x00000000
[  155.343157] TEGRA_VI_CSI_1_ERROR_STATUS 0x00000000
[  155.348051] vi vi.0: Error capturing frame. Stopping capture

Hi @marcel.tx

Happy new year!
Not sure if any update for this issue?

Thanks.