<?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 Add display support in u-boot in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Add-display-support-in-u-boot/m-p/1826236#M221133</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to add LCD support in u-boot for a custom IMX6 solo board. I have referred mx6sabresd &amp;amp; enabled the following configuration&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;CONFIG_DM_VIDEO=y
CONFIG_VIDEO_IPUV3=y
CONFIG_IMX_VIDEO_SKIP=y&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Added panel information on board.c file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;static void enable_lvds(struct display_info_t const *dev)
{
    enable_backlight();
}

struct display_info_t const displays[] = {{
.bus = -1,
.addr = 0,
.pixfmt = IPU_PIX_FMT_RGB666,
.detect = NULL,
.enable = enable_lvds,
.mode = {
.name = "EDT",
.refresh = 60,
.xres = 1024,
.yres = 600,
.pixclock = 15384,
.left_margin = 160,
.right_margin = 24,
.upper_margin = 29,
.lower_margin = 3,
.hsync_len = 136,
.vsync_len = 6,
.sync = FB_SYNC_EXT,
.vmode = FB_VMODE_NONINTERLACED
} } };
size_t display_count = ARRAY_SIZE(displays);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As mentioned in the document, set the panel environment variable&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;setenv panel EDT
saveenv&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'm using the DTS file from Linux, where the display is already working&lt;/P&gt;&lt;P&gt;I see the&amp;nbsp;&lt;STRONG&gt;"drivers/video/nxp/imx/mxc_ipuv3_fb.c"&lt;/STRONG&gt; file is responsible for setting up a display framebuffer&lt;/P&gt;&lt;P&gt;In my case, only the ipuv3_video_bind() function is called &amp;amp; ipuv3_video_probe() probe function never gets called.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;static int ipuv3_video_bind(struct udevice *dev)
{
        struct video_uc_plat *plat = dev_get_uclass_plat(dev);

        plat-&amp;gt;size = LCD_MAX_WIDTH * LCD_MAX_HEIGHT *
                     (1 &amp;lt;&amp;lt; VIDEO_BPP32) / 8;

        return 0;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My question is under which condition ipuv3_video_probe() function get called? I know the probe function is only called when the device starts using it but I'm not sure how it work here&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2024 13:24:32 GMT</pubDate>
    <dc:creator>vishnu_motghare</dc:creator>
    <dc:date>2024-03-12T13:24:32Z</dc:date>
    <item>
      <title>Add display support in u-boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Add-display-support-in-u-boot/m-p/1826236#M221133</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to add LCD support in u-boot for a custom IMX6 solo board. I have referred mx6sabresd &amp;amp; enabled the following configuration&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;CONFIG_DM_VIDEO=y
CONFIG_VIDEO_IPUV3=y
CONFIG_IMX_VIDEO_SKIP=y&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Added panel information on board.c file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;static void enable_lvds(struct display_info_t const *dev)
{
    enable_backlight();
}

struct display_info_t const displays[] = {{
.bus = -1,
.addr = 0,
.pixfmt = IPU_PIX_FMT_RGB666,
.detect = NULL,
.enable = enable_lvds,
.mode = {
.name = "EDT",
.refresh = 60,
.xres = 1024,
.yres = 600,
.pixclock = 15384,
.left_margin = 160,
.right_margin = 24,
.upper_margin = 29,
.lower_margin = 3,
.hsync_len = 136,
.vsync_len = 6,
.sync = FB_SYNC_EXT,
.vmode = FB_VMODE_NONINTERLACED
} } };
size_t display_count = ARRAY_SIZE(displays);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As mentioned in the document, set the panel environment variable&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;setenv panel EDT
saveenv&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'm using the DTS file from Linux, where the display is already working&lt;/P&gt;&lt;P&gt;I see the&amp;nbsp;&lt;STRONG&gt;"drivers/video/nxp/imx/mxc_ipuv3_fb.c"&lt;/STRONG&gt; file is responsible for setting up a display framebuffer&lt;/P&gt;&lt;P&gt;In my case, only the ipuv3_video_bind() function is called &amp;amp; ipuv3_video_probe() probe function never gets called.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;static int ipuv3_video_bind(struct udevice *dev)
{
        struct video_uc_plat *plat = dev_get_uclass_plat(dev);

        plat-&amp;gt;size = LCD_MAX_WIDTH * LCD_MAX_HEIGHT *
                     (1 &amp;lt;&amp;lt; VIDEO_BPP32) / 8;

        return 0;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My question is under which condition ipuv3_video_probe() function get called? I know the probe function is only called when the device starts using it but I'm not sure how it work here&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 13:24:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Add-display-support-in-u-boot/m-p/1826236#M221133</guid>
      <dc:creator>vishnu_motghare</dc:creator>
      <dc:date>2024-03-12T13:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Add display support in u-boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Add-display-support-in-u-boot/m-p/1826823#M221180</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/200857"&gt;@vishnu_motghare&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you check if&amp;nbsp; IPU driver has been compiled in Uboot build process?&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 06:04:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Add-display-support-in-u-boot/m-p/1826823#M221180</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2024-03-13T06:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Add display support in u-boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Add-display-support-in-u-boot/m-p/1833700#M221661</link>
      <description>&lt;P&gt;I'm able to probe the driver by setting stdout to 'vidconsole`, ipu&amp;nbsp;driver will be probed when I actually start using the device&lt;/P&gt;&lt;LI-CODE lang="c"&gt;setenv stdout vidconsole&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm also able to probe the driver from board.c file&amp;nbsp; by calling&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;uclass_get_device(UCLASS_VIDEO, 0, &amp;amp;dev);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 11:11:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Add-display-support-in-u-boot/m-p/1833700#M221661</guid>
      <dc:creator>vishnu_motghare</dc:creator>
      <dc:date>2024-03-22T11:11:24Z</dc:date>
    </item>
  </channel>
</rss>

