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 HDMI camera is connected to the imx8mp mipi csi2 interface through the HDMI TO CSI adapter board (LT6911C), as shown below
IMX8MP controls LT6911C chip through I2C2 bus
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
could you share the logfile? what's your mipi csi input resolution and clock ?
Thanks for your reply
Please read the attach Doc and log, Have description the question and kernel log
Waiting for your help!
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"
Now we determine the MIPI output clock and data is correct
but imx8 can not receive the lanes data,
Please review the attachment:DTS file
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