how to use adv7180 external H/V sync

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

how to use adv7180 external H/V sync

Jump to solution
1,430 Views
GaoJianzhong
Contributor IV
  • Hi all
    I have another question.
    Now mxc_v4l2_tvin capture data from adv7180 with H/V sync information ememded in data.
    But I want to let it use the external H/V sync signal from adv7180.
    I want to let adv7180 work as a cmos sensor.
    Is there anyone know how to do this?
    Thank you very much!

Labels (3)
0 Kudos
1 Solution
698 Views
max_tsai
NXP Employee
NXP Employee

hi,

Not sure if you have solution already. I would like to provide a few suggestion.

It looks you want adv7180 working by pixel clock signal. You may refer to CSI0_SENS_PRTCL of CSI0_SENS_CONF, and try the gated mode (or not gated mode? depend on adv7180). MX53 BSP already includes the setting, and please lookup "IPU_CSI_CLK_MODE_GATED_CLK" of "drivers/media/video/mxc/capture/mxc_v4l2_capture.c".

Max


View solution in original post

0 Kudos
2 Replies
699 Views
max_tsai
NXP Employee
NXP Employee

hi,

Not sure if you have solution already. I would like to provide a few suggestion.

It looks you want adv7180 working by pixel clock signal. You may refer to CSI0_SENS_PRTCL of CSI0_SENS_CONF, and try the gated mode (or not gated mode? depend on adv7180). MX53 BSP already includes the setting, and please lookup "IPU_CSI_CLK_MODE_GATED_CLK" of "drivers/media/video/mxc/capture/mxc_v4l2_capture.c".

Max


0 Kudos
698 Views
GaoJianzhong
Contributor IV

I made modifies of bellow reference ov5642.c file:

adv7180.c

In ioctl_g_ifparm function add:

p->u.bt656.clock_curr = 27000000; //gjz

p->u.bt656.bt_sync_correct = 1;

In adv7180_probe function modified:

adv7180_data.pix.priv = 0;

But there is no data captured from adv7180.

I don't why this did not work,

Is there anyone can help me?

Thank you

0 Kudos