From: Marek Vasut <marex@denx.de>
To: dri-devel@lists.freedesktop.org
Cc: Marek Vasut <marex@denx.de>, Rob Herring <robh+dt@kernel.org>,
Sam Ravnborg <sam@ravnborg.org>,
devicetree@vger.kernel.org
Subject: [PATCH 3/3] drm/panel: simple: Add Displaytech DT050TFT-PTS panel
Date: Sat, 30 Jan 2021 19:11:14 +0100 [thread overview]
Message-ID: <20210130181114.161515-3-marex@denx.de> (raw)
In-Reply-To: <20210130181114.161515-1-marex@denx.de>
Add support for the Displaytech DT050TFT-PTS 5.0" (800x480)
color TFT LCD panel, connected over DPI.
Timings are taken from the datasheet Rev 0.0.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: dri-devel@lists.freedesktop.org
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: devicetree@vger.kernel.org
---
drivers/gpu/drm/panel/panel-simple.c | 33 ++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 204674fccd64..4e31fe04fe49 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -1625,6 +1625,36 @@ static const struct panel_desc dataimage_scf0700c48ggu18 = {
.bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
};
+static const struct display_timing displaytech_dt050tft_pts_timing = {
+ .pixelclock = { 30000000, 40000000, 50000000 },
+ .hactive = { 800, 800, 800 },
+ .hfront_porch = { 1, 40, 255 },
+ .hback_porch = { 88, 88, 88 },
+ .hsync_len = { 1, 48, 255 },
+ .vactive = { 480, 480, 480 },
+ .vfront_porch = { 1, 13, 255 },
+ .vback_porch = { 32, 32, 32 },
+ .vsync_len = { 3, 3, 255 },
+ .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
+ DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
+ DISPLAY_FLAGS_SYNC_POSEDGE,
+};
+
+static const struct panel_desc displaytech_dt050tft_pts = {
+ .timings = &displaytech_dt050tft_pts_timing,
+ .num_timings = 1,
+ .bpc = 8,
+ .size = {
+ .width = 121,
+ .height = 76,
+ },
+ .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
+ .bus_flags = DRM_BUS_FLAG_DE_HIGH |
+ DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
+ DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
+ .connector_type = DRM_MODE_CONNECTOR_DPI,
+};
+
static const struct display_timing dlc_dlc0700yzg_1_timing = {
.pixelclock = { 45000000, 51200000, 57000000 },
.hactive = { 1024, 1024, 1024 },
@@ -4015,6 +4045,9 @@ static const struct of_device_id platform_of_match[] = {
}, {
.compatible = "dataimage,scf0700c48ggu18",
.data = &dataimage_scf0700c48ggu18,
+ }, {
+ .compatible = "displaytech,dt050tft-pts",
+ .data = &displaytech_dt050tft_pts,
}, {
.compatible = "dlc,dlc0700yzg-1",
.data = &dlc_dlc0700yzg_1,
--
2.29.2
next prev parent reply other threads:[~2021-01-30 18:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-30 18:11 [PATCH 1/3] dt-bindings: Add vendor prefix for Displaytech Marek Vasut
2021-01-30 18:11 ` [PATCH 2/3] dt-bindings: Add DT bindings for Displaytech DT050TFT-PTS Marek Vasut
2021-02-09 20:36 ` Rob Herring
2021-01-30 18:11 ` Marek Vasut [this message]
2021-02-09 20:36 ` [PATCH 1/3] dt-bindings: Add vendor prefix for Displaytech Rob Herring
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=20210130181114.161515-3-marex@denx.de \
--to=marex@denx.de \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=robh+dt@kernel.org \
--cc=sam@ravnborg.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 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).