Skip to content

Commit b610492

Browse files
manikandan-m11Dharma Balasubiramani
authored andcommitted
drm/panel: simple: add sitronix-st7262 LVDS display timing configurations
Add display timing configurations for sitronix-st7262 LVDS display for sam9x7. Signed-off-by: Manikandan Muralidharan <manikandan.m@microchip.com> Signed-off-by: Dharma Balasubiramani <dharma.b@microchip.com> Acked-by: Hari Prasath Gujulan Elango <hari.prasathge@microchip.com>
1 parent 9bdc953 commit b610492

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3897,6 +3897,31 @@ static const struct panel_desc yes_optoelectronics_ytc700tlag_05_201c = {
38973897
.connector_type = DRM_MODE_CONNECTOR_LVDS,
38983898
};
38993899

3900+
static const struct drm_display_mode sitronix_st7262_lvds_mode = {
3901+
.clock = 25000,
3902+
.hdisplay = 800,
3903+
.hsync_start = 800 + 88,
3904+
.hsync_end = 800 + 88 + 5,
3905+
.htotal = 800 + 88 + 5 + 40,
3906+
.vdisplay = 480,
3907+
.vsync_start = 480 + 23,
3908+
.vsync_end = 480 + 23 + 5,
3909+
.vtotal = 480 + 23 + 5 + 1,
3910+
};
3911+
3912+
static const struct panel_desc sitronix_st7262_lvds = {
3913+
.modes = &sitronix_st7262_lvds_mode,
3914+
.num_modes = 1,
3915+
.bpc = 8,
3916+
.size = {
3917+
.width = 108,
3918+
.height = 65,
3919+
},
3920+
.bus_flags = DRM_BUS_FLAG_DE_HIGH,
3921+
.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
3922+
.connector_type = DRM_MODE_CONNECTOR_LVDS,
3923+
};
3924+
39003925
static const struct drm_display_mode arm_rtsm_mode[] = {
39013926
{
39023927
.clock = 65000,
@@ -4314,6 +4339,9 @@ static const struct of_device_id platform_of_match[] = {
43144339
}, {
43154340
.compatible = "yes-optoelectronics,ytc700tlag-05-201c",
43164341
.data = &yes_optoelectronics_ytc700tlag_05_201c,
4342+
}, {
4343+
.compatible = "sitronix,st7262",
4344+
.data = &sitronix_st7262_lvds,
43174345
}, {
43184346
/* Must be the last entry */
43194347
.compatible = "panel-dpi",

0 commit comments

Comments
 (0)