aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Grzeschik <m.grzeschik@pengutronix.de>2015-03-19 07:22:44 -0400
committerThierry Reding <treding@nvidia.com>2015-04-02 13:04:10 -0400
commitbccac3f121d53b645c882cae7948facb50940043 (patch)
treea68044865c5a2fa101801d91eceab6aee98eb23c
parent41bcceb4de9c5b120459610fe8a9157dee418d75 (diff)
drm/panel: simple: Add support for Innolux ZJ070NA-01P
The Innolux ZJ070NA-01P is a 7.0" TFT LCD panel with an integrated LED backlight unit. This panel is used on the Technexion Toucan. Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r--Documentation/devicetree/bindings/panel/innolux,zj070na-01p.txt7
-rw-r--r--drivers/gpu/drm/panel/panel-simple.c26
2 files changed, 33 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/panel/innolux,zj070na-01p.txt b/Documentation/devicetree/bindings/panel/innolux,zj070na-01p.txt
new file mode 100644
index 000000000000..824f87f1526d
--- /dev/null
+++ b/Documentation/devicetree/bindings/panel/innolux,zj070na-01p.txt
@@ -0,0 +1,7 @@
1Innolux Corporation 7.0" WSVGA (1024x600) TFT LCD panel
2
3Required properties:
4- compatible: should be "innolux,zj070na-01p"
5
6This binding is compatible with the simple-panel binding, which is specified
7in simple-panel.txt in this directory.
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 57958f11d569..d241c10de1dd 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -758,6 +758,29 @@ static const struct panel_desc innolux_n156bge_l21 = {
758 }, 758 },
759}; 759};
760 760
761static const struct drm_display_mode innolux_zj070na_01p_mode = {
762 .clock = 51501,
763 .hdisplay = 1024,
764 .hsync_start = 1024 + 128,
765 .hsync_end = 1024 + 128 + 64,
766 .htotal = 1024 + 128 + 64 + 128,
767 .vdisplay = 600,
768 .vsync_start = 600 + 16,
769 .vsync_end = 600 + 16 + 4,
770 .vtotal = 600 + 16 + 4 + 16,
771 .vrefresh = 60,
772};
773
774static const struct panel_desc innolux_zj070na_01p = {
775 .modes = &innolux_zj070na_01p_mode,
776 .num_modes = 1,
777 .bpc = 6,
778 .size = {
779 .width = 1024,
780 .height = 600,
781 },
782};
783
761static const struct drm_display_mode lg_lp129qe_mode = { 784static const struct drm_display_mode lg_lp129qe_mode = {
762 .clock = 285250, 785 .clock = 285250,
763 .hdisplay = 2560, 786 .hdisplay = 2560,
@@ -909,6 +932,9 @@ static const struct of_device_id platform_of_match[] = {
909 .compatible = "innolux,n156bge-l21", 932 .compatible = "innolux,n156bge-l21",
910 .data = &innolux_n156bge_l21, 933 .data = &innolux_n156bge_l21,
911 }, { 934 }, {
935 .compatible = "innolux,zj070na-01p",
936 .data = &innolux_zj070na_01p,
937 }, {
912 .compatible = "lg,lp129qe", 938 .compatible = "lg,lp129qe",
913 .data = &lg_lp129qe, 939 .data = &lg_lp129qe,
914 }, { 940 }, {