All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thierry Reding <thierry.reding@gmail.com>
To: Rob Clark <robdclark@gmail.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm/panel/simple: add optronics B101XTN01.0
Date: Thu, 7 Aug 2014 09:33:27 +0200	[thread overview]
Message-ID: <20140807073326.GF17340@ulmo> (raw)
In-Reply-To: <1407357090-3801-1-git-send-email-robdclark@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2409 bytes --]

On Wed, Aug 06, 2014 at 04:31:30PM -0400, Rob Clark wrote:
> LVDS panel, make/model described as:
> 
> AU Optronics Corporation - B101XTN01.0 (H/W:0A)
> 
> See:
> http://www.encore-electronic.com/media/B101XTN01.0.pdf

I've made it a custom to mention which board a panel is used on in the
commit message and I've requested others to do the same. The idea was
that it would give some kind of indication where to find the hardware if
somebody wanted to test or look at for reference.

> 
> Signed-off-by: Rob Clark <robdclark@gmail.com>
> ---
>  drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++++++++++
>  1 file changed, 27 insertions(+)

This is missing device tree binding documentation.

> 
> diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
> index a251361..16119ba 100644
> --- a/drivers/gpu/drm/panel/panel-simple.c
> +++ b/drivers/gpu/drm/panel/panel-simple.c
> @@ -447,6 +447,29 @@ static const struct panel_desc samsung_ltn101nt05 = {
>  	},
>  };
>  
> +static const struct drm_display_mode optronics_lvds_mode = {

Can you please name this according to the model for consistency with
other panels?

> +	.clock = 72000,
> +	.hdisplay = 1366,
> +	.hsync_start = 1366 + 20,
> +	.hsync_end = 1366 + 20 + 70,
> +	.htotal = 1366 + 20 + 70,
> +	.vdisplay = 768,
> +	.vsync_start = 768 + 14,
> +	.vsync_end = 768 + 14 + 42,
> +	.vtotal = 768 + 14 + 42,
> +	.vrefresh = 60,
> +	.flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
> +};
> +
> +static const struct panel_desc optronics_lvds = {
> +	.modes = &optronics_lvds_mode,
> +	.num_modes = 1,
> +	.size = {
> +		.width = 1366,
> +		.height = 768,

This needs to be the physical dimension in mm.

> +	},
> +};

There's now also a new field called .bpc which contains the number of
bits per color (usually 6 or 8). Can you provide that as well? According
to the datasheet you linked to it should be 6.

> +
>  static const struct of_device_id platform_of_match[] = {
>  	{
>  		.compatible = "auo,b101aw03",
> @@ -476,6 +499,10 @@ static const struct of_device_id platform_of_match[] = {
>  		.compatible = "samsung,ltn101nt05",
>  		.data = &samsung_ltn101nt05,
>  	}, {
> +		.compatible = "optronics,b101xtn01",

From the commit message this panel is from AU Optronics, so it should
use the auo vendor prefix.

Thierry

[-- Attachment #1.2: Type: application/pgp-signature, Size: 819 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2014-08-07  7:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-06 20:31 [PATCH] drm/panel/simple: add optronics B101XTN01.0 Rob Clark
2014-08-06 20:40 ` Rob Clark
2014-08-07  7:33 ` Thierry Reding [this message]
2014-08-07 12:50   ` Rob Clark
2014-08-07 15:08     ` 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=20140807073326.GF17340@ulmo \
    --to=thierry.reding@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=robdclark@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.