From: "Jérémie Dautheribes" <jeremie.dautheribes@bootlin.com>
To: Maxime Ripard <mripard@kernel.org>
Cc: Neil Armstrong <neil.armstrong@linaro.org>,
Jessica Zhang <quic_jesszhan@quicinc.com>,
Sam Ravnborg <sam@ravnborg.org>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
Thierry Reding <thierry.reding@gmail.com>,
dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Yen-Mei Goh <yen-mei.goh@keysight.com>
Subject: Re: [PATCH v2 3/3] drm/panel: simple: add CMT430B19N00 LCD panel support
Date: Fri, 8 Mar 2024 12:06:42 +0100 [thread overview]
Message-ID: <5cb1e17c-c283-4092-91ce-5ed03d9d3e48@bootlin.com> (raw)
In-Reply-To: <20240308-shiny-meaty-duck-446e8d@houat>
Hi Maxime,
On 08/03/2024 11:48, Maxime Ripard wrote:
> On Tue, Mar 05, 2024 at 10:46:55AM +0100, Jérémie Dautheribes wrote:
>> Hi Maxime,
>>
>> On 04/03/2024 17:25, Maxime Ripard wrote:
>>> Hi,
>>>
>>> On Mon, Mar 04, 2024 at 05:04:54PM +0100, Jérémie Dautheribes wrote:
>>>> Add support for Crystal Clear Technology CMT430B19N00 4.3" 480x272
>>>> TFT-LCD panel.
>>>>
>>>> Signed-off-by: Jérémie Dautheribes <jeremie.dautheribes@bootlin.com>
>>>> ---
>>>> drivers/gpu/drm/panel/panel-simple.c | 29 ++++++++++++++++++++++++++++
>>>> 1 file changed, 29 insertions(+)
>>>>
>>>> diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
>>>> index 20e3df1c59d4..b940220f56e2 100644
>>>> --- a/drivers/gpu/drm/panel/panel-simple.c
>>>> +++ b/drivers/gpu/drm/panel/panel-simple.c
>>>> @@ -1457,6 +1457,32 @@ static const struct panel_desc boe_hv070wsa = {
>>>> .connector_type = DRM_MODE_CONNECTOR_LVDS,
>>>> };
>>>> +static const struct drm_display_mode cct_cmt430b19n00_mode = {
>>>> + .clock = 9000,
>>>> + .hdisplay = 480,
>>>> + .hsync_start = 480 + 43,
>>>> + .hsync_end = 480 + 43 + 8,
>>>> + .htotal = 480 + 43 + 8 + 4,
>>>> + .vdisplay = 272,
>>>> + .vsync_start = 272 + 12,
>>>> + .vsync_end = 272 + 12 + 8,
>>>> + .vtotal = 272 + 12 + 8 + 4,
>>>> + .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
>>>> +};
>>>
>>> Your pixel clock doesn't really match the rest of the timings:
>>>
>>> (480 + 43 + 8 + 4) * (272 + 12 + 8 + 4) * 60 = 9501600
>>>
>>> So a ~6% deviation.
>>>
>>> What does the datasheet say?
>>
>> Indeed it does not exactly match but the datasheet indicates that the
>> typical clock frequency is 9MHz and when this frequency is used, the
>> typical values of the other parameters are those we have defined in
>> the drm_display_mode structure.
>
> It seems weird to me that all the typical timings end up in a
> non-typical configuration, but I've seen my fair share of weird
> datasheet, so.. yeah.
>
> I guess the best thing to do if you have access to the min/typ/max
> timings is to actually use the display_timings structure here and define
> all of them.
Yes, I do have access to these timings, I'm going to implement the
display_timing structure as you suggested, thank you!
Regards,
Jérémie
next prev parent reply other threads:[~2024-03-08 11:06 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-04 16:04 [PATCH v2 0/3] panel-simple: add support for Crystal Clear CMT430B19N00 Jérémie Dautheribes
2024-03-04 16:04 ` [PATCH v2 1/3] dt-bindings: Add Crystal Clear Technology vendor prefix Jérémie Dautheribes
2024-03-05 7:53 ` Krzysztof Kozlowski
2024-03-04 16:04 ` [PATCH v2 2/3] dt-bindings: display: simple: add support for Crystal Clear CMT430B19N00 Jérémie Dautheribes
2024-03-05 7:53 ` Krzysztof Kozlowski
2024-03-04 16:04 ` [PATCH v2 3/3] drm/panel: simple: add CMT430B19N00 LCD panel support Jérémie Dautheribes
2024-03-04 16:25 ` Maxime Ripard
2024-03-05 9:46 ` Jérémie Dautheribes
2024-03-08 10:48 ` Maxime Ripard
2024-03-08 11:06 ` Jérémie Dautheribes [this message]
2024-03-04 19:29 ` [PATCH v2 0/3] panel-simple: add support for Crystal Clear CMT430B19N00 Conor Dooley
2024-03-04 21:24 ` Rob Herring
2024-03-05 20:21 ` Conor Dooley
2024-03-05 9:48 ` Jérémie Dautheribes
2024-03-05 20:25 ` Conor Dooley
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=5cb1e17c-c283-4092-91ce-5ed03d9d3e48@bootlin.com \
--to=jeremie.dautheribes@bootlin.com \
--cc=airlied@gmail.com \
--cc=conor+dt@kernel.org \
--cc=daniel@ffwll.ch \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=quic_jesszhan@quicinc.com \
--cc=robh+dt@kernel.org \
--cc=sam@ravnborg.org \
--cc=thierry.reding@gmail.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=tzimmermann@suse.de \
--cc=yen-mei.goh@keysight.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®