How to confirm initialize i2c data about ov5640 camera.

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

How to confirm initialize i2c data about ov5640 camera.

Jump to solution
2,560 Views
hanseunglee
Contributor III

my configure set below

UBUNTU 12.04

kernel 3.0.35

LTIB

i.mx6q sabresd board.

Hello.

I want to confirm i2c data of ov5640 camera when boot i.mx6 board.

So.. I was check clk for i2c (R181 & R182) of CSI0(ov5640 camera).

But I don't know that is correct data.

when i check i2c data,

it is 0x38 ack 0x0D ack 0x39 ack 0x15..... i think .. it's wrong

If you have ov5640 camera initialize i2c data, share for me.

Thank you.

ps.

Where can i search i2c data for changing data ?

Labels (4)
0 Kudos
1 Solution
1,515 Views
jimmychan
NXP TechSupport
NXP TechSupport

one more suggestion for you:

You can check the ov5640.c driver source code. It is located in linux/drivers/media/video/mxc/capture/.

There are two functions ov5640_write_reg() and ov5640_read_reg() using i2c for read and write the ov5640's registers.

And when run the ov5640_probe(), It will using ov5640_read_reg() to read the chip_id higher and lower bytes first. After checked the camera is ov5640, then it will initialize the camera by sending a set of data in ov5640_global_init_setting[],

View solution in original post

0 Kudos
2 Replies
1,516 Views
jimmychan
NXP TechSupport
NXP TechSupport

one more suggestion for you:

You can check the ov5640.c driver source code. It is located in linux/drivers/media/video/mxc/capture/.

There are two functions ov5640_write_reg() and ov5640_read_reg() using i2c for read and write the ov5640's registers.

And when run the ov5640_probe(), It will using ov5640_read_reg() to read the chip_id higher and lower bytes first. After checked the camera is ov5640, then it will initialize the camera by sending a set of data in ov5640_global_init_setting[],

0 Kudos
1,516 Views
igorpadykov
NXP Employee
NXP Employee

Hi Hanseung

one can look at attached baremetal ov5640 camera codes from sdk.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 Kudos