<?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 IMX8QM CSI HS_SETTLE parameter (AN13573 question) in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX8QM-CSI-HS-SETTLE-parameter-AN13573-question/m-p/1506136#M193853</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I've a question regarding application note AN13573 (AN13573 - i.MX 8/RT MIPI DSI/CSI-2) on computing HS_SETTLE parameter value for MIPI CSI2 receiver.&lt;/P&gt;&lt;P&gt;AN13573 says:&lt;/P&gt;&lt;P&gt;-------------------------&lt;/P&gt;&lt;P&gt;6.1.5 D-PHY setup&lt;BR /&gt;The only D-PHY parameter that needs configuration is the T HS-SETTLE .&lt;/P&gt;&lt;P&gt;In this example, RxClkInEsc and CLK_UI (pixel clock) are both 60 MHz. The time period for both is 1/60 MHz = 16.67 ns.&lt;/P&gt;&lt;P&gt;The D-PHY specification requires the T HS-SETTLE to be in the range of 85 ns + 6 * UI to 145 ns + 10 * UI. This calculation works out to a range of 185 ns – 311.67 ns.&lt;/P&gt;&lt;P&gt;For the RT1170, the equation for programming T HS-SETTLE is:&lt;/P&gt;&lt;P&gt;T_HS_SETTLE = PRG_RXHS_SETTLE + 1 * Tperiod of RxClkInEsc&lt;/P&gt;&lt;P&gt;-------------------&lt;/P&gt;&lt;P&gt;as it can be seen, calculations above uses clock period of 60 MHz CLK_UI as "UI" value. But AN13573 says CLK_UI is a clock, originating from IMX8 and used to read out values from CSI receiver to the rest of the chip:&lt;/P&gt;&lt;P&gt;--------------&lt;/P&gt;&lt;P&gt;5.6.2 Pixel clock&lt;BR /&gt;SOC generates the PIXEL_CLK . PIXEL_CLK must be set so that image bandwidth exiting the CSI-2 block is greater than or equal to the image bandwidth entering the block. The 28FDSOI parts refer to this clock as the user-interface clock or CLK_UI&lt;/P&gt;&lt;P&gt;-------------&lt;/P&gt;&lt;P&gt;This seems weird. It comes to that Ths_settle calculation is only based on &lt;STRONG&gt;internal&lt;/STRONG&gt; clocks of IMX8 whereas it should be conformant to both CSI devices (both transmitter and receiver).&lt;/P&gt;&lt;P&gt;Shouldn't UI in the formula above to a period of high-speed lane clock (168 MHz in the example), giving Ths_settle limits 121-205 ns?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dear NXP staff, please would you advise on that, because&lt;/P&gt;&lt;P&gt;Unfortunately, a related question &lt;A href="https://community.nxp.com/t5/i-MX-Processors/Explenation-for-HS-SETTLE-parameter-in-MIPI-CSI-D-PHY-registers/m-p/764265" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/Explenation-for-HS-SETTLE-parameter-in-MIPI-CSI-D-PHY-registers/m-p/764265&lt;/A&gt; doesn't shed light on the "UI" (interesting, the table there uses lane data rate as a basis, not the internal CLK_UI).&lt;/P&gt;&lt;P&gt;Unfortunately, IMX8QM Reference Manual (Rev. 0, 9/2021) doesn't say anything about HS_SETTLE at all, except saying it is in bits 9:4 in PHY_CTRL register.&lt;/P&gt;&lt;P&gt;Unfortunately, there is no suitable comments in imx8-mipi-csi2.c driver code. It uses "UI = 1000 / mipi csi phy clock" as a basis for calculation (see calc_hs_settle), but it is not clear what does it mean and looks contradictory to AN13573.&lt;/P&gt;&lt;P&gt;Unfortunately, my another question (&lt;A href="https://community.nxp.com/t5/i-MX-Processors/IMX8QM-CSI-clocks-AN13573-question-on-CLOCK-ROOT73/m-p/1505564" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/IMX8QM-CSI-clocks-AN13573-question-on-CLOCK-ROOT73/m-p/1505564&lt;/A&gt;) regarding CSI clocks is not yet answered. I can see that Escape clock (used for Ths_settle calculation) is 72 MHz for me (IMX8QM), but I've no idea if this is right or not.&lt;/P&gt;&lt;P&gt;Unfortunately, based on what I see on this forum, it seems that I'm not alone, having bad time with CSI receiver, so any correct information would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Please would you advise on that.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Aug 2022 09:58:03 GMT</pubDate>
    <dc:creator>akochubey</dc:creator>
    <dc:date>2022-08-15T09:58:03Z</dc:date>
    <item>
      <title>IMX8QM CSI HS_SETTLE parameter (AN13573 question)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8QM-CSI-HS-SETTLE-parameter-AN13573-question/m-p/1506136#M193853</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I've a question regarding application note AN13573 (AN13573 - i.MX 8/RT MIPI DSI/CSI-2) on computing HS_SETTLE parameter value for MIPI CSI2 receiver.&lt;/P&gt;&lt;P&gt;AN13573 says:&lt;/P&gt;&lt;P&gt;-------------------------&lt;/P&gt;&lt;P&gt;6.1.5 D-PHY setup&lt;BR /&gt;The only D-PHY parameter that needs configuration is the T HS-SETTLE .&lt;/P&gt;&lt;P&gt;In this example, RxClkInEsc and CLK_UI (pixel clock) are both 60 MHz. The time period for both is 1/60 MHz = 16.67 ns.&lt;/P&gt;&lt;P&gt;The D-PHY specification requires the T HS-SETTLE to be in the range of 85 ns + 6 * UI to 145 ns + 10 * UI. This calculation works out to a range of 185 ns – 311.67 ns.&lt;/P&gt;&lt;P&gt;For the RT1170, the equation for programming T HS-SETTLE is:&lt;/P&gt;&lt;P&gt;T_HS_SETTLE = PRG_RXHS_SETTLE + 1 * Tperiod of RxClkInEsc&lt;/P&gt;&lt;P&gt;-------------------&lt;/P&gt;&lt;P&gt;as it can be seen, calculations above uses clock period of 60 MHz CLK_UI as "UI" value. But AN13573 says CLK_UI is a clock, originating from IMX8 and used to read out values from CSI receiver to the rest of the chip:&lt;/P&gt;&lt;P&gt;--------------&lt;/P&gt;&lt;P&gt;5.6.2 Pixel clock&lt;BR /&gt;SOC generates the PIXEL_CLK . PIXEL_CLK must be set so that image bandwidth exiting the CSI-2 block is greater than or equal to the image bandwidth entering the block. The 28FDSOI parts refer to this clock as the user-interface clock or CLK_UI&lt;/P&gt;&lt;P&gt;-------------&lt;/P&gt;&lt;P&gt;This seems weird. It comes to that Ths_settle calculation is only based on &lt;STRONG&gt;internal&lt;/STRONG&gt; clocks of IMX8 whereas it should be conformant to both CSI devices (both transmitter and receiver).&lt;/P&gt;&lt;P&gt;Shouldn't UI in the formula above to a period of high-speed lane clock (168 MHz in the example), giving Ths_settle limits 121-205 ns?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dear NXP staff, please would you advise on that, because&lt;/P&gt;&lt;P&gt;Unfortunately, a related question &lt;A href="https://community.nxp.com/t5/i-MX-Processors/Explenation-for-HS-SETTLE-parameter-in-MIPI-CSI-D-PHY-registers/m-p/764265" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/Explenation-for-HS-SETTLE-parameter-in-MIPI-CSI-D-PHY-registers/m-p/764265&lt;/A&gt; doesn't shed light on the "UI" (interesting, the table there uses lane data rate as a basis, not the internal CLK_UI).&lt;/P&gt;&lt;P&gt;Unfortunately, IMX8QM Reference Manual (Rev. 0, 9/2021) doesn't say anything about HS_SETTLE at all, except saying it is in bits 9:4 in PHY_CTRL register.&lt;/P&gt;&lt;P&gt;Unfortunately, there is no suitable comments in imx8-mipi-csi2.c driver code. It uses "UI = 1000 / mipi csi phy clock" as a basis for calculation (see calc_hs_settle), but it is not clear what does it mean and looks contradictory to AN13573.&lt;/P&gt;&lt;P&gt;Unfortunately, my another question (&lt;A href="https://community.nxp.com/t5/i-MX-Processors/IMX8QM-CSI-clocks-AN13573-question-on-CLOCK-ROOT73/m-p/1505564" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/IMX8QM-CSI-clocks-AN13573-question-on-CLOCK-ROOT73/m-p/1505564&lt;/A&gt;) regarding CSI clocks is not yet answered. I can see that Escape clock (used for Ths_settle calculation) is 72 MHz for me (IMX8QM), but I've no idea if this is right or not.&lt;/P&gt;&lt;P&gt;Unfortunately, based on what I see on this forum, it seems that I'm not alone, having bad time with CSI receiver, so any correct information would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Please would you advise on that.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 09:58:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8QM-CSI-HS-SETTLE-parameter-AN13573-question/m-p/1506136#M193853</guid>
      <dc:creator>akochubey</dc:creator>
      <dc:date>2022-08-15T09:58:03Z</dc:date>
    </item>
  </channel>
</rss>

