<?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>i.MX Processors中的主题 Re: Custom Resolution 800x480</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Custom-Resolution-800x480/m-p/1404439#M186243</link>
    <description>&lt;P&gt;You need to confirm if the pixel clock is in this table, if not, you need to use the "HDMI - pixel clock calculation"&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/gpu/drm/imx/mhdp/cdns-mhdp-hdmi-phy.c?h=lf-5.10.y" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/gpu/drm/imx/mhdp/cdns-mhdp-hdmi-phy.c?h=lf-5.10.y&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class="k"&gt;static&lt;/SPAN&gt; &lt;SPAN class="k"&gt;const&lt;/SPAN&gt; &lt;SPAN class="k"&gt;struct&lt;/SPAN&gt; &lt;SPAN class="n"&gt;hdmi_ctrl&lt;/SPAN&gt; &lt;SPAN class="n"&gt;imx8mq_ctrl_table&lt;/SPAN&gt;&lt;SPAN class="p"&gt;[]&lt;/SPAN&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jan 2022 08:35:50 GMT</pubDate>
    <dc:creator>Rita_Wang</dc:creator>
    <dc:date>2022-01-25T08:35:50Z</dc:date>
    <item>
      <title>Custom Resolution 800x480</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Custom-Resolution-800x480/m-p/1403769#M186178</link>
      <description>&lt;P&gt;I have an 800x480 lcd I am looking to configure for the imx8m to run at 800x480 not 1920x1080 it is defaulting to. I am running u-boot 2019.04 and Linux 4.19.35. I am able to set the resolution to 800x480 if I plug the LCD into my windows laptop.&lt;BR /&gt;&lt;BR /&gt;From looking at similar questions it seems I need to add the resolution to&amp;nbsp;edid_cea_modes either in drm_edid.c or imx-dhp.c then update t28hpc_hdmitc_table.c with a new clock speed as per:&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/HDMI-DRM-custom-resolution-and-clock-frequency/m-p/1029696" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/i-MX-Processors/HDMI-DRM-custom-resolution-and-clock-frequency/m-p/1029696&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;My question is how do you generate the required clock speed for a 800x480&amp;amp;60Hz hdmi LCD? I found this tool: &lt;A href="https://tomverbeure.github.io/video_timings_calculator" target="_blank" rel="noopener"&gt;https://tomverbeure.github.io/video_timings_calculator&lt;/A&gt;&amp;nbsp;But not sure which modeline to use if any.&lt;BR /&gt;&lt;BR /&gt;This is the LCD I am testing with:&amp;nbsp;&lt;A href="https://core-electronics.com.au/waveshare-5inch-lcd-800x480.html" target="_blank"&gt;https://core-electronics.com.au/waveshare-5inch-lcd-800x480.html&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any guidance is appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 07:12:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Custom-Resolution-800x480/m-p/1403769#M186178</guid>
      <dc:creator>chriscmorgan</dc:creator>
      <dc:date>2022-01-24T07:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Resolution 800x480</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Custom-Resolution-800x480/m-p/1403835#M186182</link>
      <description>&lt;P&gt;Which board are you using?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 08:24:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Custom-Resolution-800x480/m-p/1403835#M186182</guid>
      <dc:creator>Rita_Wang</dc:creator>
      <dc:date>2022-01-24T08:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Resolution 800x480</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Custom-Resolution-800x480/m-p/1403908#M186190</link>
      <description>&lt;P&gt;Using the&amp;nbsp;SMARC-iMX8M:&lt;BR /&gt;&lt;A href="http://www.embedian.com/index.php?main_page=product_info&amp;amp;products_id=26" target="_blank"&gt;http://www.embedian.com/index.php?main_page=product_info&amp;amp;products_id=26&lt;/A&gt;&lt;/P&gt;&lt;P&gt;On the&amp;nbsp;EVK-STD-CARRIER-S20&amp;nbsp;&lt;SPAN&gt;carrier board.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 10:13:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Custom-Resolution-800x480/m-p/1403908#M186190</guid>
      <dc:creator>chriscmorgan</dc:creator>
      <dc:date>2022-01-24T10:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Resolution 800x480</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Custom-Resolution-800x480/m-p/1404271#M186224</link>
      <description>&lt;P&gt;Ok I was able to query get the correct parameters for the lcd via "cat /sys/class/drm/card0-HDMI-A-1/edid | parse-edid"&lt;/P&gt;&lt;P&gt;Which did have this line which is the resolution I want:&lt;/P&gt;&lt;P&gt;"Modeline "Mode 0" 33.90 800 844 932 1056 480 483 489 535 +hsync +vsync"&lt;BR /&gt;&lt;BR /&gt;But when I try to add this mode via xrandr I am getting this error and screen is going black:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Jan 25 11:04:00 smarcimx8m kernel: [ 4234.219299] [drm] Pixel clock frequency: 33900 KHz, character clock frequency: 33900, color depth is 8-bit.
Jan 25 11:04:00 smarcimx8m kernel: [ 4234.219315] [drm] Pixel clock frequency (33900 KHz) not supported for this color depth (8-bit)
Jan 25 11:04:00 smarcimx8m kernel: [ 4234.219331] [drm:hdmi_phy_init_t28hpc] *ERROR* failed to set phy pclock
Jan 25 11:04:00 smarcimx8m kernel: [ 4234.226009] [drm:imx_hdp_bridge_mode_set] *ERROR* Failed to initialise HDP PHY&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;So it does seem I need to use this "HDMI - pixel clock calculation" spreadsheet and add a new line to t28hpc_hdmitx_table.c.&lt;BR /&gt;&lt;BR /&gt;The challenge I am having is what I need to add the spreadsheet for the input variables:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Reference Clock Freq&lt;/LI&gt;&lt;LI&gt;Expected Pixel clock&lt;/LI&gt;&lt;LI&gt;Generated clock tolerance&lt;/LI&gt;&lt;LI&gt;pll input divider&lt;/LI&gt;&lt;LI&gt;pll feedback divider&lt;/LI&gt;&lt;LI&gt;pixel clock divider&lt;/LI&gt;&lt;LI&gt;character clock divider&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Based on the above modeline should I be able to dervice these values or I need more information?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 03:20:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Custom-Resolution-800x480/m-p/1404271#M186224</guid>
      <dc:creator>chriscmorgan</dc:creator>
      <dc:date>2022-01-25T03:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Resolution 800x480</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Custom-Resolution-800x480/m-p/1404439#M186243</link>
      <description>&lt;P&gt;You need to confirm if the pixel clock is in this table, if not, you need to use the "HDMI - pixel clock calculation"&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/gpu/drm/imx/mhdp/cdns-mhdp-hdmi-phy.c?h=lf-5.10.y" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/gpu/drm/imx/mhdp/cdns-mhdp-hdmi-phy.c?h=lf-5.10.y&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class="k"&gt;static&lt;/SPAN&gt; &lt;SPAN class="k"&gt;const&lt;/SPAN&gt; &lt;SPAN class="k"&gt;struct&lt;/SPAN&gt; &lt;SPAN class="n"&gt;hdmi_ctrl&lt;/SPAN&gt; &lt;SPAN class="n"&gt;imx8mq_ctrl_table&lt;/SPAN&gt;&lt;SPAN class="p"&gt;[]&lt;/SPAN&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 08:35:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Custom-Resolution-800x480/m-p/1404439#M186243</guid>
      <dc:creator>Rita_Wang</dc:creator>
      <dc:date>2022-01-25T08:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Resolution 800x480</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Custom-Resolution-800x480/m-p/1405599#M186357</link>
      <description>&lt;P&gt;Thanks for your reply. It does look like I need to use the "HDMI - pixel clock calculation" as my required clock speed is 33900 and its not in hdmi_ctrl imx8mq_ctrl_table.&lt;/P&gt;&lt;P&gt;My 800x480 LCD has this modeline&amp;nbsp;&amp;nbsp;"Mode 0" 33.90 800 844 932 1056 480 483 489 535 +hsync +vsync"&lt;/P&gt;&lt;P&gt;I am a bit lost on how to use this spreadsheet though to get the values for the&amp;nbsp;hdmi_ctrl imx8mq_ctrl_table. Any help on how to get these values from the above modeline?&lt;BR /&gt;&lt;BR /&gt;Reference Clock Freq&lt;BR /&gt;Expected Pixel clock&lt;BR /&gt;Generated clock tolerance&lt;BR /&gt;pll input divider&lt;BR /&gt;pll feedback divider&lt;BR /&gt;pixel clock divider&lt;BR /&gt;character clock divider&lt;BR /&gt;&lt;BR /&gt;Any advice is really appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 00:46:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Custom-Resolution-800x480/m-p/1405599#M186357</guid>
      <dc:creator>chriscmorgan</dc:creator>
      <dc:date>2022-01-27T00:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Resolution 800x480</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Custom-Resolution-800x480/m-p/1405685#M186366</link>
      <description>&lt;P&gt;You can see the doc I have wrote. Hope can do help for you.&lt;/P&gt;
&lt;P&gt;As I will have the Spring Festival holiday and I will back to office on the 7th Feb, Maybe update to you then. Thanks a lot for your kindly understandings.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 03:26:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Custom-Resolution-800x480/m-p/1405685#M186366</guid>
      <dc:creator>Rita_Wang</dc:creator>
      <dc:date>2022-01-27T03:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Resolution 800x480</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Custom-Resolution-800x480/m-p/1828283#M221261</link>
      <description>Link update with new repository location : &lt;A href="https://github.com/nxp-imx/linux-imx/tree/lf-5.10.y/drivers/gpu/drm/imx/mhdp/cdns-mhdp-hdmi-phy.c" target="_blank"&gt;https://github.com/nxp-imx/linux-imx/tree/lf-5.10.y/drivers/gpu/drm/imx/mhdp/cdns-mhdp-hdmi-phy.c&lt;/A&gt;</description>
      <pubDate>Thu, 14 Mar 2024 09:21:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Custom-Resolution-800x480/m-p/1828283#M221261</guid>
      <dc:creator>cdoumenc</dc:creator>
      <dc:date>2024-03-14T09:21:26Z</dc:date>
    </item>
  </channel>
</rss>

