From f67be24239e4d008f6381bcee156185569f58762 Mon Sep 17 00:00:00 2001 From: WeiYong Bi Date: Mon, 12 Dec 2016 16:46:21 +0800 Subject: [PATCH] drm/panel: simple: Add support for BOE NV124FHM-N73 1920x1080 panel The BOE NV125FHM-N73 panel is a 12.5' FHD 16:9 Color TFT-LCD and 30 pins eDP interface. Change-Id: Idc15fb7126bf778fd23a766b01c2d5cf9760d4f3 Signed-off-by: WeiYong Bi --- .../display/panel/boe,nv125fhm-n73.txt | 7 +++++ drivers/gpu/drm/panel/panel-simple.c | 31 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/boe,nv125fhm-n73.txt diff --git a/Documentation/devicetree/bindings/display/panel/boe,nv125fhm-n73.txt b/Documentation/devicetree/bindings/display/panel/boe,nv125fhm-n73.txt new file mode 100644 index 000000000000..7eeedc8e3114 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/boe,nv125fhm-n73.txt @@ -0,0 +1,7 @@ +Boe Corporation 12.5" FHD TFT LCD panel + +Required properties: +- compatible: should be "boe,nv125fhm-n73" + +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 252c27d21d0f..95e5710794ce 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -632,6 +632,34 @@ static const struct panel_desc avic_tm070ddh03 = { }, }; +static const struct drm_display_mode boe_nv125fhm_n73_mode = { + .clock = 72300, + .hdisplay = 1366, + .hsync_start = 1366 + 80, + .hsync_end = 1366 + 80 + 20, + .htotal = 1366 + 80 + 20 + 60, + .vdisplay = 768, + .vsync_start = 768 + 12, + .vsync_end = 768 + 12 + 2, + .vtotal = 768 + 12 + 2 + 8, + .vrefresh = 60, + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, +}; + +static const struct panel_desc boe_nv125fhm_n73 = { + .modes = &boe_nv125fhm_n73_mode, + .num_modes = 1, + .bpc = 6, + .size = { + .width = 276, + .height = 156, + }, + .delay = { + .unprepare = 160, + }, + .bus_format = MEDIA_BUS_FMT_RGB666_1X18, +}; + static const struct drm_display_mode chunghwa_claa070wp03xg_mode = { .clock = 67000, .hdisplay = 800, @@ -1284,6 +1312,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "avic,tm070ddh03", .data = &avic_tm070ddh03, + }, { + .compatible = "boe,nv125fhm-n73", + .data = &boe_nv125fhm_n73, }, { .compatible = "chunghwa,claa070wp03xg", .data = &chunghwa_claa070wp03xg, -- 2.34.1