drm/panel: simple: Add support for AUO B101EW05 1280x800 panel
authorYakir Yang <ykk@rock-chips.com>
Tue, 28 Jun 2016 10:07:39 +0000 (18:07 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 30 Jun 2016 06:34:47 +0000 (14:34 +0800)
The AUO B101EW05 panel is a 10.1" 1280(RGB)x800 WXGA TFT-LCD panel,
connected using LVDS interfaces

Change-Id: Ic67fe5793a975b585cecfb8da02e81cd9fa6346f
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
drivers/gpu/drm/panel/panel-simple.c

index 8572ac24437e8a273c498a996c48fbf213eae527..9090fa13924687c7d70d466cdc2d5d56dfa17809 100644 (file)
@@ -440,6 +440,29 @@ static const struct panel_desc auo_b101ean01 = {
        },
 };
 
+static const struct drm_display_mode auo_b101ew05_mode = {
+       .clock = 71000,
+       .hdisplay = 1280,
+       .hsync_start = 1280 + 18,
+       .hsync_end = 1280 + 18 + 10,
+       .htotal = 1280 + 18 + 10 + 100,
+       .vdisplay = 800,
+       .vsync_start = 800 + 6,
+       .vsync_end = 800 + 6 + 2,
+       .vtotal = 800 + 6 + 2 + 8,
+       .vrefresh = 60,
+};
+
+static const struct panel_desc auo_b101ew05 = {
+       .modes = &auo_b101ew05_mode,
+       .num_modes = 1,
+       .bpc = 6,
+       .size = {
+               .width = 217,
+               .height = 136,
+       },
+};
+
 static const struct drm_display_mode auo_b101xtn01_mode = {
        .clock = 72000,
        .hdisplay = 1366,
@@ -1196,6 +1219,9 @@ static const struct of_device_id platform_of_match[] = {
        }, {
                .compatible = "auo,b101ean01",
                .data = &auo_b101ean01,
+       }, {
+               .compatible = "auo,b101ew05",
+               .data = &auo_b101ew05,
        }, {
                .compatible = "auo,b101xtn01",
                .data = &auo_b101xtn01,