Camera OV5640 issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Camera OV5640 issue

670 Views
asmaa
Contributor V

Hello Everyone,

i am using OV5640 camera module with imx6. once it probes and try to get pwdn and reset gpios, I get following error in boot logs. my both pins are connected to IO expander pca9535 on I2C.

------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at drivers/gpio/gpiolib.c:3127 gpiod_set_raw_value+0x60/0x70
Modules linked in:
CPU: 0 PID: 1 Comm: swapper Not tainted 4.19.35-04774-g14bf555b2d02-dirty #1155
Hardware name: Freescale i.MX6 UltraLite (Device Tree)
[<8010e26c>] (unwind_backtrace) from [<8010b7d0>] (show_stack+0x10/0x14)
[<8010b7d0>] (show_stack) from [<8012ca28>] (__warn+0xe0/0xf8)
[<8012ca28>] (__warn) from [<8012cb58>] (warn_slowpath_null+0x40/0x48)
[<8012cb58>] (warn_slowpath_null) from [<80433264>] (gpiod_set_raw_value+0x60/0x70)
[<80433264>] (gpiod_set_raw_value) from [<8073fc34>] (ov5640_probe+0x2bc/0x58c)
[<8073fc34>] (ov5640_probe) from [<806dfc60>] (i2c_device_probe+0x258/0x268)
[<806dfc60>] (i2c_device_probe) from [<80532608>] (really_probe+0x1d0/0x2bc)
[<80532608>] (really_probe) from [<80532858>] (driver_probe_device+0x60/0x170)
[<80532858>] (driver_probe_device) from [<80532a38>] (__driver_attach+0xd0/0xd4)
[<80532a38>] (__driver_attach) from [<805307c8>] (bus_for_each_dev+0x74/0xb4)
[<805307c8>] (bus_for_each_dev) from [<80531ab0>] (bus_add_driver+0x188/0x20c)
[<80531ab0>] (bus_add_driver) from [<805333b8>] (driver_register+0x74/0x108)
[<805333b8>] (driver_register) from [<806df604>] (i2c_register_driver+0x3c/0x7c)
[<806df604>] (i2c_register_driver) from [<80102644>] (do_one_initcall+0x54/0x194)
[<80102644>] (do_one_initcall) from [<80f00df4>] (kernel_init_freeable+0x134/0x1c8)
[<80f00df4>] (kernel_init_freeable) from [<80aa94e0>] (kernel_init+0x8/0x114)
[<80aa94e0>] (kernel_init) from [<801010e8>] (ret_from_fork+0x14/0x2c)
Exception stack(0x87e89fb0 to 0x87e89ff8)
g_serial gadget: high-speed config #2: CDC ACM config
9fa0: 00000000 00000000 00000000 00000000
9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
---[ end trace 1ad1c808e5303a5f ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at drivers/gpio/gpiolib.c:3127 gpiod_set_raw_value+0x60/0x70
Modules linked in:
CPU: 0 PID: 1 Comm: swapper Tainted: G W 4.19.35-04774-g14bf555b2d02-dirty #1155
Hardware name: Freescale i.MX6 UltraLite (Device Tree)
[<8010e26c>] (unwind_backtrace) from [<8010b7d0>] (show_stack+0x10/0x14)
[<8010b7d0>] (show_stack) from [<8012ca28>] (__warn+0xe0/0xf8)
[<8012ca28>] (__warn) from [<8012cb58>] (warn_slowpath_null+0x40/0x48)
[<8012cb58>] (warn_slowpath_null) from [<80433264>] (gpiod_set_raw_value+0x60/0x70)
[<80433264>] (gpiod_set_raw_value) from [<8073fc44>] (ov5640_probe+0x2cc/0x58c)
[<8073fc44>] (ov5640_probe) from [<806dfc60>] (i2c_device_probe+0x258/0x268)
[<806dfc60>] (i2c_device_probe) from [<80532608>] (really_probe+0x1d0/0x2bc)
[<80532608>] (really_probe) from [<80532858>] (driver_probe_device+0x60/0x170)
[<80532858>] (driver_probe_device) from [<80532a38>] (__driver_attach+0xd0/0xd4)
[<80532a38>] (__driver_attach) from [<805307c8>] (bus_for_each_dev+0x74/0xb4)
[<805307c8>] (bus_for_each_dev) from [<80531ab0>] (bus_add_driver+0x188/0x20c)
[<80531ab0>] (bus_add_driver) from [<805333b8>] (driver_register+0x74/0x108)
[<805333b8>] (driver_register) from [<806df604>] (i2c_register_driver+0x3c/0x7c)
[<806df604>] (i2c_register_driver) from [<80102644>] (do_one_initcall+0x54/0x194)
[<80102644>] (do_one_initcall) from [<80f00df4>] (kernel_init_freeable+0x134/0x1c8)
[<80f00df4>] (kernel_init_freeable) from [<80aa94e0>] (kernel_init+0x8/0x114)
[<80aa94e0>] (kernel_init) from [<801010e8>] (ret_from_fork+0x14/0x2c)
Exception stack(0x87e89fb0 to 0x87e89ff8)
9fa0: 00000000 00000000 00000000 00000000
9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
---[ end trace 1ad1c808e5303a60 ]---
------------[ cut here ]------------

how can I resolve this issue?

Regards,

Asma

Labels (1)
0 Kudos
Reply
1 Reply

576 Views
igorpadykov
NXP Employee
NXP Employee

Hi Asma

issue may be related to pca9535 driver, one can recheck its dts settings

gpio-pca953x.txt\gpio\bindings\devicetree\Documentation - linux-imx - i.MX Linux kernel 

example

ARM: add DTS, defconfig for ADLINK LEC-iMX6 - Patchwork 

and try to debug its driver

gpio-pca953x.c\gpio\drivers - linux-imx - i.MX Linux kernel 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply