Skip to content

Commit 49179e6

Browse files
akaWolfpcercuei
authored andcommitted
drm/panel-simple: add Gopher 2b LCD panel
The Gopher 2b LCD panel is used in Gopher 2b handhelds. It's simple panel with NewVision NV3047 driver, but SPI lines are not connected. It has no specific name, since it's unique to that handheld. lot name at AliExpress: 4.3 inch 40PIN TFT LCD Screen COG NV3047 Drive IC 480(RGB)*272 No Touch 24Bit RGB Interface Signed-off-by: Artjom Vejsel <[email protected]> Signed-off-by: Paul Cercueil <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent fed4c10 commit 49179e6

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

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

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3622,6 +3622,46 @@ static const struct panel_desc qd43003c0_40 = {
36223622
.bus_format = MEDIA_BUS_FMT_RGB888_1X24,
36233623
};
36243624

3625+
static const struct drm_display_mode qishenglong_gopher2b_lcd_modes[] = {
3626+
{ /* 60 Hz */
3627+
.clock = 10800,
3628+
.hdisplay = 480,
3629+
.hsync_start = 480 + 77,
3630+
.hsync_end = 480 + 77 + 41,
3631+
.htotal = 480 + 77 + 41 + 2,
3632+
.vdisplay = 272,
3633+
.vsync_start = 272 + 16,
3634+
.vsync_end = 272 + 16 + 10,
3635+
.vtotal = 272 + 16 + 10 + 2,
3636+
.flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3637+
},
3638+
{ /* 50 Hz */
3639+
.clock = 10800,
3640+
.hdisplay = 480,
3641+
.hsync_start = 480 + 17,
3642+
.hsync_end = 480 + 17 + 41,
3643+
.htotal = 480 + 17 + 41 + 2,
3644+
.vdisplay = 272,
3645+
.vsync_start = 272 + 116,
3646+
.vsync_end = 272 + 116 + 10,
3647+
.vtotal = 272 + 116 + 10 + 2,
3648+
.flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3649+
},
3650+
};
3651+
3652+
static const struct panel_desc qishenglong_gopher2b_lcd = {
3653+
.modes = qishenglong_gopher2b_lcd_modes,
3654+
.num_modes = ARRAY_SIZE(qishenglong_gopher2b_lcd_modes),
3655+
.bpc = 8,
3656+
.size = {
3657+
.width = 95,
3658+
.height = 54,
3659+
},
3660+
.bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3661+
.bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
3662+
.connector_type = DRM_MODE_CONNECTOR_DPI,
3663+
};
3664+
36253665
static const struct display_timing rocktech_rk070er9427_timing = {
36263666
.pixelclock = { 26400000, 33300000, 46800000 },
36273667
.hactive = { 800, 800, 800 },
@@ -4689,6 +4729,9 @@ static const struct of_device_id platform_of_match[] = {
46894729
}, {
46904730
.compatible = "qiaodian,qd43003c0-40",
46914731
.data = &qd43003c0_40,
4732+
}, {
4733+
.compatible = "qishenglong,gopher2b-lcd",
4734+
.data = &qishenglong_gopher2b_lcd,
46924735
}, {
46934736
.compatible = "rocktech,rk070er9427",
46944737
.data = &rocktech_rk070er9427,

0 commit comments

Comments
 (0)