devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Diederik de Haas" <didi.debian@cknow.org>
To: "Heiko Stübner" <heiko@sntech.de>,
	"Chris Morgan" <macroalpha82@gmail.com>,
	dri-devel@lists.freedesktop.org
Cc: <linux-rockchip@lists.infradead.org>,
	<devicetree@vger.kernel.org>, <sebastian.reichel@collabora.com>,
	<conor+dt@kernel.org>, <krzk+dt@kernel.org>, <robh@kernel.org>,
	<tzimmermann@suse.de>, <mripard@kernel.org>,
	<maarten.lankhorst@linux.intel.com>, <simona@ffwll.ch>,
	<airlied@gmail.com>, <quic_jesszhan@quicinc.com>,
	<neil.armstrong@linaro.org>, <javierm@redhat.com>, <megi@xff.cz>,
	"Chris Morgan" <macromorgan@hotmail.com>
Subject: Re: [PATCH 3/4] drm/panel: himax-hx8394: Add Support for Huiling hl055fhav028c
Date: Thu, 05 Jun 2025 14:55:08 +0200	[thread overview]
Message-ID: <DAEM5ZXWOVLM.10IJV82EMBVCK@cknow.org> (raw)
In-Reply-To: <2932680.yaVYbkx8dN@diego>

[-- Attachment #1: Type: text/plain, Size: 3517 bytes --]

On Thu Jun 5, 2025 at 2:46 PM CEST, Heiko Stübner wrote:
> Am Donnerstag, 5. Juni 2025, 13:54:50 Mitteleuropäische Sommerzeit schrieb Diederik de Haas:
>> On Tue Jun 3, 2025 at 9:39 PM CEST, Chris Morgan wrote:
>> > From: Chris Morgan <macromorgan@hotmail.com>
>> >
>> > Add support for the Huiling hl055fhav028c panel as used on the
>> > Gameforce Ace handheld gaming console. This panel uses a Himax HX8399C
>> > display controller and requires a sparsely documented vendor provided
>> > init sequence. The display resolution is 1080x1920 and is 70mm by 127mm
>> > as stated in the manufacturer's documentation.
>> >
>> > Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
>> > ---
>> >  drivers/gpu/drm/panel/panel-himax-hx8394.c | 142 +++++++++++++++++++++
>> >  1 file changed, 142 insertions(+)
>> >
>> > diff --git a/drivers/gpu/drm/panel/panel-himax-hx8394.c b/drivers/gpu/drm/panel/panel-himax-hx8394.c
>> > index ff994bf0e3cc..16e450b156b7 100644
>> > --- a/drivers/gpu/drm/panel/panel-himax-hx8394.c
>> > +++ b/drivers/gpu/drm/panel/panel-himax-hx8394.c
>> > @@ -477,6 +477,147 @@ static const struct hx8394_panel_desc mchp_ac40t08a_desc = {
>> >  	.init_sequence = mchp_ac40t08a_init_sequence,
>> >  };
>> > <snip>
>> > +
>> > +static const struct drm_display_mode hl055fhav028c_mode = {
>> > +	.hdisplay	= 1080,
>> > +	.hsync_start	= 1080 + 32,
>> > +	.hsync_end	= 1080 + 32 + 8,
>> > +	.htotal		= 1080 + 32 + 8 + 32,
>> > +	.vdisplay	= 1920,
>> > +	.vsync_start	= 1920 + 16,
>> > +	.vsync_end	= 1920 + 16 + 2,
>> > +	.vtotal		= 1920 + 16 + 2 + 14,
>> 
>> Shouldn't this be 's/14/16/' ?
>
> Could you give a reason for why you think so please, so that we
> don't dance around the perceived problem too long :-) .

Yeah, sorry.
.htotal appears like the value from .hsync_end + .hsync_start (minus the
1080) and with that same logic, I would expect .vtotal to be .vsync_end
+ vsync_start (minus the 1920). So the '14' could've been a typo.

Hope that clarifies my thought process.

Cheers,
  Diederik

> The front-porch / back-porch values are not generally identical
> that is more a random event.
>
> Grabbing a random panel like the panel-leadtek-ltk050h3146w.c
> you'll see the values not matching.
>
> So those timing values are specific to the panel and in the common
> case not identical.
>
>
> Heiko
>
>> 
>> Cheers,
>>   Diederik
>> 
>> > +	.clock		= 134920,
>> > +	.flags		= DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
>> > +	.width_mm	= 70,
>> > +	.height_mm	= 127,
>> > +};
>> > +
>> > +static const struct hx8394_panel_desc hl055fhav028c_desc = {
>> > +	.mode = &hl055fhav028c_mode,
>> > +	.lanes = 4,
>> > +	.mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST,
>> > +	.format = MIPI_DSI_FMT_RGB888,
>> > +	.init_sequence = hl055fhav028c_init_sequence,
>> > +};
>> > +
>> >  static int hx8394_enable(struct drm_panel *panel)
>> >  {
>> >  	struct hx8394 *ctx = panel_to_hx8394(panel);
>> > @@ -683,6 +824,7 @@ static void hx8394_remove(struct mipi_dsi_device *dsi)
>> >  
>> >  static const struct of_device_id hx8394_of_match[] = {
>> >  	{ .compatible = "hannstar,hsd060bhw4", .data = &hsd060bhw4_desc },
>> > +	{ .compatible = "huiling,hl055fhav028c", .data = &hl055fhav028c_desc },
>> >  	{ .compatible = "powkiddy,x55-panel", .data = &powkiddy_x55_desc },
>> >  	{ .compatible = "microchip,ac40t08a-mipi-panel", .data = &mchp_ac40t08a_desc },
>> >  	{ /* sentinel */ }
>> 
>> 


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2025-06-05 12:55 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-03 19:39 [PATCH 0/4] Add DSI Panel for Gameforce Ace Chris Morgan
2025-06-03 19:39 ` [PATCH 1/4] dt-bindings: vendor-prefixes: Add prefix for Huiling Chris Morgan
2025-06-04 11:29   ` Krzysztof Kozlowski
2025-06-03 19:39 ` [PATCH 2/4] dt-bindings: display: himax-hx8394: Add Huiling hl055fhav028c Chris Morgan
2025-06-04 11:30   ` Krzysztof Kozlowski
2025-06-04 11:35   ` Javier Martinez Canillas
2025-06-03 19:39 ` [PATCH 3/4] drm/panel: himax-hx8394: Add Support for " Chris Morgan
2025-06-04  1:00   ` Jessica Zhang
2025-06-04 11:36   ` Javier Martinez Canillas
2025-06-05 11:54   ` Diederik de Haas
2025-06-05 12:46     ` Heiko Stübner
2025-06-05 12:55       ` Diederik de Haas [this message]
2025-06-05 13:29     ` Chris Morgan
2025-06-03 19:39 ` [PATCH 4/4] arm64: dts: rockchip: Add DSI panel support for gameforce-ace Chris Morgan
2025-06-04 11:37   ` Javier Martinez Canillas
2025-06-05  6:55 ` (subset) [PATCH 0/4] Add DSI Panel for Gameforce Ace Neil Armstrong
2025-06-09 10:23 ` Heiko Stuebner

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=DAEM5ZXWOVLM.10IJV82EMBVCK@cknow.org \
    --to=didi.debian@cknow.org \
    --cc=airlied@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=heiko@sntech.de \
    --cc=javierm@redhat.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=macroalpha82@gmail.com \
    --cc=macromorgan@hotmail.com \
    --cc=megi@xff.cz \
    --cc=mripard@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=quic_jesszhan@quicinc.com \
    --cc=robh@kernel.org \
    --cc=sebastian.reichel@collabora.com \
    --cc=simona@ffwll.ch \
    --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;
as well as URLs for NNTP newsgroup(s).