<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: IMX93 DSI: [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encode in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX93-DSI-drm-drm-bridge-attach-ERROR-failed-to-attach-bridge/m-p/1894792#M225531</link>
    <description>&lt;P&gt;As I want to drive LT9611UXC with linux driver, I set the device tree as below, and I face the Error message you mentioned.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;amp;dsi {
	status = "okay";
	#address-cells = &amp;lt;1&amp;gt;;
	#size-cells = &amp;lt;0&amp;gt;;

	bridge@0 {
		compatible = "lontuim,lt9611uxc";
		reset-gpio = &amp;lt;&amp;amp;gpio3 26 GPIO_ACTIVE_HIGH&amp;gt;;
		reg = &amp;lt;0&amp;gt;;
		status = "okay";

		port {
			lt9611_to_dsi: endpoint {
				remote-endpoint = &amp;lt;&amp;amp;dsi_to_lt9611&amp;gt;;
			};
		};
	};
	
	ports {
		port@1 {
			reg = &amp;lt;1&amp;gt;;

			dsi_to_lt9611: endpoint {
				remote-endpoint = &amp;lt;&amp;amp;lt9611_to_dsi&amp;gt;;
			};
		};
	};
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@imx93evk:~# dmesg | grep 4ae10000
[    0.333170] platform 4ae10000.dsi: Fixed dependency cycle(s) with /soc@0/dsi@4ae10000/bridge@0/port/endpoint
[    0.342994] platform 4ae30000.lcd-controller: Fixed dependency cycle(s) with /soc@0/dsi@4ae10000/ports/port@0/endpoint
[    1.744375] mipi-dsi 4ae10000.dsi.0: Fixed dependency cycle(s) with /soc@0/dsi@4ae10000/ports/port@1/endpoint
[    1.762986] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encoder DSI-34: -517
[    1.773085] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_bind] *ERROR* failed to attach bridge: -517
[    1.782941] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_probe] *ERROR* failed to register component: -517
[    2.149832] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encoder DSI-34: -517
[    2.159922] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_bind] *ERROR* failed to attach bridge: -517
[    2.169780] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_probe] *ERROR* failed to register component: -517
[    2.205168] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encoder DSI-34: -517
[    2.215333] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_bind] *ERROR* failed to attach bridge: -517
[    2.225218] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_probe] *ERROR* failed to register component: -517
[    2.251503] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encoder DSI-34: -517
[    2.261661] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_bind] *ERROR* failed to attach bridge: -517
[    2.271553] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_probe] *ERROR* failed to register component: -517
[    2.297873] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encoder DSI-34: -517
[    2.308045] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_bind] *ERROR* failed to attach bridge: -517
[    2.317937] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_probe] *ERROR* failed to register component: -517
[    2.503080] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encoder DSI-34: -517
[    2.513180] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_bind] *ERROR* failed to attach bridge: -517
[    2.523038] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_probe] *ERROR* failed to register component: -517
[    8.107721] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encoder DSI-34: -517
[    8.107749] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_bind] *ERROR* failed to attach bridge: -517
[    8.108034] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_probe] *ERROR* failed to register component: -517
[    8.189924] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encoder DSI-34: -517
[    8.227541] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_bind] *ERROR* failed to attach bridge: -517
[    8.255814] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_probe] *ERROR* failed to register component: -517
[   19.097281] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encoder DSI-34: -517
[   19.109253] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_bind] *ERROR* failed to attach bridge: -517
[   19.120857] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_probe] *ERROR* failed to register component: -517
[   19.216430] platform 4ae10000.dsi: deferred probe pending&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had already modified the lt9611uxc driver, move the&amp;nbsp;&lt;SPAN&gt;lt9611uxc_attach_dsi function in lt9611uxc_probe to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;lt9611uxc_bridge_attach as below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;static int lt9611uxc_bridge_attach(struct drm_bridge *bridge,
				   enum drm_bridge_attach_flags flags)
{
	struct lt9611uxc *lt9611uxc = bridge_to_lt9611uxc(bridge);
	int ret;

	if (!(flags &amp;amp; DRM_BRIDGE_ATTACH_NO_CONNECTOR)) {
		ret = lt9611uxc_connector_init(bridge, lt9611uxc);
		if (ret &amp;lt; 0)
			return ret;
	}

	/* Attach primary DSI */
	lt9611uxc-&amp;gt;dsi0 = lt9611uxc_attach_dsi(lt9611uxc, lt9611uxc-&amp;gt;dsi0_node);
	//if (IS_ERR(lt9611uxc-&amp;gt;dsi0)) {
	//	ret = PTR_ERR(lt9611uxc-&amp;gt;dsi0);
	//	goto err_remove_bridge;
	//}

	/* Attach secondary DSI, if specified */
	if (lt9611uxc-&amp;gt;dsi1_node) {
		lt9611uxc-&amp;gt;dsi1 = lt9611uxc_attach_dsi(lt9611uxc, lt9611uxc-&amp;gt;dsi1_node);
		//if (IS_ERR(lt9611uxc-&amp;gt;dsi1)) {
		//	ret = PTR_ERR(lt9611uxc-&amp;gt;dsi1);
		//	goto err_remove_bridge;
		//}
	}

	return 0;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems I can still get the -517 Error message.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2024 03:02:15 GMT</pubDate>
    <dc:creator>AlanWen</dc:creator>
    <dc:date>2024-06-27T03:02:15Z</dc:date>
    <item>
      <title>IMX93 DSI: [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encoder DS</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX93-DSI-drm-drm-bridge-attach-ERROR-failed-to-attach-bridge/m-p/1894061#M225474</link>
      <description>&lt;P&gt;I'm working on IMX93 board with LT9611UXC dsi to HDMI chip for a while, and still stucked.&lt;/P&gt;&lt;P&gt;I followed the LT9611UXC demo reference from :&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/LT9611UXC-demo-board-for-i-MX8/ta-p/1503142" target="_blank"&gt;LT9611UXC demo board for i.MX8 - NXP Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There is no display output while encountering the following message from booting up.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;root@imx93evk:~# dmesg | grep 4ae10000
[    0.333564] platform 4ae30000.lcd-controller: Fixed dependency cycle(s) with /soc@0/dsi@4ae10000/ports/port@0/endpoint
[    1.749533] panel-simple-dsi 4ae10000.dsi.1: supply power not found, using dummy regulator
[    1.766593] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encoder DSI-34: -19
[    1.776600] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_bind] *ERROR* failed to attach bridge: -19
[    1.786166] imx-drm display-subsystem: failed to bind 4ae10000.dsi (ops dw_mipi_dsi_imx_ops): -19
[    1.800903] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_probe] *ERROR* failed to register component: -19&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as I know, the LT9611UXC has already flashed the firmware on it, so it should work while the dsi signal passed throught SoC to it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kernel device tree:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;amp;dsi {
	status = "okay";
	#address-cells = &amp;lt;1&amp;gt;;
	#size-cells = &amp;lt;0&amp;gt;;

	port@1 {
		compatible = "lontium,lt9611uxc";
		reset-gpio = &amp;lt;&amp;amp;gpio3 26 GPIO_ACTIVE_HIGH&amp;gt;;
		reg = &amp;lt;1&amp;gt;;
		video-mode = &amp;lt;2&amp;gt;;
		status = "okay";
	};
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope someone can help me figure it out. Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 06:11:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX93-DSI-drm-drm-bridge-attach-ERROR-failed-to-attach-bridge/m-p/1894061#M225474</guid>
      <dc:creator>AlanWen</dc:creator>
      <dc:date>2024-06-26T06:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: IMX93 DSI: [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX93-DSI-drm-drm-bridge-attach-ERROR-failed-to-attach-bridge/m-p/1894140#M225485</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/223292"&gt;@AlanWen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to control it with LT9611 kernel driver, you need modify&amp;nbsp; LT9611 kernel driver.&lt;/P&gt;
&lt;P&gt;If you just need firmware, you need use panel type in device tree.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zhiming_Liu_0-1719387469945.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/285782iD71012D56CB08DD9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Zhiming_Liu_0-1719387469945.png" alt="Zhiming_Liu_0-1719387469945.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zhiming_Liu_1-1719387517714.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/285783iE4D5C11BD09B372B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Zhiming_Liu_1-1719387517714.png" alt="Zhiming_Liu_1-1719387517714.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;Zhiming&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 07:38:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX93-DSI-drm-drm-bridge-attach-ERROR-failed-to-attach-bridge/m-p/1894140#M225485</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2024-06-26T07:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: IMX93 DSI: [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX93-DSI-drm-drm-bridge-attach-ERROR-failed-to-attach-bridge/m-p/1894189#M225488</link>
      <description>&lt;P&gt;To the best of my knowledge, I need the LT9611UXC driver to operate and receive the DSI signal from the CPU.&lt;/P&gt;&lt;P&gt;I can confirm that there is firmware on the LT9611UXC, so which option should I choose to ensure its functionality?&lt;/P&gt;&lt;P&gt;Is it correct ?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 08:08:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX93-DSI-drm-drm-bridge-attach-ERROR-failed-to-attach-bridge/m-p/1894189#M225488</guid>
      <dc:creator>AlanWen</dc:creator>
      <dc:date>2024-06-26T08:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: IMX93 DSI: [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX93-DSI-drm-drm-bridge-attach-ERROR-failed-to-attach-bridge/m-p/1894780#M225529</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/223292"&gt;@AlanWen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to use firmware to drive LT9611, you don't need linux driver, just set it as simple panel like knowledge base did.&lt;/P&gt;
&lt;P&gt;If you want to drive it with Linux driver, you need refer&amp;nbsp;Documentation/devicetree/bindings/display/bridge/lontium,lt9611.yaml to add i2c device node and add below node in root dts node.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;/{
model = "xxxxx"
...
hdmi-out {
		compatible = "hdmi-connector";
		type = "a";

		port {
			hdmi_con: endpoint {
				remote-endpoint = &amp;lt;&amp;amp;lt9611_out&amp;gt;;
			};
		};
	};
...
}&lt;/LI-CODE&gt;
&lt;P&gt;If you face error about '-517',&amp;nbsp; you need adjust driver code, move&amp;nbsp;&lt;SPAN&gt;lt9611uxc_attach_dsi function in&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;lt9611uxc_probe to&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;lt9611uxc_bridge_attach.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;Zhiming&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 02:35:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX93-DSI-drm-drm-bridge-attach-ERROR-failed-to-attach-bridge/m-p/1894780#M225529</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2024-06-27T02:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: IMX93 DSI: [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX93-DSI-drm-drm-bridge-attach-ERROR-failed-to-attach-bridge/m-p/1894792#M225531</link>
      <description>&lt;P&gt;As I want to drive LT9611UXC with linux driver, I set the device tree as below, and I face the Error message you mentioned.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;amp;dsi {
	status = "okay";
	#address-cells = &amp;lt;1&amp;gt;;
	#size-cells = &amp;lt;0&amp;gt;;

	bridge@0 {
		compatible = "lontuim,lt9611uxc";
		reset-gpio = &amp;lt;&amp;amp;gpio3 26 GPIO_ACTIVE_HIGH&amp;gt;;
		reg = &amp;lt;0&amp;gt;;
		status = "okay";

		port {
			lt9611_to_dsi: endpoint {
				remote-endpoint = &amp;lt;&amp;amp;dsi_to_lt9611&amp;gt;;
			};
		};
	};
	
	ports {
		port@1 {
			reg = &amp;lt;1&amp;gt;;

			dsi_to_lt9611: endpoint {
				remote-endpoint = &amp;lt;&amp;amp;lt9611_to_dsi&amp;gt;;
			};
		};
	};
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@imx93evk:~# dmesg | grep 4ae10000
[    0.333170] platform 4ae10000.dsi: Fixed dependency cycle(s) with /soc@0/dsi@4ae10000/bridge@0/port/endpoint
[    0.342994] platform 4ae30000.lcd-controller: Fixed dependency cycle(s) with /soc@0/dsi@4ae10000/ports/port@0/endpoint
[    1.744375] mipi-dsi 4ae10000.dsi.0: Fixed dependency cycle(s) with /soc@0/dsi@4ae10000/ports/port@1/endpoint
[    1.762986] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encoder DSI-34: -517
[    1.773085] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_bind] *ERROR* failed to attach bridge: -517
[    1.782941] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_probe] *ERROR* failed to register component: -517
[    2.149832] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encoder DSI-34: -517
[    2.159922] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_bind] *ERROR* failed to attach bridge: -517
[    2.169780] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_probe] *ERROR* failed to register component: -517
[    2.205168] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encoder DSI-34: -517
[    2.215333] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_bind] *ERROR* failed to attach bridge: -517
[    2.225218] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_probe] *ERROR* failed to register component: -517
[    2.251503] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encoder DSI-34: -517
[    2.261661] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_bind] *ERROR* failed to attach bridge: -517
[    2.271553] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_probe] *ERROR* failed to register component: -517
[    2.297873] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encoder DSI-34: -517
[    2.308045] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_bind] *ERROR* failed to attach bridge: -517
[    2.317937] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_probe] *ERROR* failed to register component: -517
[    2.503080] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encoder DSI-34: -517
[    2.513180] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_bind] *ERROR* failed to attach bridge: -517
[    2.523038] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_probe] *ERROR* failed to register component: -517
[    8.107721] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encoder DSI-34: -517
[    8.107749] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_bind] *ERROR* failed to attach bridge: -517
[    8.108034] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_probe] *ERROR* failed to register component: -517
[    8.189924] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encoder DSI-34: -517
[    8.227541] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_bind] *ERROR* failed to attach bridge: -517
[    8.255814] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_probe] *ERROR* failed to register component: -517
[   19.097281] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encoder DSI-34: -517
[   19.109253] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_bind] *ERROR* failed to attach bridge: -517
[   19.120857] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_probe] *ERROR* failed to register component: -517
[   19.216430] platform 4ae10000.dsi: deferred probe pending&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had already modified the lt9611uxc driver, move the&amp;nbsp;&lt;SPAN&gt;lt9611uxc_attach_dsi function in lt9611uxc_probe to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;lt9611uxc_bridge_attach as below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;static int lt9611uxc_bridge_attach(struct drm_bridge *bridge,
				   enum drm_bridge_attach_flags flags)
{
	struct lt9611uxc *lt9611uxc = bridge_to_lt9611uxc(bridge);
	int ret;

	if (!(flags &amp;amp; DRM_BRIDGE_ATTACH_NO_CONNECTOR)) {
		ret = lt9611uxc_connector_init(bridge, lt9611uxc);
		if (ret &amp;lt; 0)
			return ret;
	}

	/* Attach primary DSI */
	lt9611uxc-&amp;gt;dsi0 = lt9611uxc_attach_dsi(lt9611uxc, lt9611uxc-&amp;gt;dsi0_node);
	//if (IS_ERR(lt9611uxc-&amp;gt;dsi0)) {
	//	ret = PTR_ERR(lt9611uxc-&amp;gt;dsi0);
	//	goto err_remove_bridge;
	//}

	/* Attach secondary DSI, if specified */
	if (lt9611uxc-&amp;gt;dsi1_node) {
		lt9611uxc-&amp;gt;dsi1 = lt9611uxc_attach_dsi(lt9611uxc, lt9611uxc-&amp;gt;dsi1_node);
		//if (IS_ERR(lt9611uxc-&amp;gt;dsi1)) {
		//	ret = PTR_ERR(lt9611uxc-&amp;gt;dsi1);
		//	goto err_remove_bridge;
		//}
	}

	return 0;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems I can still get the -517 Error message.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 03:02:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX93-DSI-drm-drm-bridge-attach-ERROR-failed-to-attach-bridge/m-p/1894792#M225531</guid>
      <dc:creator>AlanWen</dc:creator>
      <dc:date>2024-06-27T03:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: IMX93 DSI: [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX93-DSI-drm-drm-bridge-attach-ERROR-failed-to-attach-bridge/m-p/1895479#M225582</link>
      <description>&lt;P&gt;&lt;SPAN&gt;You need refer&amp;nbsp;Documentation/devicetree/bindings/display/bridge/lontium,lt9611.yaml to add &lt;STRONG&gt;i2c device node, do not define&amp;nbsp;"lontuim,lt9611uxc" in dsi node.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 00:59:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX93-DSI-drm-drm-bridge-attach-ERROR-failed-to-attach-bridge/m-p/1895479#M225582</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2024-06-28T00:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: IMX93 DSI: [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX93-DSI-drm-drm-bridge-attach-ERROR-failed-to-attach-bridge/m-p/1895569#M225590</link>
      <description>&lt;P&gt;Thanks for helping me a lot, now I can port the driver successfully using following device tree setup.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/{
   ...
   hdmi-out {
		compatible = "hdmi-connector";
		type = "a";
		port {
			hdmi_con: endpoint {
				remote-endpoint = &amp;lt;&amp;amp;lt9611_out&amp;gt;;
			};
		};
	};
};

&amp;amp;dsi {
   ports {
		port@1 {
			reg = &amp;lt;1&amp;gt;;
			dsi_to_lt9611: endpoint {
				remote-endpoint = &amp;lt;&amp;amp;lt9611_to_dsi&amp;gt;;
			};
		};
	};
};

&amp;amp;lpi2c3 {
   #address-cells = &amp;lt;1&amp;gt;;
	#size-cells = &amp;lt;0&amp;gt;;
	clock-frequency = &amp;lt;400000&amp;gt;;
	pinctrl-names = "default", "sleep";
	pinctrl-0 = &amp;lt;&amp;amp;pinctrl_lpi2c3&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;pinctrl_lpi2c3&amp;gt;;
	status = "okay";
   lt9611uxc_codec: hdmi-bridge@2b {
		compatible = "lontium,lt9611uxc";
		reg = &amp;lt;0x2b&amp;gt;;
		#sound-dai-cells = &amp;lt;1&amp;gt;;

		interrupts-extended = &amp;lt;&amp;amp;gpio1 12 IRQ_TYPE_EDGE_FALLING&amp;gt;;
		reset-gpios = &amp;lt;&amp;amp;gpio3 26 GPIO_ACTIVE_HIGH&amp;gt;;

		status = "okay";
		
		ports {
			#address-cells = &amp;lt;1&amp;gt;;
			#size-cells = &amp;lt;0&amp;gt;;

			port@0 {
				reg = &amp;lt;0&amp;gt;;
				lt9611_to_dsi: endpoint {
					remote-endpoint = &amp;lt;&amp;amp;dsi_to_lt9611&amp;gt;;
				};
			};

			port@2 {
				reg = &amp;lt;2&amp;gt;;
				lt9611_out: endpoint {
					remote-endpoint = &amp;lt;&amp;amp;hdmi_con&amp;gt;;
				};
			};
		};
	};
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the DSI &amp;amp; I2C worked fine:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;root@imx93evk:~# i2cdetect -y 2
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- 44 -- -- -- -- -- -- -- -- -- -- --
50: -- UU -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

root@imx93evk:~# dmesg | grep 4ae10000
[    0.333650] platform 4ae30000.lcd-controller: Fixed dependency cycle(s) with /soc@0/dsi@4ae10000/ports/port@0/endpoint
[    2.049117] i2c 2-002b: Fixed dependency cycle(s) with /soc@0/dsi@4ae10000/ports/port@1/endpoint
[    2.636315] imx-drm display-subsystem: bound 4ae10000.dsi (ops dw_mipi_dsi_imx_ops)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I'm facing a new problem about EDID timeout:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;root@imx93evk:~# dmesg | grep lt9611
[    2.058278] lt9611uxc 2-002b: supply vdd not found, using dummy regulator
[    2.065135] lt9611uxc 2-002b: supply vcc not found, using dummy regulator
[    2.467765] lt9611uxc 2-002b: LT9611 revision: 0x17.04.93
[    2.530843] lt9611uxc 2-002b: LT9611 version: 0x40
[    3.234292] lt9611uxc 2-002b: wait for EDID timeout
[    3.810251] lt9611uxc 2-002b: wait for EDID timeout
[    9.747723] Error: Driver 'lt9611uxc' is already registered, aborting...
[   13.314370] lt9611uxc 2-002b: wait for EDID timeout&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopes someone could help me figure it out. Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 03:28:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX93-DSI-drm-drm-bridge-attach-ERROR-failed-to-attach-bridge/m-p/1895569#M225590</guid>
      <dc:creator>AlanWen</dc:creator>
      <dc:date>2024-06-28T03:28:48Z</dc:date>
    </item>
  </channel>
</rss>

