<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi, guys,<br>
    </p>
    <div class="moz-cite-prefix">On 3/19/19 1:53 PM, Maxime Ripard
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:20190319105307.omowzyhqu33e3pzy@flea">
      <pre class="moz-quote-pre" wrap="">On Mon, Mar 11, 2019 at 09:36:27PM +0530, Jagan Teki wrote:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">On Mon, Mar 11, 2019 at 9:08 PM Maxime Ripard <a class="moz-txt-link-rfc2396E" href="mailto:maxime.ripard@bootlin.com"><maxime.ripard@bootlin.com></a> wrote:
</pre>
        <blockquote type="cite">
          <pre class="moz-quote-pre" wrap="">
On Mon, Mar 11, 2019 at 07:06:24PM +0530, Jagan Teki wrote:
</pre>
          <blockquote type="cite">
            <pre class="moz-quote-pre" wrap="">pll-video => pll-mipi => tcon0 => tcon0-pixel-clock is the typical
MIPI clock topology in Allwinner DSI controller.

TCON dotclock driver is computing the desired DCLK divider based on
panel pixel clock along with input DCLK min, max divider values from
tcon driver and that would eventually set the pll-mipi clock rate.

The current code allows the TCON clock divider to have a default 4
for min, max ranges that would fail to compute the desired pll-mipi
rate while supporting new panels.

So, add the computation logic 'format/lanes' to dclk min and max dividers
and instead of default 4. This computation logic align with Allwinner A64
BSP, hoping that would work even for A33.
</pre>
          </blockquote>
          <pre class="moz-quote-pre" wrap="">
Last time we discussed this, we found out that this wasn't the case,
even in the BSP.
</pre>
        </blockquote>
        <pre class="moz-quote-pre" wrap="">
This was the case for BSP to compute pll-mipi not for TCON_DSI clock
register, SUN4I_TCON0_DCLK_REG, which marked the divider 4 by default.

</pre>
        <blockquote type="cite">
          <pre class="moz-quote-pre" wrap="">What compelling evidence have you found that makes you say otherwise?
</pre>
        </blockquote>
        <pre class="moz-quote-pre" wrap="">
divider 4 isn't worked, this I would mentioned before as well.
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
Maybe you mentionned it before, but it's nowhere to be found in your
commit log.

</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">Tested this on 4 different panels, and below are the desired divider values
and pll-mipi clock rate with respect to pixel clock frequency.

- 55MHz pixel clock with 4-lane panel, and the desired DSI clock divider
  is 6 with the output parent clock rate of 330MHz.
- 30MHz pixel clock with 4-lane panel, and the desired DSI clock divider
  is 6 with parent clock rate of 180MHz.
- 27.5Mhz pixel clock with 2-lane pane, and the desired DSI clock divider
  is 12 with the output parent clock rate of 330MHz.
- 147MHz pixel clock with 4-lane panel, and the desired DSI clock divider
  is 6 with the output parent clock rate of 882MHz.

BSP trying to use this format/lane to compute dsi divider that in-turn
using pll-mipi set_rate but TCON0_DCLK_REG keep constant 4.
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
Feel free to reply to
<a class="moz-txt-link-freetext" href="http://lists.infradead.org/pipermail/linux-arm-kernel/2019-February/629596.html">http://lists.infradead.org/pipermail/linux-arm-kernel/2019-February/629596.html</a>

And correct whatever is said there that isn't what is happening.
</pre>
    </blockquote>
    <p><br>
    </p>
    <p>excuse me if my message is out of topic.</p>
    <p>I just want let you know  that the code <br>
    </p>
    <p>tcon->dclk_min_div = SUN6I_DSI_TCON_DIV;<br>
      tcon->dclk_max_div = SUN6I_DSI_TCON_DIV;</p>
    <p>where SUN6I_DSI_TCON_DIV = 4  isn't working with my 2-lane panel:
      I am always getting the error:</p>
    <p> [CRTC:38:crtc-0] vblank wait timed out<br>
    </p>
    <p>As soon as I set <br>
    </p>
    <p>tcon->dclk_min_div = tcon->dclk_max_div = bpp/lanes, i.e.
      12<br>
    </p>
    <p>the error disappears.<br>
    </p>
    <p><br>
    </p>
    <blockquote type="cite"
      cite="mid:20190319105307.omowzyhqu33e3pzy@flea">
      <pre class="moz-quote-pre" wrap="">
Maxime

--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
<a class="moz-txt-link-freetext" href="https://bootlin.com">https://bootlin.com</a>
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
linux-arm-kernel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:linux-arm-kernel@lists.infradead.org">linux-arm-kernel@lists.infradead.org</a>
<a class="moz-txt-link-freetext" href="http://lists.infradead.org/mailman/listinfo/linux-arm-kernel">http://lists.infradead.org/mailman/listinfo/linux-arm-kernel</a>
</pre>
    </blockquote>
  </body>
</html>