From: a.hajda@samsung.com (Andrzej Hajda)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v12][ 07/12] drm: drm_display_mode: add signal polarity flags
Date: Tue, 08 Apr 2014 08:36:05 +0200 [thread overview]
Message-ID: <534398D5.4090600@samsung.com> (raw)
In-Reply-To: <1396874691-27954-7-git-send-email-denis@eukrea.com>
Hi Denis,
On 04/07/2014 02:44 PM, Denis Carikli wrote:
> We need a way to pass signal polarity informations
> between DRM panels, and the display drivers.
>
> To do that, a pol_flags field was added to drm_display_mode.
>
> Signed-off-by: Denis Carikli <denis@eukrea.com>
> ---
> ChangeLog v11->v12:
> - Rebased: This patch now applies against drm_modes.h
> - Rebased: It now uses the new DRM_MODE_FLAG_POL_DE flags defines names
>
> ChangeLog v10->v11:
> - Since the imx-drm won't be able to retrive its regulators
> from the device tree when using display-timings nodes,
> and that I was told that the drm simple-panel driver
> already supported that, I then, instead, added what was
> lacking to make the eukrea displays work with the
> drm-simple-panel driver.
>
> That required a way to get back the display polarity
> informations from the imx-drm driver without affecting
> userspace.
> ---
> include/drm/drm_modes.h | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/include/drm/drm_modes.h b/include/drm/drm_modes.h
> index 2dbbf99..b3789e2 100644
> --- a/include/drm/drm_modes.h
> +++ b/include/drm/drm_modes.h
> @@ -93,6 +93,13 @@ enum drm_mode_status {
>
> #define DRM_MODE_FLAG_3D_MAX DRM_MODE_FLAG_3D_SIDE_BY_SIDE_HALF
>
> +#define DRM_MODE_FLAG_POL_PIXDATA_NEGEDGE BIT(1)
> +#define DRM_MODE_FLAG_POL_PIXDATA_POSEDGE BIT(2)
> +#define DRM_MODE_FLAG_POL_PIXDATA_PRESERVE BIT(3)
What is the purpose of DRM_MODE_FLAG_POL_PIXDATA_PRESERVE?
If 'preserve' means 'ignore' we can set to zero negedge and posedge bits
instead of adding new bit. If it is something different please describe it.
> +#define DRM_MODE_FLAG_POL_DE_LOW BIT(4)
> +#define DRM_MODE_FLAG_POL_DE_HIGH BIT(5)
> +#define DRM_MODE_FLAG_POL_DE_PRESERVE BIT(6)
> +
The same comments here.
> struct drm_display_mode {
> /* Header */
> struct list_head head;
> @@ -144,6 +151,7 @@ struct drm_display_mode {
> int vrefresh; /* in Hz */
> int hsync; /* in kHz */
> enum hdmi_picture_aspect picture_aspect_ratio;
> + unsigned int pol_flags;
Adding field and macros description to the DocBook would be nice.
Regards
Andrzej
> };
>
> /* mode specified on the command line */
>
WARNING: multiple messages have this Message-ID (diff)
From: Andrzej Hajda <a.hajda@samsung.com>
To: Denis Carikli <denis@eukrea.com>, Philipp Zabel <p.zabel@pengutronix.de>
Cc: devel@driverdev.osuosl.org,
"Russell King" <linux@arm.linux.org.uk>,
"Eric Bénard" <eric@eukrea.com>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org,
"Laurent Pinchart" <laurent.pinchart@ideasonboard.com>,
"Sascha Hauer" <kernel@pengutronix.de>,
linux-arm-kernel@lists.infradead.org,
"Mauro Carvalho Chehab" <m.chehab@samsung.com>
Subject: Re: [PATCH v12][ 07/12] drm: drm_display_mode: add signal polarity flags
Date: Tue, 08 Apr 2014 08:36:05 +0200 [thread overview]
Message-ID: <534398D5.4090600@samsung.com> (raw)
In-Reply-To: <1396874691-27954-7-git-send-email-denis@eukrea.com>
Hi Denis,
On 04/07/2014 02:44 PM, Denis Carikli wrote:
> We need a way to pass signal polarity informations
> between DRM panels, and the display drivers.
>
> To do that, a pol_flags field was added to drm_display_mode.
>
> Signed-off-by: Denis Carikli <denis@eukrea.com>
> ---
> ChangeLog v11->v12:
> - Rebased: This patch now applies against drm_modes.h
> - Rebased: It now uses the new DRM_MODE_FLAG_POL_DE flags defines names
>
> ChangeLog v10->v11:
> - Since the imx-drm won't be able to retrive its regulators
> from the device tree when using display-timings nodes,
> and that I was told that the drm simple-panel driver
> already supported that, I then, instead, added what was
> lacking to make the eukrea displays work with the
> drm-simple-panel driver.
>
> That required a way to get back the display polarity
> informations from the imx-drm driver without affecting
> userspace.
> ---
> include/drm/drm_modes.h | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/include/drm/drm_modes.h b/include/drm/drm_modes.h
> index 2dbbf99..b3789e2 100644
> --- a/include/drm/drm_modes.h
> +++ b/include/drm/drm_modes.h
> @@ -93,6 +93,13 @@ enum drm_mode_status {
>
> #define DRM_MODE_FLAG_3D_MAX DRM_MODE_FLAG_3D_SIDE_BY_SIDE_HALF
>
> +#define DRM_MODE_FLAG_POL_PIXDATA_NEGEDGE BIT(1)
> +#define DRM_MODE_FLAG_POL_PIXDATA_POSEDGE BIT(2)
> +#define DRM_MODE_FLAG_POL_PIXDATA_PRESERVE BIT(3)
What is the purpose of DRM_MODE_FLAG_POL_PIXDATA_PRESERVE?
If 'preserve' means 'ignore' we can set to zero negedge and posedge bits
instead of adding new bit. If it is something different please describe it.
> +#define DRM_MODE_FLAG_POL_DE_LOW BIT(4)
> +#define DRM_MODE_FLAG_POL_DE_HIGH BIT(5)
> +#define DRM_MODE_FLAG_POL_DE_PRESERVE BIT(6)
> +
The same comments here.
> struct drm_display_mode {
> /* Header */
> struct list_head head;
> @@ -144,6 +151,7 @@ struct drm_display_mode {
> int vrefresh; /* in Hz */
> int hsync; /* in kHz */
> enum hdmi_picture_aspect picture_aspect_ratio;
> + unsigned int pol_flags;
Adding field and macros description to the DocBook would be nice.
Regards
Andrzej
> };
>
> /* mode specified on the command line */
>
WARNING: multiple messages have this Message-ID (diff)
From: Andrzej Hajda <a.hajda@samsung.com>
To: Denis Carikli <denis@eukrea.com>, Philipp Zabel <p.zabel@pengutronix.de>
Cc: "Eric Bénard" <eric@eukrea.com>,
"Shawn Guo" <shawn.guo@linaro.org>,
"Sascha Hauer" <kernel@pengutronix.de>,
linux-arm-kernel@lists.infradead.org,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
devel@driverdev.osuosl.org,
"Mauro Carvalho Chehab" <m.chehab@samsung.com>,
"Russell King" <linux@arm.linux.org.uk>,
linux-media@vger.kernel.org,
"Laurent Pinchart" <laurent.pinchart@ideasonboard.com>,
dri-devel@lists.freedesktop.org,
"David Airlie" <airlied@linux.ie>
Subject: Re: [PATCH v12][ 07/12] drm: drm_display_mode: add signal polarity flags
Date: Tue, 08 Apr 2014 08:36:05 +0200 [thread overview]
Message-ID: <534398D5.4090600@samsung.com> (raw)
In-Reply-To: <1396874691-27954-7-git-send-email-denis@eukrea.com>
Hi Denis,
On 04/07/2014 02:44 PM, Denis Carikli wrote:
> We need a way to pass signal polarity informations
> between DRM panels, and the display drivers.
>
> To do that, a pol_flags field was added to drm_display_mode.
>
> Signed-off-by: Denis Carikli <denis@eukrea.com>
> ---
> ChangeLog v11->v12:
> - Rebased: This patch now applies against drm_modes.h
> - Rebased: It now uses the new DRM_MODE_FLAG_POL_DE flags defines names
>
> ChangeLog v10->v11:
> - Since the imx-drm won't be able to retrive its regulators
> from the device tree when using display-timings nodes,
> and that I was told that the drm simple-panel driver
> already supported that, I then, instead, added what was
> lacking to make the eukrea displays work with the
> drm-simple-panel driver.
>
> That required a way to get back the display polarity
> informations from the imx-drm driver without affecting
> userspace.
> ---
> include/drm/drm_modes.h | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/include/drm/drm_modes.h b/include/drm/drm_modes.h
> index 2dbbf99..b3789e2 100644
> --- a/include/drm/drm_modes.h
> +++ b/include/drm/drm_modes.h
> @@ -93,6 +93,13 @@ enum drm_mode_status {
>
> #define DRM_MODE_FLAG_3D_MAX DRM_MODE_FLAG_3D_SIDE_BY_SIDE_HALF
>
> +#define DRM_MODE_FLAG_POL_PIXDATA_NEGEDGE BIT(1)
> +#define DRM_MODE_FLAG_POL_PIXDATA_POSEDGE BIT(2)
> +#define DRM_MODE_FLAG_POL_PIXDATA_PRESERVE BIT(3)
What is the purpose of DRM_MODE_FLAG_POL_PIXDATA_PRESERVE?
If 'preserve' means 'ignore' we can set to zero negedge and posedge bits
instead of adding new bit. If it is something different please describe it.
> +#define DRM_MODE_FLAG_POL_DE_LOW BIT(4)
> +#define DRM_MODE_FLAG_POL_DE_HIGH BIT(5)
> +#define DRM_MODE_FLAG_POL_DE_PRESERVE BIT(6)
> +
The same comments here.
> struct drm_display_mode {
> /* Header */
> struct list_head head;
> @@ -144,6 +151,7 @@ struct drm_display_mode {
> int vrefresh; /* in Hz */
> int hsync; /* in kHz */
> enum hdmi_picture_aspect picture_aspect_ratio;
> + unsigned int pol_flags;
Adding field and macros description to the DocBook would be nice.
Regards
Andrzej
> };
>
> /* mode specified on the command line */
>
next prev parent reply other threads:[~2014-04-08 6:36 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-07 12:44 [PATCH v12][ 01/12] [media] v4l2: add new V4L2_PIX_FMT_RGB666 pixel format Denis Carikli
2014-04-07 12:44 ` Denis Carikli
2014-04-07 12:44 ` [PATCH v12][ 02/12] imx-drm: Add RGB666 support for parallel display Denis Carikli
2014-04-07 12:44 ` Denis Carikli
2014-04-07 12:44 ` Denis Carikli
2014-04-07 12:44 ` [PATCH v12][ 03/12] imx-drm: Correct BGR666 and the board's dts that use them Denis Carikli
2014-04-07 12:44 ` Denis Carikli
2014-04-08 12:43 ` Russell King - ARM Linux
2014-04-08 12:43 ` Russell King - ARM Linux
2014-04-08 12:43 ` Russell King - ARM Linux
2014-04-07 12:44 ` [PATCH v12][ 04/12] imx-drm: Match ipu_di_signal_cfg's clk_pol with its description Denis Carikli
2014-04-07 12:44 ` Denis Carikli
2014-04-07 12:44 ` [PATCH v12][ 05/12] imx-drm: use defines for clock polarity settings Denis Carikli
2014-04-07 12:44 ` Denis Carikli
2014-04-07 12:44 ` [PATCH v12][ 06/12] ARM: dts: imx5*, imx6*: correct display-timings nodes Denis Carikli
2014-04-07 12:44 ` Denis Carikli
2014-04-08 11:44 ` Shawn Guo
2014-04-08 11:44 ` Shawn Guo
2014-04-09 6:23 ` Lothar Waßmann
2014-04-09 6:23 ` Lothar Waßmann
2014-04-09 6:23 ` Lothar Waßmann
2014-04-07 12:44 ` [PATCH v12][ 07/12] drm: drm_display_mode: add signal polarity flags Denis Carikli
2014-04-07 12:44 ` Denis Carikli
2014-04-08 6:36 ` Andrzej Hajda [this message]
2014-04-08 6:36 ` Andrzej Hajda
2014-04-08 6:36 ` Andrzej Hajda
2014-04-08 8:08 ` Denis Carikli
2014-04-08 8:08 ` Denis Carikli
2014-04-08 10:02 ` Andrzej Hajda
2014-04-08 10:02 ` Andrzej Hajda
2014-04-08 10:02 ` Andrzej Hajda
2014-04-07 12:44 ` [PATCH v12][ 08/12] imx-drm: Use drm_display_mode timings flags Denis Carikli
2014-04-07 12:44 ` Denis Carikli
2014-04-07 12:44 ` [PATCH v12][ 09/12] drm/panel: Add Eukrea mbimxsd51 displays Denis Carikli
2014-04-07 12:44 ` Denis Carikli
2014-04-09 12:21 ` Thierry Reding
2014-04-09 12:21 ` Thierry Reding
2014-04-09 12:21 ` Thierry Reding
2014-04-07 12:44 ` [PATCH v12][ 10/12] ARM: dts: mbimx51sd: Add display support Denis Carikli
2014-04-07 12:44 ` Denis Carikli
2014-04-07 12:44 ` [PATCH v12][ 11/12] ARM: dts: mbimx51sd: Add CMO-QVGA backlight support Denis Carikli
2014-04-07 12:44 ` Denis Carikli
2014-04-07 12:44 ` [PATCH v12][ 12/12] ARM: imx_v6_v7_defconfig: Add more drm drivers Denis Carikli
2014-04-07 12:44 ` Denis Carikli
2014-04-07 12:44 ` Denis Carikli
2014-04-08 11:47 ` Shawn Guo
2014-04-08 11:47 ` Shawn Guo
2014-04-08 11:47 ` Shawn Guo
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=534398D5.4090600@samsung.com \
--to=a.hajda@samsung.com \
--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 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.