TVP5150 Decoder

Started by Em1389, March 14, 2020, 01:11:44 PM

Previous topic - Next topic

Em1389

Hello

how to use tvp5150 on A20 ?
I find tvp5150 driver in kernel and compile it, but modprib tvp5150 oly load modules! and after confid fex and use 'modprobe -vv sun4i_csi1' see this:

------------------------
<6>[CSI]Welcome to CSI driver
<6>[CSI]csi_init
[CSI_DEBUG]csi_probe
[CSI_DEBUG]dev->ccm_cfg[0] = bf13ba18
[CSI_DEBUG]dev->ccm_cfg[0]->ccm = tvp5150
[CSI_DEBUG]dev->ccm_cfg[0]->twi_id = 2
[CSI_DEBUG]dev->ccm_cfg[0]->i2c_addr = ba
[CSI_DEBUG]dev->ccm_cfg[0]->interface = 4
[CSI_DEBUG]dev->ccm_cfg[0]->vflip = 0
[CSI_DEBUG]dev->ccm_cfg[0]->hflip = 0
[CSI_DEBUG]dev->ccm_cfg[0]->iovdd_str =
[CSI_DEBUG]dev->ccm_cfg[0]->avdd_str =
[CSI_DEBUG]dev->ccm_cfg[0]->dvdd_str =
[CSI_DEBUG]dev->ccm_cfg[0]->flash_pol = 0
<6>tvp5150 2-005d: chip found @ 0xba (sunxi-i2c.2)
<7>tvp5150 2-005d: tvp5150: read 0x80 = 0x51
<7>tvp5150 2-005d: tvp5150: read 0x81 = 0x50
<7>tvp5150 2-005d: tvp5150: read 0x82 = 0x04
<7>tvp5150 2-005d: tvp5150: read 0x83 = 0x00
<6>tvp5150 2-005d: tvp5150am1 detected.
1.STOP can't sendout!
STOP failed!
1.STOP can't sendout!
STOP failed!
1.STOP can't sendout!
STOP failed!
<7>tvp5150 2-005d: tvp5150: read 0x8c = 0x81
<6>[CSI]registered sub device,input_num = 0
<6>[CSI_ERR]Error when get ccm info,input_num = 0,use default!
<6>[CSI_ERR]Error when set ccm info,input_num = 0,use default!
[CSI_DEBUG]dev->ccm_cfg[0]->sd = ee225a00
[CSI_DEBUG]dev->ccm_cfg[0]->ccm_info = bf13bab4
[CSI_DEBUG]dev->ccm_cfg[0]->ccm_info.iocfg = 0
[CSI_DEBUG]dev->ccm_cfg[0]->ccm_info.vref = 0
[CSI_DEBUG]dev->ccm_cfg[0]->ccm_info.href = 0
[CSI_DEBUG]dev->ccm_cfg[0]->ccm_info.clock = 0
[CSI_DEBUG]dev->ccm_cfg[0]->ccm_info.mclk = 24000000
[CSI_DEBUG]dev->ccm_cfg[0]->iovdd =   (null)
[CSI_DEBUG]dev->ccm_cfg[0]->avdd =   (null)
[CSI_DEBUG]dev->ccm_cfg[0]->dvdd =   (null)
<6>[CSI]V4L2 device registered as video2
[CSI_DEBUG]csi_open
<3>[ccu-err] clk_enable: invalid handle
<6>[CSI_ERR]Error when set ccm info when csi open!
<6>[CSI_ERR]sensor CSI_SUBDEV_PWR_ON error at device number 0 when csi open!
<6>[CSI_ERR]sensor CSI_SUBDEV_STBY_ON error at device number 0 when csi open!
<6>[CSI_ERR]sensor standby off error when csi open!
-----------------------------------------------

how to solve this problem?


thanks