Skip to content

Commit 258145e

Browse files
anarsoulmripard
authored andcommitted
drm/panel: simple: Add NewEast Optoelectronics CO., LTD WJFH116008A panel support
This commit adds support for the NewEast Optoelectronics CO., LTD WJFH116008A 11.6" 1920x1080 TFT LCD panel. Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> Signed-off-by: Maxime Ripard <maxime@cerno.tech> Link: https://patchwork.freedesktop.org/patch/msgid/20200226081011.1347245-6-anarsoul@gmail.com
1 parent 0c10640 commit 258145e

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

‎drivers/gpu/drm/panel/panel-simple.c‎

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2340,6 +2340,51 @@ static const struct panel_desc netron_dy_e231732 = {
23402340
.bus_format = MEDIA_BUS_FMT_RGB666_1X18,
23412341
};
23422342

2343+
static const struct drm_display_mode neweast_wjfh116008a_modes[] = {
2344+
{
2345+
.clock = 138500,
2346+
.hdisplay = 1920,
2347+
.hsync_start = 1920 + 48,
2348+
.hsync_end = 1920 + 48 + 32,
2349+
.htotal = 1920 + 48 + 32 + 80,
2350+
.vdisplay = 1080,
2351+
.vsync_start = 1080 + 3,
2352+
.vsync_end = 1080 + 3 + 5,
2353+
.vtotal = 1080 + 3 + 5 + 23,
2354+
.vrefresh = 60,
2355+
.flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
2356+
}, {
2357+
.clock = 110920,
2358+
.hdisplay = 1920,
2359+
.hsync_start = 1920 + 48,
2360+
.hsync_end = 1920 + 48 + 32,
2361+
.htotal = 1920 + 48 + 32 + 80,
2362+
.vdisplay = 1080,
2363+
.vsync_start = 1080 + 3,
2364+
.vsync_end = 1080 + 3 + 5,
2365+
.vtotal = 1080 + 3 + 5 + 23,
2366+
.vrefresh = 48,
2367+
.flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
2368+
}
2369+
};
2370+
2371+
static const struct panel_desc neweast_wjfh116008a = {
2372+
.modes = neweast_wjfh116008a_modes,
2373+
.num_modes = 2,
2374+
.bpc = 6,
2375+
.size = {
2376+
.width = 260,
2377+
.height = 150,
2378+
},
2379+
.delay = {
2380+
.prepare = 110,
2381+
.enable = 20,
2382+
.unprepare = 500,
2383+
},
2384+
.bus_format = MEDIA_BUS_FMT_RGB666_1X18,
2385+
.connector_type = DRM_MODE_CONNECTOR_eDP,
2386+
};
2387+
23432388
static const struct drm_display_mode newhaven_nhd_43_480272ef_atxl_mode = {
23442389
.clock = 9000,
23452390
.hdisplay = 480,
@@ -3560,6 +3605,9 @@ static const struct of_device_id platform_of_match[] = {
35603605
}, {
35613606
.compatible = "netron-dy,e231732",
35623607
.data = &netron_dy_e231732,
3608+
}, {
3609+
.compatible = "neweast,wjfh116008a",
3610+
.data = &neweast_wjfh116008a,
35633611
}, {
35643612
.compatible = "newhaven,nhd-4.3-480272ef-atxl",
35653613
.data = &newhaven_nhd_43_480272ef_atxl,

0 commit comments

Comments
 (0)