linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: s.hauer@pengutronix.de (Sascha Hauer)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 2/3] ARM: dts: imx6qdl-wandboard: Add HDMI support
Date: Wed, 16 Oct 2013 09:20:59 +0200	[thread overview]
Message-ID: <20131016072059.GD17135@pengutronix.de> (raw)
In-Reply-To: <20131015103500.GY25034@n2100.arm.linux.org.uk>

On Tue, Oct 15, 2013 at 11:35:00AM +0100, Russell King - ARM Linux wrote:
> On Tue, Oct 15, 2013 at 10:18:30AM +0100, Russell King - ARM Linux wrote:
> > On Tue, Oct 15, 2013 at 09:46:18AM +0200, Sascha Hauer wrote:
> > > This sounds like the wrong clock polarity. Could you try inverting
> > > sig_cfg.clk_pol in imx-drm/ipuv3-crtc.c?
> > 
> > I tweaked it a different way - I used devmem2 to directly poke at the
> > register.  Inverting bit 17 (iow, clearing it) seems to fix the
> > problem.
> 
> As a follow-up, the driver says this:
> 
>         unsigned clk_pol:1;     /* true = rising edge */
> 
> This is interpreted by the ipu-di.c driver as:
> 
>         if (!sig->clk_pol)
>                 di_gen |= DI_GEN_POLARITY_DISP_CLK;
> 
> note the inversion.  U-boot does something slightly different here
> (apparantly it describes clk_pol in the same way though):
> 
>                 if (sig.clk_pol)
>                         di_gen |= DI_GEN_POL_CLK;
> 
> It's also reported that u-boot sets sig.clk_pol when
> FB_SYNC_CLK_LAT_FALL bit is not set (which confirms that clk_pol
> indicates rising edge active.)
> 
> Now, the confusing bit.  The docs for the imx6s/dl say that bit 17
> when set is "active high" vs clear "active low".  This appears to
> define a level active state.  The code seems to define an edge
> instead.  What's more is that u-boot and the kernel seem to describe
> 'clk_pol' in the same way yet interpret it differently.
> 
> Should that inversion in the kernel be there?

I could measure the pin with an oscilloscope on some board using
the parallel display output. That should how this bit really behaves
and we can cleanup the comments and/or code.

Won't have time for this before Edinburgh though.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

  reply	other threads:[~2013-10-16  7:20 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1380826287-30253-1-git-send-email-fabio.estevam@freescale.com>
2013-10-03 18:51 ` [PATCH v2 2/3] ARM: dts: imx6qdl-wandboard: Add HDMI support Fabio Estevam
2013-10-14 17:38   ` Russell King - ARM Linux
2013-10-15  2:47     ` Fabio Estevam
2013-10-15 10:00       ` Russell King - ARM Linux
2013-10-15 10:09         ` Sascha Hauer
2013-10-14 17:40   ` Russell King - ARM Linux
2013-10-14 22:50     ` Russell King - ARM Linux
2013-10-15  3:20       ` Fabio Estevam
2013-10-15  7:46       ` Sascha Hauer
2013-10-15  9:18         ` Russell King - ARM Linux
2013-10-15 10:35           ` Russell King - ARM Linux
2013-10-16  7:20             ` Sascha Hauer [this message]
2013-10-03 18:51 ` [PATCH v2 3/3] ARM: dts: imx6qdl-sabresd: " Fabio Estevam
2013-10-03 20:27 ` [PATCH v2 1/3] imx-drm: Add mx6 hdmi transmitter support Dan Carpenter
2013-10-15 13:10   ` Russell King - ARM Linux
2013-10-15 13:17     ` Fabio Estevam
2013-10-16 17:03       ` Russell King - ARM Linux
2013-10-16 18:07         ` Russell King - ARM Linux
2013-10-16 18:31           ` Greg Kroah-Hartman
2013-10-16 19:02             ` Russell King - ARM Linux
2013-10-16 21:20               ` Sascha Hauer
2013-10-17  8:27               ` Lucas Stach
2013-10-20  0:04             ` Russell King - ARM Linux
2013-10-20 13:00               ` Russell King - ARM Linux
2013-10-20 16:31                 ` Russell King - ARM Linux
2013-10-20 21:56                   ` Russell King - ARM Linux
2013-10-20  9:32             ` Russell King - ARM Linux
2013-10-16 19:37         ` Troy Kisky
2013-10-16 20:27           ` Russell King - ARM Linux
2013-10-16 21:03             ` Troy Kisky
2013-10-16 22:27               ` Russell King - ARM Linux
2013-10-17  8:45       ` Russell King - ARM Linux
2013-10-03 20:48 ` Greg KH

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=20131016072059.GD17135@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).