Kernel 3.2.1 - Adding new SOC Sensor

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Kernel 3.2.1 - Adding new SOC Sensor

bellamyc
This post has NOT been accepted by the mailing list yet.
Hi,
I am attempting to add a new SOC sensor YACC6A1S-Hynix to the kernel - using PXA27X driver ( my CPU is PXA320). I am using the capture.c from v4L as a test API.
I2C functions are working OK. Verifying using a scope MCLK=26mhz , PCLK=13mhz, hsync/vsync are active.
It seems as though EOF interrupt is not occuring, only I receive SOF interrupt and nothing after that. Here is some debug of the process. Any suggestions would be appreciated. Thank you

soc-camera-pdrv soc-camera-pdrv: soc_camera_open line 511
pxa27x-camera pxa27x-camera.0: PXA Camera driver attached to camera 0
YACC6A1S 0-0020: yacc_s_power:ON
YACC6A1S 0-0020: yacc_swreset
YACC6A1S 0-0020: enablePLL
YACC6A1S 0-0020: enablePLL setting mode
YACC6A1S 0-0020: enablePLL enable pll1/2 reg=72
YACC6A1S 0-0020: yacc_bulk_write_reg
YACC6A1S 0-0020: yacc_set_params
YACC6A1S 0-0020: yacc_set_params info->curr_win->vid_ctl1=33,info->curr_fmt->ispctl1_reg=1
YACC6A1S 0-0020: yacc_base_config ret=0
soc-camera-pdrv soc-camera-pdrv: soc_camera_power_on - 0
soc-camera-pdrv soc-camera-pdrv: soc_camera_power_on- SUCCESS
soc-camera-pdrv soc-camera-pdrv: soc_camera_open line 550 ret=0
soc-camera-pdrv soc-camera-pdrv: soc_camera_open line 557
soc-camera-pdrv soc-camera-pdrv: S_FMT(422P, 320x240)
soc-camera-pdrv soc-camera-pdrv: TRY_FMT(422P, 320x240)
YACC6A1S 0-0020: yacc_try_fmt mf->code=8198 i =0
soc-camera-pdrv soc-camera-pdrv: soc_camera_try_fmt - line=180 ret=0
YACC6A1S 0-0020: yacc_s_fmt
soc-camera-pdrv soc-camera-pdrv: set width: 320 height: 240
YACC6A1S 0-0020: yacc_g_mbus_config
pxa27x-camera pxa27x-camera.0: pxa_camera_init_videobuf
soc-camera-pdrv soc-camera-pdrv: camera device open
soc-camera-pdrv soc-camera-pdrv: S_CROP(0x0@0:0)
YACC6A1S 0-0020: yacc_g_crop
YACC6A1S 0-0020: yacc_s_crop
YACC6A1S 0-0020: yacc_get_fmt mf->width=320,mf->height=240,mf->code=8198,mf->colorspace=7
soc-camera-pdrv soc-camera-pdrv: S_FMT(422P, 320x240)
soc-camera-pdrv soc-camera-pdrv: TRY_FMT(422P, 320x240)
YACC6A1S 0-0020: yacc_try_fmt mf->code=8198 i =0
soc-camera-pdrv soc-camera-pdrv: soc_camera_try_fmt - line=180 ret=0
YACC6A1S 0-0020: yacc_s_fmt
soc-camera-pdrv soc-camera-pdrv: set width: 320 height: 240
YACC6A1S 0-0020: yacc_g_mbus_config
/dev/video --VIDIOC_REQBUFS=c0145608pxa27x-camera pxa27x-camera.0: pxa_videobuf_setup count=2, size=153600
soc-camera-pdrv soc-camera-pdrv: mmap called, vma=0xcf0dcc80
soc-camera-pdrv soc-camera-pdrv: vma start=0x4007f000, size=155648, ret=0
soc-camera-pdrv soc-camera-pdrv: mmap called, vma=0xcf0dcb78
soc-camera-pdrv soc-camera-pdrv: vma start=0x401f3000, size=155648, ret=0
pxa27x-camera pxa27x-camera.0: pxa_videobuf_prepare (vb=0xcfbca060) 0x4007f000 153600
pxa27x-camera pxa27x-camera.0: DMA: sg_first=d087a000, sglen=19, ofs=0, dma.desc=8ef33000
pxa27x-camera pxa27x-camera.0: DMA: sg_first=d087a120, sglen=11, ofs=3072, dma.desc=8ef34000
pxa27x-camera pxa27x-camera.0: DMA: sg_first=d087a1c0, sglen=10, ofs=512, dma.desc=8ef35000
pxa27x-camera pxa27x-camera.0: pxa_videobuf_prepare (vb=0xcfbca060) 0x4007f000 153600 ..channels=3
pxa27x-camera pxa27x-camera.0: pxa_videobuf_prepare (vb=0xcfbca160) 0x401f3000 153600
pxa27x-camera pxa27x-camera.0: DMA: sg_first=d087c000, sglen=19, ofs=0, dma.desc=8fbbe000
pxa27x-camera pxa27x-camera.0: DMA: sg_first=d087c120, sglen=11, ofs=3072, dma.desc=8fbbf000
pxa27x-camera pxa27x-camera.0: DMA: sg_first=d087c1c0, sglen=10, ofs=512, dma.desc=8e780000
pxa27x-camera pxa27x-camera.0: pxa_videobuf_prepare (vb=0xcfbca160) 0x401f3000 153600 ..channels=3
soc-camera-pdrv soc-camera-pdrv: soc_camera_streamon
pxa27x-camera pxa27x-camera.0: pxa_videobuf_queue (vb=0xcfbca060) 0x4007f000 153600 active=  (null)
pxa27x-camera pxa27x-camera.0: pxa_camera_start_capture
pxa27x-camera pxa27x-camera.0: pxa_videobuf_queue (vb=0xcfbca160) 0x401f3000 153600 active=  (null)
pxa27x-camera pxa27x-camera.0: pxa_camera_start_capture
soc-camera-pdrv soc-camera-pdrv: soc_camera_streamon ret=0
YACC6A1S 0-0020: yacc_s_stream:ON
YACC6A1S 0-0020: yacc_s_stream - ret=0, info->apply_new_cfg=0
pxa27x-camera pxa27x-camera.0: Camera interrupt status 0x8118
pxa27x-camera pxa27x-camera.0: pxa_dma_start_channels (channel=0) ddadr=8ef33000
pxa27x-camera pxa27x-camera.0: pxa_dma_start_channels (channel=1) ddadr=8ef34000
pxa27x-camera pxa27x-camera.0: pxa_dma_start_channels (channel=2) ddadr=8ef35000
CICR0  = 0X100002FF
CICR1  = 0X009F8412
CICR2  = 0X00000000
CICR3  = 0X000000EF
CICR4  = 0X00880001
pxa27x-camera pxa27x-camera.0: pxa_camera_dma_irq channel=0 SOF (vb=0xcfbca060) dma.desc=8ef33010
pxa27x-camera pxa27x-camera.0: pxa_camera_dma_irq channel=1 SOF (vb=0xcfbca060) dma.desc=8ef34010
pxa27x-camera pxa27x-camera.0: pxa_camera_dma_irq channel=2 SOF (vb=0xcfbca060) dma.desc=8ef35010
select timeout
pxa27x-camera pxa27x-camera.0: pxa_videobuf_release (vb=0xcfbca060) 0x00000000 153600
pxa27x-camera pxa27x-camera.0: pxa_videobuf_release (active)
pxa27x-camera pxa27x-camera.0: free_buffer (vb=0xcfbca060) 0x00000000 153600
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Kernel 3.2.1 - Adding new SOC Sensor

bellamyc
This post has NOT been accepted by the mailing list yet.
OK, I should have read more details about the host driver PXA27X, I am seeing that it is completely different from PXA3XX operation, PXA3XX has dedicated DMAs. I may just go back to my supporting kernel 2.6.14, it supports the 'Monahans' pxa3xx series.
Loading...