From: Sam Ravnborg <sam@ravnborg.org>
To: Eugen.Hristev@microchip.com
Cc: mark.rutland@arm.com, devicetree@vger.kernel.org,
airlied@linux.ie, linux-kernel@vger.kernel.org,
dri-devel@lists.freedesktop.org, robh+dt@kernel.org,
thierry.reding@gmail.com, Cristian.Birsan@microchip.com,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 3/3] drm/panel: simple: add support for PDA 91-00156-A0 panel
Date: Tue, 15 Jan 2019 23:12:32 +0100 [thread overview]
Message-ID: <20190115221232.GA11283@ravnborg.org> (raw)
In-Reply-To: <1547458584-29548-4-git-send-email-eugen.hristev@microchip.com>
Hi Eugen.
Patch looks good, but a small improvement proposal.
On Mon, Jan 14, 2019 at 09:43:31AM +0000, Eugen.Hristev@microchip.com wrote:
> From: Eugen Hristev <eugen.hristev@microchip.com>
>
> PDA 91-00156-A0 5.0 is a 5.0" WVGA TFT LCD panel.
> This panel with backlight is found in PDA 5" LCD screen (TM5000 series or
> AC320005-5).
>
> Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
> ---
> drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++++++++++
> 1 file changed, 27 insertions(+)
>
> diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
> index 9c69e73..61361ba 100644
> --- a/drivers/gpu/drm/panel/panel-simple.c
> +++ b/drivers/gpu/drm/panel/panel-simple.c
> @@ -2008,6 +2008,30 @@ static const struct panel_desc ortustech_com43h4m85ulc = {
> .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_POSEDGE,
> };
>
> +static const struct drm_display_mode pda_91_00156_a0_mode = {
> + .clock = 33300,
> + .hdisplay = 800,
> + .hsync_start = 800 + 1,
> + .hsync_end = 800 + 1 + 64,
> + .htotal = 800 + 1 + 64 + 64,
> + .vdisplay = 480,
> + .vsync_start = 480 + 1,
> + .vsync_end = 480 + 1 + 23,
> + .vtotal = 480 + 1 + 23 + 22,
> + .vrefresh = 60,
> +};
.flags are omitted, as it is for many panels in simple-panel.
drm_modes.h do not document any default, so we must assume default equals no flags.
I would expect two of these as a minimum:
DRM_MODE_FLAG_PHSYNC: horizontal sync is active high.
DRM_MODE_FLAG_NHSYNC: horizontal sync is active low.
DRM_MODE_FLAG_PVSYNC: vertical sync is active high.
DRM_MODE_FLAG_NVSYNC: vertical sync is active low.
But it obviously works for a lot of panel, so one
may say why bother with it.
> +
> +static const struct panel_desc pda_91_00156_a0 = {
> + .modes = &pda_91_00156_a0_mode,
> + .num_modes = 1,
> + .size = {
> + .width = 152,
> + .height = 91,
> + },
> + .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
> +};
.bus_format is specified - good!
Consider if .bus_flags needs to be specified.
(More or less same argumentation like for .flags above).
I could not find any data-sheet on the panel,
so I could not check if it is OK that all delays are 0.
So to recap - things looks fine, but consider to be more explicit
in .flags, bus_flags, and check if it is OK that all timing parameters are 0.
Sam
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
WARNING: multiple messages have this Message-ID (diff)
From: Sam Ravnborg <sam@ravnborg.org>
To: Eugen.Hristev@microchip.com
Cc: robh+dt@kernel.org, mark.rutland@arm.com,
devicetree@vger.kernel.org, thierry.reding@gmail.com,
airlied@linux.ie, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Nicolas.Ferre@microchip.com, Cristian.Birsan@microchip.com
Subject: Re: [PATCH v2 3/3] drm/panel: simple: add support for PDA 91-00156-A0 panel
Date: Tue, 15 Jan 2019 23:12:32 +0100 [thread overview]
Message-ID: <20190115221232.GA11283@ravnborg.org> (raw)
In-Reply-To: <1547458584-29548-4-git-send-email-eugen.hristev@microchip.com>
Hi Eugen.
Patch looks good, but a small improvement proposal.
On Mon, Jan 14, 2019 at 09:43:31AM +0000, Eugen.Hristev@microchip.com wrote:
> From: Eugen Hristev <eugen.hristev@microchip.com>
>
> PDA 91-00156-A0 5.0 is a 5.0" WVGA TFT LCD panel.
> This panel with backlight is found in PDA 5" LCD screen (TM5000 series or
> AC320005-5).
>
> Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
> ---
> drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++++++++++
> 1 file changed, 27 insertions(+)
>
> diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
> index 9c69e73..61361ba 100644
> --- a/drivers/gpu/drm/panel/panel-simple.c
> +++ b/drivers/gpu/drm/panel/panel-simple.c
> @@ -2008,6 +2008,30 @@ static const struct panel_desc ortustech_com43h4m85ulc = {
> .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_POSEDGE,
> };
>
> +static const struct drm_display_mode pda_91_00156_a0_mode = {
> + .clock = 33300,
> + .hdisplay = 800,
> + .hsync_start = 800 + 1,
> + .hsync_end = 800 + 1 + 64,
> + .htotal = 800 + 1 + 64 + 64,
> + .vdisplay = 480,
> + .vsync_start = 480 + 1,
> + .vsync_end = 480 + 1 + 23,
> + .vtotal = 480 + 1 + 23 + 22,
> + .vrefresh = 60,
> +};
.flags are omitted, as it is for many panels in simple-panel.
drm_modes.h do not document any default, so we must assume default equals no flags.
I would expect two of these as a minimum:
DRM_MODE_FLAG_PHSYNC: horizontal sync is active high.
DRM_MODE_FLAG_NHSYNC: horizontal sync is active low.
DRM_MODE_FLAG_PVSYNC: vertical sync is active high.
DRM_MODE_FLAG_NVSYNC: vertical sync is active low.
But it obviously works for a lot of panel, so one
may say why bother with it.
> +
> +static const struct panel_desc pda_91_00156_a0 = {
> + .modes = &pda_91_00156_a0_mode,
> + .num_modes = 1,
> + .size = {
> + .width = 152,
> + .height = 91,
> + },
> + .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
> +};
.bus_format is specified - good!
Consider if .bus_flags needs to be specified.
(More or less same argumentation like for .flags above).
I could not find any data-sheet on the panel,
so I could not check if it is OK that all delays are 0.
So to recap - things looks fine, but consider to be more explicit
in .flags, bus_flags, and check if it is OK that all timing parameters are 0.
Sam
next prev parent reply other threads:[~2019-01-15 22:12 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-14 9:43 [PATCH v2 0/3] drm: Add panel support for PDA 91-00156-A0 Eugen.Hristev
2019-01-14 9:43 ` Eugen.Hristev
2019-01-14 9:43 ` Eugen.Hristev
2019-01-14 9:43 ` [PATCH v2 1/3] dt-bindings: add vendor prefix for PDA Precision Design Associates, Inc Eugen.Hristev
2019-01-14 9:43 ` Eugen.Hristev
2019-01-14 9:43 ` Eugen.Hristev
2019-01-15 22:06 ` Sam Ravnborg
2019-01-15 22:06 ` Sam Ravnborg
2019-01-15 22:06 ` Sam Ravnborg
2019-01-28 16:17 ` Thierry Reding
2019-01-28 16:17 ` Thierry Reding
2019-01-28 16:17 ` Thierry Reding
2019-01-14 9:43 ` [PATCH v2 2/3] dt-bindings: drm/panel: simple: add support for PDA 91-00156-A0 Eugen.Hristev
2019-01-14 9:43 ` Eugen.Hristev
2019-01-14 9:43 ` Eugen.Hristev
2019-01-16 21:09 ` Rob Herring
2019-01-16 21:09 ` Rob Herring
2019-01-16 21:09 ` Rob Herring
2019-01-28 16:17 ` Thierry Reding
2019-01-28 16:17 ` Thierry Reding
2019-01-28 16:17 ` Thierry Reding
2019-01-14 9:43 ` [PATCH v2 3/3] drm/panel: simple: add support for PDA 91-00156-A0 panel Eugen.Hristev
2019-01-14 9:43 ` Eugen.Hristev
2019-01-14 9:43 ` Eugen.Hristev
2019-01-15 22:12 ` Sam Ravnborg [this message]
2019-01-15 22:12 ` Sam Ravnborg
2019-01-28 16:18 ` Thierry Reding
2019-01-28 16:18 ` Thierry Reding
2019-01-28 16:18 ` Thierry Reding
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=20190115221232.GA11283@ravnborg.org \
--to=sam@ravnborg.org \
--cc=Cristian.Birsan@microchip.com \
--cc=Eugen.Hristev@microchip.com \
--cc=airlied@linux.ie \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
--cc=thierry.reding@gmail.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.