]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/panel: simple: Add DataImage FG040346DSSWBG04 panel support
authorMarek Vasut <marex@denx.de>
Fri, 22 Apr 2022 10:22:42 +0000 (12:22 +0200)
committerMarek Vasut <marex@denx.de>
Sun, 24 Apr 2022 21:53:57 +0000 (23:53 +0200)
Add DataImage FG040346DSSWBG04 4.3" 480x272 TFT LCD 24bit DPI panel
support.

Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
To: dri-devel@lists.freedesktop.org
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220422102242.18959-2-marex@denx.de
drivers/gpu/drm/panel/panel-simple.c

index a34f4198a534179122fc4b5cec61cde201d18faa..3c35f8a32d3277995360d0eb38d6d3a8addcfa01 100644 (file)
@@ -1402,6 +1402,31 @@ static const struct panel_desc chunghwa_claa101wb01 = {
        .connector_type = DRM_MODE_CONNECTOR_LVDS,
 };
 
+static const struct display_timing dataimage_fg040346dsswbg04_timing = {
+       .pixelclock = { 5000000, 9000000, 12000000 },
+       .hactive = { 480, 480, 480 },
+       .hfront_porch = { 12, 12, 12 },
+       .hback_porch = { 12, 12, 12 },
+       .hsync_len = { 21, 21, 21 },
+       .vactive = { 272, 272, 272 },
+       .vfront_porch = { 4, 4, 4 },
+       .vback_porch = { 4, 4, 4 },
+       .vsync_len = { 8, 8, 8 },
+};
+
+static const struct panel_desc dataimage_fg040346dsswbg04 = {
+       .timings = &dataimage_fg040346dsswbg04_timing,
+       .num_timings = 1,
+       .bpc = 8,
+       .size = {
+               .width = 95,
+               .height = 54,
+       },
+       .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
+       .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
+       .connector_type = DRM_MODE_CONNECTOR_DPI,
+};
+
 static const struct drm_display_mode dataimage_scf0700c48ggu18_mode = {
        .clock = 33260,
        .hdisplay = 800,
@@ -3768,6 +3793,9 @@ static const struct of_device_id platform_of_match[] = {
        }, {
                .compatible = "chunghwa,claa101wb01",
                .data = &chunghwa_claa101wb01
+       }, {
+               .compatible = "dataimage,fg040346dsswbg04",
+               .data = &dataimage_fg040346dsswbg04,
        }, {
                .compatible = "dataimage,scf0700c48ggu18",
                .data = &dataimage_scf0700c48ggu18,