drm/panel: Add LG 12.9" LCD panel
authorThierry Reding <treding@nvidia.com>
Fri, 15 Nov 2013 14:59:32 +0000 (15:59 +0100)
committerThierry Reding <treding@nvidia.com>
Fri, 4 Apr 2014 07:06:34 +0000 (09:06 +0200)
The LP129QE LCD has an LED backlight and a display resolution of
2560x1700 pixels.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Documentation/devicetree/bindings/panel/lg,lp129qe.txt [new file with mode: 0644]
drivers/gpu/drm/panel/panel-simple.c

diff --git a/Documentation/devicetree/bindings/panel/lg,lp129qe.txt b/Documentation/devicetree/bindings/panel/lg,lp129qe.txt
new file mode 100644 (file)
index 0000000..9f262e0
--- /dev/null
@@ -0,0 +1,7 @@
+LG 12.9" (2560x1700 pixels) TFT LCD panel
+
+Required properties:
+- compatible: should be "lg,lp129qe"
+
+This binding is compatible with the simple-panel binding, which is specified
+in simple-panel.txt in this directory.
index 59d52ca2c67fdf6caaf9e1729998f2a24b20813e..0231945c29340ceb083915e8ebdf6d04a94309a8 100644 (file)
@@ -361,6 +361,28 @@ static const struct panel_desc chunghwa_claa101wb01 = {
        },
 };
 
+static const struct drm_display_mode lg_lp129qe_mode = {
+       .clock = 285250,
+       .hdisplay = 2560,
+       .hsync_start = 2560 + 48,
+       .hsync_end = 2560 + 48 + 32,
+       .htotal = 2560 + 48 + 32 + 80,
+       .vdisplay = 1700,
+       .vsync_start = 1700 + 3,
+       .vsync_end = 1700 + 3 + 10,
+       .vtotal = 1700 + 3 + 10 + 36,
+       .vrefresh = 60,
+};
+
+static const struct panel_desc lg_lp129qe = {
+       .modes = &lg_lp129qe_mode,
+       .num_modes = 1,
+       .size = {
+               .width = 272,
+               .height = 181,
+       },
+};
+
 static const struct drm_display_mode samsung_ltn101nt05_mode = {
        .clock = 54030,
        .hdisplay = 1024,
@@ -393,6 +415,9 @@ static const struct of_device_id platform_of_match[] = {
        }, {
                .compatible = "chunghwa,claa101wb01",
                .data = &chunghwa_claa101wb01
+       }, {
+               .compatible = "lg,lp129qe",
+               .data = &lg_lp129qe,
        }, {
                .compatible = "samsung,ltn101nt05",
                .data = &samsung_ltn101nt05,