]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/panel: simple: Add support for AUO G156XTN01.0 panel
authorSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 15 Apr 2020 17:27:24 +0000 (19:27 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Sat, 25 Apr 2020 14:22:44 +0000 (16:22 +0200)
Add timings for the AUO G156XTN01.0 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-3-sebastian.reichel@collabora.com
Documentation/devicetree/bindings/display/panel/panel-simple.yaml
drivers/gpu/drm/panel/panel-simple.c

index a1daae98784e3e7bc0e3735d16472039e9bb23b6..cc360deb7472d3de5fa0e8818df8878728dc30f9 100644 (file)
@@ -55,6 +55,8 @@ properties:
       - auo,g104sn02
         # AU Optronics Corporation 13.3" FHD (1920x1080) TFT LCD panel
       - auo,g133han01
+        # AU Optronics Corporation 15.6" (1366x768) TFT LCD panel
+      - auo,g156xtn01
         # AU Optronics Corporation 18.5" FHD (1920x1080) TFT LCD panel
       - auo,g185han01
         # AU Optronics Corporation 19.0" (1280x1024) TFT LCD panel
index cef344ada3b25514fd558ee985ebc792322f5deb..33b8d0edb175323897f6c3c6fab2894eb522fafe 100644 (file)
@@ -892,6 +892,31 @@ static const struct panel_desc auo_g133han01 = {
        .connector_type = DRM_MODE_CONNECTOR_LVDS,
 };
 
+static const struct drm_display_mode auo_g156xtn01_mode = {
+       .clock = 76000,
+       .hdisplay = 1366,
+       .hsync_start = 1366 + 33,
+       .hsync_end = 1366 + 33 + 67,
+       .htotal = 1560,
+       .vdisplay = 768,
+       .vsync_start = 768 + 4,
+       .vsync_end = 768 + 4 + 4,
+       .vtotal = 806,
+       .vrefresh = 60,
+};
+
+static const struct panel_desc auo_g156xtn01 = {
+       .modes = &auo_g156xtn01_mode,
+       .num_modes = 1,
+       .bpc = 8,
+       .size = {
+               .width = 344,
+               .height = 194,
+       },
+       .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+       .connector_type = DRM_MODE_CONNECTOR_LVDS,
+};
+
 static const struct display_timing auo_g185han01_timings = {
        .pixelclock = { 120000000, 144000000, 175000000 },
        .hactive = { 1920, 1920, 1920 },
@@ -3513,6 +3538,9 @@ static const struct of_device_id platform_of_match[] = {
        }, {
                .compatible = "auo,g133han01",
                .data = &auo_g133han01,
+       }, {
+               .compatible = "auo,g156xtn01",
+               .data = &auo_g156xtn01,
        }, {
                .compatible = "auo,g185han01",
                .data = &auo_g185han01,