From: thesven73@gmail.com
To: svendev@arcx.com, p.zabel@pengutronix.de, denis@eukrea.com,
rmk+kernel@arm.linux.org.uk
Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org
Subject: Re: [RFC v1 0/1] imx-drm: match ipu_di_signal_cfg's clk_pol with its observed behaviour.
Date: Thu, 25 Oct 2018 14:15:18 -0400 [thread overview]
Message-ID: <20181025181518.4433-1-TheSven73@googlemail.com> (raw)
Hi Russell, thanks for looking at the RFC !
> Given what's in the documentation, I'd opt for it describing the
> edge that the output data changes, not the latch edge. With that
> interpretation, the existing code is correct.
The clock polarity is reversed in Freescale's non-mainline fbdev code,
which we were using previously, contributing to the confusion.
Yes, I think your interpretation is the correct one. Let's double-check.
Suppose we set this bus flag in the panel/mode definition:
drm/drm_connector.h:
/* drive data on pos. edge */
#define DRM_BUS_FLAG_PIXDATA_POSEDGE (1<<2)
According to your interpretation, this means we're asking the data to change
on the positive edge, and be stable on the negative edge. Correct?
then clk_pol == 1:
drivers/gpu/drm/imx/ipuv3-crtc.c:
sig_cfg.clk_pol = !!(imx_crtc_state->bus_flags &
DRM_BUS_FLAG_PIXDATA_POSEDGE);
then DI_GENERAL bit 17 is set:
drivers/gpu/ipu-v3/ipu-di.c:
if (sig->clk_pol)
di_gen |= DI_GEN_POLARITY_DISP_CLK;
and data is stable on the pixel clock's falling edge, as we observed on
the oscilloscope.
All good. Thank you !
next reply other threads:[~2018-10-25 18:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-25 18:15 thesven73 [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-10-25 16:17 thesven73
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=20181025181518.4433-1-TheSven73@googlemail.com \
--to=thesven73@gmail.com \
--cc=denis@eukrea.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=rmk+kernel@arm.linux.org.uk \
--cc=svendev@arcx.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®