drm/panel: simple: Add support for BOE NV124FHM-N73 1920x1080 panel
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / drm / panel / panel-simple.c
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,