Hello,
Now I develop new camera driver on TDA4 custom board,I know it need create new camera code on imaging\sensor_drv\src
but about the code I have some questions.
typedef struct
{
char name[ISS_SENSORS_MAX_NAME];
/**< Name of the sensor */
uint16_t i2cInstId; this means the deserializer connect on which TDA4 I2C bus?
/**< I2C Instance id for the sensor */
uint8_t i2cAddrSensor[ISS_SENSORS_MAX_CHANNEL]; this value is 8,the max channel means on CSI bus max support 8 cameras or whole TDA4 max support 8 cameras?
/**< I2C Address of the sensor */
uint8_t i2cAddrSer[ISS_SENSORS_MAX_CHANNEL];
/**< I2C Address of the serializer */
IssSensor_Info sensorInfo;
/**< Sensor Information e.g. width, height, format etc.*/
uint32_t num_channels;
/**< Number of channels supported */
uint32_t dccId; how to get this ID?
/**< camera identifier */
} IssSensor_CreateParams;
typedef struct
{
uint8_t isMultiChannel;
/**< Flag for single/multi channel sensor config */
uint8_t numCSI2Lanes;
/**< num lanes for CSI*/
uint32_t inCsi2VirtualChanNum;
/**< CSI2 Virtual Channel Num, must be between 0 to 3 */
uint8_t isCmplxIoCfgValid;
/**< Is Complex IO config valid*/
IssCapture_CmplxIoLaneCfg complxIoLaneCfg[5]; if I used the CSI1 not CSI0 how to config?
/**< CSI2 lane and polarity config*/
uint32_t csi2PhyClk;
/**< Clock provided to CSI2 Phy by the SoC */
uint8_t sensorBroadcast;
/**< Enable/Disable sensor broadcast */
uint8_t enableFsin;
/**< Enable/Disable sensor Frame Sync Input (FSIN) */
uint8_t numCamerasStreaming;
/**< Number of cameras streaming simultaneously */
} IssSensorIntfParams;
And if I used CSI0 and CSI1 connect two deserializers ,every deserializer connect 4 cameras, how many camera driver file need create? the camera driver file for camera module or CSI channel?
Please give some guide
Thanks