<?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 iMX8QXP MIPI-DSI device problem in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QXP-MIPI-DSI-device-problem/m-p/1527918#M195601</link>
    <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;I am developing with a iMX8QXP Varisicite SOM based board a MIPI-DSI display interface. The display is based on a ILI9488 controller with only 1 lane, it is 480x320.&lt;BR /&gt;I have patched the file drivers/gpu/drm/bridge/nwl-dsi.c&lt;/P&gt;&lt;P&gt;&amp;nbsp; The function nwl_dsi_bridge_atomic_check makes lanes=1 not a choice with this code&lt;/P&gt;&lt;P&gt;if (config-&amp;gt;lanes &amp;lt; 2 || config-&amp;gt;lanes &amp;gt; 4)&lt;BR /&gt;&amp;nbsp; return -EINVAL;&lt;/P&gt;&lt;P&gt;&amp;nbsp; With "(config-&amp;gt;lanes &amp;lt; 1" the function continues executing.&lt;/P&gt;&lt;P&gt;From then on the driver loads, but I see this message in the kernel&lt;/P&gt;&lt;P&gt;[ 8.649716] nwl-dsi 56228000.dsi_host: [drm:nwl_dsi_host_transfer [nwl_dsi]] *ERROR* [11] DSI transfer timed out&lt;/P&gt;&lt;P&gt;It is displayed after trying to take the panel out of sleep&lt;/P&gt;&lt;P&gt;ret = mipi_dsi_dcs_exit_sleep_mode(dsi);&lt;BR /&gt;if (ret &amp;lt; 0) {&lt;BR /&gt;dev_err(ctx-&amp;gt;dev, "Failed to exit sleep mode: %d\n", ret);&lt;/P&gt;&lt;P&gt;Loading a dummy panel, with no initializacion with mipi-dsi commands, all the functions in the drm panel are called (drm_panel_funcs prepare, enable and get_modes),&lt;BR /&gt;but with the oscilloscope I cannot see any clear signal in the CLK lane (CH3 &amp;amp; CH4), and the DATA lane (CH1 &amp;amp; CH2) is not differential&lt;/P&gt;&lt;P&gt;This is the MIPI-DSI part of the device tree&lt;/P&gt;&lt;P&gt;&amp;amp;mipi0_dphy {&lt;BR /&gt;status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;mipi0_dsi_host {&lt;BR /&gt;status = "okay";&lt;BR /&gt;fsl,clock-drop-level = &amp;lt;2&amp;gt;;&lt;BR /&gt;&lt;BR /&gt;panel@0 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0&amp;gt;;&lt;/P&gt;&lt;P&gt;power-supply = &amp;lt;&amp;amp;reg_mipi0disp&amp;gt;;&lt;BR /&gt;backlight = &amp;lt;&amp;amp;backlight&amp;gt;;&lt;BR /&gt;reset-gpios = &amp;lt;&amp;amp;gpio_hmi1 15 GPIO_ACTIVE_HIGH&amp;gt;;&lt;/P&gt;&lt;P&gt;compatible = "my_panel,my_ili9488";&lt;BR /&gt;panel-width-mm = &amp;lt;42&amp;gt;;&lt;BR /&gt;panel-height-mm = &amp;lt;82&amp;gt;;&lt;/P&gt;&lt;P&gt;port {&lt;BR /&gt;panel0_in: endpoint {&lt;BR /&gt;remote-endpoint = &amp;lt;&amp;amp;mipi0_panel_out&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;ports {&lt;BR /&gt;port@1 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;reg = &amp;lt;1&amp;gt;;&lt;BR /&gt;mipi0_panel_out: endpoint {&lt;BR /&gt;remote-endpoint = &amp;lt;&amp;amp;panel0_in&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;BR /&gt;M&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PS Without the dummy panel in the initialization process I cannot see the Low Power mode commands neither.&lt;/P&gt;</description>
    <pubDate>Mon, 26 Sep 2022 07:23:20 GMT</pubDate>
    <dc:creator>manuelcarrascos</dc:creator>
    <dc:date>2022-09-26T07:23:20Z</dc:date>
    <item>
      <title>iMX8QXP MIPI-DSI device problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QXP-MIPI-DSI-device-problem/m-p/1527918#M195601</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;I am developing with a iMX8QXP Varisicite SOM based board a MIPI-DSI display interface. The display is based on a ILI9488 controller with only 1 lane, it is 480x320.&lt;BR /&gt;I have patched the file drivers/gpu/drm/bridge/nwl-dsi.c&lt;/P&gt;&lt;P&gt;&amp;nbsp; The function nwl_dsi_bridge_atomic_check makes lanes=1 not a choice with this code&lt;/P&gt;&lt;P&gt;if (config-&amp;gt;lanes &amp;lt; 2 || config-&amp;gt;lanes &amp;gt; 4)&lt;BR /&gt;&amp;nbsp; return -EINVAL;&lt;/P&gt;&lt;P&gt;&amp;nbsp; With "(config-&amp;gt;lanes &amp;lt; 1" the function continues executing.&lt;/P&gt;&lt;P&gt;From then on the driver loads, but I see this message in the kernel&lt;/P&gt;&lt;P&gt;[ 8.649716] nwl-dsi 56228000.dsi_host: [drm:nwl_dsi_host_transfer [nwl_dsi]] *ERROR* [11] DSI transfer timed out&lt;/P&gt;&lt;P&gt;It is displayed after trying to take the panel out of sleep&lt;/P&gt;&lt;P&gt;ret = mipi_dsi_dcs_exit_sleep_mode(dsi);&lt;BR /&gt;if (ret &amp;lt; 0) {&lt;BR /&gt;dev_err(ctx-&amp;gt;dev, "Failed to exit sleep mode: %d\n", ret);&lt;/P&gt;&lt;P&gt;Loading a dummy panel, with no initializacion with mipi-dsi commands, all the functions in the drm panel are called (drm_panel_funcs prepare, enable and get_modes),&lt;BR /&gt;but with the oscilloscope I cannot see any clear signal in the CLK lane (CH3 &amp;amp; CH4), and the DATA lane (CH1 &amp;amp; CH2) is not differential&lt;/P&gt;&lt;P&gt;This is the MIPI-DSI part of the device tree&lt;/P&gt;&lt;P&gt;&amp;amp;mipi0_dphy {&lt;BR /&gt;status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;mipi0_dsi_host {&lt;BR /&gt;status = "okay";&lt;BR /&gt;fsl,clock-drop-level = &amp;lt;2&amp;gt;;&lt;BR /&gt;&lt;BR /&gt;panel@0 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0&amp;gt;;&lt;/P&gt;&lt;P&gt;power-supply = &amp;lt;&amp;amp;reg_mipi0disp&amp;gt;;&lt;BR /&gt;backlight = &amp;lt;&amp;amp;backlight&amp;gt;;&lt;BR /&gt;reset-gpios = &amp;lt;&amp;amp;gpio_hmi1 15 GPIO_ACTIVE_HIGH&amp;gt;;&lt;/P&gt;&lt;P&gt;compatible = "my_panel,my_ili9488";&lt;BR /&gt;panel-width-mm = &amp;lt;42&amp;gt;;&lt;BR /&gt;panel-height-mm = &amp;lt;82&amp;gt;;&lt;/P&gt;&lt;P&gt;port {&lt;BR /&gt;panel0_in: endpoint {&lt;BR /&gt;remote-endpoint = &amp;lt;&amp;amp;mipi0_panel_out&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;ports {&lt;BR /&gt;port@1 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;reg = &amp;lt;1&amp;gt;;&lt;BR /&gt;mipi0_panel_out: endpoint {&lt;BR /&gt;remote-endpoint = &amp;lt;&amp;amp;panel0_in&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;BR /&gt;M&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PS Without the dummy panel in the initialization process I cannot see the Low Power mode commands neither.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 07:23:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QXP-MIPI-DSI-device-problem/m-p/1527918#M195601</guid>
      <dc:creator>manuelcarrascos</dc:creator>
      <dc:date>2022-09-26T07:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8QXP MIPI-DSI device problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QXP-MIPI-DSI-device-problem/m-p/1528447#M195639</link>
      <description>&lt;P&gt;Can you&amp;nbsp; add LPM flag in your panel driver?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 02:19:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QXP-MIPI-DSI-device-problem/m-p/1528447#M195639</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2022-09-27T02:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8QXP MIPI-DSI device problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QXP-MIPI-DSI-device-problem/m-p/1528607#M195661</link>
      <description>&lt;P&gt;It is already done, this is a snapshot of the _probe function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mipi_dsi_set_drvdata(dsi, ctx);&lt;/P&gt;&lt;P&gt;ctx-&amp;gt;dev = dev;&lt;/P&gt;&lt;P&gt;dsi-&amp;gt;lanes = 1;&lt;BR /&gt;dsi-&amp;gt;format = MIPI_DSI_FMT_RGB888;&lt;BR /&gt;dsi-&amp;gt;mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST \&lt;BR /&gt;| MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET;&lt;/P&gt;&lt;P&gt;drm_panel_init(&amp;amp;ctx-&amp;gt;panel, dev, &amp;amp;ili9488_drm_funcs,&lt;BR /&gt;DRM_MODE_CONNECTOR_DSI);&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 07:16:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QXP-MIPI-DSI-device-problem/m-p/1528607#M195661</guid>
      <dc:creator>manuelcarrascos</dc:creator>
      <dc:date>2022-09-27T07:16:27Z</dc:date>
    </item>
  </channel>
</rss>

