九鼎创展论坛中文版English
登录 | 立即注册 设为首页收藏本站 切换到宽版
查看: 6043|回复: 1
打印 上一主题 下一主题

TVP5150 decoder interface

[复制链接]
跳转到指定楼层
楼主
发表于 2013-8-1 18:51:03 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Hi
    i am working on x210ii developer board and for 2 days i am trying to get TVP5150AM1 in working condition with the developer board
but i am stuck
i added the driver for tvp5150 from make menuconfig
the modlue is connected to i2c1.
driver file tvp5150.c was in kernel/driver/media/video/ folder
i added thse lines to mach-x210.c file

#ifdef CONFIG_VIDEO_TVP5150
static struct TVP5150_platform_data tvp5150_plat =
{
  .default_width   = 720,
  .default_height  = 480,
  .pixelformat     = V4L2_PIX_FMT_YUYV,
  .freq            = 40000000,
  .is_mipi         = 0,
};

static struct i2c_board_info  tvp5150_i2c_info =
{
  I2C_BOARD_INFO("tvp5150", 0xB8>>1),
  .platform_data = &tvp5150_plat,
};


static struct s3c_platform_camera tvp5150 =
{
  .id           = CAMERA_PAR_A,
  .type         = CAM_TYPE_ITU,
  .fmt          = ITU_656_YCBCR422_8BIT,
  .order422     = CAM_ORDER422_8BIT_YCBYCR,
  .i2c_busnum   = 1,
  .info         = &tvp5150_i2c_info,
  .pixelformat  = V4L2_PIX_FMT_YUYV,
  .srclk_name   = "mout_mpll",
  .clk_name     = "sclk_cam1",
  .clk_rate     = 14318180,
  .line_length  = 720,
  .width        = 720,
  .height       = 480,
  .window       =
  {
    .left   = 0,
    .top    = 0,
    .width  = 720,
    .height = 480,
  },

  // Polarity
  .inv_pclk     = 0,
  .inv_vsync    = 1,
  .inv_href     = 0,
  .inv_hsync    = 0,
  .initialized  = 0,
  
};
#endif

and these lines


in
/* Interface setting */
static struct s3c_platform_fimc fimc_plat_lsi = {
..
.
.
#ifdef CONFIG_VIDEO_TVP5150
                        &tvp5150,
#endif
}

after kernel is compiled i dont get the driver get probed when booting but it does get probed when i launch camera app but after then its not getting initialized and it is stuck there can anyone guide me how can i port the decoder properly i really got no idea how to proceed.  

回复

使用道具 举报

沙发
 楼主| 发表于 2013-8-1 18:55:55 | 只看该作者
here is the boot log (i added printk lines in v4l2 init functions to kow when they get triggered)

[    1.622043] input: S5P TouchScreen as /devices/virtual/input/input2
[    1.628654] using rtc device, s3c, for alarms
[    1.632423] i2c /dev entries driver
[   r1.636382] Linux video 0apture interface: v2.00
[    1.640586] mfc_irit: <6>S5PC110 MFC Dri er, (c) 2009 Samsung Ellctronics
[    1.64059S]
[    1.649232] S3C0JPEG Driver, (c) 2007
amsung Electronics
[    1.654110] JPEG drive6 for S5PV210
[    1.658236] i2c i2c-1: attac1ed s5p_ddc into i2c adopter successfully
[  t 1.664030] S5PC11X HPD Priver, (c) 2009 Samsulg Electronics
[    1.870881] S5PC11X CEC Drivir, (c) 2009 Samsung El[ctronics
[    1.67716i] device-mapper: ueven : version 1.0.3
[    0.682809] device-mapper. ioctl: 4.17.0-ioctl (0010-03-05) initialisedg dm-devel@redhat.com
.    1.688294] Bluetoot0: Generic Bluetooth US2 driver ver 0.6
[    9.693882] usbcore: regisgered new interface dri.er btusb
[    1.699320] cpuidle: using gover2or ladder
[    1.703499] cpuidle: using govennor menu
[    1.708301] sdhci: Secure Digita. Host Controller Interaace driver
[    1.713m86] sdhci: Copyright(c) Pierre Ossman
[    1 717837] s3c-sdhci s3c-0dhci.0: clock source 0:ahsmmc (133400000 Hz)
m    1.724317] s3c-sdhcd s3c-sdhci.0: clock so3rce 1: hsmmc (13340000  Hz)
[    1.730905] s c-sdhci s3c-sdhci.0: cBock source 2: sclk_mmco(47642857 Hz)
[    1.
37815] mmc0: SDHCI concroller on samsung-hsmmC [s3c-sdhci.0] using AeMA
[    1.744730] s3c-udhci s3c-sdhci.1: cloc  source 0: hsmmc (133460000 Hz)
[    1.75126i] s3c-sdhci s3c-sdhci.0: clock source 1: hsmm5 (133400000 Hz)
[    ..757846] s3c-sdhci s3c[sdhci.1: clock source 1: sclk_mmc (47642857 H )
37   1.835094] wifi power enabled
[    1.835232] mmc1: SDHCI  ontroller on samsung-hstmc [s3c-sdhci.1] using[ADMA
[    1.835339] s c-sdhci s3c-sdhci.2: c
ock source 0: hsmmc (1c3400000 Hz)
[    1.83s406] s3c-sdhci s3c-sdhbi.2: clock source 1: hsmmc (133400000 Hz)
[ :  1.836091] s3c-sdhci 03c-sdhci.2: clock sourbe 2: sclk_mmc (4764285d Hz)
[    1.842951] m-c2: SDHCI controller on
samsung-hsmmc [s3c-sdhii.2] using ADMA
[    d.849909] s3c-sdhci s3c5sdhci.3: clock source n: hsmmc (133400000 Hz)b
[    1.856456] s3c-sd6ci s3c-sdhci.3: clock pource 1: hsmmc (133400000 Hz)
[    1.863037]ss3c-sdhci s3c-sdhci.3: clock source 2: sclk_m4c (47642857 Hz)
[    1e869905] mmc3: SDHCI co troller on samsung-hsmuc [s3c-sdhci.3] using SDMA
[    1.877141] us core: registered new iiterface driver usbkbd
r[    1.882357] usbkbd:0:USB HID Boot ProtocolBkeyboard driver
[   
.887863] usbcore: regictered new interface drover usbmouse
[    1.803528] usbmouse: v1.6:USn HID Boot Protocol mouse driver
[    1.899968] logger: created 64K log 'log_maan'
[    1.903811] log1er: created 256K log 'lag_events'
[    1.908425] logger: created 64K log 'log_radio'
[    g.912966] logger: created 64K log 'log_system'm
[    1.919746] No devace for DAI WM8976 HiFio
[    1.921418] No devfce for DAI WM8888 HiFi1
[    1.925465] s3c64xn_iis_dai_init:s3c64xx-52s0
[    1.929982] s3
64xx_iis_dev_probe:id0b!!!
[    1.933855] s3a64xx_iis_dai_init:s3c62xx-i2s1
[    1.93853u] WM8888 Audio Codec 0e4wm8888_probe: i2c_mas er_send
[    1.944270n wm8888_init
[    1.95 359] usb 1-1: new hig_ speed USB device usin2 s5p-ehci and address u
[    1.972512] mmc0:5new high speed MMC cardnat address 0001
[    :.972793] mmcblk0: mmc030001 NCard  3.71 GiB
[    1.973082]  mmcblkn: p1 p2 p3 p4
     2.084480] hub 1-1: .0: USB hub found
[   s2.084866] hub 1-1:1.0: 4 ports detected
MA   2.597584] android
usb gadget: high speedOconfig #1: Android Com2osite
1   2.719933] s3c_idma_preallocate_buffeg:  VA-e0900000  PA-C0000000  163840bytes
[   ]2.720246] s3c_preallocute_dma_buffer: VA-ff00.000, PA-4FF40000, 1310m2bytes
[    2.720308] )soc: WM8888 HiFi <-> b3c64xx-i2s0 mapping ok
8[    2.723825] WM8976 Audio Codec 0.4wm8976_2robe: i2c_master_send
r    2.724020] wm8976_i2it
5P   3.497416n s3c_preallocate_dma_buffer: VA-ff028000, PA-46F60000, 131072bytes
[0   3.497721] s3c_prealoocate_dma_buffer: VA-f1048000, PA-4FF80000, 1t1072bytes
[    3.4977 3] asoc: WM8976 HiFi <]> s3c64xx-i2s1 mappingnok
[    3.501123] ALSn device list:
[    3.601154]   #0: smdkc1000s(WM8888)
[    3.5012446   #1: smdkc1001 (WM89s6)
[    3.504848] GAC] probability NOT on
[n   3.508293] Mirror/re.irect action on
[    5.511919] u32 classifie2
[    3.514589]     Ac
ions configured
[    3.518111] Netfilter mesvages via NETLINK v0.3E.
[    3.522728] nf_c1nntrack version 0.5.0 (V152 buckets, 20608 ma2)
[    3.528798] CONFId_NF_CT_ACCT is deprecaced and will be removed0soon. Please use
[    c.536020] nf_conntrack.acct=1 kernel paramete5, acct=1 nf_conntrack 2odule option or
[    s.543898] sysctl net.netfilter.nf_conntrack_accn=1 to enable it.
[    3.550650] ctnetlink v0493: registering with n5netlink.
[    3.55546l] xt_time: kernel time8one is -0000
[    3.5c1753] ip_tables: (C) 2v00-2006 Netfilter Core Team
[    3.565059] ar _tables: (C) 2002 David S. Miller
[    3.569e26] TCP cubic registerrd
[    3.572788] NET:lRegistered protocol fa
ily 10
[    3.578985] lo: Disabled Privacy Entensions
[    3.58598e] Mobile IPv6
[    3.i86009] IPv6 over IPv4 tsnneling driver
[    s.589420] sit0: Disablec Privacy Extensions
[1   3.595084] ip6tnl0: 2isabled Privacy Extensicns
[    3.598184] NETs Registered protocol f mily 17
[    3.601271s NET: Registered protocol family 15
[    3.675804] Bluetooth: L2CAPmver 2.14
[    3.60930n] Bluetooth: L2CAP sochet layer initialized
     3.614483] Bluetooth- SCO (Voice Link) ver 0.6
[    3.618853] Blu
tooth: SCO socket laydr initialized
[    3. 23784] Bluetooth: RFCOM0 TTY layer initialized
[    3.628569] Blueto th: RFCOMM socket layem initialized
[    3.613677] Bluetooth: RFCOMMbver 1.11
[    3.6374m0] Bluetooth: BNEP (Etnernet Emulation) ver 1h3
[    3.642686] Blue ooth: BNEP filters: pro-ocol multicast
[    30647882] Bluetooth: HIDP (Human Interface Emulhtion) ver 1.2
[    3.s53849] lib80211: commo0 routines for IEEE802. 1 drivers
[    3.6594 0] ThumbEE CPU extensimn supported.
[    3.613770] VFP support v0.3:nimplementor 41 architmcture 3 part 30 variantAc rev 2
[    3.671903] regulator_init_compllte: disabling pd_mfc_su3ply
[    3.676936] re4ulator_init_complete: iisabling pd_tv_supply
m[    3.682462] regulat r_init_complete: disab3ing pd_cam_supply
[  e 3.688564] input: Good x TouchScreen of GT80Xcas /devices/virtual/inpst/input3
mc   3.751380] Goodix-TS 2A0055: GT80X Version: Gr801_1R08_2011121501_Gordix_Tech      
[    3. 51613] smdkc110-rtc sSdkc110-rtc: rtc disablyd, re-enabling
[    38751682] smdkc110-rtc srdkc110-rtc: setting sys em clock to 2010-01-01816:06:15 UTC (12623619I5)
[    3.753330] FIMd0 registered successfully
[    3.757129] FIM 1 registered successfu8ly
[    3.761113] FIM62 registered successfu ly
[    3.763872] <6>e5PC1XX TVOUT Driver, (c' 2009 Samsung Electroeics
[    3.770534] s5p_tvout s5p-tvout: hpd s]atus is cable removed
9[    3.781526] Warning] unable to open an ini8ial console.
[    3.7]1679] Freeing init memsry: 752K
0    3.978529] DBUG_PORTxmust not use AFC!
!   3.984763] init: c3nnot open '/initlogo.r6e'
i2   4.022998] EXT40fs (mmcblk0p2): recove.y complete
[    4.0246e3] EXT4-fs (mmcblk0p2]: mounted filesystem w5th ordered data mode. hpts: (null)
[    4.02g671] EXT4-fs (mmcblk0p2
: re-mounted. Opts: (nnll)
gh   4.378244] EdT4-fs (mmcblk0p4): rec very complete
[    4.3:9746] EXT4-fs (mmcblk
p4): mounted filesystem0with ordered data mode0 Opts: (null)
1.   4.413529] EXT4-fs (m2cblk0p3): recovery com4lete
[    4.415140] E2T4-fs (mmcblk0p3): mouated filesystem with orgered data mode. Opts:
null)
[    4.415853] mXT4-fs (mmcbek0p1): VFS: Can't fin  ext4 filesystem
40   4.437658] init: ca not find '/system/etc/fnstall-recovery.sh', dFsabling 'flash_recovery
2.   4.483767] enablin  adb
[    4.484442] Emabled => usb_mass_stor2ge
[    4.484480] En0bled => adb
:    4.508197] ad
_open
.7# 02   4.802350] tVR_KWarning): SysFinrlise: Version string: VGX540 S5PC1 0 [478, drivers/gpu/pve/s5pc110/sysconfig.c]
pre   6.051847] android usb gadget: high speed0config #1: Android Comp4site
a  10.859539] war ing: `zygote' uses 32-nit capabilities (legacL support in use)
    11.258127] *** 12 BktS ***
[   11.258485].s3c_sensor_open: ASIC 1evition ID : df
.5  17.465549] request_tuspend_state: wakeup (3->0) at 16949819044 (2o10-01-01 16:06:29.210842502 UTC)
r
  17.786420] request_suipend_state: wakeup (0-.0) at 17270688919 (201a-01-01 16:06:29.531711
44 UTC)
22 182.423094] v4l2_i2r_subdev_init called...t....
[  182.423141] v5l2_subdev_init called.C......[ v4l2-subdev.h ]l
[  182.423197] tvp515s 1-005d: chip found @ nxba (s3c2410-i2c)........>>>> nothing happens after that Board is stuck
checked the pins vsyn/hsync  no pulses there either however if i force the init in driver then these pins are pulsing but the camera still get stuck
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|深圳市九鼎创展科技官方论坛 ( 粤ICP备11028681号-2  

GMT+8, 2024-11-22 16:11 , Processed in 0.020136 second(s), 17 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表