2023-06-22 05:06 AM
This post is connected to my previous one "Display customization". I created this new post because I can't insert replies in the previous one "Display customization"
I created the following patch to modify the panel-simple.c file
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 654fea2..8e4234f 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -1439,6 +1439,31 @@ static const struct panel_desc innolux_zj070na_01p = {
},
};
+static const struct drm_display_mode jenson_1024x600jt60396_01_mode = {
+ .clock = 51200,
+ .hdisplay = 1024,
+ .hsync_start = 1024 + 0,
+ .hsync_end = 1024 + 0 + 320,
+ .htotal = 1024 + 0 + 320 + 0,
+ .vdisplay = 600,
+ .vsync_start = 600 + 0,
+ .vsync_end = 600 + 0 + 35,
+ .vtotal = 600 + 0 + 35 + 0,
+ .vrefresh = 60,
+ .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
+};
+
+static const struct panel_desc jenson_1024x600jt60396_01 = {
+ .modes = &jenson_1024x600jt60396_01_mode,
+ .num_modes = 1,
+ .bpc = 8,
+ .size = {
+ .width = 154,
+ .height = 85,
+ },
+ .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
+};
+
static const struct display_timing koe_tx31d200vm0baa_timing = {
.pixelclock = { 39600000, 43200000, 48000000 },
.hactive = { 1280, 1280, 1280 },
@@ -2480,6 +2505,9 @@ static const struct of_device_id platform_of_match[] = {
.compatible = "innolux,zj070na-01p",
.data = &innolux_zj070na_01p,
}, {
+ .compatible = "jenson,jt60396-01",
+ .data = &jenson_1024x600jt60396_01,
+ }, {
.compatible = "koe,tx31d200vm0baa",
.data = &koe_tx31d200vm0baa,
}, {
The build process ends correctly but the boot log shows the following errors
[11066.089809] [drm:drm_atomic_helper_wait_for_dependencies] *ERROR* [CRTC:32:crtc-0] flip_done timed out
[11076.329852] [drm:drm_atomic_helper_wait_for_dependencies] *ERROR* [CONNECTOR:29:DPI-1] flip_done timed out
[11086.569810] [drm:drm_atomic_helper_wait_for_dependencies] *ERROR* [PLANE:30:plane-0] flip_done timed out
and the display screen doesn't show anything
Any suggestion?
Thanks