Skip to content

Commit 13cdd12

Browse files
passgatsuperna9999
authored andcommitted
drm/panel: simple: add support for Rocktech RK043FN48H panel
Add support for Rocktech RK043FN48H 4.3" (480x272) LCD-TFT panel. Signed-off-by: Dario Binacchi <[email protected]> Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Reviewed-by: Jagan Teki <[email protected]> Signed-off-by: Neil Armstrong <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent c42a37a commit 13cdd12

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3281,6 +3281,32 @@ static const struct panel_desc qishenglong_gopher2b_lcd = {
32813281
.connector_type = DRM_MODE_CONNECTOR_DPI,
32823282
};
32833283

3284+
static const struct display_timing rocktech_rk043fn48h_timing = {
3285+
.pixelclock = { 6000000, 9000000, 12000000 },
3286+
.hactive = { 480, 480, 480 },
3287+
.hback_porch = { 8, 43, 43 },
3288+
.hfront_porch = { 2, 8, 8 },
3289+
.hsync_len = { 1, 1, 1 },
3290+
.vactive = { 272, 272, 272 },
3291+
.vback_porch = { 2, 12, 12 },
3292+
.vfront_porch = { 1, 4, 4 },
3293+
.vsync_len = { 1, 10, 10 },
3294+
.flags = DISPLAY_FLAGS_VSYNC_LOW | DISPLAY_FLAGS_HSYNC_LOW |
3295+
DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE,
3296+
};
3297+
3298+
static const struct panel_desc rocktech_rk043fn48h = {
3299+
.timings = &rocktech_rk043fn48h_timing,
3300+
.num_timings = 1,
3301+
.bpc = 8,
3302+
.size = {
3303+
.width = 95,
3304+
.height = 54,
3305+
},
3306+
.bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3307+
.connector_type = DRM_MODE_CONNECTOR_DPI,
3308+
};
3309+
32843310
static const struct display_timing rocktech_rk070er9427_timing = {
32853311
.pixelclock = { 26400000, 33300000, 46800000 },
32863312
.hactive = { 800, 800, 800 },
@@ -4320,6 +4346,9 @@ static const struct of_device_id platform_of_match[] = {
43204346
}, {
43214347
.compatible = "qishenglong,gopher2b-lcd",
43224348
.data = &qishenglong_gopher2b_lcd,
4349+
}, {
4350+
.compatible = "rocktech,rk043fn48h",
4351+
.data = &rocktech_rk043fn48h,
43234352
}, {
43244353
.compatible = "rocktech,rk070er9427",
43254354
.data = &rocktech_rk070er9427,

0 commit comments

Comments
 (0)