failed to attach bridge dsi_host to encoder DSI-89: -517

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

failed to attach bridge dsi_host to encoder DSI-89: -517

243 Views
sean33996
Contributor I

[drm:drm_bridge_attach] *ERROR* failed to attach bridge /bus@56220000/dsi_host@56228000 to encoder DSI-89: -517

i used imx8qxp ,mipi output and a bridge chip sn65dsi86 convert to edp ,get this error

the test mode of sn65dsi86 colorbar IS succeed。but mipi signal not work, i check the log find the error Up. 

How to solve this problem ,Or how to conduct further investigation,Many thanks

DTS is:

&mipi0_dphy {
status = "okay";
};
 
&mipi0_dsi_host {
status = "okay";
 
ports {
/delete-node/ port@1;
 
port@1 {
reg = <1>;
mipi0_dsi_out: endpoint {
remote-endpoint = <&edp_bridge_in>;
};
};
};
 
};
 
&i2c0_mipi_lvds0 {
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_touch>;
clock-frequency = <100000>;
status = "okay";
 
 
edp_bridge: bridge@2c {
compatible = "ti,sn65dsi86";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_edp_bridge>;
reg = <0x2c>;
enable-gpios = <&lsio_gpio3 16U GPIO_ACTIVE_HIGH>;
oe-gpios = <&lsio_gpio1 13U GPIO_ACTIVE_HIGH>;
reset-gpios = <&lsio_gpio1 27U GPIO_ACTIVE_HIGH>;
/*
vccio-supply = <&reg_main_1v8>;
vpll-supply = <&reg_main_1v8>;
vcca-supply = <&reg_main_1v2>;
vcc-supply = <&reg_main_1v2>;*/
 
clocks = <&sn65dsi86_refclk>;
clock-names = "refclk";
 
no-hpd;
 
ports {
#address-cells = <1>;
#size-cells = <0>;
 
port@0 {
reg = <0>;
 
edp_bridge_in: endpoint {
remote-endpoint = <&mipi0_dsi_out>;
};
};
 
port@1 {
reg = <1>;
 
edp_bridge_out: endpoint {
data-lanes = 2 1 0>;
              lane-polarities = <1 1 1 1>;
remote-endpoint = <&panel_in>;
};
};
};
};
 
/delete-node/ lvds-to-hdmi-bridge@4c;
};

 

 

panel {
compatible = "truly,local-dimming";
no-hpd;
 
port {
panel_in: endpoint {
remote-endpoint = <&edp_bridge_out>;
};
};
};
0 Kudos
Reply
4 Replies

233 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @sean33996 

Have you tried to modify the sn65dsi86 driver?Try to  move xxx_mipi_dsi_host_attach to xxxx_bridge_attach.

0 Kudos
Reply

226 Views
sean33996
Contributor I

i get the DSI signal by oscilloscope

and the sn65dsi86 color bar is succes on the screen

but the dsi signal can not on the screen

Could you give me some advice

[图片][图片][图片][图片][图片]

8aa33b56f5bffb03bec9d1ea87ecf72.jpg

 [图片][图片]

0 Kudos
Reply

221 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

1.Check dts setting with your hardware design again

2.You can use i2ctool to dump sn65dsi86 registers and check if there is any error flags.

0 Kudos
Reply

190 Views
sean33996
Contributor I

thank you very much , it works

sean33996_0-1717738831032.png

 

0 Kudos
Reply