drm/panel: simple - Add AUO B133XTN01 panel support
authorStéphane Marchesin <marcheu@chromium.org>
Sat, 24 May 2014 02:27:59 +0000 (19:27 -0700)
committerThierry Reding <treding@nvidia.com>
Mon, 9 Jun 2014 10:17:21 +0000 (12:17 +0200)
This panel is used by nyan-big and can be supported by the simple-panel
driver.

Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
[treding@nvidia.com: add device tree binding document]
Signed-off-by: Thierry Reding <treding@nvidia.com>
Documentation/devicetree/bindings/panel/auo,b133xtn01.txt [new file with mode: 0644]
drivers/gpu/drm/panel/panel-simple.c

diff --git a/Documentation/devicetree/bindings/panel/auo,b133xtn01.txt b/Documentation/devicetree/bindings/panel/auo,b133xtn01.txt
new file mode 100644 (file)
index 0000000..7443b7c
--- /dev/null
@@ -0,0 +1,7 @@
+AU Optronics Corporation 13.3" WXGA (1366x768) TFT LCD panel
+
+Required properties:
+- compatible: should be "auo,b133xtn01"
+
+This binding is compatible with the simple-panel binding, which is specified
+in simple-panel.txt in this directory.
index abae40c580865143cd7a4bd67967aa66ed30b30c..a25136132c318b3a18f9579d71de8799ffefad15 100644 (file)
@@ -291,6 +291,28 @@ static const struct panel_desc auo_b101aw03 = {
        },
 };
 
+static const struct drm_display_mode auo_b133xtn01_mode = {
+       .clock = 69500,
+       .hdisplay = 1366,
+       .hsync_start = 1366 + 48,
+       .hsync_end = 1366 + 48 + 32,
+       .htotal = 1366 + 48 + 32 + 20,
+       .vdisplay = 768,
+       .vsync_start = 768 + 3,
+       .vsync_end = 768 + 3 + 6,
+       .vtotal = 768 + 3 + 6 + 13,
+       .vrefresh = 60,
+};
+
+static const struct panel_desc auo_b133xtn01 = {
+       .modes = &auo_b133xtn01_mode,
+       .num_modes = 1,
+       .size = {
+               .width = 293,
+               .height = 165,
+       },
+};
+
 static const struct drm_display_mode chunghwa_claa101wa01a_mode = {
        .clock = 72070,
        .hdisplay = 1366,
@@ -429,6 +451,9 @@ static const struct of_device_id platform_of_match[] = {
        {
                .compatible = "auo,b101aw03",
                .data = &auo_b101aw03,
+       }, {
+               .compatible = "auo,b133xtn01",
+               .data = &auo_b133xtn01,
        }, {
                .compatible = "chunghwa,claa101wa01a",
                .data = &chunghwa_claa101wa01a