drm/panel: simple: Add Innolux N116BGE panel support
authorThierry Reding <treding@nvidia.com>
Thu, 3 Jul 2014 12:02:59 +0000 (14:02 +0200)
committerThierry Reding <treding@nvidia.com>
Wed, 6 Aug 2014 14:44:04 +0000 (16:44 +0200)
The Innolux N116BGE is an 11.6" WXGA TFT LCD panel connecting to an eDP
interface and with an integrated LED backlight unit.

It is used in the Tegra132 Norrin reference design.

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

diff --git a/Documentation/devicetree/bindings/panel/innolux,n116bge.txt b/Documentation/devicetree/bindings/panel/innolux,n116bge.txt
new file mode 100644 (file)
index 0000000..081bb93
--- /dev/null
@@ -0,0 +1,7 @@
+Innolux Corporation 11.6" WXGA (1366x768) TFT LCD panel
+
+Required properties:
+- compatible: should be "innolux,n116bge"
+
+This binding is compatible with the simple-panel binding, which is specified
+in simple-panel.txt in this directory.
index fa2aea0981a12ba4b222e9a8219f08039efe07cd..755dd5a4c229b1a25f8b8077eb7722955424de46 100644 (file)
@@ -434,6 +434,30 @@ static const struct panel_desc foxlink_fl500wvr00_a0t = {
        },
 };
 
+static const struct drm_display_mode innolux_n116bge_mode = {
+       .clock = 71000,
+       .hdisplay = 1366,
+       .hsync_start = 1366 + 64,
+       .hsync_end = 1366 + 64 + 6,
+       .htotal = 1366 + 64 + 6 + 64,
+       .vdisplay = 768,
+       .vsync_start = 768 + 8,
+       .vsync_end = 768 + 8 + 4,
+       .vtotal = 768 + 8 + 4 + 8,
+       .vrefresh = 60,
+       .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
+};
+
+static const struct panel_desc innolux_n116bge = {
+       .modes = &innolux_n116bge_mode,
+       .num_modes = 1,
+       .bpc = 6,
+       .size = {
+               .width = 256,
+               .height = 144,
+       },
+};
+
 static const struct drm_display_mode innolux_n156bge_l21_mode = {
        .clock = 69300,
        .hdisplay = 1366,
@@ -528,6 +552,9 @@ static const struct of_device_id platform_of_match[] = {
        }, {
                .compatible = "foxlink,fl500wvr00-a0t",
                .data = &foxlink_fl500wvr00_a0t,
+       }, {
+               .compatible = "innolux,n116bge",
+               .data = &innolux_n116bge,
        }, {
                .compatible = "innolux,n156bge-l21",
                .data = &innolux_n156bge_l21,