iM8MP MIPI-CSI Host error

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

iM8MP MIPI-CSI Host error

1,388 Views
QiangF
Contributor I

Question Description:

With iM8MP, we try convert HDMI input image data translate to mipi-csi, The MIPI host reports Start of transmission error, [Lane3,Lane2,Lane1,Lane0]

  • the log as below:

QiangF_0-1652690577086.png

  • the manual interrupt description

QiangF_2-1652690821494.png

 

  • Hardware Environment:

The HDMI camera is connected to the imx8mp mipi csi2 interface through the HDMI TO CSI adapter board (LT6911C), as shown below

QiangF_1-1652690676882.png

IMX8MP controls LT6911C chip through I2C2 bus

 

  • Software Environment:

1. Rootfs Ubuntu 20.04 rootfs, build from nxp yocto project
2. Kernel version  5.4.70, from Forlinx BSP
3. DTS LT6911UXC Node Configuration

 

&i2c2 {

           clock-frequency = <100000>;

           pinctrl-names = "default";

           pinctrl-0 = <&pinctrl_i2c2>;

           status = "okay";

           lt6911uxc@2b {

                     compatible = "lontium,lt6911uxc";

                     reg = <0x2b>;

                     status = "okay";

                      // 省略部分无关信息

                     interrupt-parent = <&gpio5>;

                     interrupts = <5 IRQ_TYPE_LEVEL_HIGH>;

                     reset-gpios = <&gpio5 4 GPIO_ACTIVE_LOW>;

                     plugin-det-gpios = <&gpio2 6 GPIO_ACTIVE_HIGH>;

                     hpd-ctl-gpios = <&gpio5 5 GPIO_ACTIVE_HIGH>;

                     camera-module-index = <0>;

                     port {

                                hdmi2csi_lt6911_in: endpoint {

                                          data-lanes = <1 2 3 4>;

                                          clock-lanes = <0>;

                                          remote-endpoint = <&hdmi2csi_csi1_ep>;

                                          link-frequencies = /bits/ 64 <297000000>;

                                };

                     };

&mipi_csi_1 {

       #address-cells = <1>;

       #size-cells = <0>;

       status = "okay";

      

       port@1 {

              reg = <1>;

              hdmi2csi_csi1_ep: endpoint {

                     remote-endpoint = <&hdmi2csi_lt6911_in>;

                     data-lanes = <4>;

                     csis-hs-settle = <13>;

                     csis-clk-settle = <2>;

                     csis-wclk;

              };

}

 

Please tell me how to solve this problem

 

0 Kudos
5 Replies

1,368 Views
joanxie
NXP TechSupport
NXP TechSupport

could you share the logfile? what's your mipi csi input resolution and clock ?

 

0 Kudos

1,362 Views
QiangF
Contributor I

@joanxie 

Thanks for your reply

Please read the attach Doc and log, Have description the question and kernel log

Waiting for your help!

0 Kudos

1,345 Views
joanxie
NXP TechSupport
NXP TechSupport

refer to your logfile, it seems this issue related to the clock issue, do you mind sharing the dts file? and try to use the command "v4l2-ctl --list-device" and "$ gst-launch-1.0 v4l2src device=/dev/video0 ! autovideosink"

0 Kudos

1,323 Views
QiangF
Contributor I

@joanxie 

Now we determine the MIPI output clock and data is correct

Clock.jpeg

but imx8 can not receive the lanes data,

Please review  the attachment:DTS file

0 Kudos

1,297 Views
joanxie
NXP TechSupport
NXP TechSupport

SOT error means timing still isn't correct, so you still need to check the timings, the default dts file supports 4k already, maybe you can try that hssettle value, you can try different value, it seems that table isn't correct enough

 

0 Kudos