I have imx8mm core board with MIPI DSI interface to attach MIPI DSI display panel . There is no bridge controller present on imx8mm core board. flashed 5.15 kernel included images to board and observed below bridge attach failure messages.
{{
[ 2.435629] pwm-backlight backlight_lvds: supply power not found, using dummy regulator
[ 2.450859] imx-drm 32c00000.bus:display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
[ 2.459775] imx_sec_dsim_drv 32e10000.mipi_dsi: version number is 0x1060200
[ 2.466802] [drm:drm_bridge_attach] ERROR failed to attach bridge /soc@0/bus@32c00000/mipi_dsi@32e10000 to encoder DSI-34: -517
[ 2.478484] imx_sec_dsim_drv 32e10000.mipi_dsi: Failed to attach bridge: 32e10000.mipi_dsi
[ 2.486759] imx_sec_dsim_drv 32e10000.mipi_dsi: failed to bind sec dsim bridge: -517
[ 2.500500] pps pps0: new PPS source ptp0
}}
Is above failure log expected if no hardware bridge component present on imx8mm core board. ? To get rid of above error log, do i have to disable imx_sec_dsim_drv (DRM_IMX_SEC_DSIM) config ? i noticed above error if i attach display panel (by enabling respective panel driver code).
Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
The error log you are seeing is related to the failure of attaching a DRM bridge to the MIPI DSI interface on your i.MX 8M Mini core board. This is likely because there is no hardware bridge component present on the board, which is necessary for the MIPI DSI interface to function correctly with the display panel.
To address this issue, you can consider the following options:
Disable the Driver: If you do not have a hardware bridge and do not plan to use one, you can disable the imx_sec_dsim_drv (DRM_IMX_SEC_DSIM) configuration in your kernel. This will prevent the driver from attempting to attach a non-existent bridge, thus eliminating the error messages.
Check Device Tree Configuration: Ensure that your device tree configuration does not include nodes or settings for a bridge that does not exist. This might involve removing or commenting out sections related to the bridge in your device tree source files.
Panel Driver Configuration: If you are enabling a panel driver, make sure it is correctly configured to work without a bridge, if possible. Some panels might require a bridge, and if your setup does not include one, you may need to select a different panel or configuration that does not require a bridge.
If you are unsure about the specific changes needed in the device tree or kernel configuration, you might need to consult the documentation for your specific hardware setup or reach out to the hardware vendor for more detailed guidance.
Please, also check if these links can help you solve your problem:
Due to restrictions in using official mail id , i posted above issue using private email and log attachments has some restrictions so i am posting below information again through private email .
For test purpose, I just defined &mipi_dsi with limited entries as given below
{{
&mipi_dsi {
panel@0 {
compatible = “radxa,display-8hd-a”, “jadard,jd9365da-h3”;
reg = <0>;
reset = <&gpio1 13 GPIO_ACTIVE_LOW>; /* LCD_RESET */
}
}
MIPI DSI panel (jd9365da ) is connected directly to imx8mm core and there is no bridge interface present on imx8mm core. Attached boot log for reference bootlog_mipi_dsi_jd9365.txt (26.1 KB)
{{
[ 1.256656] imx-drm 32c00000.bus:display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
[ 1.265545] imx_sec_dsim_drv 32e10000.mipi_dsi: version number is 0x1060200
[ 1.272742] [drm:drm_bridge_attach] ERROR failed to attach bridge /soc@0/bus@32c00000/mipi_dsi@32e10000 to encoder DSI-34: -19
[ 1.284338] imx_sec_dsim_drv 32e10000.mipi_dsi: Failed to attach bridge: 32e10000.mipi_dsi
[ 1.292675] imx_sec_dsim_drv 32e10000.mipi_dsi: failed to bind sec dsim bridge: -517
…
…
[ 2.462278] imx-drm 32c00000.bus:display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
[ 2.471184] imx_sec_dsim_drv 32e10000.mipi_dsi: version number is 0x1060200
[ 2.478430] jadard_dsi_probe entry ***** dsi->lane 4 , dsi->format 0
[ 2.484820] jadard-jd9365da 32e10000.mipi_dsi.0: [drm:jadard_dsi_probe] ERROR failed to get our reset GPIO
[ 2.494664] jadard-jd9365da: probe of 32e10000.mipi_dsi.0 failed with error -2
[ 2.501953] [drm:drm_bridge_attach] ERROR failed to attach bridge /soc@0/bus@32c00000/mipi_dsi@32e10000 to encoder DSI-34: -19
[ 2.513546] imx_sec_dsim_drv 32e10000.mipi_dsi: Failed to attach bridge: 32e10000.mipi_dsi
[ 2.521884] imx_sec_dsim_drv 32e10000.mipi_dsi: failed to bind sec dsim bridge: -517
}}
sec_mipi_dsim-imx.c is MIPI DSI host controller which in turn trying to connect 32e10000.mipi_dsi with MIPI DSIM bridge (drivers/gpu/drm/bridge/sec-dsim.c) and fails . (arch/arm64/boot/dts/freescale/imx8mm.dtsi contains mipi dsi entry for 32e10000 ).
can you please let me know how to get rid of above error message?