Other Parts Discussed in Thread: TLV320AIC3104
Tool/software: Linux
Hi All,
We are using camera module and processor module of AM572x GP EVM.
processors.wiki.ti.com/.../AM572x_GP_EVM_Hardware_Setup
We developed custom camera connection board through which we connected camera module with processor module without the using LCD module.
To check the pinmux and device tree changes please https://e2e.ti.com/support/arm/sitara_arm/f/791/t/584261
The camera module succefully connects and mt9t11x driver loads succesfully...
[ 8.120157] mt9t11x 4-003c: input-clock-freq: 32000000
[ 8.126192] mt9t11x 4-003c: pixel-clock-freq: 96000000
[ 8.155980] mt9t11x 4-003c: GPIO lookup for consumer reset
[ 8.155991] mt9t11x 4-003c: using device tree for GPIO lookup
[ 8.156060] of_get_named_gpiod_flags: parsed 'reset-gpios' property of node '/ocp/i2c@4807c000/mt9t11x@3C[0]' - status (0)
[ 8.156078] mt9t11x 4-003c: GPIO lookup for consumer powerdown
[ 8.156084] mt9t11x 4-003c: using device tree for GPIO lookup
[ 8.156103] of_get_named_gpiod_flags: parsed 'powerdown-gpios' property of node '/ocp/i2c@4807c000/mt9t11x@3C[0]' - status (0)
[ 8.156115] mt9t11x 4-003c: GPIO lookup for consumer oscen
[ 8.156120] mt9t11x 4-003c: using device tree for GPIO lookup
[ 8.156136] of_get_named_gpiod_flags: parsed 'oscen-gpios' property of node '/ocp/i2c@4807c000/mt9t11x@3C[0]' - status (0)
[ 8.156149] mt9t11x 4-003c: GPIO lookup for consumer bufen
[ 8.156154] mt9t11x 4-003c: using device tree for GPIO lookup
[ 8.156170] of_get_named_gpiod_flags: parsed 'bufen-gpios' property of node '/ocp/i2c@4807c000/mt9t11x@3C[0]' - status (0)
[ 8.156181] mt9t11x 4-003c: Pallab is here . Enjoy
[ 8.181634] of_get_named_gpiod_flags: can't parse 'gpio-reset' property of node '/ocp/i2c@48070000/tlv320aic3104@18[0]'
[ 8.181786] aic_dvdd_fixed: supplied by vdd_3v3
[ 8.228153] mt9t11x 4-003c: mt9t111 chip ID 2680
[ 8.236862] mt9t11x 4-003c: mt9t11x sensor driver registered !!
[ 11.216514] vip 48990000.vip: loading firmware vpdma-1b8.bin
[ 11.237694] vip 48990000.vip: VPDMA firmware loaded
[ 11.242818] vip2-s0: Port A: Using subdev mt9t11x for capture
[ 11.267939] vip2-s0: device registered as video1
Also from i2cdetect it shows that camera sensor is present on the i2c line
root@am57xx-evm:~# i2cdetect -r 4
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-4 using read byte commands.
I will probe address range 0x03-0x77.
Continue? [Y/n] y
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- UU -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
But as soon as I want to use camera and launch any gstreamer pipeline it device hangs and below message comes in dmesg
[ 549.385245] omap_i2c 4807c000.i2c: controller timed out
[ 549.405270] ------------[ cut here ]------------
[ 549.409922] WARNING: CPU: 1 PID: 1148 at drivers/media/v4l2-core/videobuf2-core.c:1315 vb2_start_streaming+0xe0/0x15c()
[ 549.420824] Modules linked in: bc_example(O) usbhid rpmsg_rpc rpmsg_proto rpmsg_pru xhci_plat_hcd xhci_hcd usbcore cbc drbg xfrm_user xfrm4_tunnel dwc3 udc_core ipcomp xfrm_ipcomp virtio_rpmsg_bus esp4 ah4 bluetooth af_key xfrm_algo sha512_generic sha512_arm sha256_generic hmac md5 sha1_generic sha1_arm_neon sha1_arm ti_vip snd_soc_simple_card omap_sham ecb pru_rproc pvrsrvkm(O) rtc_ds1307 pruss_intc ahci_platform libahci_platform libahci omap_aes_driver snd_soc_omap_hdmi_audio pruss omap_wdt dwc3_omap libata scsi_mod ti_vpe ti_sc ti_csc ti_vpdma extcon_palmas omap_des rtc_omap extcon omap_rng rtc_palmas snd_soc_tlv320aic3x mt9t11x rng_core debugss_kmodule(O) omap_remoteproc remoteproc virtio virtio_ring sch_fq_codel uio_module_drv(O) uio gdbserverproxy(O) cryptodev(O) cmemk(O)
[ 549.491147] CPU: 1 PID: 1148 Comm: v4l2src0:src Tainted: G O 4.4.32-gadde2ca9f8 #1
[ 549.499882] Hardware name: Generic DRA74X (Flattened Device Tree)
[ 549.505998] Backtrace:
[ 549.508473] [<c00130e4>] (dump_backtrace) from [<c00132e0>] (show_stack+0x18/0x1c)
[ 549.516073] r7:c04aa82c r6:600e0013 r5:00000000 r4:c0952dcc
[ 549.521798] [<c00132c8>] (show_stack) from [<c02b420c>] (dump_stack+0x8c/0xa0)
[ 549.529057] [<c02b4180>] (dump_stack) from [<c00349c4>] (warn_slowpath_common+0x88/0xb8)
[ 549.537180] r7:c04aa82c r6:00000523 r5:00000009 r4:00000000
[ 549.542900] [<c003493c>] (warn_slowpath_common) from [<c0034a98>] (warn_slowpath_null+0x24/0x2c)
[ 549.551721] r8:c096dc14 r7:ffffff92 r6:ec709c68 r5:ec709ebc r4:ec709dc4
[ 549.558495] [<c0034a74>] (warn_slowpath_null) from [<c04aa82c>] (vb2_start_streaming+0xe0/0x15c)
[ 549.567322] [<c04aa74c>] (vb2_start_streaming) from [<c04ac438>] (vb2_core_streamon+0x114/0x160)
[ 549.576142] r7:c0496edc r6:ed5c6c00 r5:ed9b8d80 r4:ec709c68
[ 549.581862] [<c04ac324>] (vb2_core_streamon) from [<c04ae288>] (vb2_streamon+0x38/0x58)
[ 549.589897] r5:ed9b8d80 r4:00000001
[ 549.593505] [<c04ae250>] (vb2_streamon) from [<c04ae2ec>] (vb2_ioctl_streamon+0x44/0x48)
[ 549.601632] [<c04ae2a8>] (vb2_ioctl_streamon) from [<c0496f00>] (v4l_streamon+0x24/0x28)
[ 549.609754] r5:40045612 r4:c04ae2a8
[ 549.613361] [<c0496edc>] (v4l_streamon) from [<c049ad48>] (__video_do_ioctl+0x2c0/0x334)
[ 549.621484] r5:40045612 r4:00000001
[ 549.625091] [<c049aa88>] (__video_do_ioctl) from [<c049a77c>] (video_usercopy+0x1d4/0x4c4)
[ 549.633387] r10:00000001 r9:00148014 r8:d1c03e30 r7:00000000 r6:00000004 r5:00000004
[ 549.641289] r4:40045612
[ 549.643840] [<c049a5a8>] (video_usercopy) from [<c049aa84>] (video_ioctl2+0x18/0x1c)
[ 549.651614] r10:00000000 r9:d1c02000 r8:ed73a6cc r7:00148014 r6:40045612 r5:ed9b8d80
[ 549.659514] r4:ed5c6c00
[ 549.662074] [<c049aa6c>] (video_ioctl2) from [<c04959e4>] (v4l2_ioctl+0xa8/0xe0)
[ 549.669506] [<c049593c>] (v4l2_ioctl) from [<c0130958>] (do_vfs_ioctl+0x3f0/0x614)
[ 549.677104] r9:d1c02000 r8:00148014 r7:0000000a r6:ed9b8d80 r5:ed4b6958 r4:00148014
[ 549.684924] [<c0130568>] (do_vfs_ioctl) from [<c0130bb8>] (SyS_ioctl+0x3c/0x64)
[ 549.692262] r10:00000000 r9:d1c02000 r8:00148014 r7:40045612 r6:ed9b8d80 r5:0000000a
[ 549.700163] r4:ed9b8d81
[ 549.702715] [<c0130b7c>] (SyS_ioctl) from [<c000fa20>] (ret_fast_syscall+0x0/0x34)
[ 549.710315] r9:d1c02000 r8:c000fbc4 r7:00000036 r6:b6b003c8 r5:b53120c8 r4:00000000
[ 549.718307]
---[ end trace 4c286026f3a769d2 ]---
If anyone can suggest some pointer, it will be really helpful !!
Attached issue logs :- 4747.log2.txt
Regards
Pallab Sarkar
