Other Parts Discussed in Thread: TDA2, DS90UB913A-Q1, DS90UB933-Q1
Hello,
We have a working sensor driver implemented for the TAD2 platform but we are currently trying port the senor driver from TDA2 platform to the TDA4 but without success, the registers of both, the sensor and the seriaizer, are written without any apparent error but the image received from the sensor is just noise. We have followed the steps in the guide 8.12. Adding new image sensor to PSDK RTOS — Processor SDK RTOS J721E (ti.com) .
The values of the configuration registers for the serializer and sensor are the same that the proper ones used in the TDA2 platform, are there any extra steps to make the porting correctly?
Our sensor is MIPI 2 lanes and there is no other sensor in the TDA4 SDK with this configuration to compare with, we have ported the code as follows:
------TDA2---CODE----------
ChainsCommon_SensorIntfInfo gSensorInterfaceInfo[] =
{SENSOR_NAME,
{
4u, /* TDA3X EVM board uses I2C instance 1 */
{PORT_0_SENSOR_ADDR, PORT_1_SENSOR_ADDR, PORT_2_SENSOR_ADDR, PORT_3_SENSOR_ADDR}, /* Sensor alias address */
{PORT_0_SER_ADDR, PORT_1_SER_ADDR, PORT_2_SER_ADDR, PORT_3_SER_ADDR}, /* Serializer alias address */
TRUE, /* isMultiChannel */
SYSTEM_VIFW_2LANES, SYSTEM_VIFM_SCH_CSI2,
SYSTEM_CSI2_RAW10 /* CSI2 DataFormat*/,
0 /*Virtual Channel Id*/,
0, /* Is CSI Enable Required in UB960 */
{TRUE /* isCplxCfgValid */,
{{FALSE, 1}, /* Clock Lane */
{FALSE, 2}, /* data1Lane */
{FALSE, 3}, /* data2Lane */
{FALSE, 4}, /* data3Lane*/
{FALSE, 5}},/* data4Lane */
800 /* csi2PhyClk */ },
FVID2_VID_SENSOR_TIDA00262_APT_AR0140_DRV, /* sensorDrvId */
FALSE, /* sensorBroadcast */
FALSE}},
};
------TDA4---CODE-------
Are there any common deserializer settings that may conflict with our 2-line configuration?
Thank you in advance.
Best regards, Mohamed