"Failed to attach bridge" when trying to use MIPI DSI output

cancel
Showing results for 
Search instead for 
Did you mean: 

"Failed to attach bridge" when trying to use MIPI DSI output

362 Views
Contributor I

Hi!

I have the VAR-DART-MX8M Mini (originally had an "LD" configuration to convert MIPI DSI to LVDS using the SN65DSI84, but the hardware configuration was changed using instructions as in the file attached).

I'm running Android 9.0 on the board, following these instructions, so the board is running Linux 4.14.78.

I am attempting to backport drivers for a new panel (my panel uses the ILI9881C IC and I'm using the rm67191 device tree and driver code as a reference, backporting from the most recent kernel), however I get an error before my panel driver is even initiated.

In the default configuration (i.e. not having added the new panel's driver or custom device tree files), I see this error in the logs (through `dmesg`):

[    1.369380] sn65dsi83 0-002c: failed reading at 0x09
[    1.374373] sn65dsi83 0-002c: Failed to reset the device
[    1.379699] sn65dsi83 0-002c: Failed to reset the device
[    1.388714] [drm] Supports vblank timestamp caching Rev 2 (21
.10.2013).
[    1.395353] [drm] No driver support for vblank timestamp quer
y.
[    1.401364] imx-drm display-subsystem: bound imx-lcdif-crtc.0
 (ops lcdif_crtc_ops)
[    1.409038] imx_sec_dsim_drv 32e10000.mipi_dsi: version numbe
r is 0x1060200
[    1.416060] imx_sec_dsim_drv 32e10000.mipi_dsi: Failed to att
ach bridge: 32e10000.mipi_dsi
[    1.424340] imx_sec_dsim_drv 32e10000.mipi_dsi: failed to bin
d sec dsim bridge: -19

Understandably, the sn65dsi83 errors are because the IC isn't on the board anymore, and I can make them go away by disabling it in the device tree.

However, can someone shed some light on what the "Failed to attach bridge" error is about? Even with my customized DTS and driver files (patch attached), I still see the same error.

In addition, could someone clarify whether I'm on the right track with this patch? I've seen some posts on NXP using the DCSS system instead of the default LCDIF one.

Labels (1)
Tags (1)
0 Kudos
1 Reply

142 Views
NXP TechSupport
NXP TechSupport

Hi Amaan

one can try to debug error messages using description of mipi-dsi driver (drivers/gpu/drm/imx/sec_mipi_dsmi-imx.c)

in sect.6.4.2 MIPI DSI Interface attached Linux Manual and Linux MIPI-DSI subsystem

in presentation https://elinux.org/images/7/73/Jagan_Teki_-_Demystifying_Linux_MIPI-DSI_Subsystem.pdf 

For ILI9881C specific initialization should be performed in rm67191 init functions rad_panel_push_cmd_list(),

"cmd_set_table manufacturer_cmd_set[]"

panel-raydium-rm67191.c\panel\drm\gpu\drivers - linux-imx - i.MX Linux kernel 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos