MIPI to HDMI init failed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MIPI to HDMI init failed

3,580 Views
laza
Contributor III

Hi,

Upon connecting Nitrogen6X and BD_HDMI_MIPI I'm getting this error

mipi csi2 can not reveive data correctly!

tc358743_minit: Fail to init tc35874!

...

tc358743_reset:failed(-1)

tc358743_probe: failed, error=-1

update_device_addr: ov5642 ret=-5

ov5642_read_reg:write reg error:reg=300a

update_device_addr: ov5640_mipi ret=-5

ov5640_read_reg(mipi):reg=300a ret=-5

tc358743_read_reg:reg=8621 ret=-5

tc358743_read_reg:reg=852f ret=-5

tc_det_worker: Error reading lock

This is with Ubuntu 14.04.3 - 20160330-nitrogen-3.14.52_1.1.0_ga-trusty-en_US-lxde_armhf image.

Any ideas what went wrong?

Labels (2)
0 Kudos
16 Replies

2,308 Views
robertoluo
Contributor II

Confu Industries locate in Shenzhen, China specializing in HDMI to MIPI DSI Interface Converter, HDMI to eDP DP Adapter, HDMI to LVDS OpenLDI TTL RGB Driver Board, MIPI DSI to OpenLDI LVDS Adapter, LVDS to MIPI Converter, MIPI DSI to HDMI MHL LVDS Interface Adapters, RK3288 Board Dual Multi Displays Solution. Applied for Full HD 1080P 2K 4K LCD OLED Display Screens. Like the VR HMD, Raspberry Pi, 3D Printer, Tablet, PAD, Drone, PC, TV, Car Screen, POS, PLC, Projector, FPV, etc.  Sales(at)confuindustries(d0t)com

0 Kudos

2,307 Views
laza
Contributor III

Hi,
Yes, it is connected as on picture2, but somehow one of the pins on female mipi port was bent.

After putting it back in it's right position, it works fine.

Regards,
Miroslav

0 Kudos

2,307 Views
laza
Contributor III

Hi guys,

Thank you both for help, I got HDMI input.
It turns out one of bd mipi connectors was turn aside.

Regards,
Miroslav

0 Kudos

2,307 Views
gary_bisson
Senior Contributor III

Hi,

Thanks for the follow-up, can you mark the thread as resolved?


Also, can you explain more about the connector turn aside? Weren't you connected like on picture2 with standard Ntirogen6x?

Regards,

Gary

0 Kudos

2,308 Views
CarlosCasillas
NXP Employee
NXP Employee

gary_bisson​, do you have any comment here?

Boundary Devices

0 Kudos

2,307 Views
gary_bisson
Senior Contributor III

Hi,

Often people have the HDMI to MIPI board mounted backwards. Please make sure to have it connected as shown in the pictures:

https://boundarydevices.com/product/bd_hdmi_mipi/

Also, if you look at the boards, you'll see a white dot on J16 of Nitrogen6x and J1 of the daughter board. Those dots are here to show pin 1 of the connector, they have to aligned.

Finally, do you confirm you are using this Ubuntu image:

https://www.boundarydevices.com/eula?file=20160330-nitrogen-3.14.52_1.1.0_ga-trusty-en_US-lxde_armhf... 

Regards,

Gary

0 Kudos

2,308 Views
laza
Contributor III

Hi Gary,

Thank you for your answer.

They are connected as on pic 2.

Yes, I tried both Ubuntu and Yocto image with 3.14.52 kernel as you suggested me eaelier.

I get the same error.

As I understood, support is enabled in this kernel build, but should I maybe install any of the modules related?

0 Kudos

2,308 Views
gary_bisson
Senior Contributor III

Hi,

Yes both images support the HDMI input with no modifications. Can you copy/paste the full dmesg log to pastebin and send the link here?

Regards,

Gary

0 Kudos

2,307 Views
laza
Contributor III

Here it is.
I mentioned that it is the same error with both Yocto and Ubuntu.

0 Kudos

2,308 Views
qiang_li-mpu_se
NXP Employee
NXP Employee

"mipi csi2 can not reveive data correctly!" means no valid mipi CSI2 data received on iMX6 side, please reference to Debug steps for customer MIPI sensor.docx

The clock setting in mipi_csi2_reset() is important.

0 Kudos

2,307 Views
laza
Contributor III

Hi Qiang,

Thank you for your answer.

I don't really understand much of this doc, but is it possible that MIPI DPHY clock should be adjusted to 160-180Mhz because Im using 1080p HDMI output from my desktop.

If that is the case, is it enought to change 0x14 to 0x24 in mipi_csi2_reset?

0 Kudos

2,307 Views
qiang_li-mpu_se
NXP Employee
NXP Employee

Hi Laza,

If your 1080P60 HDMI pixel clock is 148.5MHz, and RGB888 format was used. Then the total data rate = 148.5 * 24 (bits per pixel) = 3.564Gbps, this is out of iMX6 MIPI CSI2 bandwidth (3.2Gbps).

If your HDMI signal is 1080P30, pixel clock is 74.25Mhz, then total data rate = 74.25 * 24 = 1.782Gbps, then for 2 lane MIPI CSI2 interface mode, the data rate on each lane is 1782/2= 891Mbps, so in mipi_csi2_reset(), you can set 0x34 for it.

- mipi_csi2_write(info, 0x00000014, MIPI_CSI2_PHY_TST_CTRL1);

+ mipi_csi2_write(info, 0x00000034, MIPI_CSI2_PHY_TST_CTRL1);

mipi_csi2_write(info, 0x00000002, MIPI_CSI2_PHY_TST_CTRL0);

0 Kudos

2,308 Views
andrejbelic
Contributor I

Hello Qiang,

Laza and me are working together. My question regarding 1080/60p

a datastream of 1080/60p 24bit has only 2.99 Gbps

  • RAW RGB 3x8 bit : 373 MB/s = 2.99 Gbps

http://toolstud.io/video/filesize.php?imagewidth=1920&imageheight=1080&framerate=60&timeduration=60&...

where do the 0.565 Gbps go?

0 Kudos

2,307 Views
laza
Contributor III

Hi Qiang,

Thank you, I'll try to lower resolution or freq on HDMI.

But, I'm just wondering, this error appears even if cable is not plugged on MIPI converter.

If it's any help, I attached boot log in my reply below

https://community.nxp.com/thread/429044#comment-806671

0 Kudos

2,306 Views
qiang_li-mpu_se
NXP Employee
NXP Employee

If there is no HDMI input to tc358743, no valid MIPI_CSI2 output from tc358743 to iMX6 is also reasonable.

"mipi csi2 can not reveive data correctly!" means no valid MIPI CSI2 signal detected.

0 Kudos

2,306 Views
laza
Contributor III

Hi Qiang,

I build kernel with this change you suggested, copied the modules to existing image on sdcard and setup HDMI output on my desktop
xrandr --output HDMI-0 --mode 11280x720 --rate 60

But I'm getting the same error.

Any help is more than welcome..

Regards,
Miroslav

0 Kudos