TW9900 Driver

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

TW9900 Driver

5,414 次查看
moowonlee
Contributor II

hi 

 

   I'm developing  TW9900 Driver on linux-3.10.53.

 

   I will connect Analog CAM  to TW9900 and TW9900 to imx6. 

     Analog CAM  ====nstc====>Tw9900 ====BT656 =====> imx6 CSI1

   I found tw9910.c  in <linux-3.10.53>/drivers/media/i2c/soc_camera. 

 

  I revised device tree. 

   pastedImage_1.png

 kernel configuration 

      device_drivers-> multimedia_support --> sensors used on soc_camera_driver -> tw9910 support <*>

  so, I tested tw9910 driver.

   i founded  tw9910 driver  error message. 

      "tw9910 2-0044 : TW9910: missing platform data! 

pastedImage_2.png

 

 It is tw9910 dirver probe source.

pastedImage_3.png

   I think soc_camera_i2c_to_desc(client) function returns NULL.

  Why return valuse is NULL? 

   How resolve this problems??

 and 

 Is it right to use this video decoder ? 

 i found something,  <linux-3.10.53>/drivers/media/platform/mxc/capture/adv7180.c

 adv7180 is video decoder.  

what is different between soc camera and video decoder? 

 

标签 (2)
6 回复数

2,758 次查看
igorpadykov
NXP Employee
NXP Employee

Hi moowon

you are right, for bt656 camera one can reuse ad7180 examples, also one can check

I.MX6: TW8836_TVIN(BT656) ===&gt; CSI0 (8-Bit / CSI0_DAT12 : CSI0_DAT19) 

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

0 项奖励
回复

2,758 次查看
moowonlee
Contributor II

Hi igorpadykov

 I captured image through tw9900 on i.mx6 solox.

pastedImage_1.jpg

but There are two filed in the image. 

what is the problem? 

please help me

0 项奖励
回复

2,758 次查看
igorpadykov
NXP Employee
NXP Employee

may be useful to look at

ADV7180 and IMX6 - does NTSC work? 

Best regards
igor

0 项奖励
回复

2,758 次查看
moowonlee
Contributor II

hi igorpadykov

thanks your help

Analog CAM  ====nstc====>Tw9900 ====BT656 =====> imx6sx CSI1 

I made Tw9900 driver. and It is working 

currently, I have a problem. 

This picture is dumped from csi buffer Using DQueue 

 when  It was  "csi_buf_stride_set(cam, 720); " "csi_deinterlace_enable(cam, false);" in csi_v4l2_catpure.c, I  dumped picture.

pastedImage_1.png

 

  when I revise  "csi_buf_stride_set(cam, 0); " "csi_deinterlace_enable(cam, false);" in csi_v4l2_catpure.c, I  dumped picture.

 pastedImage_1.png

I think CSI driver dosen`t  find start of frame. 

let me know how to resolve this problem.

and What is buf stride? 

I found IMX6SX Reference Manual, but I am not understand about buf_stride.

Could you tell me more? 

0 项奖励
回复

2,758 次查看
jsmith883
Contributor III

hi moowon lee,

Can you share how you fixed the missing platform data?

I am going to write a driver for the TW9992 and would like a good basis to start from.  Are you able to share the code and device tree that you created for the TW9900?  Thanks!

2,758 次查看
john_schluechte
Contributor I

Anyone have an answer to this, I am also experiencing this issue?

0 项奖励
回复