From bc41bde50a4c034576bdb09588e241c85319902f Mon Sep 17 00:00:00 2001 From: WeiYong Bi Date: Mon, 12 Dec 2016 16:36:07 +0800 Subject: [PATCH] drm/panel: simple: Add support for INNOLUX N125HCE-GPA 1920x1080 panel The INNOLUX N125HCE-GPA is a 12.5' TFT Liquid Crystal Display NB module with LED Backlight unit and 30 pins eDP interface. This module supports 1920x1080 FHD mode and can display 16.7M colors. Change-Id: I72318ac3317cd03e2301a1cab61cf126cd2a401b Signed-off-by: WeiYong Bi --- .../display/panel/innolux,n125hce.txt | 7 ++++ drivers/gpu/drm/panel/panel-simple.c | 32 +++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/innolux,n125hce.txt diff --git a/Documentation/devicetree/bindings/display/panel/innolux,n125hce.txt b/Documentation/devicetree/bindings/display/panel/innolux,n125hce.txt new file mode 100644 index 000000000000..1ea26f66115b --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/innolux,n125hce.txt @@ -0,0 +1,7 @@ +Innolux Corporation 12.5" FHD (1920x1080) TFT LCD panel + +Required properties: +- compatible: should be "innolux,n125hce" + +This binding is compatible with the simple-panel binding, which is specified +in 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 427c53008e1d..3c36215745a0 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -998,6 +998,35 @@ static const struct panel_desc innolux_n116bge = { }, }; +static const struct drm_display_mode innolux_n125hce_mode = { + .clock = 138780, + .hdisplay = 1920, + .hsync_start = 1920 + 80, + .hsync_end = 1920 + 80 + 30, + .htotal = 1920 + 80 + 30 + 50, + .vdisplay = 1080, + .vsync_start = 1080 + 12, + .vsync_end = 1080 + 12 + 4, + .vtotal = 1080 + 12 + 4 + 16, + .vrefresh = 60, + .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, +}; + +static const struct panel_desc innolux_n125hce = { + .modes = &innolux_n125hce_mode, + .num_modes = 1, + .bpc = 6, + .size = { + .width = 283, + .height = 168, + }, + .delay = { + .unprepare = 600, + .enable = 100, + }, + .bus_format = MEDIA_BUS_FMT_RGB666_1X18, +}; + static const struct drm_display_mode innolux_n156bge_l21_mode = { .clock = 69300, .hdisplay = 1366, @@ -1385,6 +1414,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "innolux,n116bge", .data = &innolux_n116bge, + }, { + .compatible = "innolux,n125hce", + .data = &innolux_n125hce, }, { .compatible = "innolux,n156bge-l21", .data = &innolux_n156bge_l21, -- 2.34.1