From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: Stefan Agner <stefan@agner.ch>,
dri-devel@lists.freedesktop.org, thierry.reding@gmail.com
Cc: airlied@linux.ie, daniel.vetter@ffwll.ch,
jianwei.wang.chn@gmail.com, alison.wang@freescale.com,
meng.yi@nxp.com, linux@arm.linux.org.uk, p.zabel@pengutronix.de,
denis@eukrea.com, eric@eukrea.com, ville.syrjala@linux.intel.com,
linux-kernel@vger.kernel.org, manfred.schlaegl@gmx.at,
boris.brezillon@free-electrons.com
Subject: Re: [PATCH v2 0/3] drm: introduce bus_flags for pixel clock polarity
Date: Wed, 24 Feb 2016 13:06:39 +0200 [thread overview]
Message-ID: <56CD8EBF.9010804@ti.com> (raw)
In-Reply-To: <653e3f9d2d561a166a1768add0c59422@agner.ch>
[-- Attachment #1: Type: text/plain, Size: 1923 bytes --]
Hi,
On 24/02/16 01:30, Stefan Agner wrote:
> Any comments on this?
>
> Also added Manfred, Tomi and Boris to CC which previously attended in
> similar discussions.
>
> Previous discussions:
> http://thread.gmane.org/gmane.linux.kernel.api/12830
> http://thread.gmane.org/gmane.comp.video.dri.devel/96240/
>
> I think one of the main observation so far was that the pixel clock
> polarity is not a property of the mode, and therefor does not fit into
> the DRM_MODE_FLAG. This has been pointed out nicely by Russel:
> http://thread.gmane.org/gmane.comp.video.dri.devel/96240/focus=96260
>
> Embedded displays connected through parallel bus make use of the
> bus_formats field in drm_display_mode. This field defines what kind of
> bus format the display requires. This patch follows that idea and adds
> bus_flags. bus_flags can be used to define specific bus properties
> required by the display, such as pixel clock or data enable polarity...
I think it would be good to split the generic and fsl changes to
separate patches.
I agree that pixel clock polarity shouldn't be visible to userspace.
I had a look at MIPI DPI spec, and it says "The rising edge of PCLK is
used by the display module to capture pixel data.". So, I think that
means if the panels are MIPI DPI compatible, they should always sample
at rising edge. I'm sure there are exceptions, but that behaviour should
probably be the default, then.
I'm also a bit curious on what is "videomode". Why is sync polarity part
of it, and settable by the userspace, but not pixel clock polarity?
"videomode" is just whatever is in the CEA spec, because DRM originates
from the PC world? Is there any reason nowadays for the user to ever set
sync polarities?
For MIPI DPI panels, sync polarity is as much a property of the panel as
pixel clock polarity: there's only one correct setting for it (usually).
Tomi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: Stefan Agner <stefan@agner.ch>, <dri-devel@lists.freedesktop.org>,
<thierry.reding@gmail.com>
Cc: <airlied@linux.ie>, <daniel.vetter@ffwll.ch>,
<jianwei.wang.chn@gmail.com>, <alison.wang@freescale.com>,
<meng.yi@nxp.com>, <linux@arm.linux.org.uk>,
<p.zabel@pengutronix.de>, <denis@eukrea.com>, <eric@eukrea.com>,
<ville.syrjala@linux.intel.com>, <linux-kernel@vger.kernel.org>,
<manfred.schlaegl@gmx.at>, <boris.brezillon@free-electrons.com>
Subject: Re: [PATCH v2 0/3] drm: introduce bus_flags for pixel clock polarity
Date: Wed, 24 Feb 2016 13:06:39 +0200 [thread overview]
Message-ID: <56CD8EBF.9010804@ti.com> (raw)
In-Reply-To: <653e3f9d2d561a166a1768add0c59422@agner.ch>
[-- Attachment #1: Type: text/plain, Size: 1923 bytes --]
Hi,
On 24/02/16 01:30, Stefan Agner wrote:
> Any comments on this?
>
> Also added Manfred, Tomi and Boris to CC which previously attended in
> similar discussions.
>
> Previous discussions:
> http://thread.gmane.org/gmane.linux.kernel.api/12830
> http://thread.gmane.org/gmane.comp.video.dri.devel/96240/
>
> I think one of the main observation so far was that the pixel clock
> polarity is not a property of the mode, and therefor does not fit into
> the DRM_MODE_FLAG. This has been pointed out nicely by Russel:
> http://thread.gmane.org/gmane.comp.video.dri.devel/96240/focus=96260
>
> Embedded displays connected through parallel bus make use of the
> bus_formats field in drm_display_mode. This field defines what kind of
> bus format the display requires. This patch follows that idea and adds
> bus_flags. bus_flags can be used to define specific bus properties
> required by the display, such as pixel clock or data enable polarity...
I think it would be good to split the generic and fsl changes to
separate patches.
I agree that pixel clock polarity shouldn't be visible to userspace.
I had a look at MIPI DPI spec, and it says "The rising edge of PCLK is
used by the display module to capture pixel data.". So, I think that
means if the panels are MIPI DPI compatible, they should always sample
at rising edge. I'm sure there are exceptions, but that behaviour should
probably be the default, then.
I'm also a bit curious on what is "videomode". Why is sync polarity part
of it, and settable by the userspace, but not pixel clock polarity?
"videomode" is just whatever is in the CEA spec, because DRM originates
from the PC world? Is there any reason nowadays for the user to ever set
sync polarities?
For MIPI DPI panels, sync polarity is as much a property of the panel as
pixel clock polarity: there's only one correct setting for it (usually).
Tomi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2016-02-24 11:06 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-08 21:57 [PATCH v2 0/3] drm: introduce bus_flags for pixel clock polarity Stefan Agner
2016-02-08 21:57 ` Stefan Agner
2016-02-08 21:57 ` [PATCH v2 1/3] drm/fsl-dcu: use mode flags for hsync/vsync polarity Stefan Agner
2016-02-08 21:57 ` Stefan Agner
2016-02-25 16:48 ` Thierry Reding
2016-02-25 16:48 ` Thierry Reding
2016-02-25 23:55 ` Stefan Agner
2016-02-25 23:55 ` Stefan Agner
2016-02-08 21:57 ` [PATCH v2 2/3] drm: introduce bus_flags in drm_display_info Stefan Agner
2016-02-08 21:57 ` Stefan Agner
2016-02-08 21:57 ` [PATCH v2 3/3] drm/fsl-dcu: use bus_flags for pixel clock polarity Stefan Agner
2016-02-08 21:57 ` Stefan Agner
2016-02-23 23:30 ` [PATCH v2 0/3] drm: introduce " Stefan Agner
2016-02-23 23:30 ` Stefan Agner
2016-02-24 10:28 ` Philipp Zabel
2016-02-25 7:59 ` Manfred Schlaegl
2016-02-25 7:59 ` Manfred Schlaegl
2016-02-24 11:06 ` Tomi Valkeinen [this message]
2016-02-24 11:06 ` Tomi Valkeinen
2016-02-24 19:02 ` Stefan Agner
2016-02-24 19:02 ` Stefan Agner
2016-02-24 20:17 ` Ville Syrjälä
2016-02-24 20:17 ` Ville Syrjälä
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=56CD8EBF.9010804@ti.com \
--to=tomi.valkeinen@ti.com \
--cc=airlied@linux.ie \
--cc=alison.wang@freescale.com \
--cc=boris.brezillon@free-electrons.com \
--cc=daniel.vetter@ffwll.ch \
--cc=denis@eukrea.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=eric@eukrea.com \
--cc=jianwei.wang.chn@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=manfred.schlaegl@gmx.at \
--cc=meng.yi@nxp.com \
--cc=p.zabel@pengutronix.de \
--cc=stefan@agner.ch \
--cc=thierry.reding@gmail.com \
--cc=ville.syrjala@linux.intel.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 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.