Other Parts Discussed in Thread: INA226
Hello,
I am trying to bring-up LI IMX390 FPDIII camera module (Bayer sensor) on TDA2PX-EVM with PSDK version 3.7. I observed issue related to Seralizer probing.
For integration of the LI Camera module , I am using existing IMX390 sensor driver source code with same serializer (UB953) and modifying the slave address in 7-bit addressing mode of Ser (0x18) and sensor module(0x21).
Below is code snippet for our changes in source file (iss_sensor_imx390.c) in register array (gUB960DesCfg_D3IMX390[]) to program the Des(UB960) for Camera port 0, so that Serializer can be configured.
-----------------------
{0x58, 0x5E, 0x10},
{0x5B, (0x18 << 1), 0x10},
{0x5C, (0x18 << 1), 0x10},
{0x5D, 0x30, 0x10}, /*Serializer I2C Address*/
{0x5E, 0x42, 0x10}, /*Sensor I2C Address*/
{0x65, (PORT_0_SER_ADDR << 1U), 0x10},
{0x66, (PORT_0_SENSOR_ADDR << 1U), 0x10},
{0x32, 0x01, 0x10}, /*Enable TX port 0*/
-----------------------
I have also programmed the Seralizer(UB953) for enabling camera sensor module path (GPIO) as below.
gAppIssUtilsUB953SerCfg_D3IMX390[IMX390_D3_SER_CFG_SIZE] = {
{0x0D, 0x0F, 0x10},
{0x0E, 0xF0, 0x10}, /* Enable GPIOs as output */
};
As per logs, it appears that Serlizer is not probed and below error captured through logs.
[IPU1-0] 22.247971 s: Serilaizer # 0 has I2CAddr 74 !!!
[IPU1-0] 24.614408 s:
[IPU1-0] 24.614683 s: i2cMdSubmitChan: i2c4 transfer to slave address 0x40 failed
[IPU1-0] 24.614805 s: src/bsp_deviceI2c.c @ Line 667:
[IPU1-0] 24.614896 s: I2C4: DEV 0x40: ERROR !!!
[IPU1-0] 24.614957 s: src/bsp_deviceI2c.c @ Line 689:
[IPU1-0] 24.615079 s: I2C4: Error timeout 1 ms!!!
[IPU1-0] 24.615140 s: IMX390: Sensor RegWrite Failed for regAddr c
For making above changes, we have refereed following e2e links (http://e2e.ti.com/support/arm/automotive_processors/f/1021/t/684294) . Please let me know if any changes are missing or if you need more information.