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 in dm365

Other Parts Discussed in Thread: THS7303

hi

i m using dm365 and trying to insert mt9v113 support

here is modification

struct mt9v113_platform_data mt9v113_pdata = {
     //.master        = "vpss_master",
    //.power_set    = 0,,
    //.priv_data_set    =0, ,
    //.ifparm        = 0,//mt9v113_ifparm,
     /* Some interface dependent params */
     .clk_polarity    = 0, /* data clocked out on falling edge */
     .hs_polarity    = 1, /* 0 - Active low, 1- Active high */
     .vs_polarity    = 1, /* 0 - Active low, 1- Active high */
 };

static struct v4l2_input mt9v113_inputs[] = {
    {
        .index = 0,
        .name = "Camera",
        .type = V4L2_INPUT_TYPE_CAMERA,
    }
};

static struct vpfe_subdev_info vpfe_sub_devs[] = {


#if defined(CONFIG_VIDEO_MT9V113) || defined(CONFIG_VIDEO_MT9V113_MODULE)
    {
        .module_name = "mt9v113",
        //.is_camera = 1,
        .grp_id = VPFE_SUBDEV_MT9V113,
        .num_inputs = ARRAY_SIZE(mt9v113_inputs),
        .routes = 0,
                .can_route = 1,
        .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),//MT9V113_I2C_ADDR ),
            // this is for PCLK rising edge /
            .platform_data = &mt9v113_pdata,
        },
    }
#endif


};

booting info as

i2c /dev entries driver                                                         
Linux video capture interface: v2.00                                            
ths7303 1-002c: chip found @ 0x58 (DaVinci I2C adapter)                         
mt9v113: chip id mismatch read 0x0, expecting 0x2280                            
vpfe_init                                                                       
vpfe-capture: vpss clock vpss_master enabled                                    
vpfe-capture vpfe-capture: v4l2 device registered                               
vpfe-capture vpfe-capture: video device registered                              
i2c i2c-1: Failed to register i2c client mt9v113 at 0x3c (-16)                  
vpfe-capture vpfe-capture: v4l2 sub device mt9v113 register fails               
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  

thanxx

kailash