This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OMAP L138 V4L2 driver Framework

Other Parts Discussed in Thread: AM1808

Dear All,

I am trying to develop V4L2 Driver for OMAP L138 (As per my understanding V4L2 support is not available in AM1808).

We are using OV3640 sensor (Already present and work with OMAP3), Because OV3640 driver is based on v4l2_int_device, so i have to adopt the v4l2_int_device interface to develop V4L2 for OMAP L138.

I am referring the OMAP34XXCAM module for my development, I want to know is this right approach to do that? . If this is not the right reference please guide me because OMAP3 is based on PSP & MMU as well.

If  i can refer OMAP3(after excluding PSP & MMU part) then i have few question here.

1.  At the time of V4L2 module initialization when "omap34xxcam_device_register(struct v4l2_int_device *s)" will be invoking, will this happen automatically or i have to configure something to invoke this, because this function is only responsible for the device node creation (/dev/videox).

2. How i can invoke sensor functions from V4L2, How V4L2 and sensor will be knowing each other presence.

Any Help is appriciated as i am new to the V4L2 frame work.

 

Thanks &Regards

Gajendra

 

 

 

 

 

 

  • Gajendra Singh said:

    Dear All,

    I am trying to develop V4L2 Driver for OMAP L138 (As per my understanding V4L2 support is not available in AM1808).

    We are using OV3640 sensor (Already present and work with OMAP3), Because OV3640 driver is based on v4l2_int_device, so i have to adopt the v4l2_int_device interface to develop V4L2 for OMAP L138.

    I am referring the OMAP34XXCAM module for my development, I want to know is this right approach to do that? . If this is not the right reference please guide me because OMAP3 is based on PSP & MMU as well.

    May be you need to use this - http://arago-project.org/git/projects/?p=linux-davinci.git;a=shortlog;h=refs/heads/03.21.00.05

    Gajendra Singh said:
    1.  At the time of V4L2 module initialization when "omap34xxcam_device_register(struct v4l2_int_device *s)" will be invoking, will this happen automatically or i have to configure something to invoke this, because this function is only responsible for the device node creation (/dev/videox).

    .

    I believe you are asking me how to invoke probe function. This will happen automatically if you have platform device added in platform file. For l138, its already taken care. No need to add any new code

    Gajendra Singh said:

    2. How i can invoke sensor functions from V4L2, How V4L2 and sensor will be knowing each other presence.

    Any Help is appriciated as i am new to the V4L2 frame work.

    .

    V4l2-code provides some helper functions/macros. You need to just call them, V4l2-core will appropriately call sensor.

    Applications for l138 are available here - http://arago-project.org/git/projects/?p=examples-davinci.git;a=tree;f=vpif;h=a6587d5c30057152a053739f1f2b5139d9e338b1;hb=fced804d9745962ef30ccd3e8d3d90d63bad098a

    You can use above mentioned driver and examples so that you can get a feel of components, then you can add your own solutions.