<?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: iMX8M Mini U-boot MIPI D-PHY clock modification in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Mini-U-boot-MIPI-D-PHY-clock-modification/m-p/1548369#M197179</link>
    <description>&lt;P&gt;Hi Qmiller,&lt;/P&gt;&lt;P&gt;I am using "MIPI_DSI_PHY_REF_CLK_ROOT" DSI clock and uboot version is 2020.04&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushal Verma&lt;/P&gt;</description>
    <pubDate>Thu, 03 Nov 2022 14:54:07 GMT</pubDate>
    <dc:creator>Kaushal_Verma</dc:creator>
    <dc:date>2022-11-03T14:54:07Z</dc:date>
    <item>
      <title>iMX8M Mini U-boot MIPI D-PHY clock modification</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Mini-U-boot-MIPI-D-PHY-clock-modification/m-p/1543153#M196802</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;Dear NXP Community,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I am using iMX8M Mini SoC connected to SN65DSI83 MIPI to LVDS converter running on Android 11 OS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;I have developed a display driver in uboot for the same and could see the proper test pattern on the display when I enable it through SN65DSI83 and could see the fluctuating NXP splash screen which we are getting in EVK boards with inbuilt MIPI to HDMI convertor.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;The fluctuation is caused by the MIPI DSI clock frequency Which I am not able to modify by adding it in display-timing. Currently I am getting 1049 MHz in MIPI DSI clock which is not supported by SN65DSI83 convertor and I required 228 MHz in MIPI DSI clock as the same clock is used in Kernel and the display is working fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Can anyone please help me to set MIPI DSI clock to 228 MHz in uboot.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Your support is really appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Kaushal Verma&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 06:28:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Mini-U-boot-MIPI-D-PHY-clock-modification/m-p/1543153#M196802</guid>
      <dc:creator>Kaushal_Verma</dc:creator>
      <dc:date>2022-10-25T06:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8M Mini U-boot MIPI D-PHY clock modification</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Mini-U-boot-MIPI-D-PHY-clock-modification/m-p/1547292#M197083</link>
      <description>&lt;P&gt;Can you share the detailed name of DSI clock?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 02:12:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Mini-U-boot-MIPI-D-PHY-clock-modification/m-p/1547292#M197083</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2022-11-02T02:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8M Mini U-boot MIPI D-PHY clock modification</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Mini-U-boot-MIPI-D-PHY-clock-modification/m-p/1548369#M197179</link>
      <description>&lt;P&gt;Hi Qmiller,&lt;/P&gt;&lt;P&gt;I am using "MIPI_DSI_PHY_REF_CLK_ROOT" DSI clock and uboot version is 2020.04&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushal Verma&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 14:54:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Mini-U-boot-MIPI-D-PHY-clock-modification/m-p/1548369#M197179</guid>
      <dc:creator>Kaushal_Verma</dc:creator>
      <dc:date>2022-11-03T14:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8M Mini U-boot MIPI D-PHY clock modification</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Mini-U-boot-MIPI-D-PHY-clock-modification/m-p/1548583#M197191</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/194408"&gt;@Kaushal_Verma&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;MIPI_DSI_PHY_REF_CLK_ROOT is a reference clock for DPHY PLL module[you don't need change this clock], you need set correct p, m, s value in DPHY. The&amp;nbsp;sec_mipi_dsim_calc_pmsk function will calculate the p,m,s value for bit clock.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qmiller_0-1667526785333.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/199109i9F993D2D42C21559/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Qmiller_0-1667526785333.png" alt="Qmiller_0-1667526785333.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Qmiller_0-1667526785333.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 01:58:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Mini-U-boot-MIPI-D-PHY-clock-modification/m-p/1548583#M197191</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2022-11-04T01:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8M Mini U-boot MIPI D-PHY clock modification</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Mini-U-boot-MIPI-D-PHY-clock-modification/m-p/1550773#M197343</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/151788"&gt;@Zhiming_Liu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help I did below modification to get clock around 227.8 MHz but the clock is still 1049 MHz.&lt;/P&gt;&lt;P&gt;--- a/drivers/video/nxp/imx/sec_mipi_dsim.c&lt;BR /&gt;+++ b/drivers/video/nxp/imx/sec_mipi_dsim.c&lt;BR /&gt;@@ -191,7 +191,7 @@&lt;BR /&gt;#define PLLCTRL_DPDNSWAP_CLK BIT(25)&lt;BR /&gt;#define PLLCTRL_DPDNSWAP_DAT BIT(24)&lt;BR /&gt;#define PLLCTRL_PLLEN BIT(23)&lt;BR /&gt;-#define PLLCTRL_SET_PMS(x) REG_PUT(x, 19, 1)&lt;BR /&gt;+//#define PLLCTRL_SET_PMS(x) REG_PUT(x, 19, 1)&lt;BR /&gt;&lt;BR /&gt;#define PHYTIMING_SET_M_TLPXCTL(x) REG_PUT(x, 15, &lt;LI-EMOJI id="lia_smiling-face-with-sunglasses" title=":smiling_face_with_sunglasses:"&gt;&lt;/LI-EMOJI&gt;&lt;BR /&gt;#define PHYTIMING_SET_M_THSEXITCTL(x) REG_PUT(x, 7, 0)&lt;BR /&gt;@@ -271,6 +271,10 @@&lt;BR /&gt;#define MIPI_HBP_PKT_OVERHEAD 6&lt;BR /&gt;#define MIPI_HSA_PKT_OVERHEAD 6&lt;BR /&gt;&lt;BR /&gt;+#define PLLCTRL_SET_PMS(x) REG_PUT(x, 18, 0)&lt;BR /&gt;+#define PLLCTRL_SET_P(x) REG_PUT(x, 18, 13)&lt;BR /&gt;+#define PLLCTRL_SET_M(x) REG_PUT(x, 12, 4)&lt;BR /&gt;+#define PLLCTRL_SET_S(x) REG_PUT(x, 2, 1)&lt;BR /&gt;&lt;BR /&gt;/* DSIM PLL configuration from spec:&lt;BR /&gt;*&lt;BR /&gt;@@ -821,7 +825,7 @@ static int sec_mipi_dsim_bridge_clk_set(struct sec_mipi_dsim *dsim_host)&lt;BR /&gt;* Only support '1080p@60Hz' for now,&lt;BR /&gt;* add other modes support later&lt;BR /&gt;*/&lt;BR /&gt;- dsim_host-&amp;gt;pms = 0x4210;&lt;BR /&gt;+ dsim_host-&amp;gt;pms = PLLCTRL_SET_P(5) | PLLCTRL_SET_M(69) | PLLCTRL_SET_S(0);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;debug("%s: bitclk %llu pixclk %llu\n", __func__, dsim_host-&amp;gt;bit_clk, dsim_host-&amp;gt;pix_clk);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--- a/arch/arm/mach-imx/imx8m/clock_imx8mm.c&lt;BR /&gt;+++ b/arch/arm/mach-imx/imx8m/clock_imx8mm.c&lt;BR /&gt;@@ -359,7 +359,7 @@ void enable_display_clk(unsigned char enable)&lt;BR /&gt;#ifdef CONFIG_IMX8MN&lt;BR /&gt;clock_set_target_val(DISPLAY_DSI_PHY_REF_CLK_ROOT, CLK_ROOT_ON | CLK_ROOT_SOURCE_SEL(7) |CLK_ROOT_POST_DIV(CLK_ROOT_POST_DIV22));&lt;BR /&gt;#else&lt;BR /&gt;- clock_set_target_val(MIPI_DSI_PHY_REF_CLK_ROOT, CLK_ROOT_ON | CLK_ROOT_SOURCE_SEL(7) |CLK_ROOT_POST_DIV(CLK_ROOT_POST_DIV22));&lt;BR /&gt;+ clock_set_target_val(MIPI_DSI_PHY_REF_CLK_ROOT, CLK_ROOT_ON | CLK_ROOT_SOURCE_SEL(7) |CLK_ROOT_POST_DIV(CLK_ROOT_POST_DIV18));&lt;BR /&gt;#endif&lt;BR /&gt;clock_enable(CCGR_DISPMIX, true);&lt;BR /&gt;} else {&lt;/P&gt;&lt;P&gt;Please verify the changes and let me know what else changes need to be done.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushal Verma&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 06:45:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8M-Mini-U-boot-MIPI-D-PHY-clock-modification/m-p/1550773#M197343</guid>
      <dc:creator>Kaushal_Verma</dc:creator>
      <dc:date>2022-11-09T06:45:28Z</dc:date>
    </item>
  </channel>
</rss>

