All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] ARM: shmobile: dts: Add common file for AA121TD01 panel
Date: Mon, 27 Jul 2015 11:01:29 +0000	[thread overview]
Message-ID: <2227416.9VeFxpF072@avalon> (raw)
In-Reply-To: <87bnf2rle6.wl%kuninori.morimoto.gx@renesas.com>

Hello Morimoto-san,

Thank you for the patch.

On Friday 24 July 2015 08:52:02 Kuninori Morimoto wrote:
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> 
> The Mitsubishi AA121TD01 panel is commonly used with the Marzen, Lager
> and Koelsch boards. Create a .dtsi file that describe the panel and its
> connection to the board.
> 
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> ---
>  arch/arm/boot/dts/r8a77xx-aa121td01-panel.dtsi | 41 +++++++++++++++++++++++
>  1 file changed, 41 insertions(+)
>  create mode 100644 arch/arm/boot/dts/r8a77xx-aa121td01-panel.dtsi
> 
> diff --git a/arch/arm/boot/dts/r8a77xx-aa121td01-panel.dtsi
> b/arch/arm/boot/dts/r8a77xx-aa121td01-panel.dtsi new file mode 100644
> index 0000000..4261e6f
> --- /dev/null
> +++ b/arch/arm/boot/dts/r8a77xx-aa121td01-panel.dtsi
> @@ -0,0 +1,41 @@
> +/*
> + * Common file for the AA121TD01 panel connected to Renesas R-Car boards
> + *
> + * Copyright (C) 2015 Renesas Electronics Corp.
> + *
> + * This file is licensed under the terms of the GNU General Public License
> + * version 2.  This program is licensed "as is" without any warranty of any
> + * kind, whether express or implied.
> + */
> +
> +/ {
> +	panel {
> +		compatible = "mitsubishi,aa121td01", "panel-dpi";
> +
> +		width-mm = <260>;
> +		height-mm = <165>;

According to 
http://www.eurocomposant.fr/index.php/fr/content/download/4476/46559/file/AA121TD01.pdf 
the display size is 261mm x 163mm.

> +
> +		panel-timing {
> +			/* 1280x800 @71Hz */

With a 71MHz clock, using the typical timings from the above datasheet, the 
vertical refresh frequency will be 60Hz, not 71Hz.

> +			clock-frequency = <71000000>;
> +			hactive = <1280>;
> +			vactive = <800>;
> +			hsync-len = <160>;
> +			hfront-porch = <64>;
> +			hback-porch = <96>;
> +			vfront-porch = <9>;
> +			vback-porch = <15>;
> +			vsync-len = <24>;

Still according to the same datasheet, the typical total horizontal blanking 
time is 160 clock cycles. This is the sum of hsync-len, hfront-porch and 
hback-porch. This patch sets the horizontal blanking time to 320 instead (160 
+ 64 + 96). Similarly, for the vertical direction, the total should be 23, not 
48. The above values would lead to a 52Hz vertical refresh frequency.

> +		};
> +
> +		port {
> +			panel_in: endpoint {
> +				remote-endpoint = <&lvds_connector>;
> +			};
> +		};
> +	};
> +};
> +
> +&lvds_connector {
> +	remote-endpoint = <&panel_in>;
> +};

-- 
Regards,

Laurent Pinchart


  parent reply	other threads:[~2015-07-27 11:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-24  8:52 [PATCH] ARM: shmobile: dts: Add common file for AA121TD01 panel Kuninori Morimoto
2015-07-27  5:18 ` Magnus Damm
2015-07-27  6:20 ` Simon Horman
2015-07-27 11:01 ` Laurent Pinchart [this message]
2015-07-28  3:44 ` Magnus Damm
2015-07-28  4:23 ` Simon Horman

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=2227416.9VeFxpF072@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=linux-sh@vger.kernel.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.