OSDN Git Service

drm/panel: simple: Add AM-1280800N3TZQW-T00H
authorJagan Teki <jagan@amarulasolutions.com>
Sat, 29 Aug 2020 16:33:28 +0000 (22:03 +0530)
committerSam Ravnborg <sam@ravnborg.org>
Sat, 29 Aug 2020 21:01:09 +0000 (23:01 +0200)
Add Ampire, AM-1280800N3TZQW-T00H 10.1" TFT LCD panel timings.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200829163328.249211-2-jagan@amarulasolutions.com
drivers/gpu/drm/panel/panel-simple.c

index f499de7..a1e5a02 100644 (file)
@@ -659,6 +659,32 @@ static void panel_simple_shutdown(struct device *dev)
        drm_panel_unprepare(&panel->base);
 }
 
+static const struct drm_display_mode ampire_am_1280800n3tzqw_t00h_mode = {
+       .clock = 71100,
+       .hdisplay = 1280,
+       .hsync_start = 1280 + 40,
+       .hsync_end = 1280 + 40 + 80,
+       .htotal = 1280 + 40 + 80 + 40,
+       .vdisplay = 800,
+       .vsync_start = 800 + 3,
+       .vsync_end = 800 + 3 + 10,
+       .vtotal = 800 + 3 + 10 + 10,
+       .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
+};
+
+static const struct panel_desc ampire_am_1280800n3tzqw_t00h = {
+       .modes = &ampire_am_1280800n3tzqw_t00h_mode,
+       .num_modes = 1,
+       .bpc = 6,
+       .size = {
+               .width = 217,
+               .height = 136,
+       },
+       .bus_flags = DRM_BUS_FLAG_DE_HIGH,
+       .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+       .connector_type = DRM_MODE_CONNECTOR_LVDS,
+};
+
 static const struct drm_display_mode ampire_am_480272h3tmqw_t01h_mode = {
        .clock = 9000,
        .hdisplay = 480,
@@ -3875,6 +3901,9 @@ static const struct panel_desc arm_rtsm = {
 
 static const struct of_device_id platform_of_match[] = {
        {
+               .compatible = "ampire,am-1280800n3tzqw-t00h",
+               .data = &ampire_am_1280800n3tzqw_t00h,
+       }, {
                .compatible = "ampire,am-480272h3tmqw-t01h",
                .data = &ampire_am_480272h3tmqw_t01h,
        }, {