]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
drm/panel: simple: Add support for NEC NL4827HC19-05B 480x272 panel
authorjianwei wang <jianwei.wang.chn@gmail.com>
Wed, 29 Jul 2015 08:30:02 +0000 (16:30 +0800)
committerThierry Reding <treding@nvidia.com>
Fri, 14 Aug 2015 19:35:33 +0000 (21:35 +0200)
This adds support for the NEC NL4827HC19-05B 480x272 panel to the DRM
simple panel driver.

Signed-off-by: Alison Wang <b18965@freescale.com>
Signed-off-by: Xiubo Li <lixiubo@cmss.chinamobile.com>
Signed-off-by: Jianwei Wang <jianwei.wang.chn@gmail.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
[treding@nvidia.com: add .bpc field for panel]
Signed-off-by: Thierry Reding <treding@nvidia.com>
Documentation/devicetree/bindings/panel/nec,nl4827hc19-05b.txt [new file with mode: 0644]
drivers/gpu/drm/panel/panel-simple.c

diff --git a/Documentation/devicetree/bindings/panel/nec,nl4827hc19-05b.txt b/Documentation/devicetree/bindings/panel/nec,nl4827hc19-05b.txt
new file mode 100644 (file)
index 0000000..8e1914d
--- /dev/null
@@ -0,0 +1,7 @@
+NEC LCD Technologies,Ltd. WQVGA TFT LCD panel
+
+Required properties:
+- compatible: should be "nec,nl4827hc19-05b"
+
+This binding is compatible with the simple-panel binding, which is specified
+in simple-panel.txt in this directory.
index 2bf2c47e29bf6b86250dacbbe2da4648760208ae..57eceb24912debe6185bcc457aa4b1477c78c2c6 100644 (file)
@@ -949,6 +949,30 @@ static const struct panel_desc lg_lp129qe = {
        },
 };
 
+static const struct drm_display_mode nec_nl4827hc19_05b_mode = {
+       .clock = 10870,
+       .hdisplay = 480,
+       .hsync_start = 480 + 2,
+       .hsync_end = 480 + 2 + 41,
+       .htotal = 480 + 2 + 41 + 2,
+       .vdisplay = 272,
+       .vsync_start = 272 + 2,
+       .vsync_end = 272 + 2 + 4,
+       .vtotal = 272 + 2 + 4 + 2,
+       .vrefresh = 74,
+};
+
+static const struct panel_desc nec_nl4827hc19_05b = {
+       .modes = &nec_nl4827hc19_05b_mode,
+       .num_modes = 1,
+       .bpc = 8,
+       .size = {
+               .width = 95,
+               .height = 54,
+       },
+       .bus_format = MEDIA_BUS_FMT_RGB888_1X24
+};
+
 static const struct drm_display_mode ortustech_com43h4m85ulc_mode  = {
        .clock = 25000,
        .hdisplay = 480,
@@ -1118,6 +1142,9 @@ static const struct of_device_id platform_of_match[] = {
        }, {
                .compatible = "lg,lp129qe",
                .data = &lg_lp129qe,
+       }, {
+               .compatible = "nec,nl4827hc19-05b",
+               .data = &nec_nl4827hc19_05b,
        }, {
                .compatible = "ortustech,com43h4m85ulc",
                .data = &ortustech_com43h4m85ulc,