Tool/software: Linux
Hi experts,
we tried to enable J6P CAL Linux driver (kernel version 4.4.110)following the CAL guide from http://processors.wiki.ti.com/index.php/Linux_Core_CAL_User%27s_Guide
and met some issues. The signal path in our HW design is like this: (ov10635 -> DS90UB913) x 4 -> DS90UB964 -> J6P MIPI-CSI2 in.
Firstly, we are using 964 internal pattern,for example 1280x720@30fps YUV422, to debug CAL driver.
However, we can never capture MIPI signal from cal driver, from log we always see this timeout log when start capture, and no any data can be captured, grep /proc/interrupts, no CAL intterrupt generated.
cal-000: CAL_CSI2_COMPLEXIO_CFG(1) = 0x4a054321 Complex IO Reset Done (250) (timeout)
the message is from function: csi2_wait_for_phy [drivers/media/platform/ti-vpe/cal.c], what's the problem?
And i checked registers
0x4a009030 = 0x00070000,
0x4a009000 = 0x00001202,
we can see VIP3_GCLK is NOT in working status. However, from TRM, CAL needs VIP3_GCLK to work.
I don't know how to force 0x4a009030 to a working status in cal driver, so i manually set this register to 0x00040001 with omapconf tool before" insmod ov1063x.ko".
But result is same. Could you tell me how to deal with this?
Another thing is regarding the value of " ctx->external_rate" in CAL driver, I consider it as the pixel freq, however, for 964 pattern mode, how to calculate its value, i tried 800Mhz, because i set 964 CSI TX to 800Mbps, unfortunately, it's not working and keep same issue.
I also checked other important registers, like the lane configuration registers:
0x4a0026dc = F8000900
0x489b0304 = 4A054321
the value looks ok, all match our HW design
attach CAL block diagram in J6P TRM