drm/panel: simple: Add support for BOE NV124FHM-N73 1920x1080 panel
authorWeiYong Bi <bivvy.bi@rock-chips.com>
Mon, 12 Dec 2016 08:46:21 +0000 (16:46 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 13 Dec 2016 11:13:24 +0000 (19:13 +0800)
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 <bivvy.bi@rock-chips.com>
Documentation/devicetree/bindings/display/panel/boe,nv125fhm-n73.txt [new file with mode: 0644]
drivers/gpu/drm/panel/panel-simple.c

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 (file)
index 0000000..7eeedc8
--- /dev/null
@@ -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.
index 252c27d21d0fe0bf1a9acc527855fbaef010fb57..95e5710794ce92aca0406e16739ea85374ce4ab5 100644 (file)
@@ -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,