This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

mt9v113 sensor support in leopard dm365

Other Parts Discussed in Thread: TVP5146, TVP7002, THS7353

hi

i m trying to develop support for mt9v113 sensor in my leopard board dm365

for that i found mt9v113.c and related heder files on net

i hve updated kconfig and makefile to inset the support as module

this the changes i ve done in my board-dm365-leopard.c

#if defined(CONFIG_VIDEO_MT9V113) || defined(CONFIG_VIDEO_MT9V113_MODULE) //by me
static struct v4l2_input mt9v113_inputs[] = {
    {
        .index = 0,
        .name = "Camera",
        .type = V4L2_INPUT_TYPE_CAMERA,
    }
};
#endif

static struct vpfe_subdev_info vpfe_sub_devs[] = {
#if defined(CONFIG_VIDEO_TVP514X) || defined(CONFIG_VIDEO_TVP514X_MODULE)
    {
        .module_name = "tvp5146",
        .grp_id = VPFE_SUBDEV_TVP5146,
        .num_inputs = ARRAY_SIZE(tvp5146_inputs),
        .inputs = tvp5146_inputs,
        .routes = tvp5146_routes,
        .can_route = 1,
        .ccdc_if_params = {
            .if_type = VPFE_BT656,
            .hdpol = VPFE_PINPOL_POSITIVE,
            .vdpol = VPFE_PINPOL_POSITIVE,
        },
        .board_info = {
            I2C_BOARD_INFO("tvp5146", 0x5d),
            .platform_data = &tvp5146_pdata,
        },
    },
#endif
#if defined(CONFIG_VIDEO_TVP7002) || defined(CONFIG_VIDEO_TVP7002_MODULE)
    {
        .module_name = "tvp7002",
        .grp_id = VPFE_SUBDEV_TVP7002,
        .num_inputs = ARRAY_SIZE(tvp7002_inputs),
        .inputs = tvp7002_inputs,
        .ccdc_if_params = {
            .if_type = VPFE_BT1120,
            .hdpol = VPFE_PINPOL_POSITIVE,
            .vdpol = VPFE_PINPOL_POSITIVE,
        },
        .board_info = {
            I2C_BOARD_INFO("tvp7002", 0x5c),
            .platform_data = &tvp7002_pdata,
        },
    },
    {
        .module_name = "ths7353",
        .grp_id = VPFE_SUBDEV_TVP7002,
        .board_info = {
            I2C_BOARD_INFO("ths7353", 0x2e),
        },
    },
#endif

#if defined(CONFIG_SOC_CAMERA_MT9P031) || defined(CONFIG_SOC_CAMERA_MT9P031_MODULE)
    {
        .module_name = "mt9p031",
        .is_camera = 1,
        .grp_id = VPFE_SUBDEV_MT9P031,
        .num_inputs = ARRAY_SIZE(mt9p031_inputs),
        .inputs = mt9p031_inputs,
        .ccdc_if_params = {
            .if_type = VPFE_RAW_BAYER,
            .hdpol = VPFE_PINPOL_POSITIVE,
            .vdpol = VPFE_PINPOL_POSITIVE,
        },
        .board_info = {
            I2C_BOARD_INFO("mt9p031", 0x48),
            // this is for PCLK rising edge //
            .platform_data = (void *)1,
        },
    },
#endif

#if defined(CONFIG_VIDEO_MT9V113) || defined(CONFIG_VIDEO_MT9V113_MODULE) //by me
    {
        .module_name = "mt9v113",
        .is_camera = 1,
        .grp_id = VPFE_SUBDEV_MT9V113,
        .num_inputs = ARRAY_SIZE(mt9v113_inputs),
        .inputs = mt9v113_inputs,
        .ccdc_if_params = {
            .if_type = VPFE_YCBCR_SYNC_8,
            .hdpol = VPFE_PINPOL_POSITIVE,
            .vdpol = VPFE_PINPOL_POSITIVE,
        },
        .board_info = {
            I2C_BOARD_INFO("mt9v113", 0x3c),
            // this is for PCLK rising edge /
            .platform_data = (void *)1,
        },
    }
#endif
};



but its not detecting anything while boot up

the boot up message for vpfe _capture is

vpfe_init                                                                       
vpfe-capture: vpss clock vpss_master enabled                                    
vpfe-capture vpfe-capture: v4l2 device registered                               
vpfe-capture vpfe-capture: video device registered                              
No sub devices registered                                                      
vpfe-capture: vpfe capture clocks disabled                                      
vpfe_register_ccdc_device: DM365 ISIF                                           
dm365_isif: probe of dm365_isif failed with error -22                           
af major#: 252, minor# 0                                                        
AF Driver initialized                                                           
aew major#: 251, minor# 0                                                       
AEW Driver initialized            

its not detecting the censor that i ve attached to the board

thanxx

kailash