The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Neil Armstrong <neil.armstrong@linaro.org>
To: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>,
	Marek Vasut <marex@denx.de>,
	Andrzej Hajda <andrzej.hajda@intel.com>,
	Robert Foss <rfoss@kernel.org>,
	Laurent Pinchart <Laurent.pinchart@ideasonboard.com>,
	Jonas Karlman <jonas@kwiboo.se>,
	Jernej Skrabec <jernej.skrabec@gmail.com>,
	Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	Maxime Ripard <mripard@kernel.org>,
	Thomas Zimmermann <tzimmermann@suse.de>,
	David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>
Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
	Dave Stevenson <dave.stevenson@raspberrypi.com>
Subject: Re: [PATCH v3 13/13] drm/panel-simple: Fix powertip,ph800480t013-idf02 timings
Date: Mon, 18 May 2026 16:01:27 +0200	[thread overview]
Message-ID: <b74dfbae-4e12-448d-a818-b2dd4f00a5d8@linaro.org> (raw)
In-Reply-To: <20260513-tc358762-fixes-v3-13-6698b55008b9@ideasonboard.com>

On 5/13/26 15:10, Tomi Valkeinen wrote:
> The powertip,ph800480t013-idf02 panel was added to panel-simple, and
> with the tc358762 driver, enabled the use of RaspberryPi 7" DSI display.
> 
> I have been testing the RaspberryPi 7" DSI display module with TI's
> BeagleY-AI, and I can't get a good image with the current panel timings.
> 
> It's been quite difficult to figure out exactly what are the issues.
> Possibly RPi DSI TX and TI DSI TX have their own quirks which affect
> this also. However, now that the tc358762 driver has been fixed wrt. the
> signal timings it sends, this patch makes the panel work fine on
> BeagleY-AI.
> 
> Fix the timings according to the datasheet:
> 
> - hsw + hbp must equal to 46. This was correct in the timings, but the
>    hsw was very tight, and at least Cadence DSI has trouble with such
>    short hsync. Increase hsw to the middle of the hsw range from the
>    datasheet, and decrease hbp accordingly.
> - vsw + vbp must equal to 23. This was 24, resulting in slight shift in
>    the image.
> - The upstream timings seemed to aim for 50 fps, but this is a normal 60
>    fps panel, so adjust the timings to get 60 fps. As there's no strict
>    rule what numbers to pick here, I used the "typical" values from panel
>    datasheet for pclk, hfp and vfp. However, vfp of 23 instead of the
>    datasheet's 22 give us a closer match to 60 fps, so I used that.
> 
> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
> ---
>   drivers/gpu/drm/panel/panel-simple.c | 14 +++++++-------
>   1 file changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
> index 91ab280869ba..16aeafd2b02e 100644
> --- a/drivers/gpu/drm/panel/panel-simple.c
> +++ b/drivers/gpu/drm/panel/panel-simple.c
> @@ -4041,15 +4041,15 @@ static const struct panel_desc powertip_ph128800t006_zhc01 = {
>   };
>   
>   static const struct drm_display_mode powertip_ph800480t013_idf02_mode = {
> -	.clock = 24750,
> +	.clock = 33333,
>   	.hdisplay = 800,
> -	.hsync_start = 800 + 54,
> -	.hsync_end = 800 + 54 + 2,
> -	.htotal = 800 + 54 + 2 + 44,
> +	.hsync_start = 800 + 210,
> +	.hsync_end = 800 + 210 + 20,
> +	.htotal = 800 + 210 + 20 + 26,
>   	.vdisplay = 480,
> -	.vsync_start = 480 + 49,
> -	.vsync_end = 480 + 49 + 2,
> -	.vtotal = 480 + 49 + 2 + 22,
> +	.vsync_start = 480 + 23,
> +	.vsync_end = 480 + 23 + 2,
> +	.vtotal = 480 + 23 + 2 + 21,
>   	.flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
>   };
>   
> 

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>

Thanks,
Neil

      reply	other threads:[~2026-05-18 14:01 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-13 13:10 [PATCH v3 00/13] drm/bridge: tc358762: Various small fixes Tomi Valkeinen
2026-05-13 13:10 ` [PATCH v3 01/13] drm/bridge: tc358762: Clean up register defines Tomi Valkeinen
2026-05-13 13:10 ` [PATCH v3 02/13] drm/bridge: tc358762: Improve SYSCTRL " Tomi Valkeinen
2026-05-13 13:10 ` [PATCH v3 03/13] drm/bridge: tc358762: Improve LCDCTRL defines Tomi Valkeinen
2026-05-13 13:10 ` [PATCH v3 04/13] drm/bridge: tc358762: Configure SYSCTRL first Tomi Valkeinen
2026-05-13 13:10 ` [PATCH v3 05/13] drm/bridge: tc358762: Drop SPICMR write Tomi Valkeinen
2026-05-29 18:42   ` Andreas Kemnade
2026-06-19  6:23   ` Andreas Kemnade
2026-06-21  6:41     ` Andreas Kemnade
2026-05-13 13:10 ` [PATCH v3 06/13] drm/bridge: tc358762: Improve DPI enable handling Tomi Valkeinen
2026-05-13 13:10 ` [PATCH v3 07/13] drm/bridge: tc358762: Update comment about the number of lanes Tomi Valkeinen
2026-05-29 18:34   ` Andreas Kemnade
2026-05-13 13:10 ` [PATCH v3 08/13] drm/bridge: tc358762: Support VTG Tomi Valkeinen
2026-06-21  6:51   ` Andreas Kemnade
2026-05-13 13:10 ` [PATCH v3 09/13] drm/bridge: tc358762: Fix sync polarities Tomi Valkeinen
2026-05-13 13:10 ` [PATCH v3 10/13] drm/bridge: tc358762: Move tc358762_init() into tc358762_enable() Tomi Valkeinen
2026-05-29 19:21   ` Andreas Kemnade
2026-05-13 13:10 ` [PATCH v3 11/13] drm/bridge: tc358762: Drop drm_bridge_funcs.mode_set Tomi Valkeinen
2026-05-13 13:10 ` [PATCH v3 12/13] drm/bridge: tc358762: Set DE_POL and DCLK_POL properly Tomi Valkeinen
2026-05-13 13:10 ` [PATCH v3 13/13] drm/panel-simple: Fix powertip,ph800480t013-idf02 timings Tomi Valkeinen
2026-05-18 14:01   ` Neil Armstrong [this message]

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=b74dfbae-4e12-448d-a818-b2dd4f00a5d8@linaro.org \
    --to=neil.armstrong@linaro.org \
    --cc=Laurent.pinchart@ideasonboard.com \
    --cc=airlied@gmail.com \
    --cc=andrzej.hajda@intel.com \
    --cc=dave.stevenson@raspberrypi.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jernej.skrabec@gmail.com \
    --cc=jonas@kwiboo.se \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=marex@denx.de \
    --cc=mripard@kernel.org \
    --cc=rfoss@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=tomi.valkeinen@ideasonboard.com \
    --cc=tzimmermann@suse.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox