]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/panel: simple: Add Team Source Display TST070WSBE-196C panel
authorWilliam Bright <william.bright@imd-tec.com>
Tue, 28 Apr 2026 15:17:25 +0000 (16:17 +0100)
committerNeil Armstrong <neil.armstrong@linaro.org>
Tue, 5 May 2026 09:58:06 +0000 (11:58 +0200)
Add a dedicated panel driver for the Team Source Display
TST070WSBE-196C, a 7" 1024x600 MIPI-DSI TFT LCD panel
using an EK79007AD controller.

The DSI timings were calculated using
"linux-mdss-dsi-panel-driver-generator" [1], reading the downstream
file "dsi-panel-imdt-tst070wsbe165c-video.dtsi" [2].

[1] https://github.com/msm8916-mainline/linux-mdss-dsi-panel-driver-generator
[2] https://raw.githubusercontent.com/imd-tec/meta-imdt-qcom/refs/heads/kirkstone/recipes-display/displaydevicetree/displaydevicetree/0001-Initial-bringup-of-IMDT-Display-3.patch

Signed-off-by: William Bright <william.bright@imd-tec.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patch.msgid.link/20260428-imdt-dsi-display-v2-2-cf7294b5d7d6@imd-tec.com
drivers/gpu/drm/panel/panel-simple.c

index ab116b92186825e8d6a7388a7d0359f912ad9114..5ba71a3b44dee8768a4bcda1bea335f22fb465e9 100644 (file)
@@ -6346,6 +6346,39 @@ static const struct panel_desc_dsi osd101t2045_53ts = {
        .lanes = 4,
 };
 
+static const struct drm_display_mode tsd_tst070wsbe_196c_mode = {
+       .clock = 52477,
+       .hdisplay = 1024,
+       .hsync_start = 1024 + 160,
+       .hsync_end = 1024 + 160 + 12,
+       .htotal = 1024 + 160 + 160 + 12,
+       .vdisplay = 600,
+       .vsync_start = 600 + 12,
+       .vsync_end = 600 + 12 + 10,
+       .vtotal = 600 + 12 + 10 + 23,
+};
+
+static const struct panel_desc_dsi tsd_tst070wsbe_196c = {
+       .desc = {
+               .modes = &tsd_tst070wsbe_196c_mode,
+               .num_modes = 1,
+               .bpc = 8,
+               .size = {
+                       .width = 190,
+                       .height = 121,
+               },
+               .delay = {
+                       .prepare = 20,
+               },
+               .connector_type = DRM_MODE_CONNECTOR_DSI,
+       },
+       .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_LPM |
+                MIPI_DSI_MODE_VIDEO_BURST |
+                MIPI_DSI_MODE_VIDEO_SYNC_PULSE,
+       .format = MIPI_DSI_FMT_RGB888,
+       .lanes = 4,
+};
+
 static const struct of_device_id dsi_of_match[] = {
        {
                .compatible = "auo,b080uan01",
@@ -6365,6 +6398,9 @@ static const struct of_device_id dsi_of_match[] = {
        }, {
                .compatible = "osddisplays,osd101t2045-53ts",
                .data = &osd101t2045_53ts
+       }, {
+               .compatible = "team-source-display,tst070wsbe-196c",
+               .data = &tsd_tst070wsbe_196c
        }, {
                /* sentinel */
        }