drm/panel/simple: add optronics B101XTN01.0 (v3)
authorRob Clark <robdclark@gmail.com>
Fri, 1 Aug 2014 21:01:06 +0000 (17:01 -0400)
committerRob Clark <robdclark@gmail.com>
Wed, 10 Sep 2014 15:19:07 +0000 (11:19 -0400)
LVDS panel, make/model described as:

AU Optronics Corporation - B101XTN01.0 (H/W:0A)

See:
http://www.encore-electronic.com/media/B101XTN01.0.pdf

Tested with panel attached to an Inforce IFC6410 board.

Signed-off-by: Rob Clark <robdclark@gmail.com>
Documentation/devicetree/bindings/panel/auo,b101xtn01.txt [new file with mode: 0644]
drivers/gpu/drm/panel/panel-simple.c

diff --git a/Documentation/devicetree/bindings/panel/auo,b101xtn01.txt b/Documentation/devicetree/bindings/panel/auo,b101xtn01.txt
new file mode 100644 (file)
index 0000000..889d511
--- /dev/null
@@ -0,0 +1,7 @@
+AU Optronics Corporation 10.1" WXGA TFT LCD panel
+
+Required properties:
+- compatible: should be "auo,b101xtn01"
+
+This binding is compatible with the simple-panel binding, which is specified
+in simple-panel.txt in this directory.
index 4ce1db0a68ff5754c37cb1eace4edccc6d6f03db..23de22f8c82078a11a4c9a7815c8aa099d74ddf9 100644 (file)
@@ -352,6 +352,30 @@ static const struct panel_desc auo_b101aw03 = {
        },
 };
 
+static const struct drm_display_mode auo_b101xtn01_mode = {
+       .clock = 72000,
+       .hdisplay = 1366,
+       .hsync_start = 1366 + 20,
+       .hsync_end = 1366 + 20 + 70,
+       .htotal = 1366 + 20 + 70,
+       .vdisplay = 768,
+       .vsync_start = 768 + 14,
+       .vsync_end = 768 + 14 + 42,
+       .vtotal = 768 + 14 + 42,
+       .vrefresh = 60,
+       .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
+};
+
+static const struct panel_desc auo_b101xtn01 = {
+       .modes = &auo_b101xtn01_mode,
+       .num_modes = 1,
+       .bpc = 6,
+       .size = {
+               .width = 223,
+               .height = 125,
+       },
+};
+
 static const struct drm_display_mode auo_b133xtn01_mode = {
        .clock = 69500,
        .hdisplay = 1366,
@@ -615,6 +639,9 @@ static const struct of_device_id platform_of_match[] = {
        {
                .compatible = "auo,b101aw03",
                .data = &auo_b101aw03,
+       }, {
+               .compatible = "auo,b101xtn01",
+               .data = &auo_b101xtn01,
        }, {
                .compatible = "auo,b133htn01",
                .data = &auo_b133htn01,