Skip to content

Commit 230cbd4

Browse files
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 6efa61a commit 230cbd4

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
@@ -4081,6 +4081,31 @@ static const struct panel_desc yes_optoelectronics_ytc700tlag_05_201c = {
40814081
.connector_type = DRM_MODE_CONNECTOR_LVDS,
40824082
};
40834083

4084+
static const struct drm_display_mode sitronix_st7262_lvds_mode = {
4085+
.clock = 25000,
4086+
.hdisplay = 800,
4087+
.hsync_start = 800 + 88,
4088+
.hsync_end = 800 + 88 + 5,
4089+
.htotal = 800 + 88 + 5 + 40,
4090+
.vdisplay = 480,
4091+
.vsync_start = 480 + 23,
4092+
.vsync_end = 480 + 23 + 5,
4093+
.vtotal = 480 + 23 + 5 + 1,
4094+
};
4095+
4096+
static const struct panel_desc sitronix_st7262_lvds = {
4097+
.modes = &sitronix_st7262_lvds_mode,
4098+
.num_modes = 1,
4099+
.bpc = 8,
4100+
.size = {
4101+
.width = 108,
4102+
.height = 65,
4103+
},
4104+
.bus_flags = DRM_BUS_FLAG_DE_HIGH,
4105+
.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
4106+
.connector_type = DRM_MODE_CONNECTOR_LVDS,
4107+
};
4108+
40844109
static const struct drm_display_mode arm_rtsm_mode[] = {
40854110
{
40864111
.clock = 65000,
@@ -4516,6 +4541,9 @@ static const struct of_device_id platform_of_match[] = {
45164541
}, {
45174542
.compatible = "yes-optoelectronics,ytc700tlag-05-201c",
45184543
.data = &yes_optoelectronics_ytc700tlag_05_201c,
4544+
}, {
4545+
.compatible = "sitronix,st7262",
4546+
.data = &sitronix_st7262_lvds,
45194547
}, {
45204548
/* Must be the last entry */
45214549
.compatible = "panel-dpi",

0 commit comments

Comments
 (0)