lpi4a: add pocket4a & plastic4a initial support

This commit is contained in:
Lu
2024-05-20 09:20:56 +08:00
committed by Han Gao
parent 2dec144313
commit 9cc3fa38f8
10 changed files with 400 additions and 5 deletions

View File

@@ -4570,6 +4570,37 @@ static const struct panel_desc_dsi z14inch_2160x1440_40Hz = {
};
/* TODO: move timing into device tree */
static const struct drm_display_mode cmn_5171_1920x1200_40Hz_mode = {
.clock = 127750,
.hdisplay = 1920,
.hsync_start = 1920 + 46, /* hact + hfp */
.hsync_end = 1920 + 46 + 30, /* hact + hfp + hs */
.htotal = 1920 + 46 + 30 + 84, /* hact + hfp + hs + hbp */
.vdisplay = 1200,
.vsync_start = 1200 + 10, /* vact + vfp */
.vsync_end = 1200 + 10 + 6, /* vact + vfp + vs */
.vtotal = 1200 + 10 + 6 + 20, /* vact + vfp + vs + vbp */
.flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
};
static const struct panel_desc_dsi cmn_5171_1920x1200_40Hz = {
.desc = {
.modes = &cmn_5171_1920x1200_40Hz_mode,
.num_modes = 1,
.bpc = 8,
.size = {
.width = 62,
.height = 110,
},
.connector_type = DRM_MODE_CONNECTOR_DSI,
},
.flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_VIDEO_BURST,
.format = MIPI_DSI_FMT_RGB888,
.lanes = 4,
};
static const struct drm_display_mode lg_ld070wx3_sl01_mode = {
.clock = 71000,
.hdisplay = 800,
@@ -4771,6 +4802,9 @@ static const struct of_device_id dsi_of_match[] = {
}, {
.compatible = "custom,z14inch_2160x1440_40Hz",
.data = &z14inch_2160x1440_40Hz
}, {
.compatible = "cmn,5171_1920x1200_40Hz",
.data = &cmn_5171_1920x1200_40Hz
}, {
/* sentinel */
}