Here is some update: Hi,
I followed Ivan Kozic suggestion and ported the new driver, mostly removing AF related code (will put back part of it, just wanted to compile now) and GPIO access. Currently the camera detected by the module and the video device shows up, but when I try to use CSI gives error (I enabled debug on driver). The LED on the camera lights up, and as I can see init is OK, but CSI does not work. Does anybody experienced something similar? [ 154.652212] [CSI]Welcome to CSI driver [ 154.657611] [CSI]csi_init [ 154.721271] [CSI]registered sub device,input_num = 0 [ 154.730363] [CSI_DEBUG][s5k4ec]CSI_SUBDEV_CMD_GET_INFO [ 154.739415] [CSI_DEBUG][s5k4ec]ccm_info.mclk=24000000 [ 154.739425] [CSI_DEBUG][s5k4ec]ccm_info.vref=1 [ 154.749183] [CSI_DEBUG][s5k4ec]ccm_info.href=1 [ 154.756969] [CSI_DEBUG][s5k4ec]ccm_info.clock=1 [ 154.764829] [CSI_DEBUG][s5k4ec]ccm_info.iocfg=0 [ 154.772773] [CSI_DEBUG][s5k4ec]CSI_SUBDEV_CMD_SET_INFO [ 154.788881] [CSI_DEBUG][s5k4ec]ccm_info.mclk=24000000 [ 154.788885] [CSI_DEBUG][s5k4ec]ccm_info.vref=1 [ 154.798620] [CSI_DEBUG][s5k4ec]ccm_info.href=1 [ 154.806425] [CSI_DEBUG][s5k4ec]ccm_info.clock=1 [ 154.814302] [CSI_DEBUG][s5k4ec]ccm_info.iocfg=0 [ 154.822250] [ 154.831368] axp20_ldo3: Failed to create debugfs directory [ 154.841488] axp20_ldo3: Failed to create debugfs directory [ 154.850801] [CSI_DEBUG][s5k4ec]CSI_SUBDEV_CMD_SET_INFO [ 154.859772] [CSI_DEBUG][s5k4ec]ccm_info.mclk=24000000 [ 154.859777] [CSI_DEBUG][s5k4ec]ccm_info.vref=1 [ 154.869443] [CSI_DEBUG][s5k4ec]ccm_info.href=1 [ 154.877245] [CSI_DEBUG][s5k4ec]ccm_info.clock=1 [ 154.885124] [CSI_DEBUG][s5k4ec]ccm_info.iocfg=0 [ 154.893078] [ 154.901727] [CSI]V4L2 device registered as video1 [ 154.910451] [CSI_DEBUG][s5k4ec]CSI_SUBDEV_CMD_SET_INFO [ 154.919403] [CSI_DEBUG][s5k4ec]ccm_info.mclk=24000000 [ 154.919408] [CSI_DEBUG][s5k4ec]ccm_info.vref=1 [ 154.929043] [CSI_DEBUG][s5k4ec]ccm_info.href=1 [ 154.936772] [CSI_DEBUG][s5k4ec]ccm_info.clock=1 [ 154.944586] [CSI_DEBUG][s5k4ec]ccm_info.iocfg=0 [ 154.952488] [CSI_DEBUG][s5k4ec]CSI_SUBDEV_PWR_ON [ 154.974166] [CSI_DEBUG][s5k4ec]CSI_SUBDEV_STBY_ON [ 154.984614] [CSI_DEBUG][s5k4ec]CSI_SUBDEV_STBY_OFF [ 154.995071] [CSI_DEBUG][s5k4ec]sensor_init [ 157.003791] [CSI]sensor initial success when csi open! [ 157.012687] [CSI_DEBUG][s5k4ec]CSI_SUBDEV_STBY_ON [ 301.883424] [CSI_DEBUG][s5k4ec]CSI_SUBDEV_CMD_SET_INFO [ 301.892424] [CSI_DEBUG][s5k4ec]ccm_info.mclk=24000000 [ 301.892432] [CSI_DEBUG][s5k4ec]ccm_info.vref=1 [ 301.902670] [CSI_DEBUG][s5k4ec]ccm_info.href=1 [ 301.910482] [CSI_DEBUG][s5k4ec]ccm_info.clock=1 [ 301.918417] [CSI_DEBUG][s5k4ec]ccm_info.iocfg=0 [ 301.926409] [CSI_DEBUG][s5k4ec]CSI_SUBDEV_PWR_ON [ 301.950959] [CSI_DEBUG][s5k4ec]CSI_SUBDEV_STBY_ON [ 301.965874] [CSI_DEBUG][s5k4ec]CSI_SUBDEV_STBY_OFF [ 301.981082] [CSI_DEBUG][s5k4ec]sensor_init [ 303.985866] [CSI]sensor initial success when csi open! [ 303.994471] [CSI_DEBUG][s5k4ec]CSI_SUBDEV_STBY_ON [ 304.005259] [CSI_DEBUG][s5k4ec]CSI_SUBDEV_CMD_SET_INFO [ 304.014263] [CSI_DEBUG][s5k4ec]ccm_info.mclk=24000000 [ 304.014268] [CSI_DEBUG][s5k4ec]ccm_info.vref=1 [ 304.023988] [CSI_DEBUG][s5k4ec]ccm_info.href=1 [ 304.031742] [CSI_DEBUG][s5k4ec]ccm_info.clock=1 [ 304.039598] [CSI_DEBUG][s5k4ec]ccm_info.iocfg=0 [ 304.047543] [CSI_DEBUG][s5k4ec]CSI_SUBDEV_PWR_ON [ 304.081516] [CSI_DEBUG][s5k4ec]CSI_SUBDEV_STBY_ON [ 304.091612] [CSI_DEBUG][s5k4ec]CSI_SUBDEV_STBY_OFF [ 304.102061] [CSI_DEBUG][s5k4ec]sensor_init [ 306.141140] [CSI]sensor initial success when csi open! [ 306.151343] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.159472] [CSI_ERR]input index invalid! [ 306.180908] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.190001] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.199072] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.208291] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.217372] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.226451] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.235520] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.244584] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.253651] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.262700] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.271767] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.280830] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.289914] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.298980] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.308151] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.317376] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.326533] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.335683] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.344813] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.353937] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.363026] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.372097] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.381169] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.390253] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.399319] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.408387] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.417590] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.426895] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.435985] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.445055] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.454121] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.463170] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.472265] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.494733] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.503811] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.512992] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.522079] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.531146] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.540230] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.549297] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.558369] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.567435] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.576507] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.585589] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.594655] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.603723] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.612772] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.621939] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.631013] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.640082] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.649145] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.658212] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.667278] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.676349] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.685416] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.694480] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.703547] [CSI_ERR]v4l2 sub device queryctrl error! [ 306.723822] [CSI_DEBUG][s5k4ec]CSI_SUBDEV_STBY_ON On Monday, 21 July 2014 14:19:42 UTC+1, Ivan Kozic wrote: > Hi, > > Easy - I didn't :) I used some code from the new OV5640 driver (AF mostly), > but due to all the changes I did, I've decided to stick with the old driver. -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
