Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v5.15-stm32mp-bearpi #20

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 28 additions & 0 deletions drivers/gpu/drm/panel/panel-simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -2048,6 +2048,31 @@ static const struct panel_desc edt_etm0350g0dh6 = {
.connector_type = DRM_MODE_CONNECTOR_DPI,
};

static const struct drm_display_mode bearpi_rgblcd_mode = {
.clock = 51200,
.hdisplay = 800,
.hsync_start = 800 + 46,
.hsync_end = 800 + 46 + 1,
.htotal = 800 + 46 + 1 + 210,
.vdisplay = 480,
.vsync_start = 480 + 23,
.vsync_end = 480 + 23 + 1,
.vtotal = 480 + 23 + 1 + 22,
.flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
};

static const struct panel_desc bearpi_rgblcd_desc = {
.modes = &bearpi_rgblcd_mode,
.num_modes = 1,
.bpc = 6,
.size = {
.width = 152,
.height = 91,
},
.bus_format = MEDIA_BUS_FMT_RGB888_1X24,
.bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
};

static const struct drm_display_mode edt_etm043080dh6gp_mode = {
.clock = 10870,
.hdisplay = 480,
Expand Down Expand Up @@ -4558,6 +4583,9 @@ static const struct of_device_id platform_of_match[] = {
}, {
.compatible = "avic,tm070ddh03",
.data = &avic_tm070ddh03,
}, {
.compatible = "bearpi,rgblcd",
.data = &bearpi_rgblcd_desc,
}, {
.compatible = "bananapi,s070wv20-ct16",
.data = &bananapi_s070wv20_ct16,
Expand Down