Skip to content

Commit 6c2b2cd

Browse files
Paul Gerbersuperna9999
authored andcommitted
drm/panel: simple: Add AUO G104STN01 panel entry
Add support for the AUO G104STN01 10.4" (800x600) LCD-TFT panel. Signed-off-by: Paul Gerber <paul.gerber@ew.tq-group.com> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://lore.kernel.org/r/20240627084446.3197196-3-paul.gerber@ew.tq-group.com Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20240627084446.3197196-3-paul.gerber@ew.tq-group.com
1 parent 21335cf commit 6c2b2cd

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,6 +1067,30 @@ static const struct panel_desc auo_g104sn02 = {
10671067
.connector_type = DRM_MODE_CONNECTOR_LVDS,
10681068
};
10691069

1070+
static const struct drm_display_mode auo_g104stn01_mode = {
1071+
.clock = 40000,
1072+
.hdisplay = 800,
1073+
.hsync_start = 800 + 40,
1074+
.hsync_end = 800 + 40 + 88,
1075+
.htotal = 800 + 40 + 88 + 128,
1076+
.vdisplay = 600,
1077+
.vsync_start = 600 + 1,
1078+
.vsync_end = 600 + 1 + 23,
1079+
.vtotal = 600 + 1 + 23 + 4,
1080+
};
1081+
1082+
static const struct panel_desc auo_g104stn01 = {
1083+
.modes = &auo_g104stn01_mode,
1084+
.num_modes = 1,
1085+
.bpc = 8,
1086+
.size = {
1087+
.width = 211,
1088+
.height = 158,
1089+
},
1090+
.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1091+
.connector_type = DRM_MODE_CONNECTOR_LVDS,
1092+
};
1093+
10701094
static const struct display_timing auo_g121ean01_timing = {
10711095
.pixelclock = { 60000000, 74400000, 90000000 },
10721096
.hactive = { 1280, 1280, 1280 },
@@ -4533,6 +4557,9 @@ static const struct of_device_id platform_of_match[] = {
45334557
}, {
45344558
.compatible = "auo,g104sn02",
45354559
.data = &auo_g104sn02,
4560+
}, {
4561+
.compatible = "auo,g104stn01",
4562+
.data = &auo_g104stn01,
45364563
}, {
45374564
.compatible = "auo,g121ean01",
45384565
.data = &auo_g121ean01,

0 commit comments

Comments
 (0)