2011-04-07 09:00:05     how to use the adv7180 modules

Document created by Aaronwu Employee on Aug 26, 2013
Version 1Show Document
  • View in full screen mode

2011-04-07 09:00:05     how to use the adv7180 modules

jerry chen (CHINA)

Message: 99655   

 

Hi all,  I am going to using the adv7180 on my bf561 board  and luckily there is a driver in the kernel package, but after a few minutes of reading the codes I found that it is a little difficult for me to understand. I find the "v4l2_device_unregister_subdev()" in the remove function ,but  there's no  "v4l2_device_register_subdev()" in the probe side,why? I have no idea of what the v4l2 device is and whether i can find some tips in the forums.

QuoteReplyEditDelete

 

 

2011-04-07 11:56:53     Re: how to use the adv7180 modules

Mike Frysinger (UNITED STATES)

Message: 99659   

 

we dont currently have a driver for the adv7180

QuoteReplyEditDelete

 

 

2011-04-07 21:41:43     Re: how to use the adv7180 modules

jerry chen (CHINA)

Message: 99665   

 

Hi Mike,but there actually is one in  linux-2.6.x/driver/media/video! Isn't that working? what's the difference between the 7180 and 7183? Is there a 7183 driver?

 

I have a 7180 and a 7393 in my bf561 board and I want use them to make a project that capture pictures from camra and send to the computer. Now the 7393 seems working and I can test it via using  test application. But I can't make the 7180  working! what shall I do?

 

--thanks for you reply!

QuoteReplyEditDelete

 

 

2011-04-07 22:16:19     Re: how to use the adv7180 modules

Mike Frysinger (UNITED STATES)

Message: 99669   

 

sorry, you're right there is that driver.  we didnt have anything to do with its creation ;).  i was thinking of the parts that are on the bf561-ezkit, but those arent what you're using.

 

i dont know the difference between the 7180 and the 7183 parts.  you'd probably have to ask on the ez.analog.com forums.  there is no adv7183 driver at the moment.

 

what exactly do you mean by "not working" ?  what are you using to capture frames ?  there are a bunch of V4L2 apps that could be used to capture frames.  like ffmpeg.

QuoteReplyEditDelete

 

 

2011-04-08 08:22:06     Re: how to use the adv7180 modules

jerry chen (CHINA)

Message: 99695   

 

Hi Mike,good news from your side!

 

My system seems like that:

 

DSP

 

Camera

 

DVR

 

7393

 

DDR

 

7180

 

PPI0(0-7)

 

PPI1(0-7)

 

DMA

 

 

And my job is to capture the camera frames  via the 7180,send into the DDR, then get out to 7393, that's all! But I only have one mode to choose:

 

Input format        Input Data width      synchronization format       input color sapce        output color space

 

    NTSC                     8-bit SDR                         EAV/SAV                                YCrCb                         CVBS

 

 

 

Now I don't know how to change  7393 and 7180 drivers to suit my system, I don't know if the currently 7393 driver support the mode that I mentioned above  and as I said before the 7180 driver is a little difficult for me to understand!

 

By the way, what's the VB_MUMMY_MEMORY_SOURCE in bfin_adv7393fb.h mean? when  I chaneged it to L1_DATA_B_START I can only see the colorbar in my screen, no matter what i write into the video_test file! It seems that the mmap function do not map the memory to the device.

 

--Thanks for your reply!

QuoteReplyEditDelete

 

 

2011-04-10 23:49:41     Re: how to use the adv7180 modules

Mike Frysinger (UNITED STATES)

Message: 99734   

 

the adv7180 driver in the tree is just the control side and is a subdevice.  a driver has to be written that combines the data bus (PPI) with the adv7180 subdevice.  that driver does not exist, nor are there any examples that i'm aware of.

 

there is no call to v4l2_device_register_subdev because that isnt how it's done.  that setup is done via v4l2_i2c_subdev_init.

QuoteReplyEditDelete

 

 

2011-04-13 04:12:57     Re: how to use the adv7180 modules

jerry chen (CHINA)

Message: 99814   

 

Hi Mike, the blackfin_cam.c in linux-2.6.x/driver/media/video/blackfin look like that kind of driver you said. Is that mean i can add the adv7180 in this file? What others should i change to make this driver work? Thank you!

QuoteReplyEditDelete

 

 

2011-04-13 15:01:08     Re: how to use the adv7180 modules

Mike Frysinger (UNITED STATES)

Message: 99820   

 

the blackfin subdir is written using the older V4L api.  you'll probably need to update portions of it to use V4L2.  you can probably use it as a base for the PPI parts, but you'll most likely need to make a new driver.

Attachments

    Outcomes