From: Alexander Stein <alexander.stein@ew.tq-group.com>
To: Marek Vasut <marex@denx.de>
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: Tue, 24 May 2022 09:53:02 +0200 [thread overview]
Message-ID: <2107017.irdbgypaU6@steina-w> (raw)
In-Reply-To: <0bf5532b-f4d9-fbf5-0037-61887fc8512e@denx.de>
Am Dienstag, 24. Mai 2022, 09:29:43 CEST schrieb Marek Vasut:
> On 5/24/22 09:09, Alexander Stein wrote:
> > Hi Marek,
>
> Hi,
>
> > Am Donnerstag, 19. Mai 2022, 13:48:49 CEST schrieb Marek Vasut:
> >> Add support for i.MX8MP LCDIF variant. This is called LCDIFv3 and is
> >> completely different from the LCDIFv3 found in i.MX23 in that it has
> >> a completely scrambled register layout compared to all previous LCDIF
> >> variants. The new LCDIFv3 also supports 36bit address space.
> >>
> >> Add a separate driver which is really a fork of MXSFB driver with the
> >> i.MX8MP LCDIF variant handling filled in.
> >>
> >> Signed-off-by: Marek Vasut <marex@denx.de>
> >> Cc: Alexander Stein <alexander.stein@ew.tq-group.com>
> >> Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> >> Cc: Lucas Stach <l.stach@pengutronix.de>
> >> Cc: Peng Fan <peng.fan@nxp.com>
> >> Cc: Robby Cai <robby.cai@nxp.com>
> >> Cc: Sam Ravnborg <sam@ravnborg.org>
> >> Cc: Stefan Agner <stefan@agner.ch>
> >> ---
> >> V2: - Drop the pitch check from lcdif_fb_create()
> >>
> >> - Drop connector caching
> >> - Wait for shadow load bit to be cleared in IRQ handler
> >> - Make all clock mandatory and grab them all by name
> >> - Wait for EN to be cleared in lcdif_disable_controller
> >> - Rename to imx-lcdif
> >> - Move shadow load to atomic_flush
> >>
> >> V3: - Invert DE polarity to match MX8MPRM datasheet
> >>
> >> - Enable CSC in RGB to YUV mode for MEDIA_BUS_FMT_UYVY8_1X16
> >>
> >> V4: - Drop lcdif_overlay_plane_formats, it is unused
> >
> > Thanks for the update. With your change in V3 my HDMI output works now
> > without that hack mentioned. weston screen as well as 'fb-test -p 5'
> > output seems sensible.
> > Unfortunately this isn't the case for LVDS output on LCDIF2. I somehow
> > managed to get the DT nodes for LCDIF and LDB done. Also the necessary
> > addition to imx8m-blk-ctl. So eventually I can see some output. But the
> > screen is cutoff on the right side of about 15-20% and the screen is
> > flickering slighty. This is especially visible in 'fb-test -p 5'. The red
> > bars are only visible to less than 1/3 and the text as well as the
> > diagonal lines are flickering. Colors are correct though.
> > For the record: I am using a 'tianma,tm070jvhg33' panel.
>
> Does LDB start working if you apply:
>
> static const struct drm_bridge_funcs funcs = {
> .attach = fsl_ldb_attach,
> - .atomic_check = fsl_ldb_atomic_check,
> .atomic_enable = fsl_ldb_atomic_enable,
> .atomic_disable = fsl_ldb_atomic_disable,
> .atomic_duplicate_state = drm_atomic_helper_bridge_duplicate_state,
>
> to
>
> drivers/gpu/drm/bridge/fsl-ldb.c
Thanks for the suggestion, but this doesn't change anything. For some reason
bridge_state->output_bus_cfg.flags is 0, rendering this function as a no-op
anyway. Why do we need to invert the DE signal polarity anyway?
I have a hunch this isn't related to data enable, I suspect this would lead to
completly borked colors. But as this is correct, I think something about HSYNC
is borked. VSYNC seems to be correct as the top and bottom lines are fine as
expected.
Best regards,
Alexander
next prev parent reply other threads:[~2022-05-24 7:53 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 [this message]
2022-05-30 9:27 ` Alexander Stein
2022-06-13 21:15 ` Marek Vasut
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=2107017.irdbgypaU6@steina-w \
--to=alexander.stein@ew.tq-group.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=marex@denx.de \
--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.