]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm/panel: simple: Add Olimex LCD-OLinuXino-5CTS support
authorPaul Kocialkowski <paulk@sys-base.io>
Wed, 2 Jul 2025 08:22:30 +0000 (10:22 +0200)
committerNeil Armstrong <neil.armstrong@linaro.org>
Mon, 4 Aug 2025 15:24:24 +0000 (17:24 +0200)
Add support for the Olimex LCD-OLinuXino-5CTS, a 5-inch TFT LCD panel
with a mode operating at 33.3 MHz.

Signed-off-by: Paul Kocialkowski <paulk@sys-base.io>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20250702082230.1291953-2-paulk@sys-base.io
drivers/gpu/drm/panel/panel-simple.c

index 47222d2d8129620a73dc8994d96d50e1d1ff06bc..fbd10396a374b9a9adf85de3fd8b320b69c8a991 100644 (file)
@@ -3679,6 +3679,29 @@ static const struct panel_desc olimex_lcd_olinuxino_43ts = {
        .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
 };
 
+static const struct drm_display_mode olimex_lcd_olinuxino_5cts_mode = {
+       .clock = 33300,
+       .hdisplay = 800,
+       .hsync_start = 800 + 210,
+       .hsync_end = 800 + 210 + 20,
+       .htotal = 800 + 210 + 20 + 26,
+       .vdisplay = 480,
+       .vsync_start = 480 + 22,
+       .vsync_end = 480 + 22 + 10,
+       .vtotal = 480 + 22 + 10 + 13,
+};
+
+static const struct panel_desc olimex_lcd_olinuxino_5cts = {
+       .modes = &olimex_lcd_olinuxino_5cts_mode,
+       .num_modes = 1,
+       .size = {
+               .width = 154,
+               .height = 86,
+       },
+       .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
+};
+
+
 static const struct display_timing ontat_kd50g21_40nt_a1_timing = {
        .pixelclock = { 30000000, 30000000, 50000000 },
        .hactive = { 800, 800, 800 },
@@ -5241,6 +5264,9 @@ static const struct of_device_id platform_of_match[] = {
        }, {
                .compatible = "olimex,lcd-olinuxino-43-ts",
                .data = &olimex_lcd_olinuxino_43ts,
+       }, {
+               .compatible = "olimex,lcd-olinuxino-5-cts",
+               .data = &olimex_lcd_olinuxino_5cts,
        }, {
                .compatible = "ontat,kd50g21-40nt-a1",
                .data = &ontat_kd50g21_40nt_a1,