drm/panel: simple: Add support for AUO G121EAN01.4 panel
authorSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 15 Apr 2020 17:27:25 +0000 (19:27 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Sat, 25 Apr 2020 14:23:04 +0000 (16:23 +0200)
Add timings for the AUO G121EAN01.4 panel.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200415172725.84257-4-sebastian.reichel@collabora.com
Documentation/devicetree/bindings/display/panel/panel-simple.yaml
drivers/gpu/drm/panel/panel-simple.c

index cc360deb7472d3de5fa0e8818df8878728dc30f9..8b356d04cd3c543b03d539b5795e6745268a838d 100644 (file)
@@ -53,6 +53,8 @@ properties:
       - auo,g101evn010
         # AU Optronics Corporation 10.4" (800x600) color TFT LCD panel
       - auo,g104sn02
+        # AU Optronics Corporation 12.1" (1280x800) TFT LCD panel
+      - auo,g121ean01
         # AU Optronics Corporation 13.3" FHD (1920x1080) TFT LCD panel
       - auo,g133han01
         # AU Optronics Corporation 15.6" (1366x768) TFT LCD panel
index 33b8d0edb175323897f6c3c6fab2894eb522fafe..17d22c5a0fc23fb8c410a8ffaf7780c3a94f3327 100644 (file)
@@ -862,6 +862,31 @@ static const struct panel_desc auo_g104sn02 = {
        },
 };
 
+static const struct drm_display_mode auo_g121ean01_mode = {
+       .clock = 66700,
+       .hdisplay = 1280,
+       .hsync_start = 1280 + 58,
+       .hsync_end = 1280 + 58 + 8,
+       .htotal = 1280 + 58 + 8 + 70,
+       .vdisplay = 800,
+       .vsync_start = 800 + 6,
+       .vsync_end = 800 + 6 + 4,
+       .vtotal = 800 + 6 + 4 + 10,
+       .vrefresh = 60,
+};
+
+static const struct panel_desc auo_g121ean01 = {
+       .modes = &auo_g121ean01_mode,
+       .num_modes = 1,
+       .bpc = 8,
+       .size = {
+               .width = 261,
+               .height = 163,
+       },
+       .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+       .connector_type = DRM_MODE_CONNECTOR_LVDS,
+};
+
 static const struct display_timing auo_g133han01_timings = {
        .pixelclock = { 134000000, 141200000, 149000000 },
        .hactive = { 1920, 1920, 1920 },
@@ -3535,6 +3560,9 @@ static const struct of_device_id platform_of_match[] = {
        }, {
                .compatible = "auo,g104sn02",
                .data = &auo_g104sn02,
+       }, {
+               .compatible = "auo,g121ean01",
+               .data = &auo_g121ean01,
        }, {
                .compatible = "auo,g133han01",
                .data = &auo_g133han01,