All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: Alexander Stein <alexander.stein@ew.tq-group.com>
Cc: Peng Fan <peng.fan@nxp.com>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	martyn.welch@collabora.com, robert.foss@linaro.org,
	dri-devel@lists.freedesktop.org, Robby Cai <robby.cai@nxp.com>,
	Sam Ravnborg <sam@ravnborg.org>
Subject: Re: [PATCH v4 2/2] drm: lcdif: Add support for i.MX8MP LCDIF variant
Date: Mon, 13 Jun 2022 23:15:05 +0200	[thread overview]
Message-ID: <c9acc625-5cf5-5a6e-c853-5779289b811a@denx.de> (raw)
In-Reply-To: <2893424.e9J7NaK4W3@steina-w>

On 5/30/22 11:27, Alexander Stein wrote:
> Hi Marek,

Hi,

[...]

> I got this working, somehow. The root cause was that the LDB clock was not the
> media_disp2_pix_root_clk clock * 7, which is mandatory for LVDS (single link).
> 
> excerpt from clk_summary:
> video_pll1_out     2 2 0   594000000          0     0  50000         Y
>     media_ldb       1 1 0   594000000          0     0  50000         Y
>     media_disp2_pix 1 1 0    66000000          0     0  50000         Y
> 
> media_ldb is too high (should be 462000000). I wonder why media_ldb is not a
> child from media_disp2_pix (or vice versa) when there is a hard dependency.

Probably that's a matter of imx8mp.dtsi patch ?

> There are several solutions:
> 1.
> Set video_pll1 to 1039500000 and adjust requested pixel clock of the panel
> (74250000 in this case). Now the dividers match hit the clock rates exactly.
> But this renders the display list in panel-simple a bit useless.
> 
> 2.
> Adjust video_pll1_out only (e.g. 478757145). Now the calculated clocks comply
> to their mandated ratio. But this might affect other users, e.g. DSI displays
> 
> 3.
> Improve fsl_ldb_atomic_check to set adjusted_mode.clock to an achievable
> clock. This way lcdif will pick the new pixelclock to match their ratio.
> But there is more work necessary, e.g. ensure the new pixelclock is in the
> valid range of the display.

So far, I'm adjusting the LDB clock to match the panel in DT, but that 
indeed could use an improvement.

> To summarize:
> For both HDMI and LVDS using changes unrelated to this lcdif driver:
> Tested-by: Alexander Stein <alexander.stein@ew.tq-group.com>

Thanks

  reply	other threads:[~2022-06-13 21:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-19 11:48 [PATCH v4 1/2] dt-bindings: lcdif: Add compatible for i.MX8MP Marek Vasut
2022-05-19 11:48 ` Marek Vasut
2022-05-19 11:48 ` [PATCH v4 2/2] drm: lcdif: Add support for i.MX8MP LCDIF variant Marek Vasut
2022-05-24  7:09   ` Alexander Stein
2022-05-24  7:29     ` Marek Vasut
2022-05-24  7:53       ` Alexander Stein
2022-05-30  9:27       ` Alexander Stein
2022-06-13 21:15         ` Marek Vasut [this message]
2022-05-27  9:42   ` Martyn Welch
2022-06-10  8:48   ` Lucas Stach
2022-06-01 21:07 ` [PATCH v4 1/2] dt-bindings: lcdif: Add compatible for i.MX8MP Rob Herring
2022-06-01 21:07   ` Rob Herring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c9acc625-5cf5-5a6e-c853-5779289b811a@denx.de \
    --to=marex@denx.de \
    --cc=alexander.stein@ew.tq-group.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=martyn.welch@collabora.com \
    --cc=peng.fan@nxp.com \
    --cc=robby.cai@nxp.com \
    --cc=robert.foss@linaro.org \
    --cc=sam@ravnborg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.