Add support for the EDT ET057023UDBA 5.7" 24-bit 640x480 DPI panel.

Reviewed-by: Neil Armstrong <[email protected]>
Signed-off-by: Marco Felsch <[email protected]>
---
 drivers/gpu/drm/panel/panel-simple.c | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/drivers/gpu/drm/panel/panel-simple.c 
b/drivers/gpu/drm/panel/panel-simple.c
index 
0019de93be1b663f55b04160606363cd043ab38b..953c1969a74e9880c7fccfe308ff016c7a941c91
 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -2096,6 +2096,35 @@ static const struct panel_desc edt_et057090dhu = {
        .connector_type = DRM_MODE_CONNECTOR_DPI,
 };
 
+static const struct display_timing edt_et057023udba_timing = {
+       .pixelclock = { 23200000, 24190000, 39640000 },
+       .hactive = { 640, 640, 640 },
+       .hfront_porch = { 20, 40, 200 },
+       .hback_porch = { 87, 40, 1 },
+       .hsync_len = { 1, 48, 87 },
+       .vactive = { 480, 480, 480 },
+       .vfront_porch = { 5, 13, 200 },
+       .vback_porch = { 31, 31, 29 },
+       .vsync_len = { 1, 1, 3 },
+       .flags = DISPLAY_FLAGS_VSYNC_LOW | DISPLAY_FLAGS_HSYNC_LOW |
+                DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
+                DISPLAY_FLAGS_SYNC_POSEDGE,
+};
+
+static const struct panel_desc edt_et057023udba = {
+       .timings = &edt_et057023udba_timing,
+       .num_timings = 1,
+       .bpc = 8,
+       .size = {
+               .width = 115,
+               .height = 86,
+       },
+       .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
+       .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE |
+                    DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
+       .connector_type = DRM_MODE_CONNECTOR_DPI,
+};
+
 static const struct drm_display_mode edt_etm0700g0dh6_mode = {
        .clock = 33260,
        .hdisplay = 800,
@@ -5109,6 +5138,9 @@ static const struct of_device_id platform_of_match[] = {
        }, {
                .compatible = "edt,etm0430g0dh6",
                .data = &edt_etm0430g0dh6,
+       }, {
+               .compatible = "edt,et057023udba",
+               .data = &edt_et057023udba,
        }, {
                .compatible = "edt,et057090dhu",
                .data = &edt_et057090dhu,

-- 
2.47.3

Reply via email to