<?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: i.MX8MP: CSI0 with TP2860 encoder chip in continous clock mode</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-CSI0-with-TP2860-encoder-chip-in-continous-clock-mode/m-p/2394704#M245965</link>
    <description>Hello,&lt;BR /&gt;I am facing the similar issue, can you please tell me if you found a solution for it.</description>
    <pubDate>Tue, 14 Jul 2026 07:38:36 GMT</pubDate>
    <dc:creator>user101_einfo111112</dc:creator>
    <dc:date>2026-07-14T07:38:36Z</dc:date>
    <item>
      <title>i.MX8MP: CSI0 with TP2860 encoder chip in continous clock mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-CSI0-with-TP2860-encoder-chip-in-continous-clock-mode/m-p/2380072#M245627</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;we're trying to integrate a TP2860 video encoder in a IMX8MP based platform, but we're unable to capture any video. It seems the CSIS doesn't sync to incoming MIPI data stream.&lt;/P&gt;&lt;P&gt;Platform: Variscite DART-MX8M-PLUS on VAR CustomBoard&lt;BR /&gt;Kernel: linux-imx 6.6.52 (NXP BSP, imx8-mipi-csi2-sam driver), yocto build&lt;BR /&gt;Camera: TechPoint TP2860 MIPI encoder (AHD/TVI -&amp;gt; MIPI-CSI2 bridge), output MIPI clock: 297 MHz (measured)&lt;BR /&gt;Interface: CSI0 (mipi_csi_0 @ 0x32e40000), 2-lane, 500 Mbps/lane, FHD30 (1920x1080@30)&lt;BR /&gt;Pipeline: TP2860 -&amp;gt; MIPI D-PHY -&amp;gt; CSIS -&amp;gt; (MediaMix Gasket) -&amp;gt; ISI0 -&amp;gt; /dev/video2&lt;/P&gt;&lt;P&gt;The v4l2 pipeline looks ok (see attached pipeline_info.txt)&lt;/P&gt;&lt;P&gt;The relevant (flattened) devicetree info is attached in devicetree.txt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DPHYSTATUS reports 0xC2 (all lanes in HS) but the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CSIS Frame Start counter is always zero (in fact, all mxc-mipi-csi2.0 counters are zero).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;We have gone through NXP AN13857 and have a number of questions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;The TP2860 keeps its MIPI clock lane in HS between bursts (continuous clock mode). This is confirmed by CSIS DPHYSTATUS = 0xC2 both before and after drivers' s_stream enable:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;=&amp;gt; CSIS register dump (CSIS base 0x32e40000):&lt;BR /&gt;CSIS_CMN_CTRL [0x04] = 0x00004105 (ENABLE=1, LANE_NR=1-&amp;gt;2 lanes, HDR_MODE=0)&lt;BR /&gt;CSIS_DPHYCTRL [0x24] = 0x13000007 (hs_settle=0x13, D-PHY enabled)&lt;BR /&gt;CSIS_DPHYSTATUS [0x20] = 0x000000C2 (HSCLK=1, HSDAT1=1, STOPSTATE_CLK=0)&lt;BR /&gt;CSIS_INTSRC [0x14] = 0x00000000 (no interrupts fired)&lt;/P&gt;&lt;P&gt;=&amp;gt; CSIS_DPHYSTATUS[0x20] = 0x000000C2&lt;BR /&gt;bit 7: HSCLK = 1 (clock lane in HS)&lt;BR /&gt;bit 6: HSDAT1 = 1 (data lane 1 in HS)&lt;BR /&gt;bit 1: ULPS_CLK = 0 (not in ULPS)&lt;BR /&gt;bit 0: STOPSTATE_CLK = 0 (never in LP-11 stop state)&lt;/P&gt;&lt;P&gt;This matches the NXP AN13857 warning:&lt;BR /&gt;"&lt;A title="http://i.MX" href="http://i.mx/" target="_blank" rel="noopener"&gt;i.MX&lt;/A&gt; 8MM, &lt;A title="http://i.MX" href="http://i.mx/" target="_blank" rel="noopener"&gt;i.MX&lt;/A&gt; 8MN, and &lt;A title="http://i.MX" href="http://i.mx/" target="_blank" rel="noopener"&gt;i.MX&lt;/A&gt; 8MP require the connected camera to work in the LP state&lt;BR /&gt;before enabling the Rx DPHY. But if the camera works in continuous clock mode, the clock&lt;BR /&gt;lane may always be in the HS mode. In this case, Rx DPHY may not detect the HS mode and&lt;BR /&gt;wrongly remains in the stop or ULPS state."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TP2860 register readback over I2C during streaming:&lt;BR /&gt;0x40 -&amp;gt; 0x08 (MIPI page selected by driver after s_stream)&lt;BR /&gt;0x02 -&amp;gt; 0x7d (MIPI_EN0=1, all bits set)&lt;BR /&gt;0x28 -&amp;gt; 0x00 (STOP_CLK=0, ULPM=0)&lt;BR /&gt;0x10 -&amp;gt; 0x20 (MIPI TX enabled, not in reset)&lt;BR /&gt;0x29 -&amp;gt; 0x00 (data lane stop/ULPS: none)&lt;/P&gt;&lt;P&gt;We tried to enable TP2860 internal BT.1120 test pattern (to rule out the analog encoder path):&lt;/P&gt;&lt;DIV class=""&gt;&lt;P&gt;0x40 -&amp;gt; 0x08 (MIPI page)&lt;BR /&gt;0x22 -&amp;gt; 0x80 (TP_ENA=1: bypass analog decoder, send digital pattern)&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;But that doesn’t improve the situation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We’re setting up the TP2860 like this:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Write 0x02=0x3d, 0x03=0x35, 0x04=0x35 &amp;lt;-- MIPI_ENx=0 (lanes off)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Timing: 0x2B=0x09 (T_PREP reset default), 0x2C=0x0a&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Decoder PLL reset: REG 0x06 |= 0x80, msleep(10)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;MIPI PLL reset: REG 0x14 |= 0x80, msleep(10), deassert&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;msleep(50) (extended settle for PLL lock)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;0x02=0x7d, 0x03=0x75, 0x04=0x75 &amp;lt;-- enable lanes (clean LP-&amp;gt;HS)&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Is there a supported BSP mechanism to use the iMX8MP Rx D-PHY with a camera in continuous clock mode (STOPSTATE_CLK permanently 0)? Does the CSIS / D-PHY&lt;BR /&gt;have a mode that does not depend on observing LP-11 on the clock lane before asserting HS-RX enable?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Are there known errata or application notes beyond AN13857 for the iMX8MP regarding CSIS operation with continuous-clock MIPI-CSI2 sources?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;The same hardware containing the TP2860 encoder chip works on a Boundary Devices i.MX8&lt;STRONG&gt;MQ &lt;/STRONG&gt;setup&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2026 10:11:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-CSI0-with-TP2860-encoder-chip-in-continous-clock-mode/m-p/2380072#M245627</guid>
      <dc:creator>StefanB_emsys</dc:creator>
      <dc:date>2026-06-11T10:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MP: CSI0 with TP2860 encoder chip in continous clock mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-CSI0-with-TP2860-encoder-chip-in-continous-clock-mode/m-p/2394704#M245965</link>
      <description>Hello,&lt;BR /&gt;I am facing the similar issue, can you please tell me if you found a solution for it.</description>
      <pubDate>Tue, 14 Jul 2026 07:38:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-CSI0-with-TP2860-encoder-chip-in-continous-clock-mode/m-p/2394704#M245965</guid>
      <dc:creator>user101_einfo111112</dc:creator>
      <dc:date>2026-07-14T07:38:36Z</dc:date>
    </item>
  </channel>
</rss>

