From: Thierry Reding <thierry.reding@gmail.com>
To: Fabio Estevam <festevam@gmail.com>
Cc: Marek Vasut <marex@denx.de>,
Fabio Estevam <fabio.estevam@nxp.com>,
Breno Matheus Lima <breno.lima@nxp.com>,
DRI mailing list <dri-devel@lists.freedesktop.org>,
Breno Matheus Lima <brenomatheus@gmail.com>
Subject: Re: drm: panel-simple: Problems to use Seiko 43WVF1G panel and DRM_MXS driver on the i.MX6SX SabreSD.
Date: Wed, 1 Feb 2017 17:54:59 +0100 [thread overview]
Message-ID: <20170201165459.GE18725@ulmo.ba.sec> (raw)
In-Reply-To: <CAOMZO5DZfZfjD8ZO0TXrw0eHK4bT5agM62FBZ2w8vZ66Jo5EDA@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1979 bytes --]
On Wed, Feb 01, 2017 at 02:48:55PM -0200, Fabio Estevam wrote:
> On Wed, Feb 1, 2017 at 2:04 PM, Breno Matheus Lima
> <brenomatheus@gmail.com> wrote:
> > Hi,
> >
> > I'm trying to use the Seiko 43WVF1G panel (Datasheet link:
> > http://www.glyn.de/data/glyn/media/doc/43wvf1g-0.pdf) and the DRM_MXS driver
> > on
> > the i.MX6SX SabreSD. Applying the patch below removes the old
> > timing configuration on the dtsi and adds it to the panel-simple.c
> > I can get the display working, but the image is out of place. Another point
> > to
> > note is that it's necessary to set the reg_lcd_3v3 to regulator-always-on
> > otherwise the gpio3 27 does not get enabled.
> >
> > The main two problems that I'm having at the moment are:
> >
> > - Gpio3 27 is not being set by the driver, function
> > panel_simple_prepare(struct drm_panel *panel) is not being called.
>
> With the change below the regulator can be properly turned on:
>
> --- a/drivers/gpu/drm/mxsfb/mxsfb_drv.c
> +++ b/drivers/gpu/drm/mxsfb/mxsfb_drv.c
> @@ -103,12 +103,16 @@ static void mxsfb_pipe_enable(struct
> drm_simple_display_pipe *pipe,
> struct mxsfb_drm_private *mxsfb = drm_pipe_to_mxsfb_drm_private(pipe);
>
> mxsfb_crtc_enable(mxsfb);
> + drm_panel_prepare(mxsfb->panel);
> + drm_panel_enable(mxsfb->panel);
Typically the sequence would be:
drm_panel_prepare();
mxsfb_crtc_enable();
drm_panel_enable();
> }
>
> static void mxsfb_pipe_disable(struct drm_simple_display_pipe *pipe)
> {
> struct mxsfb_drm_private *mxsfb = drm_pipe_to_mxsfb_drm_private(pipe);
>
> + drm_panel_disable(mxsfb->panel);
> + drm_panel_unprepare(mxsfb->panel);
> mxsfb_crtc_disable(mxsfb);
> }
And this would probably have to be:
drm_panel_disable();
mxsfb_crtc_disable();
drm_panel_unprepare();
See the kerneldoc for struct drm_panel_funcs (include/drm/drm_panel.h)
for more details.
Thierry
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2017-02-01 16:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-01 16:04 drm: panel-simple: Problems to use Seiko 43WVF1G panel and DRM_MXS driver on the i.MX6SX SabreSD Breno Matheus Lima
2017-02-01 16:48 ` Fabio Estevam
2017-02-01 16:54 ` Thierry Reding [this message]
2017-02-01 16:52 ` Thierry Reding
2017-02-01 17:10 ` Marek Vasut
2017-02-02 18:13 ` Fabio Estevam
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=20170201165459.GE18725@ulmo.ba.sec \
--to=thierry.reding@gmail.com \
--cc=breno.lima@nxp.com \
--cc=brenomatheus@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=fabio.estevam@nxp.com \
--cc=festevam@gmail.com \
--cc=marex@denx.de \
/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.