All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: meta-freescale@yoctoproject.org
Subject: Re: Is there lcd support for imx6dl in kernel 3.17?
Date: Fri, 14 Nov 2014 06:09:03 -0700	[thread overview]
Message-ID: <5465FEEF.9030300@mlbassoc.com> (raw)
In-Reply-To: <CAOMZO5D5eSGUtWGDtA5LLtuQoH_kb-KutF6Det+8zbA_FUoS-Q@mail.gmail.com>

On 2014-11-13 14:10, Fabio Estevam wrote:
> On Thu, Nov 13, 2014 at 7:01 PM, Stefan <strawberryblack@googlemail.com> wrote:
>>> With interface-pix-fmt = "bgr666"; colors are ok,
>>> but there is some noise on the screen - looks like twinkling pixel faults.
>>> This is just the case for images in framebuffer, not for console text.
>>
>> Reason is, that pixelclk-active is not used to set value of sig_cfg.clk_pol,
>> so it's rising instead of falling edge.
>>
>> Used the following workaround:
>>
>> --- a/drivers/staging/imx-drm/ipuv3-crtc.c
>> +++ b/drivers/staging/imx-drm/ipuv3-crtc.c
>> @@ -166,7 +166,9 @@
>>          sig_cfg.Vsync_pol = 1;
>>
>>      sig_cfg.enable_pol = 1;
>> -   sig_cfg.clk_pol = 0;
>> +   sig_cfg.clk_pol = 0; /* rising edge */
>> +   if (mode->private_flags & DRM_MODE_FLAG_PCSYNC) /* falling edge  */
>> +       sig_cfg.clk_pol = 1;
>>      sig_cfg.width = mode->hdisplay;
>>      sig_cfg.height = mode->vdisplay;
>>      sig_cfg.pixel_fmt = out_pixel_fmt;
>> diff --git a/drivers/staging/imx-drm/parallel-display.c
>> b/drivers/staging/imx-drm/parallel-display.c
>> index 4ca61af..bf7eee4 100644
>> --- a/drivers/staging/imx-drm/parallel-display.c
>> +++ b/drivers/staging/imx-drm/parallel-display.c
>> @@ -26,6 +26,8 @@
>>   #include <drm/drm_panel.h>
>>   #include <linux/videodev2.h>
>>   #include <video/of_display_timing.h>
>> +#include <video/videomode.h>
>> +#include <video/of_videomode.h>
>>
>>   #include "imx-drm.h"
>>
>> @@ -80,11 +82,15 @@
>>
>>      if (np) {
>>          struct drm_display_mode *mode = drm_mode_create(connector->dev);
>> +       struct videomode vm;
>>          if (!mode)
>>              return -EINVAL;
>>          of_get_drm_display_mode(np, &imxpd->mode, OF_USE_NATIVE_MODE);
>>          drm_mode_copy(mode, &imxpd->mode);
>>          mode->type |= DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED,
>> +       /* imxpd->mode.flags does not contain all flags from devicetree */
>> +       of_get_videomode(np, &vm, OF_USE_NATIVE_MODE);
>> +       mode->private_flags=vm.flags;
>>          drm_mode_probed_add(connector, mode);
>>          num_modes++;
>
> It would be nice if you could submit this as a formal patch to the
> devel@driverdev.osuosl.org list.

Stefan,

Could you also send (at least to me if you don't want to CC the list)
your final device tree that works with your LCD display?

Thanks

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


  reply	other threads:[~2014-11-14 13:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-03 17:01 Is there lcd support for imx6dl in kernel 3.17? Stefan
2014-11-03 17:09 ` Fabio Estevam
2014-11-05 17:44   ` Stefan
2014-11-05 20:44     ` Stefan
2014-11-05 20:58       ` Fabio Estevam
     [not found]         ` <CAKX08U026-E_kK5qS+PpmvAn+nT4x3fvU6kTibwaJVxFYw-Mcg@mail.gmail.com>
     [not found]           ` <CAKX08U1Rcv8qWu8caLOrT_up+VmbSAGoWzU67oZmLqs6wR+N6A@mail.gmail.com>
2014-11-06 22:06             ` Stefan
2014-11-13 21:01         ` Stefan
2014-11-13 21:10           ` Fabio Estevam
2014-11-14 13:09             ` Gary Thomas [this message]
2014-11-14 16:15               ` Stefan

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=5465FEEF.9030300@mlbassoc.com \
    --to=gary@mlbassoc.com \
    --cc=meta-freescale@yoctoproject.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.