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.

TDA4VM: How to Config CSI2 number in TDA4VM

Part Number: TDA4VM

Hi TI experts, 

Hope you are well.

On TDA4 sdk7.03, I have added a new sensor driver (ov2312-Maxim 9295-96712) by following the reference 8.12. Adding new image sensor to PSDK RTOS — Processor SDK RTOS J721E (ti.com).

According to the datasheet of 9295 and sensor, the number of data-lanes of output is 2 and these 2 lanes data flow into 96712 in TDA4VM. But may I ask how I can config the number of csi2 lanes in driver codes to be compatible with data from 9295. 

Thanks a lot.

Looking forward to the reply!

King regards,

Lu

  • Hi Lu,

    Are you using lower layer PDK driver or vision apps framework? Because in vision apps framework, typically this is setup in the imaging module, like for example, we can see number of lanes for imx390 in below highlighted line in ti-processor-sdk-rtos-j721e-evm-08_05_00_11\imaging\sensor_drv\src\imx390\iss_sensor_imx390.c file. 

    static IssSensor_CreateParams imx390CreatePrms = {
    SENSOR_SONY_IMX390_UB953_D3, /*sensor name*/
    0x6, /*i2cInstId*/
    {
    SENSOR_0_I2C_ALIAS, SENSOR_1_I2C_ALIAS, SENSOR_2_I2C_ALIAS, SENSOR_3_I2C_ALIAS,
    SENSOR_4_I2C_ALIAS, SENSOR_5_I2C_ALIAS, SENSOR_6_I2C_ALIAS, SENSOR_7_I2C_ALIAS
    },/*i2cAddrSensor*/
    {
    SER_0_I2C_ALIAS, SER_1_I2C_ALIAS, SER_2_I2C_ALIAS, SER_3_I2C_ALIAS,
    SER_4_I2C_ALIAS, SER_5_I2C_ALIAS, SER_6_I2C_ALIAS, SER_7_I2C_ALIAS
    },/*i2cAddrSer*/
    /*IssSensor_Info*/
    {
    {
    IMX390_OUT_WIDTH, /*width*/
    IMX390_OUT_HEIGHT-IMX390_META_HEIGHT_AFTER, /*height*/
    1, /*num_exposures*/
    vx_false_e, /*line_interleaved*/
    {
    {TIVX_RAW_IMAGE_16_BIT, 11}, /*dataFormat and MSB [0]*/
    },
    0, /*meta_height_before*/
    IMX390_META_HEIGHT_AFTER, /*meta_height_after*/
    },
    ISS_SENSOR_IMX390_FEATURES, /*features*/
    ALGORITHMS_ISS_AEWB_MODE_AEWB, /*aewbMode*/
    30, /*fps*/
    4, /*numDataLanes*/
    {1, 2, 3, 4}, /*dataLanesMap*/

    Whereas in the PDK drivers, we can set number of lanes to be used in create params ie in createPrms.instCfg.numDataLanes

    Rgds,

    Brijesh